md2x 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/chunk-2LPNL4GA.js +1 -0
- package/dist/chunks/chunk-3P5X57NT.js +262 -0
- package/dist/chunks/chunk-3VL755NO.js +1 -0
- package/dist/chunks/chunk-5DPTQTJJ.js +1 -0
- package/dist/chunks/chunk-5DRL26RK.js +108 -0
- package/dist/chunks/chunk-AK6TXLWO.js +1 -0
- package/dist/chunks/chunk-CN4F5HOV.js +5 -0
- package/dist/chunks/chunk-CVKZIRZW.js +5 -0
- package/dist/chunks/chunk-DFROP2PD.js +11 -0
- package/dist/chunks/chunk-DJGIYXVP.js +3 -0
- package/dist/chunks/chunk-IENSDROB.js +1 -0
- package/dist/chunks/chunk-LLCWR7UA.js +1 -0
- package/dist/chunks/chunk-MHCTK6WW.js +1 -0
- package/dist/chunks/chunk-NM6J3ND7.js +1 -0
- package/dist/chunks/chunk-PARPCLXM.js +1 -0
- package/dist/chunks/chunk-PUOHPY5L.js +16 -0
- package/dist/chunks/chunk-PXO7VHRW.js +723 -0
- package/dist/chunks/chunk-R65AQGTF.js +1 -0
- package/dist/chunks/chunk-R6G2575A.js +3 -0
- package/dist/chunks/chunk-TRGQPVRY.js +2 -0
- package/dist/chunks/chunk-URO5RPHJ.js +9 -0
- package/dist/chunks/chunk-YFL3W3OS.js +1 -0
- package/dist/chunks/chunk-Z4LVGK7Y.js +1 -0
- package/dist/chunks/docx-exporter-FGXU5MTK.js +1 -0
- package/dist/chunks/rehype-highlight-Y4Q4RX67.js +1 -0
- package/dist/chunks/rehype-katex-FXTCTSUE.js +1 -0
- package/dist/chunks/rehype-stringify-4CQSSRDL.js +1 -0
- package/dist/chunks/remark-gfm-BUZ4SLP3.js +1 -0
- package/dist/chunks/remark-math-HEZQAPFK.js +1 -0
- package/dist/chunks/remark-parse-QC7TSXTK.js +1 -0
- package/dist/chunks/remark-rehype-C2LX643P.js +1 -0
- package/dist/chunks/remark-super-sub-EP2AQS54.js +1 -0
- package/dist/chunks/theme-manager-AZBU2SLL.js +1 -0
- package/dist/chunks/theme-to-css-GLV3WYDU.js +85 -0
- package/dist/chunks/unified-PU53JLVJ.js +1 -0
- package/dist/chunks/unist-util-visit-SBSD62C6.js +1 -0
- package/dist/index.js +1 -0
- package/dist/md2x.js +37 -0
- package/dist/renderer/puppeteer-render.html +1 -2812
- package/package.json +4 -4
- package/dist/index.mjs +0 -131248
- package/dist/md2x.mjs +0 -131485
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import{a as IC}from"./chunk-CVKZIRZW.js";import{b as Ft}from"./chunk-3VL755NO.js";import{a as Eb}from"./chunk-2LPNL4GA.js";import{a as Ab}from"./chunk-R6G2575A.js";import{a as pl,b as Tb}from"./chunk-PUOHPY5L.js";import{a as Sb}from"./chunk-CN4F5HOV.js";import{a as bd}from"./chunk-5DPTQTJJ.js";import{f as Ob}from"./chunk-Z4LVGK7Y.js";import{a as vd,b as ee,d as Ln}from"./chunk-NM6J3ND7.js";var p0=ee(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.VERSION=void 0;ec.VERSION="3.2.2"});var Xa=ee(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.PrioritizedList=void 0;var $N=(function(){function e(){this.items=[],this.items=[]}return e.prototype[Symbol.iterator]=function(){var t=0,r=this.items;return{next:function(){return{value:r[t++],done:t>r.length}}}},e.prototype.add=function(t,r){r===void 0&&(r=e.DEFAULTPRIORITY);var n=this.items.length;do n--;while(n>=0&&r<this.items[n].priority);return this.items.splice(n+1,0,{item:t,priority:r}),t},e.prototype.remove=function(t){var r=this.items.length;do r--;while(r>=0&&this.items[r].item!==t);r>=0&&this.items.splice(r,1)},e.DEFAULTPRIORITY=5,e})();tc.PrioritizedList=$N});var g0=ee(pi=>{"use strict";var VN=pi&&pi.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),YN=pi&&pi.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pi,"__esModule",{value:!0});pi.HandlerList=void 0;var ZN=Xa(),JN=(function(e){VN(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.register=function(r){return this.add(r,r.priority)},t.prototype.unregister=function(r){this.remove(r)},t.prototype.handlesDocument=function(r){var n,i;try{for(var a=YN(this),o=a.next();!o.done;o=a.next()){var s=o.value,l=s.item;if(l.handlesDocument(r))return l}}catch(c){n={error:c}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}throw new Error("Can't find handler for document")},t.prototype.document=function(r,n){return n===void 0&&(n=null),this.handlesDocument(r).create(r,n)},t})(ZN.PrioritizedList);pi.HandlerList=JN});var rc=ee($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.retryAfter=$a.handleRetriesFor=void 0;function QN(e){return new Promise(function t(r,n){try{r(e())}catch(i){i.retry&&i.retry instanceof Promise?i.retry.then(function(){return t(r,n)}).catch(function(a){return n(a)}):i.restart&&i.restart.isCallback?MathJax.Callback.After(function(){return t(r,n)},i.restart):n(i)}})}$a.handleRetriesFor=QN;function eI(e){var t=new Error("MathJax retry");throw t.retry=e,t}$a.retryAfter=eI});var nc=ee(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.mathjax=void 0;var tI=p0(),rI=g0(),y0=rc();_s.mathjax={version:tI.VERSION,handlers:new rI.HandlerList,document:function(e,t){return _s.mathjax.handlers.document(e,t)},handleRetriesFor:y0.handleRetriesFor,retryAfter:y0.retryAfter,asyncLoad:null}});var It=ee(Ae=>{"use strict";var vs=Ae&&Ae.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ty=Ae&&Ae.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},ry=Ae&&Ae.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.lookup=Ae.separateOptions=Ae.selectOptionsFromKeys=Ae.selectOptions=Ae.userOptions=Ae.defaultOptions=Ae.insert=Ae.copy=Ae.keys=Ae.makeArray=Ae.expandable=Ae.Expandable=Ae.OPTIONS=Ae.REMOVE=Ae.APPEND=Ae.isObject=void 0;var nI={}.constructor;function ic(e){return typeof e=="object"&&e!==null&&(e.constructor===nI||e.constructor===bs)}Ae.isObject=ic;Ae.APPEND="[+]";Ae.REMOVE="[-]";Ae.OPTIONS={invalidOption:"warn",optionError:function(e,t){if(Ae.OPTIONS.invalidOption==="fatal")throw new Error(e);console.warn("MathJax: "+e)}};var bs=(function(){function e(){}return e})();Ae.Expandable=bs;function _0(e){return Object.assign(Object.create(bs.prototype),e)}Ae.expandable=_0;function iI(e){return Array.isArray(e)?e:[e]}Ae.makeArray=iI;function ac(e){return e?Object.keys(e).concat(Object.getOwnPropertySymbols(e)):[]}Ae.keys=ac;function ny(e){var t,r,n={};try{for(var i=vs(ac(e)),a=i.next();!a.done;a=i.next()){var o=a.value,s=Object.getOwnPropertyDescriptor(e,o),l=s.value;Array.isArray(l)?s.value=Va([],l,!1):ic(l)&&(s.value=ny(l)),s.enumerable&&(n[o]=s)}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return Object.defineProperties(e.constructor===bs?_0({}):{},n)}Ae.copy=ny;function Va(e,t,r){var n,i;r===void 0&&(r=!0);var a=function(c){if(r&&e[c]===void 0&&e.constructor!==bs)return typeof c=="symbol"&&(c=c.toString()),Ae.OPTIONS.optionError('Invalid option "'.concat(c,'" (no default value).'),c),"continue";var d=t[c],f=e[c];if(ic(d)&&f!==null&&(typeof f=="object"||typeof f=="function")){var m=ac(d);Array.isArray(f)&&(m.length===1&&(m[0]===Ae.APPEND||m[0]===Ae.REMOVE)&&Array.isArray(d[m[0]])||m.length===2&&m.sort().join(",")===Ae.APPEND+","+Ae.REMOVE&&Array.isArray(d[Ae.APPEND])&&Array.isArray(d[Ae.REMOVE]))?(d[Ae.REMOVE]&&(f=e[c]=f.filter(function(p){return d[Ae.REMOVE].indexOf(p)<0})),d[Ae.APPEND]&&(e[c]=ry(ry([],ty(f),!1),ty(d[Ae.APPEND]),!1))):Va(f,d,r)}else Array.isArray(d)?(e[c]=[],Va(e[c],d,!1)):ic(d)?e[c]=ny(d):e[c]=d};try{for(var o=vs(ac(t)),s=o.next();!s.done;s=o.next()){var l=s.value;a(l)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return e}Ae.insert=Va;function aI(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach(function(n){return Va(e,n,!1)}),e}Ae.defaultOptions=aI;function oI(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach(function(n){return Va(e,n,!0)}),e}Ae.userOptions=oI;function v0(e){for(var t,r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var a={};try{for(var o=vs(n),s=o.next();!s.done;s=o.next()){var l=s.value;e.hasOwnProperty(l)&&(a[l]=e[l])}}catch(c){t={error:c}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return a}Ae.selectOptions=v0;function sI(e,t){return v0.apply(void 0,ry([e],ty(Object.keys(t)),!1))}Ae.selectOptionsFromKeys=sI;function lI(e){for(var t,r,n,i,a=[],o=1;o<arguments.length;o++)a[o-1]=arguments[o];var s=[];try{for(var l=vs(a),c=l.next();!c.done;c=l.next()){var d=c.value,f={},m={};try{for(var p=(n=void 0,vs(Object.keys(e||{}))),b=p.next();!b.done;b=p.next()){var v=b.value;(d[v]===void 0?m:f)[v]=e[v]}}catch(A){n={error:A}}finally{try{b&&!b.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}s.push(f),e=m}}catch(A){t={error:A}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return s.unshift(e),s}Ae.separateOptions=lI;function cI(e,t,r){return r===void 0&&(r=null),t.hasOwnProperty(e)?t[e]:r}Ae.lookup=cI});var ws=ee(gr=>{"use strict";var uI=gr&&gr.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),dI=gr&&gr.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},b0=gr&&gr.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},w0=gr&&gr.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(gr,"__esModule",{value:!0});gr.FunctionList=void 0;var fI=Xa(),mI=(function(e){uI(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.execute=function(){for(var r,n,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];try{for(var o=dI(this),s=o.next();!s.done;s=o.next()){var l=s.value,c=l.item.apply(l,w0([],b0(i),!1));if(c===!1)return!1}}catch(d){r={error:d}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!0},t.prototype.asyncExecute=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=-1,a=this.items;return new Promise(function(o,s){(function l(){for(var c;++i<a.length;){var d=(c=a[i]).item.apply(c,w0([],b0(r),!1));if(d instanceof Promise){d.then(l).catch(function(f){return s(f)});return}if(d===!1){o(!1);return}}o(!0)})()})},t})(fI.PrioritizedList);gr.FunctionList=mI});var iy=ee(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.AbstractInputJax=void 0;var E0=It(),A0=ws(),hI=(function(){function e(t){t===void 0&&(t={}),this.adaptor=null,this.mmlFactory=null;var r=this.constructor;this.options=(0,E0.userOptions)((0,E0.defaultOptions)({},r.OPTIONS),t),this.preFilters=new A0.FunctionList,this.postFilters=new A0.FunctionList}return Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),e.prototype.setAdaptor=function(t){this.adaptor=t},e.prototype.setMmlFactory=function(t){this.mmlFactory=t},e.prototype.initialize=function(){},e.prototype.reset=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r]},Object.defineProperty(e.prototype,"processStrings",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.findMath=function(t,r){return[]},e.prototype.executeFilters=function(t,r,n,i){var a={math:r,document:n,data:i};return t.execute(a),a.data},e.NAME="generic",e.OPTIONS={},e})();oc.AbstractInputJax=hI});var T0=ee(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.AbstractFindMath=void 0;var O0=It(),pI=(function(){function e(t){var r=this.constructor;this.options=(0,O0.userOptions)((0,O0.defaultOptions)({},r.OPTIONS),t)}return e.OPTIONS={},e})();sc.AbstractFindMath=pI});var Es=ee(Tt=>{"use strict";var gI=Tt&&Tt.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},yI=Tt&&Tt.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.split=Tt.isPercent=Tt.unicodeString=Tt.unicodeChars=Tt.quotePattern=Tt.sortLength=void 0;function _I(e,t){return e.length!==t.length?t.length-e.length:e===t?0:e<t?-1:1}Tt.sortLength=_I;function vI(e){return e.replace(/([\^$(){}+*?\-|\[\]\:\\])/g,"\\$1")}Tt.quotePattern=vI;function bI(e){return Array.from(e).map(function(t){return t.codePointAt(0)})}Tt.unicodeChars=bI;function wI(e){return String.fromCodePoint.apply(String,yI([],gI(e),!1))}Tt.unicodeString=wI;function EI(e){return!!e.match(/%\s*$/)}Tt.isPercent=EI;function AI(e){return e.trim().split(/\s+/)}Tt.split=AI});var Ya=ee(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.newState=ot.STATE=ot.AbstractMathItem=ot.protoItem=void 0;function OI(e,t,r,n,i,a,o){o===void 0&&(o=null);var s={open:e,math:t,close:r,n,start:{n:i},end:{n:a},display:o};return s}ot.protoItem=OI;var TI=(function(){function e(t,r,n,i,a){n===void 0&&(n=!0),i===void 0&&(i={i:0,n:0,delim:""}),a===void 0&&(a={i:0,n:0,delim:""}),this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={},this._state=ot.STATE.UNPROCESSED,this.math=t,this.inputJax=r,this.display=n,this.start=i,this.end=a,this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={}}return Object.defineProperty(e.prototype,"isEscaped",{get:function(){return this.display===null},enumerable:!1,configurable:!0}),e.prototype.render=function(t){t.renderActions.renderMath(this,t)},e.prototype.rerender=function(t,r){r===void 0&&(r=ot.STATE.RERENDER),this.state()>=r&&this.state(r-1),t.renderActions.renderMath(this,t,r)},e.prototype.convert=function(t,r){r===void 0&&(r=ot.STATE.LAST),t.renderActions.renderConvert(this,t,r)},e.prototype.compile=function(t){this.state()<ot.STATE.COMPILED&&(this.root=this.inputJax.compile(this,t),this.state(ot.STATE.COMPILED))},e.prototype.typeset=function(t){this.state()<ot.STATE.TYPESET&&(this.typesetRoot=t.outputJax[this.isEscaped?"escaped":"typeset"](this,t),this.state(ot.STATE.TYPESET))},e.prototype.updateDocument=function(t){},e.prototype.removeFromDocument=function(t){t===void 0&&(t=!1)},e.prototype.setMetrics=function(t,r,n,i,a){this.metrics={em:t,ex:r,containerWidth:n,lineWidth:i,scale:a}},e.prototype.state=function(t,r){return t===void 0&&(t=null),r===void 0&&(r=!1),t!=null&&(t<ot.STATE.INSERTED&&this._state>=ot.STATE.INSERTED&&this.removeFromDocument(r),t<ot.STATE.TYPESET&&this._state>=ot.STATE.TYPESET&&(this.outputData={}),t<ot.STATE.COMPILED&&this._state>=ot.STATE.COMPILED&&(this.inputData={}),this._state=t),this._state},e.prototype.reset=function(t){t===void 0&&(t=!1),this.state(ot.STATE.UNPROCESSED,t)},e})();ot.AbstractMathItem=TI;ot.STATE={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4};function SI(e,t){if(e in ot.STATE)throw Error("State "+e+" already exists");ot.STATE[e]=t}ot.newState=SI});var x0=ee(gi=>{"use strict";var xI=gi&&gi.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),S0=gi&&gi.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a};Object.defineProperty(gi,"__esModule",{value:!0});gi.FindTeX=void 0;var MI=T0(),lc=Es(),ay=Ya(),CI=(function(e){xI(t,e);function t(r){var n=e.call(this,r)||this;return n.getPatterns(),n}return t.prototype.getPatterns=function(){var r=this,n=this.options,i=[],a=[],o=[];this.end={},this.env=this.sub=0;var s=1;n.inlineMath.forEach(function(l){return r.addPattern(i,l,!1)}),n.displayMath.forEach(function(l){return r.addPattern(i,l,!0)}),i.length&&a.push(i.sort(lc.sortLength).join("|")),n.processEnvironments&&(a.push("\\\\begin\\s*\\{([^}]*)\\}"),this.env=s,s++),n.processEscapes&&o.push("\\\\([\\\\$])"),n.processRefs&&o.push("(\\\\(?:eq)?ref\\s*\\{[^}]*\\})"),o.length&&(a.push("("+o.join("|")+")"),this.sub=s),this.start=new RegExp(a.join("|"),"g"),this.hasPatterns=a.length>0},t.prototype.addPattern=function(r,n,i){var a=S0(n,2),o=a[0],s=a[1];r.push((0,lc.quotePattern)(o)),this.end[o]=[s,i,this.endPattern(s)]},t.prototype.endPattern=function(r,n){return new RegExp((n||(0,lc.quotePattern)(r))+"|\\\\(?:[a-zA-Z]|.)|[{}]","g")},t.prototype.findEnd=function(r,n,i,a){for(var o=S0(a,3),s=o[0],l=o[1],c=o[2],d=c.lastIndex=i.index+i[0].length,f,m=0;f=c.exec(r);){if((f[1]||f[0])===s&&m===0)return(0,ay.protoItem)(i[0],r.substr(d,f.index-d),f[0],n,i.index,f.index+f[0].length,l);f[0]==="{"?m++:f[0]==="}"&&m&&m--}return null},t.prototype.findMathInString=function(r,n,i){var a,o;for(this.start.lastIndex=0;a=this.start.exec(i);){if(a[this.env]!==void 0&&this.env){var s="\\\\end\\s*(\\{"+(0,lc.quotePattern)(a[this.env])+"\\})";o=this.findEnd(i,n,a,["{"+a[this.env]+"}",!0,this.endPattern(null,s)]),o&&(o.math=o.open+o.math+o.close,o.open=o.close="")}else if(a[this.sub]!==void 0&&this.sub){var l=a[this.sub],s=a.index+a[this.sub].length;l.length===2?o=(0,ay.protoItem)("",l.substr(1),"",n,a.index,s):o=(0,ay.protoItem)("",l,"",n,a.index,s,!1)}else o=this.findEnd(i,n,a,this.end[a[0]]);o&&(r.push(o),this.start.lastIndex=o.end.n)}},t.prototype.findMath=function(r){var n=[];if(this.hasPatterns)for(var i=0,a=r.length;i<a;i++)this.findMathInString(n,i,r[i]);return n},t.OPTIONS={inlineMath:[["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],processEscapes:!0,processEnvironments:!0,processRefs:!0},t})(MI.AbstractFindMath);gi.FindTeX=CI});var Za=ee(Vn=>{"use strict";var kI=Vn&&Vn.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.Attributes=Vn.INHERIT=void 0;Vn.INHERIT="_inherit_";var NI=(function(){function e(t,r){this.global=r,this.defaults=Object.create(r),this.inherited=Object.create(this.defaults),this.attributes=Object.create(this.inherited),Object.assign(this.defaults,t)}return e.prototype.set=function(t,r){this.attributes[t]=r},e.prototype.setList=function(t){Object.assign(this.attributes,t)},e.prototype.get=function(t){var r=this.attributes[t];return r===Vn.INHERIT&&(r=this.global[t]),r},e.prototype.getExplicit=function(t){if(this.attributes.hasOwnProperty(t))return this.attributes[t]},e.prototype.getList=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var a={};try{for(var o=kI(n),s=o.next();!s.done;s=o.next()){var l=s.value;a[l]=this.get(l)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return a},e.prototype.setInherited=function(t,r){this.inherited[t]=r},e.prototype.getInherited=function(t){return this.inherited[t]},e.prototype.getDefault=function(t){return this.defaults[t]},e.prototype.isSet=function(t){return this.attributes.hasOwnProperty(t)||this.inherited.hasOwnProperty(t)},e.prototype.hasDefault=function(t){return t in this.defaults},e.prototype.getExplicitNames=function(){return Object.keys(this.attributes)},e.prototype.getInheritedNames=function(){return Object.keys(this.inherited)},e.prototype.getDefaultNames=function(){return Object.keys(this.defaults)},e.prototype.getGlobalNames=function(){return Object.keys(this.global)},e.prototype.getAllAttributes=function(){return this.attributes},e.prototype.getAllInherited=function(){return this.inherited},e.prototype.getAllDefaults=function(){return this.defaults},e.prototype.getAllGlobals=function(){return this.global},e})();Vn.Attributes=NI});var sy=ee(yr=>{"use strict";var II=yr&&yr.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),oy=yr&&yr.__assign||function(){return oy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},oy.apply(this,arguments)},As=yr&&yr.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(yr,"__esModule",{value:!0});yr.AbstractEmptyNode=yr.AbstractNode=void 0;var M0=(function(){function e(t,r,n){var i,a;r===void 0&&(r={}),n===void 0&&(n=[]),this.factory=t,this.parent=null,this.properties={},this.childNodes=[];try{for(var o=As(Object.keys(r)),s=o.next();!s.done;s=o.next()){var l=s.value;this.setProperty(l,r[l])}}catch(c){i={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}n.length&&this.setChildren(n)}return Object.defineProperty(e.prototype,"kind",{get:function(){return"unknown"},enumerable:!1,configurable:!0}),e.prototype.setProperty=function(t,r){this.properties[t]=r},e.prototype.getProperty=function(t){return this.properties[t]},e.prototype.getPropertyNames=function(){return Object.keys(this.properties)},e.prototype.getAllProperties=function(){return this.properties},e.prototype.removeProperty=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];try{for(var a=As(n),o=a.next();!o.done;o=a.next()){var s=o.value;delete this.properties[s]}}catch(l){t={error:l}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}},e.prototype.isKind=function(t){return this.factory.nodeIsKind(this,t)},e.prototype.setChildren=function(t){var r,n;this.childNodes=[];try{for(var i=As(t),a=i.next();!a.done;a=i.next()){var o=a.value;this.appendChild(o)}}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.appendChild=function(t){return this.childNodes.push(t),t.parent=this,t},e.prototype.replaceChild=function(t,r){var n=this.childIndex(r);return n!==null&&(this.childNodes[n]=t,t.parent=this,r.parent=null),t},e.prototype.removeChild=function(t){var r=this.childIndex(t);return r!==null&&(this.childNodes.splice(r,1),t.parent=null),t},e.prototype.childIndex=function(t){var r=this.childNodes.indexOf(t);return r===-1?null:r},e.prototype.copy=function(){var t,r,n=this.factory.create(this.kind);n.properties=oy({},this.properties);try{for(var i=As(this.childNodes||[]),a=i.next();!a.done;a=i.next()){var o=a.value;o&&n.appendChild(o.copy())}}catch(s){t={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype.findNodes=function(t){var r=[];return this.walkTree(function(n){n.isKind(t)&&r.push(n)}),r},e.prototype.walkTree=function(t,r){var n,i;t(this,r);try{for(var a=As(this.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value;s&&s.walkTree(t,r)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return r},e.prototype.toString=function(){return this.kind+"("+this.childNodes.join(",")+")"},e})();yr.AbstractNode=M0;var PI=(function(e){II(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setChildren=function(r){},t.prototype.appendChild=function(r){return r},t.prototype.replaceChild=function(r,n){return n},t.prototype.childIndex=function(r){return null},t.prototype.walkTree=function(r,n){return r(this,n),n},t.prototype.toString=function(){return this.kind},t})(M0);yr.AbstractEmptyNode=PI});var Te=ee(Pe=>{"use strict";var ma=Pe&&Pe.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Qa=Pe&&Pe.__assign||function(){return Qa=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Qa.apply(this,arguments)},lr=Pe&&Pe.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},jI=Pe&&Pe.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.XMLNode=Pe.TextNode=Pe.AbstractMmlEmptyNode=Pe.AbstractMmlBaseNode=Pe.AbstractMmlLayoutNode=Pe.AbstractMmlTokenNode=Pe.AbstractMmlNode=Pe.indentAttributes=Pe.TEXCLASSNAMES=Pe.TEXCLASS=void 0;var Ja=Za(),C0=sy();Pe.TEXCLASS={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,NONE:-1};Pe.TEXCLASSNAMES=["ORD","OP","BIN","REL","OPEN","CLOSE","PUNCT","INNER","VCENTER"];var RI=["","thinmathspace","mediummathspace","thickmathspace"],LI=[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]];Pe.indentAttributes=["indentalign","indentalignfirst","indentshift","indentshiftfirst"];var Yn=(function(e){ma(t,e);function t(r,n,i){n===void 0&&(n={}),i===void 0&&(i=[]);var a=e.call(this,r)||this;return a.prevClass=null,a.prevLevel=null,a.texclass=null,a.arity<0&&(a.childNodes=[r.create("inferredMrow")],a.childNodes[0].parent=a),a.setChildren(i),a.attributes=new Ja.Attributes(r.getNodeClass(a.kind).defaults,r.getNodeClass("math").defaults),a.attributes.setList(n),a}return t.prototype.copy=function(r){var n,i,a,o;r===void 0&&(r=!1);var s=this.factory.create(this.kind);if(s.properties=Qa({},this.properties),this.attributes){var l=this.attributes.getAllAttributes();try{for(var c=lr(Object.keys(l)),d=c.next();!d.done;d=c.next()){var f=d.value;(f!=="id"||r)&&s.attributes.set(f,l[f])}}catch(A){n={error:A}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}if(this.childNodes&&this.childNodes.length){var m=this.childNodes;m.length===1&&m[0].isInferred&&(m=m[0].childNodes);try{for(var p=lr(m),b=p.next();!b.done;b=p.next()){var v=b.value;v?s.appendChild(v.copy()):s.childNodes.push(null)}}catch(A){a={error:A}}finally{try{b&&!b.done&&(o=p.return)&&o.call(p)}finally{if(a)throw a.error}}}return s},Object.defineProperty(t.prototype,"texClass",{get:function(){return this.texclass},set:function(r){this.texclass=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 1/0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Parent",{get:function(){for(var r=this.parent;r&&r.notParent;)r=r.Parent;return r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.setChildren=function(r){return this.arity<0?this.childNodes[0].setChildren(r):e.prototype.setChildren.call(this,r)},t.prototype.appendChild=function(r){var n,i,a=this;if(this.arity<0)return this.childNodes[0].appendChild(r),r;if(r.isInferred){if(this.arity===1/0)return r.childNodes.forEach(function(d){return e.prototype.appendChild.call(a,d)}),r;var o=r;r=this.factory.create("mrow"),r.setChildren(o.childNodes),r.attributes=o.attributes;try{for(var s=lr(o.getPropertyNames()),l=s.next();!l.done;l=s.next()){var c=l.value;r.setProperty(c,o.getProperty(c))}}catch(d){n={error:d}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}return e.prototype.appendChild.call(this,r)},t.prototype.replaceChild=function(r,n){return this.arity<0?(this.childNodes[0].replaceChild(r,n),r):e.prototype.replaceChild.call(this,r,n)},t.prototype.core=function(){return this},t.prototype.coreMO=function(){return this},t.prototype.coreIndex=function(){return 0},t.prototype.childPosition=function(){for(var r,n,i=this,a=i.parent;a&&a.notParent;)i=a,a=a.parent;if(a){var o=0;try{for(var s=lr(a.childNodes),l=s.next();!l.done;l=s.next()){var c=l.value;if(c===i)return o;o++}}catch(d){r={error:d}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}}return null},t.prototype.setTeXclass=function(r){return this.getPrevClass(r),this.texClass!=null?this:r},t.prototype.updateTeXclass=function(r){r&&(this.prevClass=r.prevClass,this.prevLevel=r.prevLevel,r.prevClass=r.prevLevel=null,this.texClass=r.texClass)},t.prototype.getPrevClass=function(r){r&&(this.prevClass=r.texClass,this.prevLevel=r.attributes.get("scriptlevel"))},t.prototype.texSpacing=function(){var r=this.prevClass!=null?this.prevClass:Pe.TEXCLASS.NONE,n=this.texClass||Pe.TEXCLASS.ORD;if(r===Pe.TEXCLASS.NONE||n===Pe.TEXCLASS.NONE)return"";r===Pe.TEXCLASS.VCENTER&&(r=Pe.TEXCLASS.ORD),n===Pe.TEXCLASS.VCENTER&&(n=Pe.TEXCLASS.ORD);var i=LI[r][n];return(this.prevLevel>0||this.attributes.get("scriptlevel")>0)&&i>=0?"":RI[Math.abs(i)]},t.prototype.hasSpacingAttributes=function(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()},t.prototype.setInheritedAttributes=function(r,n,i,a){var o,s;r===void 0&&(r={}),n===void 0&&(n=!1),i===void 0&&(i=0),a===void 0&&(a=!1);var l=this.attributes.getAllDefaults();try{for(var c=lr(Object.keys(r)),d=c.next();!d.done;d=c.next()){var f=d.value;if(l.hasOwnProperty(f)||t.alwaysInherit.hasOwnProperty(f)){var m=jI(r[f],2),p=m[0],b=m[1],v=(t.noInherit[p]||{})[this.kind]||{};v[f]||this.attributes.setInherited(f,b)}}}catch(E){o={error:E}}finally{try{d&&!d.done&&(s=c.return)&&s.call(c)}finally{if(o)throw o.error}}var A=this.attributes.getExplicit("displaystyle");A===void 0&&this.attributes.setInherited("displaystyle",n);var y=this.attributes.getExplicit("scriptlevel");y===void 0&&this.attributes.setInherited("scriptlevel",i),a&&this.setProperty("texprimestyle",a);var T=this.arity;if(T>=0&&T!==1/0&&(T===1&&this.childNodes.length===0||T!==1&&this.childNodes.length!==T))if(T<this.childNodes.length)this.childNodes=this.childNodes.slice(0,T);else for(;this.childNodes.length<T;)this.appendChild(this.factory.create("mrow"));this.setChildInheritedAttributes(r,n,i,a)},t.prototype.setChildInheritedAttributes=function(r,n,i,a){var o,s;try{for(var l=lr(this.childNodes),c=l.next();!c.done;c=l.next()){var d=c.value;d.setInheritedAttributes(r,n,i,a)}}catch(f){o={error:f}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}},t.prototype.addInheritedAttributes=function(r,n){var i,a,o=Qa({},r);try{for(var s=lr(Object.keys(n)),l=s.next();!l.done;l=s.next()){var c=l.value;c!=="displaystyle"&&c!=="scriptlevel"&&c!=="style"&&(o[c]=[this.kind,n[c]])}}catch(d){i={error:d}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},t.prototype.inheritAttributesFrom=function(r){var n=r.attributes,i=n.get("displaystyle"),a=n.get("scriptlevel"),o=n.isSet("mathsize")?{mathsize:["math",n.get("mathsize")]}:{},s=r.getProperty("texprimestyle")||!1;this.setInheritedAttributes(o,i,a,s)},t.prototype.verifyTree=function(r){if(r===void 0&&(r=null),r!==null){this.verifyAttributes(r);var n=this.arity;r.checkArity&&n>=0&&n!==1/0&&(n===1&&this.childNodes.length===0||n!==1&&this.childNodes.length!==n)&&this.mError('Wrong number of children for "'+this.kind+'" node',r,!0),this.verifyChildren(r)}},t.prototype.verifyAttributes=function(r){var n,i;if(r.checkAttributes){var a=this.attributes,o=[];try{for(var s=lr(a.getExplicitNames()),l=s.next();!l.done;l=s.next()){var c=l.value;c.substr(0,5)!=="data-"&&a.getDefault(c)===void 0&&!c.match(/^(?:class|style|id|(?:xlink:)?href)$/)&&o.push(c)}}catch(d){n={error:d}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}o.length&&this.mError("Unknown attributes for "+this.kind+" node: "+o.join(", "),r)}},t.prototype.verifyChildren=function(r){var n,i;try{for(var a=lr(this.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value;s.verifyTree(r)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},t.prototype.mError=function(r,n,i){if(i===void 0&&(i=!1),this.parent&&this.parent.isKind("merror"))return null;var a=this.factory.create("merror");if(a.attributes.set("data-mjx-message",r),n.fullErrors||i){var o=this.factory.create("mtext"),s=this.factory.create("text");s.setText(n.fullErrors?r:this.kind),o.appendChild(s),a.appendChild(o),this.parent.replaceChild(a,this)}else this.parent.replaceChild(a,this),a.appendChild(this);return a},t.defaults={mathbackground:Ja.INHERIT,mathcolor:Ja.INHERIT,mathsize:Ja.INHERIT,dir:Ja.INHERIT},t.noInherit={mstyle:{mpadded:{width:!0,height:!0,depth:!0,lspace:!0,voffset:!0},mtable:{width:!0,height:!0,depth:!0,align:!0}},maligngroup:{mrow:{groupalign:!0},mtable:{groupalign:!0}}},t.alwaysInherit={scriptminsize:!0,scriptsizemultiplier:!0},t.verifyDefaults={checkArity:!0,checkAttributes:!1,fullErrors:!1,fixMmultiscripts:!0,fixMtables:!0},t})(C0.AbstractNode);Pe.AbstractMmlNode=Yn;var DI=(function(e){ma(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"isToken",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getText=function(){var r,n,i="";try{for(var a=lr(this.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value;s instanceof k0&&(i+=s.getText())}}catch(l){r={error:l}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},t.prototype.setChildInheritedAttributes=function(r,n,i,a){var o,s;try{for(var l=lr(this.childNodes),c=l.next();!c.done;c=l.next()){var d=c.value;d instanceof Yn&&d.setInheritedAttributes(r,n,i,a)}}catch(f){o={error:f}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}},t.prototype.walkTree=function(r,n){var i,a;r(this,n);try{for(var o=lr(this.childNodes),s=o.next();!s.done;s=o.next()){var l=s.value;l instanceof Yn&&l.walkTree(r,n)}}catch(c){i={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return n},t.defaults=Qa(Qa({},Yn.defaults),{mathvariant:"normal",mathsize:Ja.INHERIT}),t})(Yn);Pe.AbstractMmlTokenNode=DI;var BI=(function(e){ma(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return this.childNodes[0].isSpacelike},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),t.prototype.core=function(){return this.childNodes[0]},t.prototype.coreMO=function(){return this.childNodes[0].coreMO()},t.prototype.setTeXclass=function(r){return r=this.childNodes[0].setTeXclass(r),this.updateTeXclass(this.childNodes[0]),r},t.defaults=Yn.defaults,t})(Yn);Pe.AbstractMmlLayoutNode=BI;var FI=(function(e){ma(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),t.prototype.core=function(){return this.childNodes[0]},t.prototype.coreMO=function(){return this.childNodes[0].coreMO()},t.prototype.setTeXclass=function(r){var n,i;this.getPrevClass(r),this.texClass=Pe.TEXCLASS.ORD;var a=this.childNodes[0];a?this.isEmbellished||a.isKind("mi")?(r=a.setTeXclass(r),this.updateTeXclass(this.core())):(a.setTeXclass(null),r=this):r=this;try{for(var o=lr(this.childNodes.slice(1)),s=o.next();!s.done;s=o.next()){var l=s.value;l&&l.setTeXclass(null)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return r},t.defaults=Yn.defaults,t})(Yn);Pe.AbstractMmlBaseNode=FI;var ly=(function(e){ma(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Parent",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texClass",{get:function(){return Pe.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"prevClass",{get:function(){return Pe.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"prevLevel",{get:function(){return 0},enumerable:!1,configurable:!0}),t.prototype.hasSpacingAttributes=function(){return!1},Object.defineProperty(t.prototype,"attributes",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.core=function(){return this},t.prototype.coreMO=function(){return this},t.prototype.coreIndex=function(){return 0},t.prototype.childPosition=function(){return 0},t.prototype.setTeXclass=function(r){return r},t.prototype.texSpacing=function(){return""},t.prototype.setInheritedAttributes=function(r,n,i,a){},t.prototype.inheritAttributesFrom=function(r){},t.prototype.verifyTree=function(r){},t.prototype.mError=function(r,n,i){return i===void 0&&(i=!1),null},t})(C0.AbstractEmptyNode);Pe.AbstractMmlEmptyNode=ly;var k0=(function(e){ma(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.text="",r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"text"},enumerable:!1,configurable:!0}),t.prototype.getText=function(){return this.text},t.prototype.setText=function(r){return this.text=r,this},t.prototype.copy=function(){return this.factory.create(this.kind).setText(this.getText())},t.prototype.toString=function(){return this.text},t})(ly);Pe.TextNode=k0;var qI=(function(e){ma(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.xml=null,r.adaptor=null,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"XML"},enumerable:!1,configurable:!0}),t.prototype.getXML=function(){return this.xml},t.prototype.setXML=function(r,n){return n===void 0&&(n=null),this.xml=r,this.adaptor=n,this},t.prototype.getSerializedXML=function(){return this.adaptor.serializeXML(this.xml)},t.prototype.copy=function(){return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml))},t.prototype.toString=function(){return"XML data"},t})(ly);Pe.XMLNode=qI});var cy=ee(u=>{"use strict";var UI=u&&u.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(u,"__esModule",{value:!0});u.OPTABLE=u.MMLSPACING=u.getRange=u.RANGES=u.MO=u.OPDEF=void 0;var fe=Te();function Fe(e,t,r,n){return r===void 0&&(r=fe.TEXCLASS.BIN),n===void 0&&(n=null),[e,t,r,n]}u.OPDEF=Fe;u.MO={ORD:Fe(0,0,fe.TEXCLASS.ORD),ORD11:Fe(1,1,fe.TEXCLASS.ORD),ORD21:Fe(2,1,fe.TEXCLASS.ORD),ORD02:Fe(0,2,fe.TEXCLASS.ORD),ORD55:Fe(5,5,fe.TEXCLASS.ORD),NONE:Fe(0,0,fe.TEXCLASS.NONE),OP:Fe(1,2,fe.TEXCLASS.OP,{largeop:!0,movablelimits:!0,symmetric:!0}),OPFIXED:Fe(1,2,fe.TEXCLASS.OP,{largeop:!0,movablelimits:!0}),INTEGRAL:Fe(0,1,fe.TEXCLASS.OP,{largeop:!0,symmetric:!0}),INTEGRAL2:Fe(1,2,fe.TEXCLASS.OP,{largeop:!0,symmetric:!0}),BIN3:Fe(3,3,fe.TEXCLASS.BIN),BIN4:Fe(4,4,fe.TEXCLASS.BIN),BIN01:Fe(0,1,fe.TEXCLASS.BIN),BIN5:Fe(5,5,fe.TEXCLASS.BIN),TALLBIN:Fe(4,4,fe.TEXCLASS.BIN,{stretchy:!0}),BINOP:Fe(4,4,fe.TEXCLASS.BIN,{largeop:!0,movablelimits:!0}),REL:Fe(5,5,fe.TEXCLASS.REL),REL1:Fe(1,1,fe.TEXCLASS.REL,{stretchy:!0}),REL4:Fe(4,4,fe.TEXCLASS.REL),RELSTRETCH:Fe(5,5,fe.TEXCLASS.REL,{stretchy:!0}),RELACCENT:Fe(5,5,fe.TEXCLASS.REL,{accent:!0}),WIDEREL:Fe(5,5,fe.TEXCLASS.REL,{accent:!0,stretchy:!0}),OPEN:Fe(0,0,fe.TEXCLASS.OPEN,{fence:!0,stretchy:!0,symmetric:!0}),CLOSE:Fe(0,0,fe.TEXCLASS.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}),INNER:Fe(0,0,fe.TEXCLASS.INNER),PUNCT:Fe(0,3,fe.TEXCLASS.PUNCT),ACCENT:Fe(0,0,fe.TEXCLASS.ORD,{accent:!0}),WIDEACCENT:Fe(0,0,fe.TEXCLASS.ORD,{accent:!0,stretchy:!0})};u.RANGES=[[32,127,fe.TEXCLASS.REL,"mo"],[160,191,fe.TEXCLASS.ORD,"mo"],[192,591,fe.TEXCLASS.ORD,"mi"],[688,879,fe.TEXCLASS.ORD,"mo"],[880,6688,fe.TEXCLASS.ORD,"mi"],[6832,6911,fe.TEXCLASS.ORD,"mo"],[6912,7615,fe.TEXCLASS.ORD,"mi"],[7616,7679,fe.TEXCLASS.ORD,"mo"],[7680,8191,fe.TEXCLASS.ORD,"mi"],[8192,8303,fe.TEXCLASS.ORD,"mo"],[8304,8351,fe.TEXCLASS.ORD,"mo"],[8448,8527,fe.TEXCLASS.ORD,"mi"],[8528,8591,fe.TEXCLASS.ORD,"mn"],[8592,8703,fe.TEXCLASS.REL,"mo"],[8704,8959,fe.TEXCLASS.BIN,"mo"],[8960,9215,fe.TEXCLASS.ORD,"mo"],[9312,9471,fe.TEXCLASS.ORD,"mn"],[9472,10223,fe.TEXCLASS.ORD,"mo"],[10224,10239,fe.TEXCLASS.REL,"mo"],[10240,10495,fe.TEXCLASS.ORD,"mtext"],[10496,10623,fe.TEXCLASS.REL,"mo"],[10624,10751,fe.TEXCLASS.ORD,"mo"],[10752,11007,fe.TEXCLASS.BIN,"mo"],[11008,11055,fe.TEXCLASS.ORD,"mo"],[11056,11087,fe.TEXCLASS.REL,"mo"],[11088,11263,fe.TEXCLASS.ORD,"mo"],[11264,11744,fe.TEXCLASS.ORD,"mi"],[11776,11903,fe.TEXCLASS.ORD,"mo"],[11904,12255,fe.TEXCLASS.ORD,"mi","normal"],[12272,12351,fe.TEXCLASS.ORD,"mo"],[12352,42143,fe.TEXCLASS.ORD,"mi","normal"],[42192,43055,fe.TEXCLASS.ORD,"mi"],[43056,43071,fe.TEXCLASS.ORD,"mn"],[43072,55295,fe.TEXCLASS.ORD,"mi"],[63744,64255,fe.TEXCLASS.ORD,"mi","normal"],[64256,65023,fe.TEXCLASS.ORD,"mi"],[65024,65135,fe.TEXCLASS.ORD,"mo"],[65136,65791,fe.TEXCLASS.ORD,"mi"],[65792,65935,fe.TEXCLASS.ORD,"mn"],[65936,74751,fe.TEXCLASS.ORD,"mi","normal"],[74752,74879,fe.TEXCLASS.ORD,"mn"],[74880,113823,fe.TEXCLASS.ORD,"mi","normal"],[113824,119391,fe.TEXCLASS.ORD,"mo"],[119648,119679,fe.TEXCLASS.ORD,"mn"],[119808,120781,fe.TEXCLASS.ORD,"mi"],[120782,120831,fe.TEXCLASS.ORD,"mn"],[122624,129023,fe.TEXCLASS.ORD,"mo"],[129024,129279,fe.TEXCLASS.REL,"mo"],[129280,129535,fe.TEXCLASS.ORD,"mo"],[131072,195103,fe.TEXCLASS.ORD,"mi","normnal"]];function HI(e){var t,r,n=e.codePointAt(0);try{for(var i=UI(u.RANGES),a=i.next();!a.done;a=i.next()){var o=a.value;if(n<=o[1]){if(n>=o[0])return o;break}}}catch(s){t={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return null}u.getRange=HI;u.MMLSPACING=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3]];u.OPTABLE={prefix:{"(":u.MO.OPEN,"+":u.MO.BIN01,"-":u.MO.BIN01,"[":u.MO.OPEN,"{":u.MO.OPEN,"|":u.MO.OPEN,"||":[0,0,fe.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,fe.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"\xAC":u.MO.ORD21,"\xB1":u.MO.BIN01,"\u2016":[0,0,fe.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"\u2018":[0,0,fe.TEXCLASS.OPEN,{fence:!0}],"\u201C":[0,0,fe.TEXCLASS.OPEN,{fence:!0}],"\u2145":u.MO.ORD21,"\u2146":Fe(2,0,fe.TEXCLASS.ORD),"\u2200":u.MO.ORD21,"\u2202":u.MO.ORD21,"\u2203":u.MO.ORD21,"\u2204":u.MO.ORD21,"\u2207":u.MO.ORD21,"\u220F":u.MO.OP,"\u2210":u.MO.OP,"\u2211":u.MO.OP,"\u2212":u.MO.BIN01,"\u2213":u.MO.BIN01,"\u221A":[1,1,fe.TEXCLASS.ORD,{stretchy:!0}],"\u221B":u.MO.ORD11,"\u221C":u.MO.ORD11,"\u2220":u.MO.ORD,"\u2221":u.MO.ORD,"\u2222":u.MO.ORD,"\u222B":u.MO.INTEGRAL,"\u222C":u.MO.INTEGRAL,"\u222D":u.MO.INTEGRAL,"\u222E":u.MO.INTEGRAL,"\u222F":u.MO.INTEGRAL,"\u2230":u.MO.INTEGRAL,"\u2231":u.MO.INTEGRAL,"\u2232":u.MO.INTEGRAL,"\u2233":u.MO.INTEGRAL,"\u22C0":u.MO.OP,"\u22C1":u.MO.OP,"\u22C2":u.MO.OP,"\u22C3":u.MO.OP,"\u2308":u.MO.OPEN,"\u230A":u.MO.OPEN,"\u2329":u.MO.OPEN,"\u2772":u.MO.OPEN,"\u27E6":u.MO.OPEN,"\u27E8":u.MO.OPEN,"\u27EA":u.MO.OPEN,"\u27EC":u.MO.OPEN,"\u27EE":u.MO.OPEN,"\u2980":[0,0,fe.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"\u2983":u.MO.OPEN,"\u2985":u.MO.OPEN,"\u2987":u.MO.OPEN,"\u2989":u.MO.OPEN,"\u298B":u.MO.OPEN,"\u298D":u.MO.OPEN,"\u298F":u.MO.OPEN,"\u2991":u.MO.OPEN,"\u2993":u.MO.OPEN,"\u2995":u.MO.OPEN,"\u2997":u.MO.OPEN,"\u29FC":u.MO.OPEN,"\u2A00":u.MO.OP,"\u2A01":u.MO.OP,"\u2A02":u.MO.OP,"\u2A03":u.MO.OP,"\u2A04":u.MO.OP,"\u2A05":u.MO.OP,"\u2A06":u.MO.OP,"\u2A07":u.MO.OP,"\u2A08":u.MO.OP,"\u2A09":u.MO.OP,"\u2A0A":u.MO.OP,"\u2A0B":u.MO.INTEGRAL2,"\u2A0C":u.MO.INTEGRAL,"\u2A0D":u.MO.INTEGRAL2,"\u2A0E":u.MO.INTEGRAL2,"\u2A0F":u.MO.INTEGRAL2,"\u2A10":u.MO.OP,"\u2A11":u.MO.OP,"\u2A12":u.MO.OP,"\u2A13":u.MO.OP,"\u2A14":u.MO.OP,"\u2A15":u.MO.INTEGRAL2,"\u2A16":u.MO.INTEGRAL2,"\u2A17":u.MO.INTEGRAL2,"\u2A18":u.MO.INTEGRAL2,"\u2A19":u.MO.INTEGRAL2,"\u2A1A":u.MO.INTEGRAL2,"\u2A1B":u.MO.INTEGRAL2,"\u2A1C":u.MO.INTEGRAL2,"\u2AFC":u.MO.OP,"\u2AFF":u.MO.OP},postfix:{"!!":Fe(1,0),"!":[1,0,fe.TEXCLASS.CLOSE,null],'"':u.MO.ACCENT,"&":u.MO.ORD,")":u.MO.CLOSE,"++":Fe(0,0),"--":Fe(0,0),"..":Fe(0,0),"...":u.MO.ORD,"'":u.MO.ACCENT,"]":u.MO.CLOSE,"^":u.MO.WIDEACCENT,_:u.MO.WIDEACCENT,"`":u.MO.ACCENT,"|":u.MO.CLOSE,"}":u.MO.CLOSE,"~":u.MO.WIDEACCENT,"||":[0,0,fe.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,fe.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"\xA8":u.MO.ACCENT,\u00AA:u.MO.ACCENT,"\xAF":u.MO.WIDEACCENT,"\xB0":u.MO.ORD,"\xB2":u.MO.ACCENT,"\xB3":u.MO.ACCENT,"\xB4":u.MO.ACCENT,"\xB8":u.MO.ACCENT,"\xB9":u.MO.ACCENT,\u00BA:u.MO.ACCENT,"\u02C6":u.MO.WIDEACCENT,"\u02C7":u.MO.WIDEACCENT,"\u02C9":u.MO.WIDEACCENT,"\u02CA":u.MO.ACCENT,"\u02CB":u.MO.ACCENT,"\u02CD":u.MO.WIDEACCENT,"\u02D8":u.MO.ACCENT,"\u02D9":u.MO.ACCENT,"\u02DA":u.MO.ACCENT,"\u02DC":u.MO.WIDEACCENT,"\u02DD":u.MO.ACCENT,"\u02F7":u.MO.WIDEACCENT,"\u0302":u.MO.WIDEACCENT,"\u0311":u.MO.ACCENT,"\u03F6":u.MO.REL,"\u2016":[0,0,fe.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"\u2019":[0,0,fe.TEXCLASS.CLOSE,{fence:!0}],"\u201A":u.MO.ACCENT,"\u201B":u.MO.ACCENT,"\u201D":[0,0,fe.TEXCLASS.CLOSE,{fence:!0}],"\u201E":u.MO.ACCENT,"\u201F":u.MO.ACCENT,"\u2032":u.MO.ORD,"\u2033":u.MO.ACCENT,"\u2034":u.MO.ACCENT,"\u2035":u.MO.ACCENT,"\u2036":u.MO.ACCENT,"\u2037":u.MO.ACCENT,"\u203E":u.MO.WIDEACCENT,"\u2057":u.MO.ACCENT,"\u20DB":u.MO.ACCENT,"\u20DC":u.MO.ACCENT,"\u2309":u.MO.CLOSE,"\u230B":u.MO.CLOSE,"\u232A":u.MO.CLOSE,"\u23B4":u.MO.WIDEACCENT,"\u23B5":u.MO.WIDEACCENT,"\u23DC":u.MO.WIDEACCENT,"\u23DD":u.MO.WIDEACCENT,"\u23DE":u.MO.WIDEACCENT,"\u23DF":u.MO.WIDEACCENT,"\u23E0":u.MO.WIDEACCENT,"\u23E1":u.MO.WIDEACCENT,"\u25A0":u.MO.BIN3,"\u25A1":u.MO.BIN3,"\u25AA":u.MO.BIN3,"\u25AB":u.MO.BIN3,"\u25AD":u.MO.BIN3,"\u25AE":u.MO.BIN3,"\u25AF":u.MO.BIN3,"\u25B0":u.MO.BIN3,"\u25B1":u.MO.BIN3,"\u25B2":u.MO.BIN4,"\u25B4":u.MO.BIN4,"\u25B6":u.MO.BIN4,"\u25B7":u.MO.BIN4,"\u25B8":u.MO.BIN4,"\u25BC":u.MO.BIN4,"\u25BE":u.MO.BIN4,"\u25C0":u.MO.BIN4,"\u25C1":u.MO.BIN4,"\u25C2":u.MO.BIN4,"\u25C4":u.MO.BIN4,"\u25C5":u.MO.BIN4,"\u25C6":u.MO.BIN4,"\u25C7":u.MO.BIN4,"\u25C8":u.MO.BIN4,"\u25C9":u.MO.BIN4,"\u25CC":u.MO.BIN4,"\u25CD":u.MO.BIN4,"\u25CE":u.MO.BIN4,"\u25CF":u.MO.BIN4,"\u25D6":u.MO.BIN4,"\u25D7":u.MO.BIN4,"\u25E6":u.MO.BIN4,"\u266D":u.MO.ORD02,"\u266E":u.MO.ORD02,"\u266F":u.MO.ORD02,"\u2773":u.MO.CLOSE,"\u27E7":u.MO.CLOSE,"\u27E9":u.MO.CLOSE,"\u27EB":u.MO.CLOSE,"\u27ED":u.MO.CLOSE,"\u27EF":u.MO.CLOSE,"\u2980":[0,0,fe.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"\u2984":u.MO.CLOSE,"\u2986":u.MO.CLOSE,"\u2988":u.MO.CLOSE,"\u298A":u.MO.CLOSE,"\u298C":u.MO.CLOSE,"\u298E":u.MO.CLOSE,"\u2990":u.MO.CLOSE,"\u2992":u.MO.CLOSE,"\u2994":u.MO.CLOSE,"\u2996":u.MO.CLOSE,"\u2998":u.MO.CLOSE,"\u29FD":u.MO.CLOSE},infix:{"!=":u.MO.BIN4,"#":u.MO.ORD,$:u.MO.ORD,"%":[3,3,fe.TEXCLASS.ORD,null],"&&":u.MO.BIN4,"":u.MO.ORD,"*":u.MO.BIN3,"**":Fe(1,1),"*=":u.MO.BIN4,"+":u.MO.BIN4,"+=":u.MO.BIN4,",":[0,3,fe.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"-":u.MO.BIN4,"-=":u.MO.BIN4,"->":u.MO.BIN5,".":[0,3,fe.TEXCLASS.PUNCT,{separator:!0}],"/":u.MO.ORD11,"//":Fe(1,1),"/=":u.MO.BIN4,":":[1,2,fe.TEXCLASS.REL,null],":=":u.MO.BIN4,";":[0,3,fe.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"<":u.MO.REL,"<=":u.MO.BIN5,"<>":Fe(1,1),"=":u.MO.REL,"==":u.MO.BIN4,">":u.MO.REL,">=":u.MO.BIN5,"?":[1,1,fe.TEXCLASS.CLOSE,null],"@":u.MO.ORD11,"\\":u.MO.ORD,"^":u.MO.ORD11,_:u.MO.ORD11,"|":[2,2,fe.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"||":[2,2,fe.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[2,2,fe.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"\xB1":u.MO.BIN4,"\xB7":u.MO.BIN4,"\xD7":u.MO.BIN4,"\xF7":u.MO.BIN4,"\u02B9":u.MO.ORD,"\u0300":u.MO.ACCENT,"\u0301":u.MO.ACCENT,"\u0303":u.MO.WIDEACCENT,"\u0304":u.MO.ACCENT,"\u0306":u.MO.ACCENT,"\u0307":u.MO.ACCENT,"\u0308":u.MO.ACCENT,"\u030C":u.MO.ACCENT,"\u0332":u.MO.WIDEACCENT,"\u0338":u.MO.REL4,"\u2015":[0,0,fe.TEXCLASS.ORD,{stretchy:!0}],"\u2017":[0,0,fe.TEXCLASS.ORD,{stretchy:!0}],"\u2020":u.MO.BIN3,"\u2021":u.MO.BIN3,"\u2022":u.MO.BIN4,"\u2026":u.MO.INNER,"\u2043":u.MO.BIN4,"\u2044":u.MO.TALLBIN,"\u2061":u.MO.NONE,"\u2062":u.MO.NONE,"\u2063":[0,0,fe.TEXCLASS.NONE,{linebreakstyle:"after",separator:!0}],"\u2064":u.MO.NONE,"\u20D7":u.MO.ACCENT,\u2111:u.MO.ORD,\u2113:u.MO.ORD,"\u2118":u.MO.ORD,\u211C:u.MO.ORD,"\u2190":u.MO.WIDEREL,"\u2191":u.MO.RELSTRETCH,"\u2192":u.MO.WIDEREL,"\u2193":u.MO.RELSTRETCH,"\u2194":u.MO.WIDEREL,"\u2195":u.MO.RELSTRETCH,"\u2196":u.MO.RELSTRETCH,"\u2197":u.MO.RELSTRETCH,"\u2198":u.MO.RELSTRETCH,"\u2199":u.MO.RELSTRETCH,"\u219A":u.MO.RELACCENT,"\u219B":u.MO.RELACCENT,"\u219C":u.MO.WIDEREL,"\u219D":u.MO.WIDEREL,"\u219E":u.MO.WIDEREL,"\u219F":u.MO.WIDEREL,"\u21A0":u.MO.WIDEREL,"\u21A1":u.MO.RELSTRETCH,"\u21A2":u.MO.WIDEREL,"\u21A3":u.MO.WIDEREL,"\u21A4":u.MO.WIDEREL,"\u21A5":u.MO.RELSTRETCH,"\u21A6":u.MO.WIDEREL,"\u21A7":u.MO.RELSTRETCH,"\u21A8":u.MO.RELSTRETCH,"\u21A9":u.MO.WIDEREL,"\u21AA":u.MO.WIDEREL,"\u21AB":u.MO.WIDEREL,"\u21AC":u.MO.WIDEREL,"\u21AD":u.MO.WIDEREL,"\u21AE":u.MO.RELACCENT,"\u21AF":u.MO.RELSTRETCH,"\u21B0":u.MO.RELSTRETCH,"\u21B1":u.MO.RELSTRETCH,"\u21B2":u.MO.RELSTRETCH,"\u21B3":u.MO.RELSTRETCH,"\u21B4":u.MO.RELSTRETCH,"\u21B5":u.MO.RELSTRETCH,"\u21B6":u.MO.RELACCENT,"\u21B7":u.MO.RELACCENT,"\u21B8":u.MO.REL,"\u21B9":u.MO.WIDEREL,"\u21BA":u.MO.REL,"\u21BB":u.MO.REL,"\u21BC":u.MO.WIDEREL,"\u21BD":u.MO.WIDEREL,"\u21BE":u.MO.RELSTRETCH,"\u21BF":u.MO.RELSTRETCH,"\u21C0":u.MO.WIDEREL,"\u21C1":u.MO.WIDEREL,"\u21C2":u.MO.RELSTRETCH,"\u21C3":u.MO.RELSTRETCH,"\u21C4":u.MO.WIDEREL,"\u21C5":u.MO.RELSTRETCH,"\u21C6":u.MO.WIDEREL,"\u21C7":u.MO.WIDEREL,"\u21C8":u.MO.RELSTRETCH,"\u21C9":u.MO.WIDEREL,"\u21CA":u.MO.RELSTRETCH,"\u21CB":u.MO.WIDEREL,"\u21CC":u.MO.WIDEREL,"\u21CD":u.MO.RELACCENT,"\u21CE":u.MO.RELACCENT,"\u21CF":u.MO.RELACCENT,"\u21D0":u.MO.WIDEREL,"\u21D1":u.MO.RELSTRETCH,"\u21D2":u.MO.WIDEREL,"\u21D3":u.MO.RELSTRETCH,"\u21D4":u.MO.WIDEREL,"\u21D5":u.MO.RELSTRETCH,"\u21D6":u.MO.RELSTRETCH,"\u21D7":u.MO.RELSTRETCH,"\u21D8":u.MO.RELSTRETCH,"\u21D9":u.MO.RELSTRETCH,"\u21DA":u.MO.WIDEREL,"\u21DB":u.MO.WIDEREL,"\u21DC":u.MO.WIDEREL,"\u21DD":u.MO.WIDEREL,"\u21DE":u.MO.REL,"\u21DF":u.MO.REL,"\u21E0":u.MO.WIDEREL,"\u21E1":u.MO.RELSTRETCH,"\u21E2":u.MO.WIDEREL,"\u21E3":u.MO.RELSTRETCH,"\u21E4":u.MO.WIDEREL,"\u21E5":u.MO.WIDEREL,"\u21E6":u.MO.WIDEREL,"\u21E7":u.MO.RELSTRETCH,"\u21E8":u.MO.WIDEREL,"\u21E9":u.MO.RELSTRETCH,"\u21EA":u.MO.RELSTRETCH,"\u21EB":u.MO.RELSTRETCH,"\u21EC":u.MO.RELSTRETCH,"\u21ED":u.MO.RELSTRETCH,"\u21EE":u.MO.RELSTRETCH,"\u21EF":u.MO.RELSTRETCH,"\u21F0":u.MO.WIDEREL,"\u21F1":u.MO.REL,"\u21F2":u.MO.REL,"\u21F3":u.MO.RELSTRETCH,"\u21F4":u.MO.RELACCENT,"\u21F5":u.MO.RELSTRETCH,"\u21F6":u.MO.WIDEREL,"\u21F7":u.MO.RELACCENT,"\u21F8":u.MO.RELACCENT,"\u21F9":u.MO.RELACCENT,"\u21FA":u.MO.RELACCENT,"\u21FB":u.MO.RELACCENT,"\u21FC":u.MO.RELACCENT,"\u21FD":u.MO.WIDEREL,"\u21FE":u.MO.WIDEREL,"\u21FF":u.MO.WIDEREL,"\u2201":Fe(1,2,fe.TEXCLASS.ORD),"\u2205":u.MO.ORD,"\u2206":u.MO.BIN3,"\u2208":u.MO.REL,"\u2209":u.MO.REL,"\u220A":u.MO.REL,"\u220B":u.MO.REL,"\u220C":u.MO.REL,"\u220D":u.MO.REL,"\u220E":u.MO.BIN3,"\u2212":u.MO.BIN4,"\u2213":u.MO.BIN4,"\u2214":u.MO.BIN4,"\u2215":u.MO.TALLBIN,"\u2216":u.MO.BIN4,"\u2217":u.MO.BIN4,"\u2218":u.MO.BIN4,"\u2219":u.MO.BIN4,"\u221D":u.MO.REL,"\u221E":u.MO.ORD,"\u221F":u.MO.REL,"\u2223":u.MO.REL,"\u2224":u.MO.REL,"\u2225":u.MO.REL,"\u2226":u.MO.REL,"\u2227":u.MO.BIN4,"\u2228":u.MO.BIN4,"\u2229":u.MO.BIN4,"\u222A":u.MO.BIN4,"\u2234":u.MO.REL,"\u2235":u.MO.REL,"\u2236":u.MO.REL,"\u2237":u.MO.REL,"\u2238":u.MO.BIN4,"\u2239":u.MO.REL,"\u223A":u.MO.BIN4,"\u223B":u.MO.REL,"\u223C":u.MO.REL,"\u223D":u.MO.REL,"\u223D\u0331":u.MO.BIN3,"\u223E":u.MO.REL,"\u223F":u.MO.BIN3,"\u2240":u.MO.BIN4,"\u2241":u.MO.REL,"\u2242":u.MO.REL,"\u2242\u0338":u.MO.REL,"\u2243":u.MO.REL,"\u2244":u.MO.REL,"\u2245":u.MO.REL,"\u2246":u.MO.REL,"\u2247":u.MO.REL,"\u2248":u.MO.REL,"\u2249":u.MO.REL,"\u224A":u.MO.REL,"\u224B":u.MO.REL,"\u224C":u.MO.REL,"\u224D":u.MO.REL,"\u224E":u.MO.REL,"\u224E\u0338":u.MO.REL,"\u224F":u.MO.REL,"\u224F\u0338":u.MO.REL,"\u2250":u.MO.REL,"\u2251":u.MO.REL,"\u2252":u.MO.REL,"\u2253":u.MO.REL,"\u2254":u.MO.REL,"\u2255":u.MO.REL,"\u2256":u.MO.REL,"\u2257":u.MO.REL,"\u2258":u.MO.REL,"\u2259":u.MO.REL,"\u225A":u.MO.REL,"\u225B":u.MO.REL,"\u225C":u.MO.REL,"\u225D":u.MO.REL,"\u225E":u.MO.REL,"\u225F":u.MO.REL,"\u2260":u.MO.REL,"\u2261":u.MO.REL,"\u2262":u.MO.REL,"\u2263":u.MO.REL,"\u2264":u.MO.REL,"\u2265":u.MO.REL,"\u2266":u.MO.REL,"\u2266\u0338":u.MO.REL,"\u2267":u.MO.REL,"\u2268":u.MO.REL,"\u2269":u.MO.REL,"\u226A":u.MO.REL,"\u226A\u0338":u.MO.REL,"\u226B":u.MO.REL,"\u226B\u0338":u.MO.REL,"\u226C":u.MO.REL,"\u226D":u.MO.REL,"\u226E":u.MO.REL,"\u226F":u.MO.REL,"\u2270":u.MO.REL,"\u2271":u.MO.REL,"\u2272":u.MO.REL,"\u2273":u.MO.REL,"\u2274":u.MO.REL,"\u2275":u.MO.REL,"\u2276":u.MO.REL,"\u2277":u.MO.REL,"\u2278":u.MO.REL,"\u2279":u.MO.REL,"\u227A":u.MO.REL,"\u227B":u.MO.REL,"\u227C":u.MO.REL,"\u227D":u.MO.REL,"\u227E":u.MO.REL,"\u227F":u.MO.REL,"\u227F\u0338":u.MO.REL,"\u2280":u.MO.REL,"\u2281":u.MO.REL,"\u2282":u.MO.REL,"\u2282\u20D2":u.MO.REL,"\u2283":u.MO.REL,"\u2283\u20D2":u.MO.REL,"\u2284":u.MO.REL,"\u2285":u.MO.REL,"\u2286":u.MO.REL,"\u2287":u.MO.REL,"\u2288":u.MO.REL,"\u2289":u.MO.REL,"\u228A":u.MO.REL,"\u228B":u.MO.REL,"\u228C":u.MO.BIN4,"\u228D":u.MO.BIN4,"\u228E":u.MO.BIN4,"\u228F":u.MO.REL,"\u228F\u0338":u.MO.REL,"\u2290":u.MO.REL,"\u2290\u0338":u.MO.REL,"\u2291":u.MO.REL,"\u2292":u.MO.REL,"\u2293":u.MO.BIN4,"\u2294":u.MO.BIN4,"\u2295":u.MO.BIN4,"\u2296":u.MO.BIN4,"\u2297":u.MO.BIN4,"\u2298":u.MO.BIN4,"\u2299":u.MO.BIN4,"\u229A":u.MO.BIN4,"\u229B":u.MO.BIN4,"\u229C":u.MO.BIN4,"\u229D":u.MO.BIN4,"\u229E":u.MO.BIN4,"\u229F":u.MO.BIN4,"\u22A0":u.MO.BIN4,"\u22A1":u.MO.BIN4,"\u22A2":u.MO.REL,"\u22A3":u.MO.REL,"\u22A4":u.MO.ORD55,"\u22A5":u.MO.REL,"\u22A6":u.MO.REL,"\u22A7":u.MO.REL,"\u22A8":u.MO.REL,"\u22A9":u.MO.REL,"\u22AA":u.MO.REL,"\u22AB":u.MO.REL,"\u22AC":u.MO.REL,"\u22AD":u.MO.REL,"\u22AE":u.MO.REL,"\u22AF":u.MO.REL,"\u22B0":u.MO.REL,"\u22B1":u.MO.REL,"\u22B2":u.MO.REL,"\u22B3":u.MO.REL,"\u22B4":u.MO.REL,"\u22B5":u.MO.REL,"\u22B6":u.MO.REL,"\u22B7":u.MO.REL,"\u22B8":u.MO.REL,"\u22B9":u.MO.REL,"\u22BA":u.MO.BIN4,"\u22BB":u.MO.BIN4,"\u22BC":u.MO.BIN4,"\u22BD":u.MO.BIN4,"\u22BE":u.MO.BIN3,"\u22BF":u.MO.BIN3,"\u22C4":u.MO.BIN4,"\u22C5":u.MO.BIN4,"\u22C6":u.MO.BIN4,"\u22C7":u.MO.BIN4,"\u22C8":u.MO.REL,"\u22C9":u.MO.BIN4,"\u22CA":u.MO.BIN4,"\u22CB":u.MO.BIN4,"\u22CC":u.MO.BIN4,"\u22CD":u.MO.REL,"\u22CE":u.MO.BIN4,"\u22CF":u.MO.BIN4,"\u22D0":u.MO.REL,"\u22D1":u.MO.REL,"\u22D2":u.MO.BIN4,"\u22D3":u.MO.BIN4,"\u22D4":u.MO.REL,"\u22D5":u.MO.REL,"\u22D6":u.MO.REL,"\u22D7":u.MO.REL,"\u22D8":u.MO.REL,"\u22D9":u.MO.REL,"\u22DA":u.MO.REL,"\u22DB":u.MO.REL,"\u22DC":u.MO.REL,"\u22DD":u.MO.REL,"\u22DE":u.MO.REL,"\u22DF":u.MO.REL,"\u22E0":u.MO.REL,"\u22E1":u.MO.REL,"\u22E2":u.MO.REL,"\u22E3":u.MO.REL,"\u22E4":u.MO.REL,"\u22E5":u.MO.REL,"\u22E6":u.MO.REL,"\u22E7":u.MO.REL,"\u22E8":u.MO.REL,"\u22E9":u.MO.REL,"\u22EA":u.MO.REL,"\u22EB":u.MO.REL,"\u22EC":u.MO.REL,"\u22ED":u.MO.REL,"\u22EE":u.MO.ORD55,"\u22EF":u.MO.INNER,"\u22F0":u.MO.REL,"\u22F1":[5,5,fe.TEXCLASS.INNER,null],"\u22F2":u.MO.REL,"\u22F3":u.MO.REL,"\u22F4":u.MO.REL,"\u22F5":u.MO.REL,"\u22F6":u.MO.REL,"\u22F7":u.MO.REL,"\u22F8":u.MO.REL,"\u22F9":u.MO.REL,"\u22FA":u.MO.REL,"\u22FB":u.MO.REL,"\u22FC":u.MO.REL,"\u22FD":u.MO.REL,"\u22FE":u.MO.REL,"\u22FF":u.MO.REL,"\u2305":u.MO.BIN3,"\u2306":u.MO.BIN3,"\u2322":u.MO.REL4,"\u2323":u.MO.REL4,"\u2329":u.MO.OPEN,"\u232A":u.MO.CLOSE,"\u23AA":u.MO.ORD,"\u23AF":[0,0,fe.TEXCLASS.ORD,{stretchy:!0}],"\u23B0":u.MO.OPEN,"\u23B1":u.MO.CLOSE,"\u2500":u.MO.ORD,"\u25B3":u.MO.BIN4,"\u25B5":u.MO.BIN4,"\u25B9":u.MO.BIN4,"\u25BD":u.MO.BIN4,"\u25BF":u.MO.BIN4,"\u25C3":u.MO.BIN4,"\u25EF":u.MO.BIN3,"\u2660":u.MO.ORD,"\u2661":u.MO.ORD,"\u2662":u.MO.ORD,"\u2663":u.MO.ORD,"\u2758":u.MO.REL,"\u27F0":u.MO.RELSTRETCH,"\u27F1":u.MO.RELSTRETCH,"\u27F5":u.MO.WIDEREL,"\u27F6":u.MO.WIDEREL,"\u27F7":u.MO.WIDEREL,"\u27F8":u.MO.WIDEREL,"\u27F9":u.MO.WIDEREL,"\u27FA":u.MO.WIDEREL,"\u27FB":u.MO.WIDEREL,"\u27FC":u.MO.WIDEREL,"\u27FD":u.MO.WIDEREL,"\u27FE":u.MO.WIDEREL,"\u27FF":u.MO.WIDEREL,"\u2900":u.MO.RELACCENT,"\u2901":u.MO.RELACCENT,"\u2902":u.MO.RELACCENT,"\u2903":u.MO.RELACCENT,"\u2904":u.MO.RELACCENT,"\u2905":u.MO.RELACCENT,"\u2906":u.MO.RELACCENT,"\u2907":u.MO.RELACCENT,"\u2908":u.MO.REL,"\u2909":u.MO.REL,"\u290A":u.MO.RELSTRETCH,"\u290B":u.MO.RELSTRETCH,"\u290C":u.MO.WIDEREL,"\u290D":u.MO.WIDEREL,"\u290E":u.MO.WIDEREL,"\u290F":u.MO.WIDEREL,"\u2910":u.MO.WIDEREL,"\u2911":u.MO.RELACCENT,"\u2912":u.MO.RELSTRETCH,"\u2913":u.MO.RELSTRETCH,"\u2914":u.MO.RELACCENT,"\u2915":u.MO.RELACCENT,"\u2916":u.MO.RELACCENT,"\u2917":u.MO.RELACCENT,"\u2918":u.MO.RELACCENT,"\u2919":u.MO.RELACCENT,"\u291A":u.MO.RELACCENT,"\u291B":u.MO.RELACCENT,"\u291C":u.MO.RELACCENT,"\u291D":u.MO.RELACCENT,"\u291E":u.MO.RELACCENT,"\u291F":u.MO.RELACCENT,"\u2920":u.MO.RELACCENT,"\u2921":u.MO.RELSTRETCH,"\u2922":u.MO.RELSTRETCH,"\u2923":u.MO.REL,"\u2924":u.MO.REL,"\u2925":u.MO.REL,"\u2926":u.MO.REL,"\u2927":u.MO.REL,"\u2928":u.MO.REL,"\u2929":u.MO.REL,"\u292A":u.MO.REL,"\u292B":u.MO.REL,"\u292C":u.MO.REL,"\u292D":u.MO.REL,"\u292E":u.MO.REL,"\u292F":u.MO.REL,"\u2930":u.MO.REL,"\u2931":u.MO.REL,"\u2932":u.MO.REL,"\u2933":u.MO.RELACCENT,"\u2934":u.MO.REL,"\u2935":u.MO.REL,"\u2936":u.MO.REL,"\u2937":u.MO.REL,"\u2938":u.MO.REL,"\u2939":u.MO.REL,"\u293A":u.MO.RELACCENT,"\u293B":u.MO.RELACCENT,"\u293C":u.MO.RELACCENT,"\u293D":u.MO.RELACCENT,"\u293E":u.MO.REL,"\u293F":u.MO.REL,"\u2940":u.MO.REL,"\u2941":u.MO.REL,"\u2942":u.MO.RELACCENT,"\u2943":u.MO.RELACCENT,"\u2944":u.MO.RELACCENT,"\u2945":u.MO.RELACCENT,"\u2946":u.MO.RELACCENT,"\u2947":u.MO.RELACCENT,"\u2948":u.MO.RELACCENT,"\u2949":u.MO.REL,"\u294A":u.MO.RELACCENT,"\u294B":u.MO.RELACCENT,"\u294C":u.MO.REL,"\u294D":u.MO.REL,"\u294E":u.MO.WIDEREL,"\u294F":u.MO.RELSTRETCH,"\u2950":u.MO.WIDEREL,"\u2951":u.MO.RELSTRETCH,"\u2952":u.MO.WIDEREL,"\u2953":u.MO.WIDEREL,"\u2954":u.MO.RELSTRETCH,"\u2955":u.MO.RELSTRETCH,"\u2956":u.MO.RELSTRETCH,"\u2957":u.MO.RELSTRETCH,"\u2958":u.MO.RELSTRETCH,"\u2959":u.MO.RELSTRETCH,"\u295A":u.MO.WIDEREL,"\u295B":u.MO.WIDEREL,"\u295C":u.MO.RELSTRETCH,"\u295D":u.MO.RELSTRETCH,"\u295E":u.MO.WIDEREL,"\u295F":u.MO.WIDEREL,"\u2960":u.MO.RELSTRETCH,"\u2961":u.MO.RELSTRETCH,"\u2962":u.MO.RELACCENT,"\u2963":u.MO.REL,"\u2964":u.MO.RELACCENT,"\u2965":u.MO.REL,"\u2966":u.MO.RELACCENT,"\u2967":u.MO.RELACCENT,"\u2968":u.MO.RELACCENT,"\u2969":u.MO.RELACCENT,"\u296A":u.MO.RELACCENT,"\u296B":u.MO.RELACCENT,"\u296C":u.MO.RELACCENT,"\u296D":u.MO.RELACCENT,"\u296E":u.MO.RELSTRETCH,"\u296F":u.MO.RELSTRETCH,"\u2970":u.MO.RELACCENT,"\u2971":u.MO.RELACCENT,"\u2972":u.MO.RELACCENT,"\u2973":u.MO.RELACCENT,"\u2974":u.MO.RELACCENT,"\u2975":u.MO.RELACCENT,"\u2976":u.MO.RELACCENT,"\u2977":u.MO.RELACCENT,"\u2978":u.MO.RELACCENT,"\u2979":u.MO.RELACCENT,"\u297A":u.MO.RELACCENT,"\u297B":u.MO.RELACCENT,"\u297C":u.MO.RELACCENT,"\u297D":u.MO.RELACCENT,"\u297E":u.MO.REL,"\u297F":u.MO.REL,"\u2981":u.MO.BIN3,"\u2982":u.MO.BIN3,"\u2999":u.MO.BIN3,"\u299A":u.MO.BIN3,"\u299B":u.MO.BIN3,"\u299C":u.MO.BIN3,"\u299D":u.MO.BIN3,"\u299E":u.MO.BIN3,"\u299F":u.MO.BIN3,"\u29A0":u.MO.BIN3,"\u29A1":u.MO.BIN3,"\u29A2":u.MO.BIN3,"\u29A3":u.MO.BIN3,"\u29A4":u.MO.BIN3,"\u29A5":u.MO.BIN3,"\u29A6":u.MO.BIN3,"\u29A7":u.MO.BIN3,"\u29A8":u.MO.BIN3,"\u29A9":u.MO.BIN3,"\u29AA":u.MO.BIN3,"\u29AB":u.MO.BIN3,"\u29AC":u.MO.BIN3,"\u29AD":u.MO.BIN3,"\u29AE":u.MO.BIN3,"\u29AF":u.MO.BIN3,"\u29B0":u.MO.BIN3,"\u29B1":u.MO.BIN3,"\u29B2":u.MO.BIN3,"\u29B3":u.MO.BIN3,"\u29B4":u.MO.BIN3,"\u29B5":u.MO.BIN3,"\u29B6":u.MO.BIN4,"\u29B7":u.MO.BIN4,"\u29B8":u.MO.BIN4,"\u29B9":u.MO.BIN4,"\u29BA":u.MO.BIN4,"\u29BB":u.MO.BIN4,"\u29BC":u.MO.BIN4,"\u29BD":u.MO.BIN4,"\u29BE":u.MO.BIN4,"\u29BF":u.MO.BIN4,"\u29C0":u.MO.REL,"\u29C1":u.MO.REL,"\u29C2":u.MO.BIN3,"\u29C3":u.MO.BIN3,"\u29C4":u.MO.BIN4,"\u29C5":u.MO.BIN4,"\u29C6":u.MO.BIN4,"\u29C7":u.MO.BIN4,"\u29C8":u.MO.BIN4,"\u29C9":u.MO.BIN3,"\u29CA":u.MO.BIN3,"\u29CB":u.MO.BIN3,"\u29CC":u.MO.BIN3,"\u29CD":u.MO.BIN3,"\u29CE":u.MO.REL,"\u29CF":u.MO.REL,"\u29CF\u0338":u.MO.REL,"\u29D0":u.MO.REL,"\u29D0\u0338":u.MO.REL,"\u29D1":u.MO.REL,"\u29D2":u.MO.REL,"\u29D3":u.MO.REL,"\u29D4":u.MO.REL,"\u29D5":u.MO.REL,"\u29D6":u.MO.BIN4,"\u29D7":u.MO.BIN4,"\u29D8":u.MO.BIN3,"\u29D9":u.MO.BIN3,"\u29DB":u.MO.BIN3,"\u29DC":u.MO.BIN3,"\u29DD":u.MO.BIN3,"\u29DE":u.MO.REL,"\u29DF":u.MO.BIN3,"\u29E0":u.MO.BIN3,"\u29E1":u.MO.REL,"\u29E2":u.MO.BIN4,"\u29E3":u.MO.REL,"\u29E4":u.MO.REL,"\u29E5":u.MO.REL,"\u29E6":u.MO.REL,"\u29E7":u.MO.BIN3,"\u29E8":u.MO.BIN3,"\u29E9":u.MO.BIN3,"\u29EA":u.MO.BIN3,"\u29EB":u.MO.BIN3,"\u29EC":u.MO.BIN3,"\u29ED":u.MO.BIN3,"\u29EE":u.MO.BIN3,"\u29EF":u.MO.BIN3,"\u29F0":u.MO.BIN3,"\u29F1":u.MO.BIN3,"\u29F2":u.MO.BIN3,"\u29F3":u.MO.BIN3,"\u29F4":u.MO.REL,"\u29F5":u.MO.BIN4,"\u29F6":u.MO.BIN4,"\u29F7":u.MO.BIN4,"\u29F8":u.MO.BIN3,"\u29F9":u.MO.BIN3,"\u29FA":u.MO.BIN3,"\u29FB":u.MO.BIN3,"\u29FE":u.MO.BIN4,"\u29FF":u.MO.BIN4,"\u2A1D":u.MO.BIN3,"\u2A1E":u.MO.BIN3,"\u2A1F":u.MO.BIN3,"\u2A20":u.MO.BIN3,"\u2A21":u.MO.BIN3,"\u2A22":u.MO.BIN4,"\u2A23":u.MO.BIN4,"\u2A24":u.MO.BIN4,"\u2A25":u.MO.BIN4,"\u2A26":u.MO.BIN4,"\u2A27":u.MO.BIN4,"\u2A28":u.MO.BIN4,"\u2A29":u.MO.BIN4,"\u2A2A":u.MO.BIN4,"\u2A2B":u.MO.BIN4,"\u2A2C":u.MO.BIN4,"\u2A2D":u.MO.BIN4,"\u2A2E":u.MO.BIN4,"\u2A2F":u.MO.BIN4,"\u2A30":u.MO.BIN4,"\u2A31":u.MO.BIN4,"\u2A32":u.MO.BIN4,"\u2A33":u.MO.BIN4,"\u2A34":u.MO.BIN4,"\u2A35":u.MO.BIN4,"\u2A36":u.MO.BIN4,"\u2A37":u.MO.BIN4,"\u2A38":u.MO.BIN4,"\u2A39":u.MO.BIN4,"\u2A3A":u.MO.BIN4,"\u2A3B":u.MO.BIN4,"\u2A3C":u.MO.BIN4,"\u2A3D":u.MO.BIN4,"\u2A3E":u.MO.BIN4,"\u2A3F":u.MO.BIN4,"\u2A40":u.MO.BIN4,"\u2A41":u.MO.BIN4,"\u2A42":u.MO.BIN4,"\u2A43":u.MO.BIN4,"\u2A44":u.MO.BIN4,"\u2A45":u.MO.BIN4,"\u2A46":u.MO.BIN4,"\u2A47":u.MO.BIN4,"\u2A48":u.MO.BIN4,"\u2A49":u.MO.BIN4,"\u2A4A":u.MO.BIN4,"\u2A4B":u.MO.BIN4,"\u2A4C":u.MO.BIN4,"\u2A4D":u.MO.BIN4,"\u2A4E":u.MO.BIN4,"\u2A4F":u.MO.BIN4,"\u2A50":u.MO.BIN4,"\u2A51":u.MO.BIN4,"\u2A52":u.MO.BIN4,"\u2A53":u.MO.BIN4,"\u2A54":u.MO.BIN4,"\u2A55":u.MO.BIN4,"\u2A56":u.MO.BIN4,"\u2A57":u.MO.BIN4,"\u2A58":u.MO.BIN4,"\u2A59":u.MO.REL,"\u2A5A":u.MO.BIN4,"\u2A5B":u.MO.BIN4,"\u2A5C":u.MO.BIN4,"\u2A5D":u.MO.BIN4,"\u2A5E":u.MO.BIN4,"\u2A5F":u.MO.BIN4,"\u2A60":u.MO.BIN4,"\u2A61":u.MO.BIN4,"\u2A62":u.MO.BIN4,"\u2A63":u.MO.BIN4,"\u2A64":u.MO.BIN4,"\u2A65":u.MO.BIN4,"\u2A66":u.MO.REL,"\u2A67":u.MO.REL,"\u2A68":u.MO.REL,"\u2A69":u.MO.REL,"\u2A6A":u.MO.REL,"\u2A6B":u.MO.REL,"\u2A6C":u.MO.REL,"\u2A6D":u.MO.REL,"\u2A6E":u.MO.REL,"\u2A6F":u.MO.REL,"\u2A70":u.MO.REL,"\u2A71":u.MO.BIN4,"\u2A72":u.MO.BIN4,"\u2A73":u.MO.REL,"\u2A74":u.MO.REL,"\u2A75":u.MO.REL,"\u2A76":u.MO.REL,"\u2A77":u.MO.REL,"\u2A78":u.MO.REL,"\u2A79":u.MO.REL,"\u2A7A":u.MO.REL,"\u2A7B":u.MO.REL,"\u2A7C":u.MO.REL,"\u2A7D":u.MO.REL,"\u2A7D\u0338":u.MO.REL,"\u2A7E":u.MO.REL,"\u2A7E\u0338":u.MO.REL,"\u2A7F":u.MO.REL,"\u2A80":u.MO.REL,"\u2A81":u.MO.REL,"\u2A82":u.MO.REL,"\u2A83":u.MO.REL,"\u2A84":u.MO.REL,"\u2A85":u.MO.REL,"\u2A86":u.MO.REL,"\u2A87":u.MO.REL,"\u2A88":u.MO.REL,"\u2A89":u.MO.REL,"\u2A8A":u.MO.REL,"\u2A8B":u.MO.REL,"\u2A8C":u.MO.REL,"\u2A8D":u.MO.REL,"\u2A8E":u.MO.REL,"\u2A8F":u.MO.REL,"\u2A90":u.MO.REL,"\u2A91":u.MO.REL,"\u2A92":u.MO.REL,"\u2A93":u.MO.REL,"\u2A94":u.MO.REL,"\u2A95":u.MO.REL,"\u2A96":u.MO.REL,"\u2A97":u.MO.REL,"\u2A98":u.MO.REL,"\u2A99":u.MO.REL,"\u2A9A":u.MO.REL,"\u2A9B":u.MO.REL,"\u2A9C":u.MO.REL,"\u2A9D":u.MO.REL,"\u2A9E":u.MO.REL,"\u2A9F":u.MO.REL,"\u2AA0":u.MO.REL,"\u2AA1":u.MO.REL,"\u2AA1\u0338":u.MO.REL,"\u2AA2":u.MO.REL,"\u2AA2\u0338":u.MO.REL,"\u2AA3":u.MO.REL,"\u2AA4":u.MO.REL,"\u2AA5":u.MO.REL,"\u2AA6":u.MO.REL,"\u2AA7":u.MO.REL,"\u2AA8":u.MO.REL,"\u2AA9":u.MO.REL,"\u2AAA":u.MO.REL,"\u2AAB":u.MO.REL,"\u2AAC":u.MO.REL,"\u2AAD":u.MO.REL,"\u2AAE":u.MO.REL,"\u2AAF":u.MO.REL,"\u2AAF\u0338":u.MO.REL,"\u2AB0":u.MO.REL,"\u2AB0\u0338":u.MO.REL,"\u2AB1":u.MO.REL,"\u2AB2":u.MO.REL,"\u2AB3":u.MO.REL,"\u2AB4":u.MO.REL,"\u2AB5":u.MO.REL,"\u2AB6":u.MO.REL,"\u2AB7":u.MO.REL,"\u2AB8":u.MO.REL,"\u2AB9":u.MO.REL,"\u2ABA":u.MO.REL,"\u2ABB":u.MO.REL,"\u2ABC":u.MO.REL,"\u2ABD":u.MO.REL,"\u2ABE":u.MO.REL,"\u2ABF":u.MO.REL,"\u2AC0":u.MO.REL,"\u2AC1":u.MO.REL,"\u2AC2":u.MO.REL,"\u2AC3":u.MO.REL,"\u2AC4":u.MO.REL,"\u2AC5":u.MO.REL,"\u2AC6":u.MO.REL,"\u2AC7":u.MO.REL,"\u2AC8":u.MO.REL,"\u2AC9":u.MO.REL,"\u2ACA":u.MO.REL,"\u2ACB":u.MO.REL,"\u2ACC":u.MO.REL,"\u2ACD":u.MO.REL,"\u2ACE":u.MO.REL,"\u2ACF":u.MO.REL,"\u2AD0":u.MO.REL,"\u2AD1":u.MO.REL,"\u2AD2":u.MO.REL,"\u2AD3":u.MO.REL,"\u2AD4":u.MO.REL,"\u2AD5":u.MO.REL,"\u2AD6":u.MO.REL,"\u2AD7":u.MO.REL,"\u2AD8":u.MO.REL,"\u2AD9":u.MO.REL,"\u2ADA":u.MO.REL,"\u2ADB":u.MO.REL,"\u2ADD":u.MO.REL,"\u2ADD\u0338":u.MO.REL,"\u2ADE":u.MO.REL,"\u2ADF":u.MO.REL,"\u2AE0":u.MO.REL,"\u2AE1":u.MO.REL,"\u2AE2":u.MO.REL,"\u2AE3":u.MO.REL,"\u2AE4":u.MO.REL,"\u2AE5":u.MO.REL,"\u2AE6":u.MO.REL,"\u2AE7":u.MO.REL,"\u2AE8":u.MO.REL,"\u2AE9":u.MO.REL,"\u2AEA":u.MO.REL,"\u2AEB":u.MO.REL,"\u2AEC":u.MO.REL,"\u2AED":u.MO.REL,"\u2AEE":u.MO.REL,"\u2AEF":u.MO.REL,"\u2AF0":u.MO.REL,"\u2AF1":u.MO.REL,"\u2AF2":u.MO.REL,"\u2AF3":u.MO.REL,"\u2AF4":u.MO.BIN4,"\u2AF5":u.MO.BIN4,"\u2AF6":u.MO.BIN4,"\u2AF7":u.MO.REL,"\u2AF8":u.MO.REL,"\u2AF9":u.MO.REL,"\u2AFA":u.MO.REL,"\u2AFB":u.MO.BIN4,"\u2AFD":u.MO.BIN4,"\u2AFE":u.MO.BIN3,"\u2B45":u.MO.RELSTRETCH,"\u2B46":u.MO.RELSTRETCH,"\u3008":u.MO.OPEN,"\u3009":u.MO.CLOSE,"\uFE37":u.MO.WIDEACCENT,"\uFE38":u.MO.WIDEACCENT}};u.OPTABLE.infix["^"]=u.MO.WIDEREL;u.OPTABLE.infix._=u.MO.WIDEREL;u.OPTABLE.infix["\u2ADC"]=u.MO.REL});var uc=ee(_r=>{"use strict";var zI=_r&&_r.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),cc=_r&&_r.__assign||function(){return cc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},cc.apply(this,arguments)},N0=_r&&_r.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},GI=_r&&_r.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(_r,"__esModule",{value:!0});_r.MmlMo=void 0;var Je=Te(),uy=cy(),I0=Es(),WI=(function(e){zI(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._texClass=null,r.lspace=5/18,r.rspace=5/18,r}return Object.defineProperty(t.prototype,"texClass",{get:function(){if(this._texClass===null){var r=this.getText(),n=N0(this.handleExplicitForm(this.getForms()),3),i=n[0],a=n[1],o=n[2],s=this.constructor.OPTABLE,l=s[i][r]||s[a][r]||s[o][r];return l?l[2]:Je.TEXCLASS.REL}return this._texClass},set:function(r){this._texClass=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"kind",{get:function(){return"mo"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmbellished",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNewLine",{get:function(){return this.attributes.get("linebreak")==="newline"},enumerable:!1,configurable:!0}),t.prototype.coreParent=function(){for(var r=this,n=this,i=this.factory.getNodeClass("math");n&&n.isEmbellished&&n.coreMO()===this&&!(n instanceof i);)r=n,n=n.parent;return r},t.prototype.coreText=function(r){if(!r)return"";if(r.isEmbellished)return r.coreMO().getText();for(;((r.isKind("mrow")||r.isKind("TeXAtom")&&r.texClass!==Je.TEXCLASS.VCENTER||r.isKind("mstyle")||r.isKind("mphantom"))&&r.childNodes.length===1||r.isKind("munderover"))&&r.childNodes[0];)r=r.childNodes[0];return r.isToken?r.getText():""},t.prototype.hasSpacingAttributes=function(){return this.attributes.isSet("lspace")||this.attributes.isSet("rspace")},Object.defineProperty(t.prototype,"isAccent",{get:function(){var r=!1,n=this.coreParent().parent;if(n){var i=n.isKind("mover")?n.childNodes[n.over].coreMO()?"accent":"":n.isKind("munder")?n.childNodes[n.under].coreMO()?"accentunder":"":n.isKind("munderover")?this===n.childNodes[n.over].coreMO()?"accent":this===n.childNodes[n.under].coreMO()?"accentunder":"":"";if(i){var a=n.attributes.getExplicit(i);r=a!==void 0?r:this.attributes.get("accent")}}return r},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(r){var n=this.attributes.getList("form","fence"),i=n.form,a=n.fence;return this.getProperty("texClass")===void 0&&(this.attributes.isSet("lspace")||this.attributes.isSet("rspace"))?null:(a&&this.texClass===Je.TEXCLASS.REL&&(i==="prefix"&&(this.texClass=Je.TEXCLASS.OPEN),i==="postfix"&&(this.texClass=Je.TEXCLASS.CLOSE)),this.adjustTeXclass(r))},t.prototype.adjustTeXclass=function(r){var n=this.texClass,i=this.prevClass;if(n===Je.TEXCLASS.NONE)return r;if(r?(r.getProperty("autoOP")&&(n===Je.TEXCLASS.BIN||n===Je.TEXCLASS.REL)&&(i=r.texClass=Je.TEXCLASS.ORD),i=this.prevClass=r.texClass||Je.TEXCLASS.ORD,this.prevLevel=this.attributes.getInherited("scriptlevel")):i=this.prevClass=Je.TEXCLASS.NONE,n===Je.TEXCLASS.BIN&&(i===Je.TEXCLASS.NONE||i===Je.TEXCLASS.BIN||i===Je.TEXCLASS.OP||i===Je.TEXCLASS.REL||i===Je.TEXCLASS.OPEN||i===Je.TEXCLASS.PUNCT))this.texClass=Je.TEXCLASS.ORD;else if(i===Je.TEXCLASS.BIN&&(n===Je.TEXCLASS.REL||n===Je.TEXCLASS.CLOSE||n===Je.TEXCLASS.PUNCT))r.texClass=this.prevClass=Je.TEXCLASS.ORD;else if(n===Je.TEXCLASS.BIN){for(var a=this,o=this.parent;o&&o.parent&&o.isEmbellished&&(o.childNodes.length===1||!o.isKind("mrow")&&o.core()===a);)a=o,o=o.parent;o.childNodes[o.childNodes.length-1]===a&&(this.texClass=Je.TEXCLASS.ORD)}return this},t.prototype.setInheritedAttributes=function(r,n,i,a){r===void 0&&(r={}),n===void 0&&(n=!1),i===void 0&&(i=0),a===void 0&&(a=!1),e.prototype.setInheritedAttributes.call(this,r,n,i,a);var o=this.getText();this.checkOperatorTable(o),this.checkPseudoScripts(o),this.checkPrimes(o),this.checkMathAccent(o)},t.prototype.checkOperatorTable=function(r){var n,i,a=N0(this.handleExplicitForm(this.getForms()),3),o=a[0],s=a[1],l=a[2];this.attributes.setInherited("form",o);var c=this.constructor.OPTABLE,d=c[o][r]||c[s][r]||c[l][r];if(d){this.getProperty("texClass")===void 0&&(this.texClass=d[2]);try{for(var f=GI(Object.keys(d[3]||{})),m=f.next();!m.done;m=f.next()){var p=m.value;this.attributes.setInherited(p,d[3][p])}}catch(A){n={error:A}}finally{try{m&&!m.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}this.lspace=(d[0]+1)/18,this.rspace=(d[1]+1)/18}else{var b=(0,uy.getRange)(r);if(b){this.getProperty("texClass")===void 0&&(this.texClass=b[2]);var v=this.constructor.MMLSPACING[b[2]];this.lspace=(v[0]+1)/18,this.rspace=(v[1]+1)/18}}},t.prototype.getForms=function(){for(var r=this,n=this.parent,i=this.Parent;i&&i.isEmbellished;)r=n,n=i.parent,i=i.Parent;if(n&&n.isKind("mrow")&&n.nonSpaceLength()!==1){if(n.firstNonSpace()===r)return["prefix","infix","postfix"];if(n.lastNonSpace()===r)return["postfix","infix","prefix"]}return["infix","prefix","postfix"]},t.prototype.handleExplicitForm=function(r){if(this.attributes.isSet("form")){var n=this.attributes.get("form");r=[n].concat(r.filter(function(i){return i!==n}))}return r},t.prototype.checkPseudoScripts=function(r){var n=this.constructor.pseudoScripts;if(r.match(n)){var i=this.coreParent().Parent,a=!i||!(i.isKind("msubsup")&&!i.isKind("msub"));this.setProperty("pseudoscript",a),a&&(this.attributes.setInherited("lspace",0),this.attributes.setInherited("rspace",0))}},t.prototype.checkPrimes=function(r){var n=this.constructor.primes;if(r.match(n)){var i=this.constructor.remapPrimes,a=(0,I0.unicodeString)((0,I0.unicodeChars)(r).map(function(o){return i[o]}));this.setProperty("primes",a)}},t.prototype.checkMathAccent=function(r){var n=this.Parent;if(!(this.getProperty("mathaccent")!==void 0||!n||!n.isKind("munderover"))){var i=n.childNodes[0];if(!(i.isEmbellished&&i.coreMO()===this)){var a=this.constructor.mathaccents;r.match(a)&&this.setProperty("mathaccent",!0)}}},t.defaults=cc(cc({},Je.AbstractMmlTokenNode.defaults),{form:"infix",fence:!1,separator:!1,lspace:"thickmathspace",rspace:"thickmathspace",stretchy:!1,symmetric:!1,maxsize:"infinity",minsize:"0em",largeop:!1,movablelimits:!1,accent:!1,linebreak:"auto",lineleading:"1ex",linebreakstyle:"before",indentalign:"auto",indentshift:"0",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),t.MMLSPACING=uy.MMLSPACING,t.OPTABLE=uy.OPTABLE,t.pseudoScripts=new RegExp(["^[\"'*`","\xAA","\xB0","\xB2-\xB4","\xB9","\xBA","\u2018-\u201F","\u2032-\u2037\u2057","\u2070\u2071","\u2074-\u207F","\u2080-\u208E","]+$"].join("")),t.primes=new RegExp(["^[\"'`","\u2018-\u201F","]+$"].join("")),t.remapPrimes={34:8243,39:8242,96:8245,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246},t.mathaccents=new RegExp(["^[","\xB4\u0301\u02CA","`\u0300\u02CB","\xA8\u0308","~\u0303\u02DC","\xAF\u0304\u02C9","\u02D8\u0306","\u02C7\u030C","^\u0302\u02C6","\u2192\u20D7","\u02D9\u0307","\u02DA\u030A","\u20DB","\u20DC","]$"].join("")),t})(Je.AbstractMmlTokenNode);_r.MmlMo=WI});var st=ee(Zn=>{"use strict";var dy=Zn&&Zn.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},KI=Zn&&Zn.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},XI=Zn&&Zn.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(Zn,"__esModule",{value:!0});var P0=Te(),$I=uc(),fy;(function(e){var t=new Map([["autoOP",!0],["fnOP",!0],["movesupsub",!0],["subsupOK",!0],["texprimestyle",!0],["useHeight",!0],["variantForm",!0],["withDelims",!0],["mathaccent",!0],["open",!0],["close",!0]]);function r(B){return String.fromCodePoint(parseInt(B,16))}e.createEntity=r;function n(B){return B.childNodes}e.getChildren=n;function i(B){return B.getText()}e.getText=i;function a(B,P){var I,Z;try{for(var oe=dy(P),R=oe.next();!R.done;R=oe.next()){var z=R.value;B.appendChild(z)}}catch(C){I={error:C}}finally{try{R&&!R.done&&(Z=oe.return)&&Z.call(oe)}finally{if(I)throw I.error}}}e.appendChildren=a;function o(B,P,I){B.attributes.set(P,I)}e.setAttribute=o;function s(B,P,I){B.setProperty(P,I)}e.setProperty=s;function l(B,P){var I,Z;try{for(var oe=dy(Object.keys(P)),R=oe.next();!R.done;R=oe.next()){var z=R.value,C=P[z];z==="texClass"?(B.texClass=C,B.setProperty(z,C)):z==="movablelimits"?(B.setProperty("movablelimits",C),(B.isKind("mo")||B.isKind("mstyle"))&&B.attributes.set("movablelimits",C)):z==="inferred"||(t.has(z)?B.setProperty(z,C):B.attributes.set(z,C))}}catch(J){I={error:J}}finally{try{R&&!R.done&&(Z=oe.return)&&Z.call(oe)}finally{if(I)throw I.error}}}e.setProperties=l;function c(B,P){return B.getProperty(P)}e.getProperty=c;function d(B,P){return B.attributes.get(P)}e.getAttribute=d;function f(B){for(var P=[],I=1;I<arguments.length;I++)P[I-1]=arguments[I];B.removeProperty.apply(B,XI([],KI(P),!1))}e.removeProperties=f;function m(B,P){return B.childNodes[P]}e.getChildAt=m;function p(B,P,I){var Z=B.childNodes;Z[P]=I,I&&(I.parent=B)}e.setChild=p;function b(B,P){for(var I=B.childNodes,Z=0;Z<I.length;Z++)p(P,Z,I[Z])}e.copyChildren=b;function v(B,P){P.attributes=B.attributes,l(P,B.getAllProperties())}e.copyAttributes=v;function A(B,P){return B.isKind(P)}e.isType=A;function y(B){return B.isEmbellished}e.isEmbellished=y;function T(B){return B.texClass}e.getTexClass=T;function E(B){return B.coreMO()}e.getCoreMO=E;function w(B){return B instanceof P0.AbstractMmlNode||B instanceof P0.AbstractMmlEmptyNode}e.isNode=w;function x(B){return B.isInferred}e.isInferred=x;function D(B){var P,I;if(!A(B,"mo"))return null;var Z=B,oe=Z.getForms();try{for(var R=dy(oe),z=R.next();!z.done;z=R.next()){var C=z.value,J=$I.MmlMo.OPTABLE[C][Z.getText()];if(J)return J}}catch(te){P={error:te}}finally{try{z&&!z.done&&(I=R.return)&&I.call(R)}finally{if(P)throw P.error}}return null}e.getForm=D})(fy||(fy={}));Zn.default=fy});var R0=ee(pa=>{"use strict";var ha=pa&&pa.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},VI=pa&&pa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pa,"__esModule",{value:!0});var j0=Te(),Pt=VI(st()),my;(function(e){e.cleanStretchy=function(a){var o,s,l=a.data;try{for(var c=ha(l.getList("fixStretchy")),d=c.next();!d.done;d=c.next()){var f=d.value;if(Pt.default.getProperty(f,"fixStretchy")){var m=Pt.default.getForm(f);m&&m[3]&&m[3].stretchy&&Pt.default.setAttribute(f,"stretchy",!1);var p=f.parent;if(!Pt.default.getTexClass(f)&&(!m||!m[2])){var b=l.nodeFactory.create("node","TeXAtom",[f]);p.replaceChild(b,f),b.inheritAttributesFrom(f)}Pt.default.removeProperties(f,"fixStretchy")}}}catch(v){o={error:v}}finally{try{d&&!d.done&&(s=c.return)&&s.call(c)}finally{if(o)throw o.error}}},e.cleanAttributes=function(a){var o=a.data.root;o.walkTree(function(s,l){var c,d,f=s.attributes;if(f){var m=new Set((f.get("mjx-keep-attrs")||"").split(/ /));delete f.getAllAttributes()["mjx-keep-attrs"];try{for(var p=ha(f.getExplicitNames()),b=p.next();!b.done;b=p.next()){var v=b.value;!m.has(v)&&f.attributes[v]===s.attributes.getInherited(v)&&delete f.attributes[v]}}catch(A){c={error:A}}finally{try{b&&!b.done&&(d=p.return)&&d.call(p)}finally{if(c)throw c.error}}}},{})},e.combineRelations=function(a){var o,s,l,c,d=[];try{for(var f=ha(a.data.getList("mo")),m=f.next();!m.done;m=f.next()){var p=m.value;if(!(p.getProperty("relationsCombined")||!p.parent||p.parent&&!Pt.default.isType(p.parent,"mrow")||Pt.default.getTexClass(p)!==j0.TEXCLASS.REL)){for(var b=p.parent,v=void 0,A=b.childNodes,y=A.indexOf(p)+1,T=Pt.default.getProperty(p,"variantForm");y<A.length&&(v=A[y])&&Pt.default.isType(v,"mo")&&Pt.default.getTexClass(v)===j0.TEXCLASS.REL;)if(T===Pt.default.getProperty(v,"variantForm")&&r(p,v)){Pt.default.appendChildren(p,Pt.default.getChildren(v)),t(["stretchy","rspace"],p,v);try{for(var E=(l=void 0,ha(v.getPropertyNames())),w=E.next();!w.done;w=E.next()){var x=w.value;p.setProperty(x,v.getProperty(x))}}catch(D){l={error:D}}finally{try{w&&!w.done&&(c=E.return)&&c.call(E)}finally{if(l)throw l.error}}A.splice(y,1),d.push(v),v.parent=null,v.setProperty("relationsCombined",!0)}else{p.attributes.getExplicit("rspace")==null&&Pt.default.setAttribute(p,"rspace","0pt"),v.attributes.getExplicit("lspace")==null&&Pt.default.setAttribute(v,"lspace","0pt");break}p.attributes.setInherited("form",p.getForms()[0])}}}catch(D){o={error:D}}finally{try{m&&!m.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}a.data.removeFromList("mo",d)};var t=function(a,o,s){var l=o.attributes,c=s.attributes;a.forEach(function(d){var f=c.getExplicit(d);f!=null&&l.set(d,f)})},r=function(a,o){var s,l,c=function(y,T){var E=y.getExplicitNames();return E.filter(function(w){return w!==T&&(w!=="stretchy"||y.getExplicit("stretchy"))})},d=a.attributes,f=o.attributes,m=c(d,"lspace"),p=c(f,"rspace");if(m.length!==p.length)return!1;try{for(var b=ha(m),v=b.next();!v.done;v=b.next()){var A=v.value;if(d.getExplicit(A)!==f.getExplicit(A))return!1}}catch(y){s={error:y}}finally{try{v&&!v.done&&(l=b.return)&&l.call(b)}finally{if(s)throw s.error}}return!0},n=function(a,o,s){var l,c,d=[];try{for(var f=ha(a.getList("m"+o+s)),m=f.next();!m.done;m=f.next()){var p=m.value,b=p.childNodes;if(!(b[p[o]]&&b[p[s]])){var v=p.parent,A=b[p[o]]?a.nodeFactory.create("node","m"+o,[b[p.base],b[p[o]]]):a.nodeFactory.create("node","m"+s,[b[p.base],b[p[s]]]);Pt.default.copyAttributes(p,A),v?v.replaceChild(A,p):a.root=A,d.push(p)}}}catch(y){l={error:y}}finally{try{m&&!m.done&&(c=f.return)&&c.call(f)}finally{if(l)throw l.error}}a.removeFromList("m"+o+s,d)};e.cleanSubSup=function(a){var o=a.data;o.error||(n(o,"sub","sup"),n(o,"under","over"))};var i=function(a,o,s){var l,c,d=[];try{for(var f=ha(a.getList(o)),m=f.next();!m.done;m=f.next()){var p=m.value;if(!p.attributes.get("displaystyle")){var b=p.childNodes[p.base],v=b.coreMO();if(b.getProperty("movablelimits")&&!v.attributes.getExplicit("movablelimits")){var A=a.nodeFactory.create("node",s,p.childNodes);Pt.default.copyAttributes(p,A),p.parent?p.parent.replaceChild(A,p):a.root=A,d.push(p)}}}}catch(y){l={error:y}}finally{try{m&&!m.done&&(c=f.return)&&c.call(f)}finally{if(l)throw l.error}}a.removeFromList(o,d)};e.moveLimits=function(a){var o=a.data;i(o,"munderover","msubsup"),i(o,"munder","msub"),i(o,"mover","msup")},e.setInherited=function(a){a.data.root.setInheritedAttributes({},a.math.display,0,!1)}})(my||(my={}));pa.default=my});var $e=ee(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});var YI=(function(){function e(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.id=t,this.message=e.processString(r,n)}return e.processString=function(t,r){for(var n=t.split(e.pattern),i=1,a=n.length;i<a;i+=2){var o=n[i].charAt(0);if(o>="0"&&o<="9")n[i]=r[parseInt(n[i],10)-1],typeof n[i]=="number"&&(n[i]=n[i].toString());else if(o==="{")if(o=n[i].substr(1),o>="0"&&o<="9")n[i]=r[parseInt(n[i].substr(1,n[i].length-2),10)-1],typeof n[i]=="number"&&(n[i]=n[i].toString());else{var s=n[i].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/);s&&(n[i]="%"+n[i])}n[i]==null&&(n[i]="???")}return n.join("")},e.pattern=/%(\d+|\{\d+\}|\{[a-z]+:\%\d+(?:\|(?:%\{\d+\}|%.|[^\}])*)+\}|.)/g,e})();hy.default=YI});var D0=ee(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.asyncLoad=void 0;var L0=nc();function ZI(e){return L0.mathjax.asyncLoad?new Promise(function(t,r){var n=L0.mathjax.asyncLoad(e);n instanceof Promise?n.then(function(i){return t(i)}).catch(function(i){return r(i)}):t(n)}):Promise.reject("Can't load '".concat(e,"': No asyncLoad method specified"))}dc.asyncLoad=ZI});var eo=ee(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.numeric=At.translate=At.remove=At.add=At.entities=At.options=void 0;var JI=rc(),QI=D0();At.options={loadMissingEntities:!0};At.entities={ApplyFunction:"\u2061",Backslash:"\u2216",Because:"\u2235",Breve:"\u02D8",Cap:"\u22D2",CenterDot:"\xB7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",Congruent:"\u2261",ContourIntegral:"\u222E",Coproduct:"\u2210",Cross:"\u2A2F",Cup:"\u22D3",CupCap:"\u224D",Dagger:"\u2021",Del:"\u2207",Delta:"\u0394",Diamond:"\u22C4",DifferentialD:"\u2146",DotEqual:"\u2250",DoubleDot:"\xA8",DoubleRightTee:"\u22A8",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownLeftVector:"\u21BD",DownRightVector:"\u21C1",DownTee:"\u22A4",Downarrow:"\u21D3",Element:"\u2208",EqualTilde:"\u2242",Equilibrium:"\u21CC",Exists:"\u2203",ExponentialE:"\u2147",FilledVerySmallSquare:"\u25AA",ForAll:"\u2200",Gamma:"\u0393",Gg:"\u22D9",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Hacek:"\u02C7",Hat:"^",HumpDownHump:"\u224E",HumpEqual:"\u224F",Im:"\u2111",ImaginaryI:"\u2148",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Lambda:"\u039B",Larr:"\u219E",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDownVector:"\u21C3",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftTee:"\u22A3",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpVector:"\u21BF",LeftVector:"\u21BC",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Ll:"\u22D8",Lleftarrow:"\u21DA",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lsh:"\u21B0",MinusPlus:"\u2213",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotPrecedes:"\u2280",NotPrecedesSlantEqual:"\u22E0",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsSlantEqual:"\u22E1",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotVerticalBar:"\u2224",Omega:"\u03A9",OverBar:"\u203E",OverBrace:"\u23DE",PartialD:"\u2202",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Product:"\u220F",Proportional:"\u221D",Psi:"\u03A8",Rarr:"\u21A0",Re:"\u211C",ReverseEquilibrium:"\u21CB",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDownVector:"\u21C2",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpVector:"\u21BE",RightVector:"\u21C0",Rightarrow:"\u21D2",Rrightarrow:"\u21DB",Rsh:"\u21B1",Sigma:"\u03A3",SmallCircle:"\u2218",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Star:"\u22C6",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",Therefore:"\u2234",Theta:"\u0398",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",UnderBar:"_",UnderBrace:"\u23DF",Union:"\u22C3",UnionPlus:"\u228E",UpArrow:"\u2191",UpDownArrow:"\u2195",UpTee:"\u22A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",Upsilon:"\u03A5",Vdash:"\u22A9",Vee:"\u22C1",VerticalBar:"\u2223",VerticalTilde:"\u2240",Vvdash:"\u22AA",Wedge:"\u22C0",Xi:"\u039E",amp:"&",acute:"\xB4",aleph:"\u2135",alpha:"\u03B1",amalg:"\u2A3F",and:"\u2227",ang:"\u2220",angmsd:"\u2221",angsph:"\u2222",ape:"\u224A",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",beta:"\u03B2",beth:"\u2136",between:"\u226C",bigcirc:"\u25EF",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",blacklozenge:"\u29EB",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",bowtie:"\u22C8",boxdl:"\u2510",boxdr:"\u250C",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxur:"\u2514",bsol:"\\",bull:"\u2022",cap:"\u2229",check:"\u2713",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",clubs:"\u2663",colon:":",comp:"\u2201",ctdot:"\u22EF",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cup:"\u222A",curarr:"\u21B7",curlyvee:"\u22CE",curlywedge:"\u22CF",dagger:"\u2020",daleth:"\u2138",ddarr:"\u21CA",deg:"\xB0",delta:"\u03B4",digamma:"\u03DD",div:"\xF7",divideontimes:"\u22C7",dot:"\u02D9",doteqdot:"\u2251",dotplus:"\u2214",dotsquare:"\u22A1",dtdot:"\u22F1",ecir:"\u2256",efDot:"\u2252",egs:"\u2A96",ell:"\u2113",els:"\u2A95",empty:"\u2205",epsi:"\u03B5",epsiv:"\u03F5",erDot:"\u2253",eta:"\u03B7",eth:"\xF0",flat:"\u266D",fork:"\u22D4",frown:"\u2322",gEl:"\u2A8C",gamma:"\u03B3",gap:"\u2A86",gimel:"\u2137",gnE:"\u2269",gnap:"\u2A8A",gne:"\u2A88",gnsim:"\u22E7",gt:">",gtdot:"\u22D7",harrw:"\u21AD",hbar:"\u210F",hellip:"\u2026",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",imath:"\u0131",infin:"\u221E",intcal:"\u22BA",iota:"\u03B9",jmath:"\u0237",kappa:"\u03BA",kappav:"\u03F0",lEg:"\u2A8B",lambda:"\u03BB",lap:"\u2A85",larrlp:"\u21AB",larrtl:"\u21A2",lbrace:"{",lbrack:"[",le:"\u2264",leftleftarrows:"\u21C7",leftthreetimes:"\u22CB",lessdot:"\u22D6",lmoust:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lne:"\u2A87",lnsim:"\u22E6",longmapsto:"\u27FC",looparrowright:"\u21AC",lowast:"\u2217",loz:"\u25CA",lt:"<",ltimes:"\u22C9",ltri:"\u25C3",macr:"\xAF",malt:"\u2720",mho:"\u2127",mu:"\u03BC",multimap:"\u22B8",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",natur:"\u266E",nearr:"\u2197",nharr:"\u21AE",nlarr:"\u219A",not:"\xAC",nrarr:"\u219B",nu:"\u03BD",nvDash:"\u22AD",nvdash:"\u22AC",nwarr:"\u2196",omega:"\u03C9",omicron:"\u03BF",or:"\u2228",osol:"\u2298",period:".",phi:"\u03C6",phiv:"\u03D5",pi:"\u03C0",piv:"\u03D6",prap:"\u2AB7",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",prime:"\u2032",psi:"\u03C8",quot:'"',rarrtl:"\u21A3",rbrace:"}",rbrack:"]",rho:"\u03C1",rhov:"\u03F1",rightrightarrows:"\u21C9",rightthreetimes:"\u22CC",ring:"\u02DA",rmoust:"\u23B1",rtimes:"\u22CA",rtri:"\u25B9",scap:"\u2AB8",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",sdot:"\u22C5",searr:"\u2198",sect:"\xA7",sharp:"\u266F",sigma:"\u03C3",sigmav:"\u03C2",simne:"\u2246",smile:"\u2323",spades:"\u2660",sub:"\u2282",subE:"\u2AC5",subnE:"\u2ACB",subne:"\u228A",supE:"\u2AC6",supnE:"\u2ACC",supne:"\u228B",swarr:"\u2199",tau:"\u03C4",theta:"\u03B8",thetav:"\u03D1",tilde:"\u02DC",times:"\xD7",triangle:"\u25B5",triangleq:"\u225C",upsi:"\u03C5",upuparrows:"\u21C8",veebar:"\u22BB",vellip:"\u22EE",weierp:"\u2118",xi:"\u03BE",yen:"\xA5",zeta:"\u03B6",zigrarr:"\u21DD",nbsp:"\xA0",rsquo:"\u2019",lsquo:"\u2018"};var py={};function eP(e,t){Object.assign(At.entities,e),py[t]=!0}At.add=eP;function tP(e){delete At.entities[e]}At.remove=tP;function rP(e){return e.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/ig,nP)}At.translate=rP;function nP(e,t){if(t.charAt(0)==="#")return B0(t.slice(1));if(At.entities[t])return At.entities[t];if(At.options.loadMissingEntities){var r=t.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:t.charAt(0).toLowerCase();py[r]||(py[r]=!0,(0,JI.retryAfter)((0,QI.asyncLoad)("./util/entities/"+r+".js")))}return e}function B0(e){var t=e.charAt(0)==="x"?parseInt(e.slice(1),16):parseInt(e);return String.fromCodePoint(t)}At.numeric=B0});var Qe=ee(Jn=>{"use strict";var fc=Jn&&Jn.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},F0=Jn&&Jn.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},yy=Jn&&Jn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jn,"__esModule",{value:!0});var to=Te(),lt=yy(st()),ro=yy(jt()),yi=yy($e()),q0=eo(),gy;(function(e){var t=7.2,r=72,n={em:function(W){return W},ex:function(W){return W*.43},pt:function(W){return W/10},pc:function(W){return W*1.2},px:function(W){return W*t/r},in:function(W){return W*t},cm:function(W){return W*t/2.54},mm:function(W){return W*t/25.4},mu:function(W){return W/18}},i="([-+]?([.,]\\d+|\\d+([.,]\\d*)?))",a="(pt|em|ex|mu|px|mm|cm|in|pc)",o=RegExp("^\\s*"+i+"\\s*"+a+"\\s*$"),s=RegExp("^\\s*"+i+"\\s*"+a+" ?");function l(W,H){H===void 0&&(H=!1);var ae=W.match(H?s:o);return ae?c([ae[1].replace(/,/,"."),ae[4],ae[0].length]):[null,null,0]}e.matchDimen=l;function c(W){var H=fc(W,3),ae=H[0],K=H[1],L=H[2];if(K!=="mu")return[ae,K,L];var V=f(n[K](parseFloat(ae||"1")));return[V.slice(0,-2),"em",L]}function d(W){var H=fc(l(W),2),ae=H[0],K=H[1],L=parseFloat(ae||"1"),V=n[K];return V?V(L):0}e.dimen2em=d;function f(W){return Math.abs(W)<6e-4?"0em":W.toFixed(3).replace(/\.?0+$/,"")+"em"}e.Em=f;function m(){for(var W=[],H=0;H<arguments.length;H++)W[H]=arguments[H];return W.map(function(ae){return f(ae)}).join(" ")}e.cols=m;function p(W,H,ae,K,L,V){L===void 0&&(L=""),V===void 0&&(V="");var Y=W.nodeFactory,re=Y.create("node","mrow",[],{open:H,close:K,texClass:to.TEXCLASS.INNER}),k;if(L)k=new ro.default("\\"+L+"l"+H,W.parser.stack.env,W).mml();else{var h=Y.create("text",H);k=Y.create("node","mo",[],{fence:!0,stretchy:!0,symmetric:!0,texClass:to.TEXCLASS.OPEN},h)}if(lt.default.appendChildren(re,[k,ae]),L)k=new ro.default("\\"+L+"r"+K,W.parser.stack.env,W).mml();else{var O=Y.create("text",K);k=Y.create("node","mo",[],{fence:!0,stretchy:!0,symmetric:!0,texClass:to.TEXCLASS.CLOSE},O)}return V&&k.attributes.set("mathcolor",V),lt.default.appendChildren(re,[k]),re}e.fenced=p;function b(W,H,ae,K){var L=W.nodeFactory.create("node","mrow",[],{open:H,close:K,texClass:to.TEXCLASS.ORD});return H&<.default.appendChildren(L,[v(W,H,"l")]),lt.default.isType(ae,"mrow")?lt.default.appendChildren(L,lt.default.getChildren(ae)):lt.default.appendChildren(L,[ae]),K&<.default.appendChildren(L,[v(W,K,"r")]),L}e.fixedFence=b;function v(W,H,ae){(H==="{"||H==="}")&&(H="\\"+H);var K="{\\bigg"+ae+" "+H+"}",L="{\\big"+ae+" "+H+"}";return new ro.default("\\mathchoice"+K+L+L+L,{},W).mml()}e.mathPalette=v;function A(W,H){for(var ae=0,K=H.length;ae<K;ae++){var L=H[ae];if(L&&!lt.default.isType(L,"mspace")&&(!lt.default.isType(L,"TeXAtom")||lt.default.getChildren(L)[0]&<.default.getChildren(lt.default.getChildren(L)[0]).length)){if(lt.default.isEmbellished(L)||lt.default.isType(L,"TeXAtom")&<.default.getTexClass(L)===to.TEXCLASS.REL){var V=W.nodeFactory.create("node","mi");H.unshift(V)}break}}}e.fixInitialMO=A;function y(W,H,ae,K){if(W.configuration.options.internalMath)return W.configuration.options.internalMath(W,H,ae,K);var L=K||W.stack.env.font,V=L?{mathvariant:L}:{},Y=[],re=0,k=0,h,O,j="",U=0;if(H.match(/\\?[${}\\]|\\\(|\\(eq)?ref\s*\{/)){for(;re<H.length;)if(h=H.charAt(re++),h==="$")j==="$"&&U===0?(O=W.create("node","TeXAtom",[new ro.default(H.slice(k,re-1),{},W.configuration).mml()]),Y.push(O),j="",k=re):j===""&&(k<re-1&&Y.push(T(W,H.slice(k,re-1),V)),j="$",k=re);else if(h==="{"&&j!=="")U++;else if(h==="}")if(j==="}"&&U===0){var F=new ro.default(H.slice(k,re),{},W.configuration).mml();O=W.create("node","TeXAtom",[F],V),Y.push(O),j="",k=re}else j!==""&&U&&U--;else if(h==="\\")if(j===""&&H.substr(re).match(/^(eq)?ref\s*\{/)){var q=RegExp["$&"].length;k<re-1&&Y.push(T(W,H.slice(k,re-1),V)),j="}",k=re-1,re+=q}else h=H.charAt(re++),h==="("&&j===""?(k<re-2&&Y.push(T(W,H.slice(k,re-2),V)),j=")",k=re):h===")"&&j===")"&&U===0?(O=W.create("node","TeXAtom",[new ro.default(H.slice(k,re-2),{},W.configuration).mml()]),Y.push(O),j="",k=re):h.match(/[${}\\]/)&&j===""&&(re--,H=H.substr(0,re-1)+H.substr(re));if(j!=="")throw new yi.default("MathNotTerminated","Math not terminated in text box")}return k<H.length&&Y.push(T(W,H.slice(k),V)),ae!=null?Y=[W.create("node","mstyle",Y,{displaystyle:!1,scriptlevel:ae})]:Y.length>1&&(Y=[W.create("node","mrow",Y)]),Y}e.internalMath=y;function T(W,H,ae){H=H.replace(/^\s+/,q0.entities.nbsp).replace(/\s+$/,q0.entities.nbsp);var K=W.create("text",H);return W.create("node","mtext",[],ae,K)}e.internalText=T;function E(W,H,ae,K,L){if(e.checkMovableLimits(H),lt.default.isType(H,"munderover")&<.default.isEmbellished(H)){lt.default.setProperties(lt.default.getCoreMO(H),{lspace:0,rspace:0});var V=W.create("node","mo",[],{rspace:0});H=W.create("node","mrow",[V,H])}var Y=W.create("node","munderover",[H]);lt.default.setChild(Y,K==="over"?Y.over:Y.under,ae);var re=Y;return L&&(re=W.create("node","TeXAtom",[Y],{texClass:to.TEXCLASS.OP,movesupsub:!0})),lt.default.setProperty(re,"subsupOK",!0),re}e.underOver=E;function w(W){var H=lt.default.isType(W,"mo")?lt.default.getForm(W):null;(lt.default.getProperty(W,"movablelimits")||H&&H[3]&&H[3].movablelimits)&<.default.setProperties(W,{movablelimits:!1})}e.checkMovableLimits=w;function x(W){if(typeof W!="string")return W;var H=W.trim();return H.match(/\\$/)&&W.match(/ $/)&&(H+=" "),H}e.trimSpaces=x;function D(W,H){return H=e.trimSpaces(H||""),H==="t"?W.arraydef.align="baseline 1":H==="b"?W.arraydef.align="baseline -1":H==="c"?W.arraydef.align="axis":H&&(W.arraydef.align=H),W}e.setArrayAlign=D;function B(W,H,ae){for(var K="",L="",V=0;V<ae.length;){var Y=ae.charAt(V++);if(Y==="\\")K+=Y+ae.charAt(V++);else if(Y==="#")if(Y=ae.charAt(V++),Y==="#")K+=Y;else{if(!Y.match(/[1-9]/)||parseInt(Y,10)>H.length)throw new yi.default("IllegalMacroParam","Illegal macro parameter reference");L=P(W,P(W,L,K),H[parseInt(Y,10)-1]),K=""}else K+=Y}return P(W,L,K)}e.substituteArgs=B;function P(W,H,ae){if(ae.match(/^[a-z]/i)&&H.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i)&&(H+=" "),H.length+ae.length>W.configuration.options.maxBuffer)throw new yi.default("MaxBufferSize","MathJax internal buffer size exceeded; is there a recursive macro call?");return H+ae}e.addArgs=P;function I(W,H){if(H===void 0&&(H=!0),!(++W.macroCount<=W.configuration.options.maxMacros))throw H?new yi.default("MaxMacroSub1","MathJax maximum macro substitution count exceeded; is here a recursive macro call?"):new yi.default("MaxMacroSub2","MathJax maximum substitution count exceeded; is there a recursive latex environment?")}e.checkMaxMacros=I;function Z(W){if(W.stack.global.eqnenv)throw new yi.default("ErroneousNestingEq","Erroneous nesting of equation structures");W.stack.global.eqnenv=!0}e.checkEqnEnv=Z;function oe(W,H){var ae=W.copy(),K=H.configuration;return ae.walkTree(function(L){var V,Y;K.addNode(L.kind,L);var re=(L.getProperty("in-lists")||"").split(/,/);try{for(var k=F0(re),h=k.next();!h.done;h=k.next()){var O=h.value;O&&K.addNode(O,L)}}catch(j){V={error:j}}finally{try{h&&!h.done&&(Y=k.return)&&Y.call(k)}finally{if(V)throw V.error}}}),ae}e.copyNode=oe;function R(W,H,ae){return ae}e.MmlFilterAttribute=R;function z(W){var H=W.stack.env.font;return H?{mathvariant:H}:{}}e.getFontDef=z;function C(W,H,ae){var K,L;H===void 0&&(H=null),ae===void 0&&(ae=!1);var V=J(W);if(H)try{for(var Y=F0(Object.keys(V)),re=Y.next();!re.done;re=Y.next()){var k=re.value;if(!H.hasOwnProperty(k)){if(ae)throw new yi.default("InvalidOption","Invalid option: %1",k);delete V[k]}}}catch(h){K={error:h}}finally{try{re&&!re.done&&(L=Y.return)&&L.call(Y)}finally{if(K)throw K.error}}return V}e.keyvalOptions=C;function J(W){for(var H,ae,K={},L=W,V,Y,re;L;)H=fc(X(L,["=",","]),3),Y=H[0],V=H[1],L=H[2],V==="="?(ae=fc(X(L,[","]),3),re=ae[0],V=ae[1],L=ae[2],re=re==="false"||re==="true"?JSON.parse(re):re,K[Y]=re):Y&&(K[Y]=!0);return K}function te(W,H){for(;H>0;)W=W.trim().slice(1,-1),H--;return W.trim()}function X(W,H){for(var ae=W.length,K=0,L="",V=0,Y=0,re=!0,k=!1;V<ae;){var h=W[V++];switch(h){case" ":break;case"{":re?Y++:(k=!1,Y>K&&(Y=K)),K++;break;case"}":K&&K--,(re||k)&&(Y--,k=!0),re=!1;break;default:if(!K&&H.indexOf(h)!==-1)return[k?"true":te(L,Y),h,W.slice(V)];re=!1,k=!1}L+=h}if(K)throw new yi.default("ExtraOpenMissingClose","Extra open brace or missing close brace");return[k?"true":te(L,Y),"",W.slice(V)]}})(gy||(gy={}));Jn.default=gy});var _y=ee(Hr=>{"use strict";var iP=Hr&&Hr.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},U0=Hr&&Hr.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},aP=Hr&&Hr.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},oP=Hr&&Hr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Hr,"__esModule",{value:!0});var sP=oP(st()),lP=(function(){function e(t,r,n){this._factory=t,this._env=r,this.global={},this.stack=[],this.global={isInner:n},this.stack=[this._factory.create("start",this.global)],r&&(this.stack[0].env=r),this.env=this.stack[0].env}return Object.defineProperty(e.prototype,"env",{get:function(){return this._env},set:function(t){this._env=t},enumerable:!1,configurable:!0}),e.prototype.Push=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];try{for(var a=iP(n),o=a.next();!o.done;o=a.next()){var s=o.value;if(s){var l=sP.default.isNode(s)?this._factory.create("mml",s):s;l.global=this.global;var c=U0(this.stack.length?this.Top().checkItem(l):[null,!0],2),d=c[0],f=c[1];if(f){if(d){this.Pop(),this.Push.apply(this,aP([],U0(d),!1));continue}this.stack.push(l),l.env?(l.copyEnv&&Object.assign(l.env,this.env),this.env=l.env):l.env=this.env}}}}catch(m){t={error:m}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}},e.prototype.Pop=function(){var t=this.stack.pop();return t.isOpen||delete t.env,this.env=this.stack.length?this.Top().env:{},t},e.prototype.Top=function(t){return t===void 0&&(t=1),this.stack.length<t?null:this.stack[this.stack.length-t]},e.prototype.Prev=function(t){var r=this.Top();return t?r.First:r.Pop()},e.prototype.toString=function(){return`stack[
|
|
2
|
+
`+this.stack.join(`
|
|
3
|
+
`)+`
|
|
4
|
+
]`},e})();Hr.default=lP});var jt=ee(zr=>{"use strict";var vy=zr&&zr.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},by=zr&&zr.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},cP=zr&&zr.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},Ey=zr&&zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zr,"__esModule",{value:!0});var wy=Ey(Qe()),uP=Ey(_y()),un=Ey($e()),dP=Te(),fP=(function(){function e(t,r,n){var i,a;this._string=t,this.configuration=n,this.macroCount=0,this.i=0,this.currentCS="";var o=r.hasOwnProperty("isInner"),s=r.isInner;delete r.isInner;var l;if(r){l={};try{for(var c=vy(Object.keys(r)),d=c.next();!d.done;d=c.next()){var f=d.value;l[f]=r[f]}}catch(m){i={error:m}}finally{try{d&&!d.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}}this.configuration.pushParser(this),this.stack=new uP.default(this.itemFactory,l,o?s:!0),this.Parse(),this.Push(this.itemFactory.create("stop"))}return Object.defineProperty(e.prototype,"options",{get:function(){return this.configuration.options},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemFactory",{get:function(){return this.configuration.itemFactory},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tags",{get:function(){return this.configuration.tags},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"string",{get:function(){return this._string},set:function(t){this._string=t},enumerable:!1,configurable:!0}),e.prototype.parse=function(t,r){return this.configuration.handlers.get(t).parse(r)},e.prototype.lookup=function(t,r){return this.configuration.handlers.get(t).lookup(r)},e.prototype.contains=function(t,r){return this.configuration.handlers.get(t).contains(r)},e.prototype.toString=function(){var t,r,n="";try{for(var i=vy(Array.from(this.configuration.handlers.keys())),a=i.next();!a.done;a=i.next()){var o=a.value;n+=o+": "+this.configuration.handlers.get(o)+`
|
|
5
|
+
`}}catch(s){t={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype.Parse=function(){for(var t;this.i<this.string.length;)t=this.getCodePoint(),this.i+=t.length,this.parse("character",[this,t])},e.prototype.Push=function(t){t instanceof dP.AbstractMmlNode&&t.isInferred?this.PushAll(t.childNodes):this.stack.Push(t)},e.prototype.PushAll=function(t){var r,n;try{for(var i=vy(t),a=i.next();!a.done;a=i.next()){var o=a.value;this.stack.Push(o)}}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.mml=function(){if(!this.stack.Top().isKind("mml"))return null;var t=this.stack.Top().First;return this.configuration.popParser(),t},e.prototype.convertDelimiter=function(t){var r=this.lookup("delimiter",t);return r?r.char:null},e.prototype.getCodePoint=function(){var t=this.string.codePointAt(this.i);return t===void 0?"":String.fromCodePoint(t)},e.prototype.nextIsSpace=function(){return!!this.string.charAt(this.i).match(/\s/)},e.prototype.GetNext=function(){for(;this.nextIsSpace();)this.i++;return this.getCodePoint()},e.prototype.GetCS=function(){var t=this.string.slice(this.i).match(/^(([a-z]+) ?|[\uD800-\uDBFF].|.)/i);return t?(this.i+=t[0].length,t[2]||t[1]):(this.i++," ")},e.prototype.GetArgument=function(t,r){switch(this.GetNext()){case"":if(!r)throw new un.default("MissingArgFor","Missing argument for %1",this.currentCS);return null;case"}":if(!r)throw new un.default("ExtraCloseMissingOpen","Extra close brace or missing open brace");return null;case"\\":return this.i++,"\\"+this.GetCS();case"{":for(var n=++this.i,i=1;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"\\":this.i++;break;case"{":i++;break;case"}":if(--i===0)return this.string.slice(n,this.i-1);break}throw new un.default("MissingCloseBrace","Missing close brace")}var a=this.getCodePoint();return this.i+=a.length,a},e.prototype.GetBrackets=function(t,r){if(this.GetNext()!=="[")return r;for(var n=++this.i,i=0;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"{":i++;break;case"\\":this.i++;break;case"}":if(i--<=0)throw new un.default("ExtraCloseLooking","Extra close brace while looking for %1","']'");break;case"]":if(i===0)return this.string.slice(n,this.i-1);break}throw new un.default("MissingCloseBracket","Could not find closing ']' for argument to %1",this.currentCS)},e.prototype.GetDelimiter=function(t,r){var n=this.GetNext();if(this.i+=n.length,this.i<=this.string.length&&(n==="\\"?n+=this.GetCS():n==="{"&&r&&(this.i--,n=this.GetArgument(t).trim()),this.contains("delimiter",n)))return this.convertDelimiter(n);throw new un.default("MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",this.currentCS)},e.prototype.GetDimen=function(t){if(this.GetNext()==="{"){var r=this.GetArgument(t),n=by(wy.default.matchDimen(r),2),i=n[0],a=n[1];if(i)return i+a}else{var r=this.string.slice(this.i),o=by(wy.default.matchDimen(r,!0),3),i=o[0],a=o[1],s=o[2];if(i)return this.i+=s,i+a}throw new un.default("MissingDimOrUnits","Missing dimension or its units for %1",this.currentCS)},e.prototype.GetUpTo=function(t,r){for(;this.nextIsSpace();)this.i++;for(var n=this.i,i=0;this.i<this.string.length;){var a=this.i,o=this.GetNext();switch(this.i+=o.length,o){case"\\":o+=this.GetCS();break;case"{":i++;break;case"}":if(i===0)throw new un.default("ExtraCloseLooking","Extra close brace while looking for %1",r);i--;break}if(i===0&&o===r)return this.string.slice(n,a)}throw new un.default("TokenNotFoundForCommand","Could not find %1 for %2",r,this.currentCS)},e.prototype.ParseArg=function(t){return new e(this.GetArgument(t),this.stack.env,this.configuration).mml()},e.prototype.ParseUpTo=function(t,r){return new e(this.GetUpTo(t,r),this.stack.env,this.configuration).mml()},e.prototype.GetDelimiterArg=function(t){var r=wy.default.trimSpaces(this.GetArgument(t));if(r==="")return null;if(this.contains("delimiter",r))return r;throw new un.default("MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",this.currentCS)},e.prototype.GetStar=function(){var t=this.GetNext()==="*";return t&&this.i++,t},e.prototype.create=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return(r=this.configuration.nodeFactory).create.apply(r,cP([t],by(n),!1))},e})();zr.default=fP});var ga=ee(Ut=>{"use strict";var mP=Ut&&Ut.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ay=Ut&&Ut.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},H0=Ut&&Ut.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},hP=Ut&&Ut.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},pP=Ut&&Ut.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ut,"__esModule",{value:!0});Ut.BaseItem=Ut.MmlStack=void 0;var z0=pP($e()),G0=(function(){function e(t){this._nodes=t}return Object.defineProperty(e.prototype,"nodes",{get:function(){return this._nodes},enumerable:!1,configurable:!0}),e.prototype.Push=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];(t=this._nodes).push.apply(t,H0([],Ay(r),!1))},e.prototype.Pop=function(){return this._nodes.pop()},Object.defineProperty(e.prototype,"First",{get:function(){return this._nodes[this.Size()-1]},set:function(t){this._nodes[this.Size()-1]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Last",{get:function(){return this._nodes[0]},set:function(t){this._nodes[0]=t},enumerable:!1,configurable:!0}),e.prototype.Peek=function(t){return t==null&&(t=1),this._nodes.slice(this.Size()-t)},e.prototype.Size=function(){return this._nodes.length},e.prototype.Clear=function(){this._nodes=[]},e.prototype.toMml=function(t,r){return t===void 0&&(t=!0),this._nodes.length===1&&!r?this.First:this.create("node",t?"inferredMrow":"mrow",this._nodes,{})},e.prototype.create=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return(r=this.factory.configuration.nodeFactory).create.apply(r,H0([t],Ay(n),!1))},e})();Ut.MmlStack=G0;var gP=(function(e){mP(t,e);function t(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var a=e.call(this,n)||this;return a.factory=r,a.global={},a._properties={},a.isOpen&&(a._env={}),a}return Object.defineProperty(t.prototype,"kind",{get:function(){return"base"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"env",{get:function(){return this._env},set:function(r){this._env=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyEnv",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProperty=function(r){return this._properties[r]},t.prototype.setProperty=function(r,n){return this._properties[r]=n,this},Object.defineProperty(t.prototype,"isOpen",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFinal",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.isKind=function(r){return r===this.kind},t.prototype.checkItem=function(r){if(r.isKind("over")&&this.isOpen&&(r.setProperty("num",this.toMml(!1)),this.Clear()),r.isKind("cell")&&this.isOpen){if(r.getProperty("linebreak"))return t.fail;throw new z0.default("Misplaced","Misplaced %1",r.getName())}if(r.isClose&&this.getErrors(r.kind)){var n=Ay(this.getErrors(r.kind),2),i=n[0],a=n[1];throw new z0.default(i,a,r.getName())}return r.isFinal?(this.Push(r.First),t.fail):t.success},t.prototype.clearEnv=function(){var r,n;try{for(var i=hP(Object.keys(this.env)),a=i.next();!a.done;a=i.next()){var o=a.value;delete this.env[o]}}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},t.prototype.setProperties=function(r){return Object.assign(this._properties,r),this},t.prototype.getName=function(){return this.getProperty("name")},t.prototype.toString=function(){return this.kind+"["+this.nodes.join("; ")+"]"},t.prototype.getErrors=function(r){var n=this.constructor;return(n.errors||{})[r]||t.errors[r]},t.fail=[null,!1],t.success=[null,!0],t.errors={end:["MissingBeginExtraEnd","Missing \\begin{%1} or extra \\end{%1}"],close:["ExtraCloseMissingOpen","Extra close brace or missing open brace"],right:["MissingLeftExtraRight","Missing \\left or extra \\right"],middle:["ExtraMiddle","Extra \\middle"]},t})(G0);Ut.BaseItem=gP});var Oy=ee(dn=>{"use strict";var yP=dn&&dn.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},W0=dn&&dn.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},K0=dn&&dn.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(dn,"__esModule",{value:!0});dn.AbstractFactory=void 0;var _P=(function(){function e(t){var r,n;t===void 0&&(t=null),this.defaultKind="unknown",this.nodeMap=new Map,this.node={},t===null&&(t=this.constructor.defaultNodes);try{for(var i=yP(Object.keys(t)),a=i.next();!a.done;a=i.next()){var o=a.value;this.setNodeClass(o,t[o])}}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}return e.prototype.create=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(this.node[t]||this.node[this.defaultKind]).apply(void 0,K0([],W0(r),!1))},e.prototype.setNodeClass=function(t,r){this.nodeMap.set(t,r);var n=this,i=this.nodeMap.get(t);this.node[t]=function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return new(i.bind.apply(i,K0([void 0,n],W0(a),!1)))}},e.prototype.getNodeClass=function(t){return this.nodeMap.get(t)},e.prototype.deleteNodeClass=function(t){this.nodeMap.delete(t),delete this.node[t]},e.prototype.nodeIsKind=function(t,r){return t instanceof this.getNodeClass(r)},e.prototype.getKinds=function(){return Array.from(this.nodeMap.keys())},e.defaultNodes={},e})();dn.AbstractFactory=_P});var V0=ee(Os=>{"use strict";var $0=Os&&Os.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ty;Object.defineProperty(Os,"__esModule",{value:!0});var vP=ga(),bP=Oy(),X0=(function(e){$0(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(vP.BaseItem),wP=(function(e){$0(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.defaultKind="dummy",r.configuration=null,r}return t.DefaultStackItems=(Ty={},Ty[X0.prototype.kind]=X0,Ty),t})(bP.AbstractFactory);Os.default=wP});var mc=ee(fn=>{"use strict";var EP=fn&&fn.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},AP=fn&&fn.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},OP=fn&&fn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fn,"__esModule",{value:!0});fn.NodeFactory=void 0;var TP=OP(st()),SP=(function(){function e(){this.mmlFactory=null,this.factory={node:e.createNode,token:e.createToken,text:e.createText,error:e.createError}}return e.createNode=function(t,r,n,i,a){n===void 0&&(n=[]),i===void 0&&(i={});var o=t.mmlFactory.create(r);return o.setChildren(n),a&&o.appendChild(a),TP.default.setProperties(o,i),o},e.createToken=function(t,r,n,i){n===void 0&&(n={}),i===void 0&&(i="");var a=t.create("text",i);return t.create("node",r,[],n,a)},e.createText=function(t,r){return r==null?null:t.mmlFactory.create("text").setText(r)},e.createError=function(t,r){var n=t.create("text",r),i=t.create("node","mtext",[],{},n),a=t.create("node","merror",[i],{"data-mjx-error":r});return a},e.prototype.setMmlFactory=function(t){this.mmlFactory=t},e.prototype.set=function(t,r){this.factory[t]=r},e.prototype.setCreators=function(t){for(var r in t)this.set(r,t[r])},e.prototype.create=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=this.factory[t]||this.factory.node,a=i.apply(void 0,AP([this,r[0]],EP(r.slice(1)),!1));return t==="node"&&this.configuration.addNode(r[0],a),a},e.prototype.get=function(t){return this.factory[t]},e})();fn.NodeFactory=SP});var Sy=ee(Gr=>{"use strict";var xP=Gr&&Gr.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},MP=Gr&&Gr.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},Y0=Gr&&Gr.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Q0=Gr&&Gr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gr,"__esModule",{value:!0});var CP=Q0(V0()),kP=mc(),Z0=Q0(st()),J0=It(),NP=(function(){function e(t,r){r===void 0&&(r=[]),this.options={},this.packageData=new Map,this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.handlers=t.handlers,this.nodeFactory=new kP.NodeFactory,this.nodeFactory.configuration=this,this.nodeFactory.setCreators(t.nodes),this.itemFactory=new CP.default(t.items),this.itemFactory.configuration=this,J0.defaultOptions.apply(void 0,MP([this.options],xP(r),!1)),(0,J0.defaultOptions)(this.options,t.options)}return e.prototype.pushParser=function(t){this.parsers.unshift(t)},e.prototype.popParser=function(){this.parsers.shift()},Object.defineProperty(e.prototype,"parser",{get:function(){return this.parsers[0]},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.tags.resetTag()},e.prototype.addNode=function(t,r){var n=this.nodeLists[t];if(n||(n=this.nodeLists[t]=[]),n.push(r),r.kind!==t){var i=Z0.default.getProperty(r,"in-lists")||"",a=(i?i.split(/,/):[]).concat(t).join(",");Z0.default.setProperty(r,"in-lists",a)}},e.prototype.getList=function(t){var r,n,i=this.nodeLists[t]||[],a=[];try{for(var o=Y0(i),s=o.next();!s.done;s=o.next()){var l=s.value;this.inTree(l)&&a.push(l)}}catch(c){r={error:c}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return this.nodeLists[t]=a,a},e.prototype.removeFromList=function(t,r){var n,i,a=this.nodeLists[t]||[];try{for(var o=Y0(r),s=o.next();!s.done;s=o.next()){var l=s.value,c=a.indexOf(l);c>=0&&a.splice(c,1)}}catch(d){n={error:d}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype.inTree=function(t){for(;t&&t!==this.root;)t=t.parent;return!!t},e})();Gr.default=NP});var Qn=ee(yt=>{"use strict";var eA=yt&&yt.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),IP=yt&&yt.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},PP=yt&&yt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yt,"__esModule",{value:!0});yt.TagsFactory=yt.AllTags=yt.NoTags=yt.AbstractTags=yt.TagInfo=yt.Label=void 0;var jP=PP(jt()),tA=(function(){function e(t,r){t===void 0&&(t="???"),r===void 0&&(r=""),this.tag=t,this.id=r}return e})();yt.Label=tA;var hc=(function(){function e(t,r,n,i,a,o,s,l){t===void 0&&(t=""),r===void 0&&(r=!1),n===void 0&&(n=!1),i===void 0&&(i=null),a===void 0&&(a=""),o===void 0&&(o=""),s===void 0&&(s=!1),l===void 0&&(l=""),this.env=t,this.taggable=r,this.defaultTags=n,this.tag=i,this.tagId=a,this.tagFormat=o,this.noTag=s,this.labelId=l}return e})();yt.TagInfo=hc;var xy=(function(){function e(){this.counter=0,this.allCounter=0,this.configuration=null,this.ids={},this.allIds={},this.labels={},this.allLabels={},this.redo=!1,this.refUpdate=!1,this.currentTag=new hc,this.history=[],this.stack=[],this.enTag=function(t,r){var n=this.configuration.nodeFactory,i=n.create("node","mtd",[t]),a=n.create("node","mlabeledtr",[r,i]),o=n.create("node","mtable",[a],{side:this.configuration.options.tagSide,minlabelspacing:this.configuration.options.tagIndent,displaystyle:!0});return o}}return e.prototype.start=function(t,r,n){this.currentTag&&this.stack.push(this.currentTag),this.currentTag=new hc(t,r,n)},Object.defineProperty(e.prototype,"env",{get:function(){return this.currentTag.env},enumerable:!1,configurable:!0}),e.prototype.end=function(){this.history.push(this.currentTag),this.currentTag=this.stack.pop()},e.prototype.tag=function(t,r){this.currentTag.tag=t,this.currentTag.tagFormat=r?t:this.formatTag(t),this.currentTag.noTag=!1},e.prototype.notag=function(){this.tag("",!0),this.currentTag.noTag=!0},Object.defineProperty(e.prototype,"noTag",{get:function(){return this.currentTag.noTag},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this.currentTag.labelId},set:function(t){this.currentTag.labelId=t},enumerable:!1,configurable:!0}),e.prototype.formatUrl=function(t,r){return r+"#"+encodeURIComponent(t)},e.prototype.formatTag=function(t){return"("+t+")"},e.prototype.formatId=function(t){return"mjx-eqn:"+t.replace(/\s/g,"_")},e.prototype.formatNumber=function(t){return t.toString()},e.prototype.autoTag=function(){this.currentTag.tag==null&&(this.counter++,this.tag(this.formatNumber(this.counter),!1))},e.prototype.clearTag=function(){this.label="",this.tag(null,!0),this.currentTag.tagId=""},e.prototype.getTag=function(t){if(t===void 0&&(t=!1),t)return this.autoTag(),this.makeTag();var r=this.currentTag;return r.taggable&&!r.noTag&&(r.defaultTags&&this.autoTag(),r.tag)?this.makeTag():null},e.prototype.resetTag=function(){this.history=[],this.redo=!1,this.refUpdate=!1,this.clearTag()},e.prototype.reset=function(t){t===void 0&&(t=0),this.resetTag(),this.counter=this.allCounter=t,this.allLabels={},this.allIds={}},e.prototype.startEquation=function(t){this.history=[],this.stack=[],this.clearTag(),this.currentTag=new hc("",void 0,void 0),this.labels={},this.ids={},this.counter=this.allCounter,this.redo=!1;var r=t.inputData.recompile;r&&(this.refUpdate=!0,this.counter=r.counter)},e.prototype.finishEquation=function(t){this.redo&&(t.inputData.recompile={state:t.state(),counter:this.allCounter}),this.refUpdate||(this.allCounter=this.counter),Object.assign(this.allIds,this.ids),Object.assign(this.allLabels,this.labels)},e.prototype.finalize=function(t,r){if(!r.display||this.currentTag.env||this.currentTag.tag==null)return t;var n=this.makeTag(),i=this.enTag(t,n);return i},e.prototype.makeId=function(){this.currentTag.tagId=this.formatId(this.configuration.options.useLabelIds?this.label||this.currentTag.tag:this.currentTag.tag)},e.prototype.makeTag=function(){this.makeId(),this.label&&(this.labels[this.label]=new tA(this.currentTag.tag,this.currentTag.tagId));var t=new jP.default("\\text{"+this.currentTag.tagFormat+"}",{},this.configuration).mml();return this.configuration.nodeFactory.create("node","mtd",[t],{id:this.currentTag.tagId})},e})();yt.AbstractTags=xy;var rA=(function(e){eA(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.autoTag=function(){},t.prototype.getTag=function(){return this.currentTag.tag?e.prototype.getTag.call(this):null},t})(xy);yt.NoTags=rA;var nA=(function(e){eA(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.finalize=function(r,n){if(!n.display||this.history.find(function(a){return a.taggable}))return r;var i=this.getTag(!0);return this.enTag(r,i)},t})(xy);yt.AllTags=nA;var RP;(function(e){var t=new Map([["none",rA],["all",nA]]),r="none";e.OPTIONS={tags:r,tagSide:"right",tagIndent:"0.8em",useLabelIds:!0,ignoreDuplicateLabels:!1},e.add=function(n,i){t.set(n,i)},e.addTags=function(n){var i,a;try{for(var o=IP(Object.keys(n)),s=o.next();!s.done;s=o.next()){var l=s.value;e.add(l,n[l])}}catch(c){i={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}},e.create=function(n){var i=t.get(n)||t.get(r);if(!i)throw Error("Unknown tags class");return new i},e.setDefault=function(n){r=n},e.getDefault=function(){return e.create(r)}})(RP=yt.TagsFactory||(yt.TagsFactory={}))});var Ts=ee(cr=>{"use strict";var ya=cr&&cr.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},LP=cr&&cr.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a};Object.defineProperty(cr,"__esModule",{value:!0});cr.SubHandlers=cr.SubHandler=cr.MapHandler=void 0;var My=Xa(),DP=ws(),iA;(function(e){var t=new Map;e.register=function(r){t.set(r.name,r)},e.getMap=function(r){return t.get(r)}})(iA=cr.MapHandler||(cr.MapHandler={}));var aA=(function(){function e(){this._configuration=new My.PrioritizedList,this._fallback=new DP.FunctionList}return e.prototype.add=function(t,r,n){var i,a;n===void 0&&(n=My.PrioritizedList.DEFAULTPRIORITY);try{for(var o=ya(t.slice().reverse()),s=o.next();!s.done;s=o.next()){var l=s.value,c=iA.getMap(l);if(!c){this.warn("Configuration "+l+" not found! Omitted.");return}this._configuration.add(c,n)}}catch(d){i={error:d}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}r&&this._fallback.add(r,n)},e.prototype.parse=function(t){var r,n;try{for(var i=ya(this._configuration),a=i.next();!a.done;a=i.next()){var o=a.value.item,s=o.parse(t);if(s)return s}}catch(f){r={error:f}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}var l=LP(t,2),c=l[0],d=l[1];Array.from(this._fallback)[0].item(c,d)},e.prototype.lookup=function(t){var r=this.applicable(t);return r?r.lookup(t):null},e.prototype.contains=function(t){return!!this.applicable(t)},e.prototype.toString=function(){var t,r,n=[];try{for(var i=ya(this._configuration),a=i.next();!a.done;a=i.next()){var o=a.value.item;n.push(o.name)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n.join(", ")},e.prototype.applicable=function(t){var r,n;try{for(var i=ya(this._configuration),a=i.next();!a.done;a=i.next()){var o=a.value.item;if(o.contains(t))return o}}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return null},e.prototype.retrieve=function(t){var r,n;try{for(var i=ya(this._configuration),a=i.next();!a.done;a=i.next()){var o=a.value.item;if(o.name===t)return o}}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return null},e.prototype.warn=function(t){console.log("TexParser Warning: "+t)},e})();cr.SubHandler=aA;var BP=(function(){function e(){this.map=new Map}return e.prototype.add=function(t,r,n){var i,a;n===void 0&&(n=My.PrioritizedList.DEFAULTPRIORITY);try{for(var o=ya(Object.keys(t)),s=o.next();!s.done;s=o.next()){var l=s.value,c=l,d=this.get(c);d||(d=new aA,this.set(c,d)),d.add(t[c],r[c],n)}}catch(f){i={error:f}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}},e.prototype.set=function(t,r){this.map.set(t,r)},e.prototype.get=function(t){return this.map.get(t)},e.prototype.retrieve=function(t){var r,n;try{for(var i=ya(this.map.values()),a=i.next();!a.done;a=i.next()){var o=a.value,s=o.retrieve(t);if(s)return s}}catch(l){r={error:l}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return null},e.prototype.keys=function(){return this.map.keys()},e})();cr.SubHandlers=BP});var ze=ee(ur=>{"use strict";var no=ur&&ur.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},oA=ur&&ur.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a};Object.defineProperty(ur,"__esModule",{value:!0});ur.ParserConfiguration=ur.ConfigurationHandler=ur.Configuration=void 0;var Cy=It(),FP=Ts(),sA=ws(),lA=Xa(),qP=Qn(),UP=(function(){function e(t,r,n,i,a,o,s,l,c,d,f,m,p){r===void 0&&(r={}),n===void 0&&(n={}),i===void 0&&(i={}),a===void 0&&(a={}),o===void 0&&(o={}),s===void 0&&(s={}),l===void 0&&(l=[]),c===void 0&&(c=[]),d===void 0&&(d=null),f===void 0&&(f=null),this.name=t,this.handler=r,this.fallback=n,this.items=i,this.tags=a,this.options=o,this.nodes=s,this.preprocessors=l,this.postprocessors=c,this.initMethod=d,this.configMethod=f,this.priority=m,this.parser=p,this.handler=Object.assign({character:[],delimiter:[],macro:[],environment:[]},r)}return e.makeProcessor=function(t,r){return Array.isArray(t)?t:[t,r]},e._create=function(t,r){var n=this;r===void 0&&(r={});var i=r.priority||lA.PrioritizedList.DEFAULTPRIORITY,a=r.init?this.makeProcessor(r.init,i):null,o=r.config?this.makeProcessor(r.config,i):null,s=(r.preprocessors||[]).map(function(d){return n.makeProcessor(d,i)}),l=(r.postprocessors||[]).map(function(d){return n.makeProcessor(d,i)}),c=r.parser||"tex";return new e(t,r.handler||{},r.fallback||{},r.items||{},r.tags||{},r.options||{},r.nodes||{},s,l,a,o,i,c)},e.create=function(t,r){r===void 0&&(r={});var n=e._create(t,r);return ky.set(t,n),n},e.local=function(t){return t===void 0&&(t={}),e._create("",t)},Object.defineProperty(e.prototype,"init",{get:function(){return this.initMethod?this.initMethod[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"config",{get:function(){return this.configMethod?this.configMethod[0]:null},enumerable:!1,configurable:!0}),e})();ur.Configuration=UP;var ky;(function(e){var t=new Map;e.set=function(r,n){t.set(r,n)},e.get=function(r){return t.get(r)},e.keys=function(){return t.keys()}})(ky=ur.ConfigurationHandler||(ur.ConfigurationHandler={}));var HP=(function(){function e(t,r){var n,i,a,o;r===void 0&&(r=["tex"]),this.initMethod=new sA.FunctionList,this.configMethod=new sA.FunctionList,this.configurations=new lA.PrioritizedList,this.parsers=[],this.handlers=new FP.SubHandlers,this.items={},this.tags={},this.options={},this.nodes={},this.parsers=r;try{for(var s=no(t.slice().reverse()),l=s.next();!l.done;l=s.next()){var c=l.value;this.addPackage(c)}}catch(v){n={error:v}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}try{for(var d=no(this.configurations),f=d.next();!f.done;f=d.next()){var m=f.value,p=m.item,b=m.priority;this.append(p,b)}}catch(v){a={error:v}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}}return e.prototype.init=function(){this.initMethod.execute(this)},e.prototype.config=function(t){var r,n;this.configMethod.execute(this,t);try{for(var i=no(this.configurations),a=i.next();!a.done;a=i.next()){var o=a.value;this.addFilters(t,o.item)}}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.addPackage=function(t){var r=typeof t=="string"?t:t[0],n=this.getPackage(r);n&&this.configurations.add(n,typeof t=="string"?n.priority:t[1])},e.prototype.add=function(t,r,n){var i,a;n===void 0&&(n={});var o=this.getPackage(t);this.append(o),this.configurations.add(o,o.priority),this.init();var s=r.parseOptions;s.nodeFactory.setCreators(o.nodes);try{for(var l=no(Object.keys(o.items)),c=l.next();!c.done;c=l.next()){var d=c.value;s.itemFactory.setNodeClass(d,o.items[d])}}catch(f){i={error:f}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}qP.TagsFactory.addTags(o.tags),(0,Cy.defaultOptions)(s.options,o.options),(0,Cy.userOptions)(s.options,n),this.addFilters(r,o),o.config&&o.config(this,r)},e.prototype.getPackage=function(t){var r=ky.get(t);if(r&&this.parsers.indexOf(r.parser)<0)throw Error("Package ".concat(t," doesn't target the proper parser"));return r},e.prototype.append=function(t,r){r=r||t.priority,t.initMethod&&this.initMethod.add(t.initMethod[0],t.initMethod[1]),t.configMethod&&this.configMethod.add(t.configMethod[0],t.configMethod[1]),this.handlers.add(t.handler,t.fallback,r),Object.assign(this.items,t.items),Object.assign(this.tags,t.tags),(0,Cy.defaultOptions)(this.options,t.options),Object.assign(this.nodes,t.nodes)},e.prototype.addFilters=function(t,r){var n,i,a,o;try{for(var s=no(r.preprocessors),l=s.next();!l.done;l=s.next()){var c=oA(l.value,2),d=c[0],f=c[1];t.preFilters.add(d,f)}}catch(A){n={error:A}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}try{for(var m=no(r.postprocessors),p=m.next();!p.done;p=m.next()){var b=oA(p.value,2),v=b[0],f=b[1];t.postFilters.add(v,f)}}catch(A){a={error:A}}finally{try{p&&!p.done&&(o=m.return)&&o.call(m)}finally{if(a)throw a.error}}},e})();ur.ParserConfiguration=HP});var _a=ee(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.Macro=io.Symbol=void 0;var zP=(function(){function e(t,r,n){this._symbol=t,this._char=r,this._attributes=n}return Object.defineProperty(e.prototype,"symbol",{get:function(){return this._symbol},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"char",{get:function(){return this._char},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){return this._attributes},enumerable:!1,configurable:!0}),e})();io.Symbol=zP;var GP=(function(){function e(t,r,n){n===void 0&&(n=[]),this._symbol=t,this._func=r,this._args=n}return Object.defineProperty(e.prototype,"symbol",{get:function(){return this._symbol},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"func",{get:function(){return this._func},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"args",{get:function(){return this._args},enumerable:!1,configurable:!0}),e})();io.Macro=GP});var He=ee(et=>{"use strict";var va=et&&et.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),ei=et&&et.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},cA=et&&et.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},uA=et&&et.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(et,"__esModule",{value:!0});et.EnvironmentMap=et.CommandMap=et.MacroMap=et.DelimiterMap=et.CharacterMap=et.AbstractParseMap=et.RegExpMap=et.AbstractSymbolMap=et.parseResult=void 0;var dA=_a(),WP=Ts();function Ss(e){return e===void 0?!0:e}et.parseResult=Ss;var Ny=(function(){function e(t,r){this._name=t,this._parser=r,WP.MapHandler.register(this)}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e.prototype.parserFor=function(t){return this.contains(t)?this.parser:null},e.prototype.parse=function(t){var r=ei(t,2),n=r[0],i=r[1],a=this.parserFor(i),o=this.lookup(i);return a&&o?Ss(a(n,o)):null},Object.defineProperty(e.prototype,"parser",{get:function(){return this._parser},set:function(t){this._parser=t},enumerable:!1,configurable:!0}),e})();et.AbstractSymbolMap=Ny;var KP=(function(e){va(t,e);function t(r,n,i){var a=e.call(this,r,n)||this;return a._regExp=i,a}return t.prototype.contains=function(r){return this._regExp.test(r)},t.prototype.lookup=function(r){return this.contains(r)?r:null},t})(Ny);et.RegExpMap=KP;var Iy=(function(e){va(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.map=new Map,r}return t.prototype.lookup=function(r){return this.map.get(r)},t.prototype.contains=function(r){return this.map.has(r)},t.prototype.add=function(r,n){this.map.set(r,n)},t.prototype.remove=function(r){this.map.delete(r)},t})(Ny);et.AbstractParseMap=Iy;var fA=(function(e){va(t,e);function t(r,n,i){var a,o,s=e.call(this,r,n)||this;try{for(var l=cA(Object.keys(i)),c=l.next();!c.done;c=l.next()){var d=c.value,f=i[d],m=ei(typeof f=="string"?[f,null]:f,2),p=m[0],b=m[1],v=new dA.Symbol(d,p,b);s.add(d,v)}}catch(A){a={error:A}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(a)throw a.error}}return s}return t})(Iy);et.CharacterMap=fA;var XP=(function(e){va(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.parse=function(r){var n=ei(r,2),i=n[0],a=n[1];return e.prototype.parse.call(this,[i,"\\"+a])},t})(fA);et.DelimiterMap=XP;var Py=(function(e){va(t,e);function t(r,n,i){var a,o,s=e.call(this,r,null)||this;try{for(var l=cA(Object.keys(n)),c=l.next();!c.done;c=l.next()){var d=c.value,f=n[d],m=ei(typeof f=="string"?[f]:f),p=m[0],b=m.slice(1),v=new dA.Macro(d,i[p],b);s.add(d,v)}}catch(A){a={error:A}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(a)throw a.error}}return s}return t.prototype.parserFor=function(r){var n=this.lookup(r);return n?n.func:null},t.prototype.parse=function(r){var n=ei(r,2),i=n[0],a=n[1],o=this.lookup(a),s=this.parserFor(a);return!o||!s?null:Ss(s.apply(void 0,uA([i,o.symbol],ei(o.args),!1)))},t})(Iy);et.MacroMap=Py;var $P=(function(e){va(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.parse=function(r){var n=ei(r,2),i=n[0],a=n[1],o=this.lookup(a),s=this.parserFor(a);if(!o||!s)return null;var l=i.currentCS;i.currentCS="\\"+a;var c=s.apply(void 0,uA([i,"\\"+o.symbol],ei(o.args),!1));return i.currentCS=l,Ss(c)},t})(Py);et.CommandMap=$P;var VP=(function(e){va(t,e);function t(r,n,i,a){var o=e.call(this,r,i,a)||this;return o.parser=n,o}return t.prototype.parse=function(r){var n=ei(r,2),i=n[0],a=n[1],o=this.lookup(a),s=this.parserFor(a);return!o||!s?null:Ss(this.parser(i,o.symbol,s,o.args))},t})(Py);et.EnvironmentMap=VP});var mn=ee(Ee=>{"use strict";var ft=Ee&&Ee.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),pc=Ee&&Ee.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},jy=Ee&&Ee.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},Ry=Ee&&Ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ee,"__esModule",{value:!0});Ee.EquationItem=Ee.EqnArrayItem=Ee.ArrayItem=Ee.DotsItem=Ee.NonscriptItem=Ee.NotItem=Ee.FnItem=Ee.MmlItem=Ee.CellItem=Ee.PositionItem=Ee.StyleItem=Ee.EndItem=Ee.BeginItem=Ee.RightItem=Ee.Middle=Ee.LeftItem=Ee.OverItem=Ee.SubsupItem=Ee.PrimeItem=Ee.CloseItem=Ee.OpenItem=Ee.StopItem=Ee.StartItem=void 0;var YP=Ts(),ZP=eo(),ao=Te(),vi=Ry($e()),_i=Ry(Qe()),Ge=Ry(st()),Ke=ga(),JP=(function(e){ft(t,e);function t(r,n){var i=e.call(this,r)||this;return i.global=n,i}return Object.defineProperty(t.prototype,"kind",{get:function(){return"start"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("stop")){var n=this.toMml();return this.global.isInner||(n=this.factory.configuration.tags.finalize(n,this.env)),[[this.factory.create("mml",n)],!0]}return e.prototype.checkItem.call(this,r)},t})(Ke.BaseItem);Ee.StartItem=JP;var QP=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"stop"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t})(Ke.BaseItem);Ee.StopItem=QP;var ej=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"open"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("close")){var n=this.toMml(),i=this.create("node","TeXAtom",[n]);return[[this.factory.create("mml",i)],!0]}return e.prototype.checkItem.call(this,r)},t.errors=Object.assign(Object.create(Ke.BaseItem.errors),{stop:["ExtraOpenMissingClose","Extra open brace or missing close brace"]}),t})(Ke.BaseItem);Ee.OpenItem=ej;var tj=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"close"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t})(Ke.BaseItem);Ee.CloseItem=tj;var rj=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"prime"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){var n=pc(this.Peek(2),2),i=n[0],a=n[1];if(!Ge.default.isType(i,"msubsup")||Ge.default.isType(i,"msup")){var o=this.create("node","msup",[i,a]);return[[o,r],!0]}return Ge.default.setChild(i,i.sup,a),[[i,r],!0]},t})(Ke.BaseItem);Ee.PrimeItem=rj;var nj=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"subsup"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("open")||r.isKind("left"))return Ke.BaseItem.success;var n=this.First,i=this.getProperty("position");if(r.isKind("mml")){if(this.getProperty("primes"))if(i!==2)Ge.default.setChild(n,2,this.getProperty("primes"));else{Ge.default.setProperty(this.getProperty("primes"),"variantForm",!0);var a=this.create("node","mrow",[this.getProperty("primes"),r.First]);r.First=a}Ge.default.setChild(n,i,r.First),this.getProperty("movesupsub")!=null&&Ge.default.setProperty(n,"movesupsub",this.getProperty("movesupsub"));var o=this.factory.create("mml",n);return[[o],!0]}if(e.prototype.checkItem.call(this,r)[1]){var s=this.getErrors(["","sub","sup"][i]);throw new(vi.default.bind.apply(vi.default,jy([void 0,s[0],s[1]],pc(s.splice(2)),!1)))}return null},t.errors=Object.assign(Object.create(Ke.BaseItem.errors),{stop:["MissingScript","Missing superscript or subscript argument"],sup:["MissingOpenForSup","Missing open brace for superscript"],sub:["MissingOpenForSub","Missing open brace for subscript"]}),t})(Ke.BaseItem);Ee.SubsupItem=nj;var ij=(function(e){ft(t,e);function t(r){var n=e.call(this,r)||this;return n.setProperty("name","\\over"),n}return Object.defineProperty(t.prototype,"kind",{get:function(){return"over"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("over"))throw new vi.default("AmbiguousUseOf","Ambiguous use of %1",r.getName());if(r.isClose){var n=this.create("node","mfrac",[this.getProperty("num"),this.toMml(!1)]);return this.getProperty("thickness")!=null&&Ge.default.setAttribute(n,"linethickness",this.getProperty("thickness")),(this.getProperty("open")||this.getProperty("close"))&&(Ge.default.setProperty(n,"withDelims",!0),n=_i.default.fixedFence(this.factory.configuration,this.getProperty("open"),n,this.getProperty("close"))),[[this.factory.create("mml",n),r],!0]}return e.prototype.checkItem.call(this,r)},t.prototype.toString=function(){return"over["+this.getProperty("num")+" / "+this.nodes.join("; ")+"]"},t})(Ke.BaseItem);Ee.OverItem=ij;var aj=(function(e){ft(t,e);function t(r,n){var i=e.call(this,r)||this;return i.setProperty("delim",n),i}return Object.defineProperty(t.prototype,"kind",{get:function(){return"left"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("right"))return[[this.factory.create("mml",_i.default.fenced(this.factory.configuration,this.getProperty("delim"),this.toMml(),r.getProperty("delim"),"",r.getProperty("color")))],!0];if(r.isKind("middle")){var n={stretchy:!0};return r.getProperty("color")&&(n.mathcolor=r.getProperty("color")),this.Push(this.create("node","TeXAtom",[],{texClass:ao.TEXCLASS.CLOSE}),this.create("token","mo",n,r.getProperty("delim")),this.create("node","TeXAtom",[],{texClass:ao.TEXCLASS.OPEN})),this.env={},[[this],!0]}return e.prototype.checkItem.call(this,r)},t.errors=Object.assign(Object.create(Ke.BaseItem.errors),{stop:["ExtraLeftMissingRight","Extra \\left or missing \\right"]}),t})(Ke.BaseItem);Ee.LeftItem=aj;var oj=(function(e){ft(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.setProperty("delim",n),i&&a.setProperty("color",i),a}return Object.defineProperty(t.prototype,"kind",{get:function(){return"middle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t})(Ke.BaseItem);Ee.Middle=oj;var sj=(function(e){ft(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.setProperty("delim",n),i&&a.setProperty("color",i),a}return Object.defineProperty(t.prototype,"kind",{get:function(){return"right"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t})(Ke.BaseItem);Ee.RightItem=sj;var lj=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"begin"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("end")){if(r.getName()!==this.getName())throw new vi.default("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),r.getName());return this.getProperty("end")?Ke.BaseItem.fail:[[this.factory.create("mml",this.toMml())],!0]}if(r.isKind("stop"))throw new vi.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return e.prototype.checkItem.call(this,r)},t})(Ke.BaseItem);Ee.BeginItem=lj;var cj=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"end"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t})(Ke.BaseItem);Ee.EndItem=cj;var uj=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"style"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(!r.isClose)return e.prototype.checkItem.call(this,r);var n=this.create("node","mstyle",this.nodes,this.getProperty("styles"));return[[this.factory.create("mml",n),r],!0]},t})(Ke.BaseItem);Ee.StyleItem=uj;var dj=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"position"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isClose)throw new vi.default("MissingBoxFor","Missing box for %1",this.getName());if(r.isFinal){var n=r.toMml();switch(this.getProperty("move")){case"vertical":return n=this.create("node","mpadded",[n],{height:this.getProperty("dh"),depth:this.getProperty("dd"),voffset:this.getProperty("dh")}),[[this.factory.create("mml",n)],!0];case"horizontal":return[[this.factory.create("mml",this.getProperty("left")),r,this.factory.create("mml",this.getProperty("right"))],!0]}}return e.prototype.checkItem.call(this,r)},t})(Ke.BaseItem);Ee.PositionItem=dj;var fj=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"cell"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t})(Ke.BaseItem);Ee.CellItem=fj;var mj=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"isFinal",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"kind",{get:function(){return"mml"},enumerable:!1,configurable:!0}),t})(Ke.BaseItem);Ee.MmlItem=mj;var hj=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"fn"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){var n=this.First;if(n){if(r.isOpen)return Ke.BaseItem.success;if(!r.isKind("fn")){var i=r.First;if(!r.isKind("mml")||!i)return[[n,r],!0];if(Ge.default.isType(i,"mstyle")&&i.childNodes.length&&Ge.default.isType(i.childNodes[0].childNodes[0],"mspace")||Ge.default.isType(i,"mspace"))return[[n,r],!0];Ge.default.isEmbellished(i)&&(i=Ge.default.getCoreMO(i));var a=Ge.default.getForm(i);if(a!=null&&[0,0,1,1,0,1,1,0,0,0][a[2]])return[[n,r],!0]}var o=this.create("token","mo",{texClass:ao.TEXCLASS.NONE},ZP.entities.ApplyFunction);return[[n,o,r],!0]}return e.prototype.checkItem.apply(this,arguments)},t})(Ke.BaseItem);Ee.FnItem=hj;var pj=(function(e){ft(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.remap=YP.MapHandler.getMap("not_remap"),r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"not"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){var n,i,a;if(r.isKind("open")||r.isKind("left"))return Ke.BaseItem.success;if(r.isKind("mml")&&(Ge.default.isType(r.First,"mo")||Ge.default.isType(r.First,"mi")||Ge.default.isType(r.First,"mtext"))&&(n=r.First,i=Ge.default.getText(n),i.length===1&&!Ge.default.getProperty(n,"movesupsub")&&Ge.default.getChildren(n).length===1))return this.remap.contains(i)?(a=this.create("text",this.remap.lookup(i).char),Ge.default.setChild(n,0,a)):(a=this.create("text","\u0338"),Ge.default.appendChildren(n,[a])),[[r],!0];a=this.create("text","\u29F8");var o=this.create("node","mtext",[],{},a),s=this.create("node","mpadded",[o],{width:0});return n=this.create("node","TeXAtom",[s],{texClass:ao.TEXCLASS.REL}),[[n,r],!0]},t})(Ke.BaseItem);Ee.NotItem=pj;var gj=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"nonscript"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("mml")&&r.Size()===1){var n=r.First;if(n.isKind("mstyle")&&n.notParent&&(n=Ge.default.getChildren(Ge.default.getChildren(n)[0])[0]),n.isKind("mspace")){if(n!==r.First){var i=this.create("node","mrow",[r.Pop()]);r.Push(i)}this.factory.configuration.addNode("nonscript",r.First)}}return[[r],!0]},t})(Ke.BaseItem);Ee.NonscriptItem=gj;var yj=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"dots"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("open")||r.isKind("left"))return Ke.BaseItem.success;var n=this.getProperty("ldots"),i=r.First;if(r.isKind("mml")&&Ge.default.isEmbellished(i)){var a=Ge.default.getTexClass(Ge.default.getCoreMO(i));(a===ao.TEXCLASS.BIN||a===ao.TEXCLASS.REL)&&(n=this.getProperty("cdots"))}return[[n,r],!0]},t})(Ke.BaseItem);Ee.DotsItem=yj;var mA=(function(e){ft(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.table=[],r.row=[],r.frame=[],r.hfill=[],r.arraydef={},r.dashed=!1,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"array"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyEnv",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isClose&&!r.isKind("over")){if(r.getProperty("isEntry"))return this.EndEntry(),this.clearEnv(),Ke.BaseItem.fail;if(r.getProperty("isCR"))return this.EndEntry(),this.EndRow(),this.clearEnv(),Ke.BaseItem.fail;this.EndTable(),this.clearEnv();var n=this.factory.create("mml",this.createMml());if(this.getProperty("requireClose")){if(r.isKind("close"))return[[n],!0];throw new vi.default("MissingCloseBrace","Missing close brace")}return[[n,r],!0]}return e.prototype.checkItem.call(this,r)},t.prototype.createMml=function(){var r=this.arraydef.scriptlevel;delete this.arraydef.scriptlevel;var n=this.create("node","mtable",this.table,this.arraydef);return r&&n.setProperty("scriptlevel",r),this.frame.length===4?Ge.default.setAttribute(n,"frame",this.dashed?"dashed":"solid"):this.frame.length&&(this.arraydef.rowlines&&(this.arraydef.rowlines=this.arraydef.rowlines.replace(/none( none)+$/,"none")),Ge.default.setAttribute(n,"frame",""),n=this.create("node","menclose",[n],{notation:this.frame.join(" ")}),((this.arraydef.columnlines||"none")!=="none"||(this.arraydef.rowlines||"none")!=="none")&&Ge.default.setAttribute(n,"data-padding",0)),(this.getProperty("open")||this.getProperty("close"))&&(n=_i.default.fenced(this.factory.configuration,this.getProperty("open"),n,this.getProperty("close"))),n},t.prototype.EndEntry=function(){var r=this.create("node","mtd",this.nodes);this.hfill.length&&(this.hfill[0]===0&&Ge.default.setAttribute(r,"columnalign","right"),this.hfill[this.hfill.length-1]===this.Size()&&Ge.default.setAttribute(r,"columnalign",Ge.default.getAttribute(r,"columnalign")?"center":"left")),this.row.push(r),this.Clear(),this.hfill=[]},t.prototype.EndRow=function(){var r;this.getProperty("isNumbered")&&this.row.length===3?(this.row.unshift(this.row.pop()),r=this.create("node","mlabeledtr",this.row)):r=this.create("node","mtr",this.row),this.table.push(r),this.row=[]},t.prototype.EndTable=function(){(this.Size()||this.row.length)&&(this.EndEntry(),this.EndRow()),this.checkLines()},t.prototype.checkLines=function(){if(this.arraydef.rowlines){var r=this.arraydef.rowlines.split(/ /);r.length===this.table.length?(this.frame.push("bottom"),r.pop(),this.arraydef.rowlines=r.join(" ")):r.length<this.table.length-1&&(this.arraydef.rowlines+=" none")}if(this.getProperty("rowspacing")){for(var n=this.arraydef.rowspacing.split(/ /);n.length<this.table.length;)n.push(this.getProperty("rowspacing")+"em");this.arraydef.rowspacing=n.join(" ")}},t.prototype.addRowSpacing=function(r){if(this.arraydef.rowspacing){var n=this.arraydef.rowspacing.split(/ /);if(!this.getProperty("rowspacing")){var i=_i.default.dimen2em(n[0]);this.setProperty("rowspacing",i)}for(var a=this.getProperty("rowspacing");n.length<this.table.length;)n.push(_i.default.Em(a));n[this.table.length-1]=_i.default.Em(Math.max(0,a+_i.default.dimen2em(r))),this.arraydef.rowspacing=n.join(" ")}},t})(Ke.BaseItem);Ee.ArrayItem=mA;var _j=(function(e){ft(t,e);function t(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var a=e.call(this,r)||this;return a.maxrow=0,a.factory.configuration.tags.start(n[0],n[2],n[1]),a}return Object.defineProperty(t.prototype,"kind",{get:function(){return"eqnarray"},enumerable:!1,configurable:!0}),t.prototype.EndEntry=function(){this.row.length&&_i.default.fixInitialMO(this.factory.configuration,this.nodes);var r=this.create("node","mtd",this.nodes);this.row.push(r),this.Clear()},t.prototype.EndRow=function(){this.row.length>this.maxrow&&(this.maxrow=this.row.length);var r="mtr",n=this.factory.configuration.tags.getTag();n&&(this.row=[n].concat(this.row),r="mlabeledtr"),this.factory.configuration.tags.clearTag();var i=this.create("node",r,this.row);this.table.push(i),this.row=[]},t.prototype.EndTable=function(){e.prototype.EndTable.call(this),this.factory.configuration.tags.end(),this.extendArray("columnalign",this.maxrow),this.extendArray("columnwidth",this.maxrow),this.extendArray("columnspacing",this.maxrow-1)},t.prototype.extendArray=function(r,n){if(this.arraydef[r]){var i=this.arraydef[r].split(/ /),a=jy([],pc(i),!1);if(a.length>1){for(;a.length<n;)a.push.apply(a,jy([],pc(i),!1));this.arraydef[r]=a.slice(0,n).join(" ")}}},t})(mA);Ee.EqnArrayItem=_j;var vj=(function(e){ft(t,e);function t(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var a=e.call(this,r)||this;return a.factory.configuration.tags.start("equation",!0,n[0]),a}return Object.defineProperty(t.prototype,"kind",{get:function(){return"equation"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("end")){var n=this.toMml(),i=this.factory.configuration.tags.getTag();return this.factory.configuration.tags.end(),[[i?this.factory.configuration.tags.enTag(n,i):n,r],!0]}if(r.isKind("stop"))throw new vi.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return e.prototype.checkItem.call(this,r)},t})(Ke.BaseItem);Ee.EquationItem=vj});var Rt=ee(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.TexConstant=void 0;var bj;(function(e){e.Variant={NORMAL:"normal",BOLD:"bold",ITALIC:"italic",BOLDITALIC:"bold-italic",DOUBLESTRUCK:"double-struck",FRAKTUR:"fraktur",BOLDFRAKTUR:"bold-fraktur",SCRIPT:"script",BOLDSCRIPT:"bold-script",SANSSERIF:"sans-serif",BOLDSANSSERIF:"bold-sans-serif",SANSSERIFITALIC:"sans-serif-italic",SANSSERIFBOLDITALIC:"sans-serif-bold-italic",MONOSPACE:"monospace",INITIAL:"inital",TAILED:"tailed",LOOPED:"looped",STRETCHED:"stretched",CALLIGRAPHIC:"-tex-calligraphic",BOLDCALLIGRAPHIC:"-tex-bold-calligraphic",OLDSTYLE:"-tex-oldstyle",BOLDOLDSTYLE:"-tex-bold-oldstyle",MATHITALIC:"-tex-mathit"},e.Form={PREFIX:"prefix",INFIX:"infix",POSTFIX:"postfix"},e.LineBreak={AUTO:"auto",NEWLINE:"newline",NOBREAK:"nobreak",GOODBREAK:"goodbreak",BADBREAK:"badbreak"},e.LineBreakStyle={BEFORE:"before",AFTER:"after",DUPLICATE:"duplicate",INFIXLINBREAKSTYLE:"infixlinebreakstyle"},e.IndentAlign={LEFT:"left",CENTER:"center",RIGHT:"right",AUTO:"auto",ID:"id",INDENTALIGN:"indentalign"},e.IndentShift={INDENTSHIFT:"indentshift"},e.LineThickness={THIN:"thin",MEDIUM:"medium",THICK:"thick"},e.Notation={LONGDIV:"longdiv",ACTUARIAL:"actuarial",PHASORANGLE:"phasorangle",RADICAL:"radical",BOX:"box",ROUNDEDBOX:"roundedbox",CIRCLE:"circle",LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom",UPDIAGONALSTRIKE:"updiagonalstrike",DOWNDIAGONALSTRIKE:"downdiagonalstrike",VERTICALSTRIKE:"verticalstrike",HORIZONTALSTRIKE:"horizontalstrike",NORTHEASTARROW:"northeastarrow",MADRUWB:"madruwb",UPDIAGONALARROW:"updiagonalarrow"},e.Align={TOP:"top",BOTTOM:"bottom",CENTER:"center",BASELINE:"baseline",AXIS:"axis",LEFT:"left",RIGHT:"right"},e.Lines={NONE:"none",SOLID:"solid",DASHED:"dashed"},e.Side={LEFT:"left",RIGHT:"right",LEFTOVERLAP:"leftoverlap",RIGHTOVERLAP:"rightoverlap"},e.Width={AUTO:"auto",FIT:"fit"},e.Actiontype={TOGGLE:"toggle",STATUSLINE:"statusline",TOOLTIP:"tooltip",INPUT:"input"},e.Overflow={LINBREAK:"linebreak",SCROLL:"scroll",ELIDE:"elide",TRUNCATE:"truncate",SCALE:"scale"},e.Unit={EM:"em",EX:"ex",PX:"px",IN:"in",CM:"cm",MM:"mm",PT:"pt",PC:"pc"}})(bj=xs.TexConstant||(xs.TexConstant={}))});var oo=ee(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.px=tt.emRounded=tt.em=tt.percent=tt.length2em=tt.MATHSPACE=tt.RELUNITS=tt.UNITS=tt.BIGDIMEN=void 0;tt.BIGDIMEN=1e6;tt.UNITS={px:1,in:96,cm:96/2.54,mm:96/25.4};tt.RELUNITS={em:1,ex:.431,pt:1/10,pc:12/10,mu:1/18};tt.MATHSPACE={veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18,thin:.04,medium:.06,thick:.1,normal:1,big:2,small:1/Math.sqrt(2),infinity:tt.BIGDIMEN};function wj(e,t,r,n){if(t===void 0&&(t=0),r===void 0&&(r=1),n===void 0&&(n=16),typeof e!="string"&&(e=String(e)),e===""||e==null)return t;if(tt.MATHSPACE[e])return tt.MATHSPACE[e];var i=e.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!i)return t;var a=parseFloat(i[1]||"1"),o=i[2];return tt.UNITS.hasOwnProperty(o)?a*tt.UNITS[o]/n/r:tt.RELUNITS.hasOwnProperty(o)?a*tt.RELUNITS[o]:o==="%"?a/100*t:a*t}tt.length2em=wj;function Ej(e){return(100*e).toFixed(1).replace(/\.?0+$/,"")+"%"}tt.percent=Ej;function Aj(e){return Math.abs(e)<.001?"0":e.toFixed(3).replace(/\.?0+$/,"")+"em"}tt.em=Aj;function Oj(e,t){return t===void 0&&(t=16),e=(Math.round(e*t)+.05)/t,Math.abs(e)<.001?"0em":e.toFixed(3).replace(/\.?0+$/,"")+"em"}tt.emRounded=Oj;function Tj(e,t,r){return t===void 0&&(t=-tt.BIGDIMEN),r===void 0&&(r=16),e*=r,t&&e<t&&(e=t),Math.abs(e)<.1?"0":e.toFixed(1).replace(/\.0$/,"")+"px"}tt.px=Tj});var dr=ee(Yt=>{"use strict";var so=Yt&&Yt.__assign||function(){return so=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},so.apply(this,arguments)},Sj=Yt&&Yt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),xj=Yt&&Yt.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Mj=Yt&&Yt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Sj(t,e,r);return xj(t,e),t},Dy=Yt&&Yt.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},gc=Yt&&Yt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yt,"__esModule",{value:!0});var By=Mj(mn()),_e=gc(st()),Ot=gc($e()),yc=gc(jt()),Fy=Rt(),_t=gc(Qe()),lo=Te(),hA=Qn(),pA=oo(),Ly=eo(),Cj=It(),be={},kj=1.2/.85,Nj={fontfamily:1,fontsize:1,fontweight:1,fontstyle:1,color:1,background:1,id:1,class:1,href:1,style:1};be.Open=function(e,t){e.Push(e.itemFactory.create("open"))};be.Close=function(e,t){e.Push(e.itemFactory.create("close"))};be.Tilde=function(e,t){e.Push(e.create("token","mtext",{},Ly.entities.nbsp))};be.Space=function(e,t){};be.Superscript=function(e,t){var r;e.GetNext().match(/\d/)&&(e.string=e.string.substr(0,e.i+1)+" "+e.string.substr(e.i+1));var n,i,a=e.stack.Top();a.isKind("prime")?(r=Dy(a.Peek(2),2),i=r[0],n=r[1],e.stack.Pop()):(i=e.stack.Prev(),i||(i=e.create("token","mi",{},"")));var o=_e.default.getProperty(i,"movesupsub"),s=_e.default.isType(i,"msubsup")?i.sup:i.over;if(_e.default.isType(i,"msubsup")&&!_e.default.isType(i,"msup")&&_e.default.getChildAt(i,i.sup)||_e.default.isType(i,"munderover")&&!_e.default.isType(i,"mover")&&_e.default.getChildAt(i,i.over)&&!_e.default.getProperty(i,"subsupOK"))throw new Ot.default("DoubleExponent","Double exponent: use braces to clarify");(!_e.default.isType(i,"msubsup")||_e.default.isType(i,"msup"))&&(o?((!_e.default.isType(i,"munderover")||_e.default.isType(i,"mover")||_e.default.getChildAt(i,i.over))&&(i=e.create("node","munderover",[i],{movesupsub:!0})),s=i.over):(i=e.create("node","msubsup",[i]),s=i.sup)),e.Push(e.itemFactory.create("subsup",i).setProperties({position:s,primes:n,movesupsub:o}))};be.Subscript=function(e,t){var r;e.GetNext().match(/\d/)&&(e.string=e.string.substr(0,e.i+1)+" "+e.string.substr(e.i+1));var n,i,a=e.stack.Top();a.isKind("prime")?(r=Dy(a.Peek(2),2),i=r[0],n=r[1],e.stack.Pop()):(i=e.stack.Prev(),i||(i=e.create("token","mi",{},"")));var o=_e.default.getProperty(i,"movesupsub"),s=_e.default.isType(i,"msubsup")?i.sub:i.under;if(_e.default.isType(i,"msubsup")&&!_e.default.isType(i,"msup")&&_e.default.getChildAt(i,i.sub)||_e.default.isType(i,"munderover")&&!_e.default.isType(i,"mover")&&_e.default.getChildAt(i,i.under)&&!_e.default.getProperty(i,"subsupOK"))throw new Ot.default("DoubleSubscripts","Double subscripts: use braces to clarify");(!_e.default.isType(i,"msubsup")||_e.default.isType(i,"msup"))&&(o?((!_e.default.isType(i,"munderover")||_e.default.isType(i,"mover")||_e.default.getChildAt(i,i.under))&&(i=e.create("node","munderover",[i],{movesupsub:!0})),s=i.under):(i=e.create("node","msubsup",[i]),s=i.sub)),e.Push(e.itemFactory.create("subsup",i).setProperties({position:s,primes:n,movesupsub:o}))};be.Prime=function(e,t){var r=e.stack.Prev();if(r||(r=e.create("node","mi")),_e.default.isType(r,"msubsup")&&!_e.default.isType(r,"msup")&&_e.default.getChildAt(r,r.sup))throw new Ot.default("DoubleExponentPrime","Prime causes double exponent: use braces to clarify");var n="";e.i--;do n+=Ly.entities.prime,e.i++,t=e.GetNext();while(t==="'"||t===Ly.entities.rsquo);n=["","\u2032","\u2033","\u2034","\u2057"][n.length]||n;var i=e.create("token","mo",{variantForm:!0},n);e.Push(e.itemFactory.create("prime",r,i))};be.Comment=function(e,t){for(;e.i<e.string.length&&e.string.charAt(e.i)!==`
|
|
6
|
+
`;)e.i++};be.Hash=function(e,t){throw new Ot.default("CantUseHash1","You can't use 'macro parameter character #' in math mode")};be.MathFont=function(e,t,r){var n=e.GetArgument(t),i=new yc.default(n,so(so({},e.stack.env),{font:r,multiLetterIdentifiers:/^[a-zA-Z]+/,noAutoOP:!0}),e.configuration).mml();e.Push(e.create("node","TeXAtom",[i]))};be.SetFont=function(e,t,r){e.stack.env.font=r};be.SetStyle=function(e,t,r,n,i){e.stack.env.style=r,e.stack.env.level=i,e.Push(e.itemFactory.create("style").setProperty("styles",{displaystyle:n,scriptlevel:i}))};be.SetSize=function(e,t,r){e.stack.env.size=r,e.Push(e.itemFactory.create("style").setProperty("styles",{mathsize:(0,pA.em)(r)}))};be.Spacer=function(e,t,r){var n=e.create("node","mspace",[],{width:(0,pA.em)(r)}),i=e.create("node","mstyle",[n],{scriptlevel:0});e.Push(i)};be.LeftRight=function(e,t){var r=t.substr(1);e.Push(e.itemFactory.create(r,e.GetDelimiter(t),e.stack.env.color))};be.NamedFn=function(e,t,r){r||(r=t.substr(1));var n=e.create("token","mi",{texClass:lo.TEXCLASS.OP},r);e.Push(e.itemFactory.create("fn",n))};be.NamedOp=function(e,t,r){r||(r=t.substr(1)),r=r.replace(/ /,"\u2006");var n=e.create("token","mo",{movablelimits:!0,movesupsub:!0,form:Fy.TexConstant.Form.PREFIX,texClass:lo.TEXCLASS.OP},r);e.Push(n)};be.Limits=function(e,t,r){var n=e.stack.Prev(!0);if(!n||_e.default.getTexClass(_e.default.getCoreMO(n))!==lo.TEXCLASS.OP&&_e.default.getProperty(n,"movesupsub")==null)throw new Ot.default("MisplacedLimits","%1 is allowed only on operators",e.currentCS);var i=e.stack.Top(),a;_e.default.isType(n,"munderover")&&!r?(a=e.create("node","msubsup"),_e.default.copyChildren(n,a),n=i.Last=a):_e.default.isType(n,"msubsup")&&r&&(a=e.create("node","munderover"),_e.default.copyChildren(n,a),n=i.Last=a),_e.default.setProperty(n,"movesupsub",!!r),_e.default.setProperties(_e.default.getCoreMO(n),{movablelimits:!1}),(_e.default.getAttribute(n,"movablelimits")||_e.default.getProperty(n,"movablelimits"))&&_e.default.setProperties(n,{movablelimits:!1})};be.Over=function(e,t,r,n){var i=e.itemFactory.create("over").setProperty("name",e.currentCS);r||n?(i.setProperty("open",r),i.setProperty("close",n)):t.match(/withdelims$/)&&(i.setProperty("open",e.GetDelimiter(t)),i.setProperty("close",e.GetDelimiter(t))),t.match(/^\\above/)?i.setProperty("thickness",e.GetDimen(t)):(t.match(/^\\atop/)||r||n)&&i.setProperty("thickness",0),e.Push(i)};be.Frac=function(e,t){var r=e.ParseArg(t),n=e.ParseArg(t),i=e.create("node","mfrac",[r,n]);e.Push(i)};be.Sqrt=function(e,t){var r=e.GetBrackets(t),n=e.GetArgument(t);n==="\\frac"&&(n+="{"+e.GetArgument(n)+"}{"+e.GetArgument(n)+"}");var i=new yc.default(n,e.stack.env,e.configuration).mml();r?i=e.create("node","mroot",[i,gA(e,r)]):i=e.create("node","msqrt",[i]),e.Push(i)};function gA(e,t){var r=e.stack.env,n=r.inRoot;r.inRoot=!0;var i=new yc.default(t,r,e.configuration),a=i.mml(),o=i.stack.global;if(o.leftRoot||o.upRoot){var s={};o.leftRoot&&(s.width=o.leftRoot),o.upRoot&&(s.voffset=o.upRoot,s.height=o.upRoot),a=e.create("node","mpadded",[a],s)}return r.inRoot=n,a}be.Root=function(e,t){var r=e.GetUpTo(t,"\\of"),n=e.ParseArg(t),i=e.create("node","mroot",[n,gA(e,r)]);e.Push(i)};be.MoveRoot=function(e,t,r){if(!e.stack.env.inRoot)throw new Ot.default("MisplacedMoveRoot","%1 can appear only within a root",e.currentCS);if(e.stack.global[r])throw new Ot.default("MultipleMoveRoot","Multiple use of %1",e.currentCS);var n=e.GetArgument(t);if(!n.match(/-?[0-9]+/))throw new Ot.default("IntegerArg","The argument to %1 must be an integer",e.currentCS);n=parseInt(n,10)/15+"em",n.substr(0,1)!=="-"&&(n="+"+n),e.stack.global[r]=n};be.Accent=function(e,t,r,n){var i=e.ParseArg(t),a=so(so({},_t.default.getFontDef(e)),{accent:!0,mathaccent:!0}),o=_e.default.createEntity(r),s=e.create("token","mo",a,o),l=s;_e.default.setAttribute(l,"stretchy",!!n);var c=_e.default.isEmbellished(i)?_e.default.getCoreMO(i):i;(_e.default.isType(c,"mo")||_e.default.getProperty(c,"movablelimits"))&&_e.default.setProperties(c,{movablelimits:!1});var d=e.create("node","munderover");_e.default.setChild(d,0,i),_e.default.setChild(d,1,null),_e.default.setChild(d,2,l);var f=e.create("node","TeXAtom",[d]);e.Push(f)};be.UnderOver=function(e,t,r,n){var i=_e.default.createEntity(r),a=e.create("token","mo",{stretchy:!0,accent:!0},i),o=t.charAt(1)==="o"?"over":"under",s=e.ParseArg(t);e.Push(_t.default.underOver(e,s,a,o,n))};be.Overset=function(e,t){var r=e.ParseArg(t),n=e.ParseArg(t);_t.default.checkMovableLimits(n),r.isKind("mo")&&_e.default.setAttribute(r,"accent",!1);var i=e.create("node","mover",[n,r]);e.Push(i)};be.Underset=function(e,t){var r=e.ParseArg(t),n=e.ParseArg(t);_t.default.checkMovableLimits(n),r.isKind("mo")&&_e.default.setAttribute(r,"accent",!1);var i=e.create("node","munder",[n,r],{accentunder:!1});e.Push(i)};be.Overunderset=function(e,t){var r=e.ParseArg(t),n=e.ParseArg(t),i=e.ParseArg(t);_t.default.checkMovableLimits(i),r.isKind("mo")&&_e.default.setAttribute(r,"accent",!1),n.isKind("mo")&&_e.default.setAttribute(n,"accent",!1);var a=e.create("node","munderover",[i,n,r],{accent:!1,accentunder:!1});e.Push(a)};be.TeXAtom=function(e,t,r){var n={texClass:r},i,a,o;if(r===lo.TEXCLASS.OP){n.movesupsub=n.movablelimits=!0;var s=e.GetArgument(t),l=s.match(/^\s*\\rm\s+([a-zA-Z0-9 ]+)$/);l?(n.mathvariant=Fy.TexConstant.Variant.NORMAL,a=e.create("token","mi",n,l[1])):(o=new yc.default(s,e.stack.env,e.configuration).mml(),a=e.create("node","TeXAtom",[o],n)),i=e.itemFactory.create("fn",a)}else o=e.ParseArg(t),i=e.create("node","TeXAtom",[o],n);e.Push(i)};be.MmlToken=function(e,t){var r=e.GetArgument(t),n=e.GetBrackets(t,"").replace(/^\s+/,""),i=e.GetArgument(t),a={},o=[],s;try{s=e.create("node",r)}catch{s=null}if(!s||!s.isToken)throw new Ot.default("NotMathMLToken","%1 is not a token element",r);for(;n!=="";){var l=n.match(/^([a-z]+)\s*=\s*('[^']*'|"[^"]*"|[^ ,]*)\s*,?\s*/i);if(!l)throw new Ot.default("InvalidMathMLAttr","Invalid MathML attribute: %1",n);if(!s.attributes.hasDefault(l[1])&&!Nj[l[1]])throw new Ot.default("UnknownAttrForElement","%1 is not a recognized attribute for %2",l[1],r);var c=_t.default.MmlFilterAttribute(e,l[1],l[2].replace(/^(['"])(.*)\1$/,"$2"));c&&(c.toLowerCase()==="true"?c=!0:c.toLowerCase()==="false"&&(c=!1),a[l[1]]=c,o.push(l[1])),n=n.substr(l[0].length)}o.length&&(a["mjx-keep-attrs"]=o.join(" "));var d=e.create("text",i);s.appendChild(d),_e.default.setProperties(s,a),e.Push(s)};be.Strut=function(e,t){var r=e.create("node","mrow"),n=e.create("node","mpadded",[r],{height:"8.6pt",depth:"3pt",width:0});e.Push(n)};be.Phantom=function(e,t,r,n){var i=e.create("node","mphantom",[e.ParseArg(t)]);(r||n)&&(i=e.create("node","mpadded",[i]),n&&(_e.default.setAttribute(i,"height",0),_e.default.setAttribute(i,"depth",0)),r&&_e.default.setAttribute(i,"width",0));var a=e.create("node","TeXAtom",[i]);e.Push(a)};be.Smash=function(e,t){var r=_t.default.trimSpaces(e.GetBrackets(t,"")),n=e.create("node","mpadded",[e.ParseArg(t)]);switch(r){case"b":_e.default.setAttribute(n,"depth",0);break;case"t":_e.default.setAttribute(n,"height",0);break;default:_e.default.setAttribute(n,"height",0),_e.default.setAttribute(n,"depth",0)}var i=e.create("node","TeXAtom",[n]);e.Push(i)};be.Lap=function(e,t){var r=e.create("node","mpadded",[e.ParseArg(t)],{width:0});t==="\\llap"&&_e.default.setAttribute(r,"lspace","-1width");var n=e.create("node","TeXAtom",[r]);e.Push(n)};be.RaiseLower=function(e,t){var r=e.GetDimen(t),n=e.itemFactory.create("position").setProperties({name:e.currentCS,move:"vertical"});r.charAt(0)==="-"&&(r=r.slice(1),t=t.substr(1)==="raise"?"\\lower":"\\raise"),t==="\\lower"?(n.setProperty("dh","-"+r),n.setProperty("dd","+"+r)):(n.setProperty("dh","+"+r),n.setProperty("dd","-"+r)),e.Push(n)};be.MoveLeftRight=function(e,t){var r=e.GetDimen(t),n=r.charAt(0)==="-"?r.slice(1):"-"+r;if(t==="\\moveleft"){var i=r;r=n,n=i}e.Push(e.itemFactory.create("position").setProperties({name:e.currentCS,move:"horizontal",left:e.create("node","mspace",[],{width:r}),right:e.create("node","mspace",[],{width:n})}))};be.Hskip=function(e,t){var r=e.create("node","mspace",[],{width:e.GetDimen(t)});e.Push(r)};be.Nonscript=function(e,t){e.Push(e.itemFactory.create("nonscript"))};be.Rule=function(e,t,r){var n=e.GetDimen(t),i=e.GetDimen(t),a=e.GetDimen(t),o={width:n,height:i,depth:a};r!=="blank"&&(o.mathbackground=e.stack.env.color||"black");var s=e.create("node","mspace",[],o);e.Push(s)};be.rule=function(e,t){var r=e.GetBrackets(t),n=e.GetDimen(t),i=e.GetDimen(t),a=e.create("node","mspace",[],{width:n,height:i,mathbackground:e.stack.env.color||"black"});r&&(a=e.create("node","mpadded",[a],{voffset:r}),r.match(/^\-/)?(_e.default.setAttribute(a,"height",r),_e.default.setAttribute(a,"depth","+"+r.substr(1))):_e.default.setAttribute(a,"height","+"+r)),e.Push(a)};be.MakeBig=function(e,t,r,n){n*=kj;var i=String(n).replace(/(\.\d\d\d).+/,"$1")+"em",a=e.GetDelimiter(t,!0),o=e.create("token","mo",{minsize:i,maxsize:i,fence:!0,stretchy:!0,symmetric:!0},a),s=e.create("node","TeXAtom",[o],{texClass:r});e.Push(s)};be.BuildRel=function(e,t){var r=e.ParseUpTo(t,"\\over"),n=e.ParseArg(t),i=e.create("node","munderover");_e.default.setChild(i,0,n),_e.default.setChild(i,1,null),_e.default.setChild(i,2,r);var a=e.create("node","TeXAtom",[i],{texClass:lo.TEXCLASS.REL});e.Push(a)};be.HBox=function(e,t,r,n){e.PushAll(_t.default.internalMath(e,e.GetArgument(t),r,n))};be.FBox=function(e,t){var r=_t.default.internalMath(e,e.GetArgument(t)),n=e.create("node","menclose",r,{notation:"box"});e.Push(n)};be.FrameBox=function(e,t){var r=e.GetBrackets(t),n=e.GetBrackets(t)||"c",i=_t.default.internalMath(e,e.GetArgument(t));r&&(i=[e.create("node","mpadded",i,{width:r,"data-align":(0,Cj.lookup)(n,{l:"left",r:"right"},"center")})]);var a=e.create("node","TeXAtom",[e.create("node","menclose",i,{notation:"box"})],{texClass:lo.TEXCLASS.ORD});e.Push(a)};be.Not=function(e,t){e.Push(e.itemFactory.create("not"))};be.Dots=function(e,t){var r=_e.default.createEntity("2026"),n=_e.default.createEntity("22EF"),i=e.create("token","mo",{stretchy:!1},r),a=e.create("token","mo",{stretchy:!1},n);e.Push(e.itemFactory.create("dots").setProperties({ldots:i,cdots:a}))};be.Matrix=function(e,t,r,n,i,a,o,s,l,c){var d=e.GetNext();if(d==="")throw new Ot.default("MissingArgFor","Missing argument for %1",e.currentCS);d==="{"?e.i++:(e.string=d+"}"+e.string.slice(e.i+1),e.i=0);var f=e.itemFactory.create("array").setProperty("requireClose",!0);f.arraydef={rowspacing:o||"4pt",columnspacing:a||"1em"},l&&f.setProperty("isCases",!0),c&&(f.setProperty("isNumbered",!0),f.arraydef.side=c),(r||n)&&(f.setProperty("open",r),f.setProperty("close",n)),s==="D"&&(f.arraydef.displaystyle=!0),i!=null&&(f.arraydef.columnalign=i),e.Push(f)};be.Entry=function(e,t){e.Push(e.itemFactory.create("cell").setProperties({isEntry:!0,name:t}));var r=e.stack.Top(),n=r.getProperty("casesEnv"),i=r.getProperty("isCases");if(!(!i&&!n)){for(var a=e.string,o=0,s=-1,l=e.i,c=a.length,d=n?new RegExp("^\\\\end\\s*\\{".concat(n.replace(/\*/,"\\*"),"\\}")):null;l<c;){var f=a.charAt(l);if(f==="{")o++,l++;else if(f==="}")o===0?c=0:(o--,o===0&&s<0&&(s=l-e.i),l++);else{if(f==="&"&&o===0)throw new Ot.default("ExtraAlignTab","Extra alignment tab in \\cases text");if(f==="\\"){var m=a.substr(l);m.match(/^((\\cr)[^a-zA-Z]|\\\\)/)||d&&m.match(d)?c=0:l+=2}else l++}}var p=a.substr(e.i,l-e.i);if(!p.match(/^\s*\\text[^a-zA-Z]/)||s!==p.replace(/\s+$/,"").length-1){var b=_t.default.internalMath(e,_t.default.trimSpaces(p),0);e.PushAll(b),e.i=l}}};be.Cr=function(e,t){e.Push(e.itemFactory.create("cell").setProperties({isCR:!0,name:t}))};be.CrLaTeX=function(e,t,r){r===void 0&&(r=!1);var n;if(!r&&(e.string.charAt(e.i)==="*"&&e.i++,e.string.charAt(e.i)==="[")){var i=e.GetBrackets(t,""),a=Dy(_t.default.matchDimen(i),2),o=a[0],s=a[1];if(i&&!o)throw new Ot.default("BracketMustBeDimension","Bracket argument to %1 must be a dimension",e.currentCS);n=o+s}e.Push(e.itemFactory.create("cell").setProperties({isCR:!0,name:t,linebreak:!0}));var l=e.stack.Top(),c;l instanceof By.ArrayItem?n&&l.addRowSpacing(n):(n&&(c=e.create("node","mspace",[],{depth:n}),e.Push(c)),c=e.create("node","mspace",[],{linebreak:Fy.TexConstant.LineBreak.NEWLINE}),e.Push(c))};be.HLine=function(e,t,r){r==null&&(r="solid");var n=e.stack.Top();if(!(n instanceof By.ArrayItem)||n.Size())throw new Ot.default("Misplaced","Misplaced %1",e.currentCS);if(!n.table.length)n.frame.push("top");else{for(var i=n.arraydef.rowlines?n.arraydef.rowlines.split(/ /):[];i.length<n.table.length;)i.push("none");i[n.table.length-1]=r,n.arraydef.rowlines=i.join(" ")}};be.HFill=function(e,t){var r=e.stack.Top();if(r instanceof By.ArrayItem)r.hfill.push(r.Size());else throw new Ot.default("UnsupportedHFill","Unsupported use of %1",e.currentCS)};be.BeginEnd=function(e,t){var r=e.GetArgument(t);if(r.match(/\\/i))throw new Ot.default("InvalidEnv","Invalid environment name '%1'",r);var n=e.configuration.handlers.get("environment").lookup(r);if(n&&t==="\\end"){if(!n.args[0]){var i=e.itemFactory.create("end").setProperty("name",r);e.Push(i);return}e.stack.env.closing=r}_t.default.checkMaxMacros(e,!1),e.parse("environment",[e,r])};be.Array=function(e,t,r,n,i,a,o,s,l){i||(i=e.GetArgument("\\begin{"+t.getName()+"}"));var c=("c"+i).replace(/[^clr|:]/g,"").replace(/[^|:]([|:])+/g,"$1");i=i.replace(/[^clr]/g,"").split("").join(" "),i=i.replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center");var d=e.itemFactory.create("array");return d.arraydef={columnalign:i,columnspacing:a||"1em",rowspacing:o||"4pt"},c.match(/[|:]/)&&(c.charAt(0).match(/[|:]/)&&(d.frame.push("left"),d.dashed=c.charAt(0)===":"),c.charAt(c.length-1).match(/[|:]/)&&d.frame.push("right"),c=c.substr(1,c.length-2),d.arraydef.columnlines=c.split("").join(" ").replace(/[^|: ]/g,"none").replace(/\|/g,"solid").replace(/:/g,"dashed")),r&&d.setProperty("open",e.convertDelimiter(r)),n&&d.setProperty("close",e.convertDelimiter(n)),(s||"").charAt(1)==="'"&&(d.arraydef["data-cramped"]=!0,s=s.charAt(0)),s==="D"?d.arraydef.displaystyle=!0:s&&(d.arraydef.displaystyle=!1),s==="S"&&(d.arraydef.scriptlevel=1),l&&(d.arraydef.useHeight=!1),e.Push(t),d};be.AlignedArray=function(e,t){var r=e.GetBrackets("\\begin{"+t.getName()+"}"),n=be.Array(e,t);return _t.default.setArrayAlign(n,r)};be.Equation=function(e,t,r){return e.Push(t),_t.default.checkEqnEnv(e),e.itemFactory.create("equation",r).setProperty("name",t.getName())};be.EqnArray=function(e,t,r,n,i,a){e.Push(t),n&&_t.default.checkEqnEnv(e),i=i.replace(/[^clr]/g,"").split("").join(" "),i=i.replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center");var o=e.itemFactory.create("eqnarray",t.getName(),r,n,e.stack.global);return o.arraydef={displaystyle:!0,columnalign:i,columnspacing:a||"1em",rowspacing:"3pt",side:e.options.tagSide,minlabelspacing:e.options.tagIndent},o};be.HandleNoTag=function(e,t){e.tags.notag()};be.HandleLabel=function(e,t){var r=e.GetArgument(t);if(r!==""&&!e.tags.refUpdate){if(e.tags.label)throw new Ot.default("MultipleCommand","Multiple %1",e.currentCS);if(e.tags.label=r,(e.tags.allLabels[r]||e.tags.labels[r])&&!e.options.ignoreDuplicateLabels)throw new Ot.default("MultipleLabel","Label '%1' multiply defined",r);e.tags.labels[r]=new hA.Label}};be.HandleRef=function(e,t,r){var n=e.GetArgument(t),i=e.tags.allLabels[n]||e.tags.labels[n];i||(e.tags.refUpdate||(e.tags.redo=!0),i=new hA.Label);var a=i.tag;r&&(a=e.tags.formatTag(a));var o=e.create("node","mrow",_t.default.internalMath(e,a),{href:e.tags.formatUrl(i.id,e.options.baseURL),class:"MathJax_ref"});e.Push(o)};be.Macro=function(e,t,r,n,i){if(n){var a=[];if(i!=null){var o=e.GetBrackets(t);a.push(o??i)}for(var s=a.length;s<n;s++)a.push(e.GetArgument(t));r=_t.default.substituteArgs(e,a,r)}e.string=_t.default.addArgs(e,r,e.string.slice(e.i)),e.i=0,_t.default.checkMaxMacros(e)};be.MathChoice=function(e,t){var r=e.ParseArg(t),n=e.ParseArg(t),i=e.ParseArg(t),a=e.ParseArg(t);e.Push(e.create("node","MathChoice",[r,n,i,a]))};Yt.default=be});var hn=ee(ti=>{"use strict";var Ij=ti&&ti.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},Pj=ti&&ti.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},_A=ti&&ti.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ti,"__esModule",{value:!0});var jj=_A(st()),qy=Rt(),yA=_A(Qe()),Uy;(function(e){function t(c,d){var f=yA.default.getFontDef(c),m=c.stack.env;m.multiLetterIdentifiers&&m.font!==""&&(d=c.string.substr(c.i-1).match(m.multiLetterIdentifiers)[0],c.i+=d.length-1,f.mathvariant===qy.TexConstant.Variant.NORMAL&&m.noAutoOP&&d.length>1&&(f.autoOP=!1));var p=c.create("token","mi",f,d);c.Push(p)}e.variable=t;function r(c,d){var f,m=c.configuration.options.digits,p=c.string.slice(c.i-1).match(m),b=yA.default.getFontDef(c);p?(f=c.create("token","mn",b,p[0].replace(/[{}]/g,"")),c.i+=p[0].length-1):f=c.create("token","mo",b,d),c.Push(f)}e.digit=r;function n(c,d){var f=c.GetCS();c.parse("macro",[c,f])}e.controlSequence=n;function i(c,d){var f=d.attributes||{mathvariant:qy.TexConstant.Variant.ITALIC},m=c.create("token","mi",f,d.char);c.Push(m)}e.mathchar0mi=i;function a(c,d){var f=d.attributes||{};f.stretchy=!1;var m=c.create("token","mo",f,d.char);jj.default.setProperty(m,"fixStretchy",!0),c.configuration.addNode("fixStretchy",m),c.Push(m)}e.mathchar0mo=a;function o(c,d){var f=d.attributes||{mathvariant:qy.TexConstant.Variant.NORMAL};c.stack.env.font&&(f.mathvariant=c.stack.env.font);var m=c.create("token","mi",f,d.char);c.Push(m)}e.mathchar7=o;function s(c,d){var f=d.attributes||{};f=Object.assign({fence:!1,stretchy:!1},f);var m=c.create("token","mo",f,d.char);c.Push(m)}e.delimiter=s;function l(c,d,f,m){var p=m[0],b=c.itemFactory.create("begin").setProperties({name:d,end:p});b=f.apply(void 0,Pj([c,b],Ij(m.slice(1)),!1)),c.Push(b)}e.environment=l})(Uy||(Uy={}));ti.default=Uy});var vA=ee(pn=>{"use strict";var Rj=pn&&pn.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Lj=pn&&pn.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Dj=pn&&pn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Rj(t,e,r);return Lj(t,e),t},Hy=pn&&pn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pn,"__esModule",{value:!0});var Wr=Dj(He()),ge=Rt(),zy=Hy(dr()),bi=Hy(hn()),Bj=Hy(Qe()),Se=Te(),er=oo();new Wr.RegExpMap("letter",bi.default.variable,/[a-z]/i);new Wr.RegExpMap("digit",bi.default.digit,/[0-9.,]/);new Wr.RegExpMap("command",bi.default.controlSequence,/^\\/);new Wr.MacroMap("special",{"{":"Open","}":"Close","~":"Tilde","^":"Superscript",_:"Subscript"," ":"Space"," ":"Space","\r":"Space","\n":"Space","'":"Prime","%":"Comment","&":"Entry","#":"Hash","\xA0":"Space","\u2019":"Prime"},zy.default);new Wr.CharacterMap("mathchar0mi",bi.default.mathchar0mi,{alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03F5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03D5",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",varepsilon:"\u03B5",vartheta:"\u03D1",varpi:"\u03D6",varrho:"\u03F1",varsigma:"\u03C2",varphi:"\u03C6",S:["\xA7",{mathvariant:ge.TexConstant.Variant.NORMAL}],aleph:["\u2135",{mathvariant:ge.TexConstant.Variant.NORMAL}],hbar:["\u210F",{variantForm:!0}],imath:"\u0131",jmath:"\u0237",ell:"\u2113",wp:["\u2118",{mathvariant:ge.TexConstant.Variant.NORMAL}],Re:["\u211C",{mathvariant:ge.TexConstant.Variant.NORMAL}],Im:["\u2111",{mathvariant:ge.TexConstant.Variant.NORMAL}],partial:["\u2202",{mathvariant:ge.TexConstant.Variant.ITALIC}],infty:["\u221E",{mathvariant:ge.TexConstant.Variant.NORMAL}],prime:["\u2032",{variantForm:!0}],emptyset:["\u2205",{mathvariant:ge.TexConstant.Variant.NORMAL}],nabla:["\u2207",{mathvariant:ge.TexConstant.Variant.NORMAL}],top:["\u22A4",{mathvariant:ge.TexConstant.Variant.NORMAL}],bot:["\u22A5",{mathvariant:ge.TexConstant.Variant.NORMAL}],angle:["\u2220",{mathvariant:ge.TexConstant.Variant.NORMAL}],triangle:["\u25B3",{mathvariant:ge.TexConstant.Variant.NORMAL}],backslash:["\u2216",{mathvariant:ge.TexConstant.Variant.NORMAL}],forall:["\u2200",{mathvariant:ge.TexConstant.Variant.NORMAL}],exists:["\u2203",{mathvariant:ge.TexConstant.Variant.NORMAL}],neg:["\xAC",{mathvariant:ge.TexConstant.Variant.NORMAL}],lnot:["\xAC",{mathvariant:ge.TexConstant.Variant.NORMAL}],flat:["\u266D",{mathvariant:ge.TexConstant.Variant.NORMAL}],natural:["\u266E",{mathvariant:ge.TexConstant.Variant.NORMAL}],sharp:["\u266F",{mathvariant:ge.TexConstant.Variant.NORMAL}],clubsuit:["\u2663",{mathvariant:ge.TexConstant.Variant.NORMAL}],diamondsuit:["\u2662",{mathvariant:ge.TexConstant.Variant.NORMAL}],heartsuit:["\u2661",{mathvariant:ge.TexConstant.Variant.NORMAL}],spadesuit:["\u2660",{mathvariant:ge.TexConstant.Variant.NORMAL}]});new Wr.CharacterMap("mathchar0mo",bi.default.mathchar0mo,{surd:"\u221A",coprod:["\u2210",{texClass:Se.TEXCLASS.OP,movesupsub:!0}],bigvee:["\u22C1",{texClass:Se.TEXCLASS.OP,movesupsub:!0}],bigwedge:["\u22C0",{texClass:Se.TEXCLASS.OP,movesupsub:!0}],biguplus:["\u2A04",{texClass:Se.TEXCLASS.OP,movesupsub:!0}],bigcap:["\u22C2",{texClass:Se.TEXCLASS.OP,movesupsub:!0}],bigcup:["\u22C3",{texClass:Se.TEXCLASS.OP,movesupsub:!0}],int:["\u222B",{texClass:Se.TEXCLASS.OP}],intop:["\u222B",{texClass:Se.TEXCLASS.OP,movesupsub:!0,movablelimits:!0}],iint:["\u222C",{texClass:Se.TEXCLASS.OP}],iiint:["\u222D",{texClass:Se.TEXCLASS.OP}],prod:["\u220F",{texClass:Se.TEXCLASS.OP,movesupsub:!0}],sum:["\u2211",{texClass:Se.TEXCLASS.OP,movesupsub:!0}],bigotimes:["\u2A02",{texClass:Se.TEXCLASS.OP,movesupsub:!0}],bigoplus:["\u2A01",{texClass:Se.TEXCLASS.OP,movesupsub:!0}],bigodot:["\u2A00",{texClass:Se.TEXCLASS.OP,movesupsub:!0}],oint:["\u222E",{texClass:Se.TEXCLASS.OP}],bigsqcup:["\u2A06",{texClass:Se.TEXCLASS.OP,movesupsub:!0}],smallint:["\u222B",{largeop:!1}],triangleleft:"\u25C3",triangleright:"\u25B9",bigtriangleup:"\u25B3",bigtriangledown:"\u25BD",wedge:"\u2227",land:"\u2227",vee:"\u2228",lor:"\u2228",cap:"\u2229",cup:"\u222A",ddagger:"\u2021",dagger:"\u2020",sqcap:"\u2293",sqcup:"\u2294",uplus:"\u228E",amalg:"\u2A3F",diamond:"\u22C4",bullet:"\u2219",wr:"\u2240",div:"\xF7",divsymbol:"\xF7",odot:["\u2299",{largeop:!1}],oslash:["\u2298",{largeop:!1}],otimes:["\u2297",{largeop:!1}],ominus:["\u2296",{largeop:!1}],oplus:["\u2295",{largeop:!1}],mp:"\u2213",pm:"\xB1",circ:"\u2218",bigcirc:"\u25EF",setminus:"\u2216",cdot:"\u22C5",ast:"\u2217",times:"\xD7",star:"\u22C6",propto:"\u221D",sqsubseteq:"\u2291",sqsupseteq:"\u2292",parallel:"\u2225",mid:"\u2223",dashv:"\u22A3",vdash:"\u22A2",leq:"\u2264",le:"\u2264",geq:"\u2265",ge:"\u2265",lt:"<",gt:">",succ:"\u227B",prec:"\u227A",approx:"\u2248",succeq:"\u2AB0",preceq:"\u2AAF",supset:"\u2283",subset:"\u2282",supseteq:"\u2287",subseteq:"\u2286",in:"\u2208",ni:"\u220B",notin:"\u2209",owns:"\u220B",gg:"\u226B",ll:"\u226A",sim:"\u223C",simeq:"\u2243",perp:"\u22A5",equiv:"\u2261",asymp:"\u224D",smile:"\u2323",frown:"\u2322",ne:"\u2260",neq:"\u2260",cong:"\u2245",doteq:"\u2250",bowtie:"\u22C8",models:"\u22A8",notChar:"\u29F8",Leftrightarrow:"\u21D4",Leftarrow:"\u21D0",Rightarrow:"\u21D2",leftrightarrow:"\u2194",leftarrow:"\u2190",gets:"\u2190",rightarrow:"\u2192",to:["\u2192",{accent:!1}],mapsto:"\u21A6",leftharpoonup:"\u21BC",leftharpoondown:"\u21BD",rightharpoonup:"\u21C0",rightharpoondown:"\u21C1",nearrow:"\u2197",searrow:"\u2198",nwarrow:"\u2196",swarrow:"\u2199",rightleftharpoons:"\u21CC",hookrightarrow:"\u21AA",hookleftarrow:"\u21A9",longleftarrow:"\u27F5",Longleftarrow:"\u27F8",longrightarrow:"\u27F6",Longrightarrow:"\u27F9",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",ldots:"\u2026",cdots:"\u22EF",vdots:"\u22EE",ddots:"\u22F1",dotsc:"\u2026",dotsb:"\u22EF",dotsm:"\u22EF",dotsi:"\u22EF",dotso:"\u2026",ldotp:[".",{texClass:Se.TEXCLASS.PUNCT}],cdotp:["\u22C5",{texClass:Se.TEXCLASS.PUNCT}],colon:[":",{texClass:Se.TEXCLASS.PUNCT}]});new Wr.CharacterMap("mathchar7",bi.default.mathchar7,{Gamma:"\u0393",Delta:"\u0394",Theta:"\u0398",Lambda:"\u039B",Xi:"\u039E",Pi:"\u03A0",Sigma:"\u03A3",Upsilon:"\u03A5",Phi:"\u03A6",Psi:"\u03A8",Omega:"\u03A9",_:"_","#":"#",$:"$","%":"%","&":"&",And:"&"});new Wr.DelimiterMap("delimiter",bi.default.delimiter,{"(":"(",")":")","[":"[","]":"]","<":"\u27E8",">":"\u27E9","\\lt":"\u27E8","\\gt":"\u27E9","/":"/","|":["|",{texClass:Se.TEXCLASS.ORD}],".":"","\\\\":"\\","\\lmoustache":"\u23B0","\\rmoustache":"\u23B1","\\lgroup":"\u27EE","\\rgroup":"\u27EF","\\arrowvert":"\u23D0","\\Arrowvert":"\u2016","\\bracevert":"\u23AA","\\Vert":["\u2016",{texClass:Se.TEXCLASS.ORD}],"\\|":["\u2016",{texClass:Se.TEXCLASS.ORD}],"\\vert":["|",{texClass:Se.TEXCLASS.ORD}],"\\uparrow":"\u2191","\\downarrow":"\u2193","\\updownarrow":"\u2195","\\Uparrow":"\u21D1","\\Downarrow":"\u21D3","\\Updownarrow":"\u21D5","\\backslash":"\\","\\rangle":"\u27E9","\\langle":"\u27E8","\\rbrace":"}","\\lbrace":"{","\\}":"}","\\{":"{","\\rceil":"\u2309","\\lceil":"\u2308","\\rfloor":"\u230B","\\lfloor":"\u230A","\\lbrack":"[","\\rbrack":"]"});new Wr.CommandMap("macros",{displaystyle:["SetStyle","D",!0,0],textstyle:["SetStyle","T",!1,0],scriptstyle:["SetStyle","S",!1,1],scriptscriptstyle:["SetStyle","SS",!1,2],rm:["SetFont",ge.TexConstant.Variant.NORMAL],mit:["SetFont",ge.TexConstant.Variant.ITALIC],oldstyle:["SetFont",ge.TexConstant.Variant.OLDSTYLE],cal:["SetFont",ge.TexConstant.Variant.CALLIGRAPHIC],it:["SetFont",ge.TexConstant.Variant.MATHITALIC],bf:["SetFont",ge.TexConstant.Variant.BOLD],bbFont:["SetFont",ge.TexConstant.Variant.DOUBLESTRUCK],scr:["SetFont",ge.TexConstant.Variant.SCRIPT],frak:["SetFont",ge.TexConstant.Variant.FRAKTUR],sf:["SetFont",ge.TexConstant.Variant.SANSSERIF],tt:["SetFont",ge.TexConstant.Variant.MONOSPACE],mathrm:["MathFont",ge.TexConstant.Variant.NORMAL],mathup:["MathFont",ge.TexConstant.Variant.NORMAL],mathnormal:["MathFont",""],mathbf:["MathFont",ge.TexConstant.Variant.BOLD],mathbfup:["MathFont",ge.TexConstant.Variant.BOLD],mathit:["MathFont",ge.TexConstant.Variant.MATHITALIC],mathbfit:["MathFont",ge.TexConstant.Variant.BOLDITALIC],mathbb:["MathFont",ge.TexConstant.Variant.DOUBLESTRUCK],Bbb:["MathFont",ge.TexConstant.Variant.DOUBLESTRUCK],mathfrak:["MathFont",ge.TexConstant.Variant.FRAKTUR],mathbffrak:["MathFont",ge.TexConstant.Variant.BOLDFRAKTUR],mathscr:["MathFont",ge.TexConstant.Variant.SCRIPT],mathbfscr:["MathFont",ge.TexConstant.Variant.BOLDSCRIPT],mathsf:["MathFont",ge.TexConstant.Variant.SANSSERIF],mathsfup:["MathFont",ge.TexConstant.Variant.SANSSERIF],mathbfsf:["MathFont",ge.TexConstant.Variant.BOLDSANSSERIF],mathbfsfup:["MathFont",ge.TexConstant.Variant.BOLDSANSSERIF],mathsfit:["MathFont",ge.TexConstant.Variant.SANSSERIFITALIC],mathbfsfit:["MathFont",ge.TexConstant.Variant.SANSSERIFBOLDITALIC],mathtt:["MathFont",ge.TexConstant.Variant.MONOSPACE],mathcal:["MathFont",ge.TexConstant.Variant.CALLIGRAPHIC],mathbfcal:["MathFont",ge.TexConstant.Variant.BOLDCALLIGRAPHIC],symrm:["MathFont",ge.TexConstant.Variant.NORMAL],symup:["MathFont",ge.TexConstant.Variant.NORMAL],symnormal:["MathFont",""],symbf:["MathFont",ge.TexConstant.Variant.BOLD],symbfup:["MathFont",ge.TexConstant.Variant.BOLD],symit:["MathFont",ge.TexConstant.Variant.ITALIC],symbfit:["MathFont",ge.TexConstant.Variant.BOLDITALIC],symbb:["MathFont",ge.TexConstant.Variant.DOUBLESTRUCK],symfrak:["MathFont",ge.TexConstant.Variant.FRAKTUR],symbffrak:["MathFont",ge.TexConstant.Variant.BOLDFRAKTUR],symscr:["MathFont",ge.TexConstant.Variant.SCRIPT],symbfscr:["MathFont",ge.TexConstant.Variant.BOLDSCRIPT],symsf:["MathFont",ge.TexConstant.Variant.SANSSERIF],symsfup:["MathFont",ge.TexConstant.Variant.SANSSERIF],symbfsf:["MathFont",ge.TexConstant.Variant.BOLDSANSSERIF],symbfsfup:["MathFont",ge.TexConstant.Variant.BOLDSANSSERIF],symsfit:["MathFont",ge.TexConstant.Variant.SANSSERIFITALIC],symbfsfit:["MathFont",ge.TexConstant.Variant.SANSSERIFBOLDITALIC],symtt:["MathFont",ge.TexConstant.Variant.MONOSPACE],symcal:["MathFont",ge.TexConstant.Variant.CALLIGRAPHIC],symbfcal:["MathFont",ge.TexConstant.Variant.BOLDCALLIGRAPHIC],textrm:["HBox",null,ge.TexConstant.Variant.NORMAL],textup:["HBox",null,ge.TexConstant.Variant.NORMAL],textnormal:["HBox"],textit:["HBox",null,ge.TexConstant.Variant.ITALIC],textbf:["HBox",null,ge.TexConstant.Variant.BOLD],textsf:["HBox",null,ge.TexConstant.Variant.SANSSERIF],texttt:["HBox",null,ge.TexConstant.Variant.MONOSPACE],tiny:["SetSize",.5],Tiny:["SetSize",.6],scriptsize:["SetSize",.7],small:["SetSize",.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],arcsin:"NamedFn",arccos:"NamedFn",arctan:"NamedFn",arg:"NamedFn",cos:"NamedFn",cosh:"NamedFn",cot:"NamedFn",coth:"NamedFn",csc:"NamedFn",deg:"NamedFn",det:"NamedOp",dim:"NamedFn",exp:"NamedFn",gcd:"NamedOp",hom:"NamedFn",inf:"NamedOp",ker:"NamedFn",lg:"NamedFn",lim:"NamedOp",liminf:["NamedOp","lim inf"],limsup:["NamedOp","lim sup"],ln:"NamedFn",log:"NamedFn",max:"NamedOp",min:"NamedOp",Pr:"NamedOp",sec:"NamedFn",sin:"NamedFn",sinh:"NamedFn",sup:"NamedOp",tan:"NamedFn",tanh:"NamedFn",limits:["Limits",1],nolimits:["Limits",0],overline:["UnderOver","2015"],underline:["UnderOver","2015"],overbrace:["UnderOver","23DE",1],underbrace:["UnderOver","23DF",1],overparen:["UnderOver","23DC"],underparen:["UnderOver","23DD"],overrightarrow:["UnderOver","2192"],underrightarrow:["UnderOver","2192"],overleftarrow:["UnderOver","2190"],underleftarrow:["UnderOver","2190"],overleftrightarrow:["UnderOver","2194"],underleftrightarrow:["UnderOver","2194"],overset:"Overset",underset:"Underset",overunderset:"Overunderset",stackrel:["Macro","\\mathrel{\\mathop{#2}\\limits^{#1}}",2],stackbin:["Macro","\\mathbin{\\mathop{#2}\\limits^{#1}}",2],over:"Over",overwithdelims:"Over",atop:"Over",atopwithdelims:"Over",above:"Over",abovewithdelims:"Over",brace:["Over","{","}"],brack:["Over","[","]"],choose:["Over","(",")"],frac:"Frac",sqrt:"Sqrt",root:"Root",uproot:["MoveRoot","upRoot"],leftroot:["MoveRoot","leftRoot"],left:"LeftRight",right:"LeftRight",middle:"LeftRight",llap:"Lap",rlap:"Lap",raise:"RaiseLower",lower:"RaiseLower",moveleft:"MoveLeftRight",moveright:"MoveLeftRight",",":["Spacer",er.MATHSPACE.thinmathspace],":":["Spacer",er.MATHSPACE.mediummathspace],">":["Spacer",er.MATHSPACE.mediummathspace],";":["Spacer",er.MATHSPACE.thickmathspace],"!":["Spacer",er.MATHSPACE.negativethinmathspace],enspace:["Spacer",.5],quad:["Spacer",1],qquad:["Spacer",2],thinspace:["Spacer",er.MATHSPACE.thinmathspace],negthinspace:["Spacer",er.MATHSPACE.negativethinmathspace],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",rule:"rule",Rule:["Rule"],Space:["Rule","blank"],nonscript:"Nonscript",big:["MakeBig",Se.TEXCLASS.ORD,.85],Big:["MakeBig",Se.TEXCLASS.ORD,1.15],bigg:["MakeBig",Se.TEXCLASS.ORD,1.45],Bigg:["MakeBig",Se.TEXCLASS.ORD,1.75],bigl:["MakeBig",Se.TEXCLASS.OPEN,.85],Bigl:["MakeBig",Se.TEXCLASS.OPEN,1.15],biggl:["MakeBig",Se.TEXCLASS.OPEN,1.45],Biggl:["MakeBig",Se.TEXCLASS.OPEN,1.75],bigr:["MakeBig",Se.TEXCLASS.CLOSE,.85],Bigr:["MakeBig",Se.TEXCLASS.CLOSE,1.15],biggr:["MakeBig",Se.TEXCLASS.CLOSE,1.45],Biggr:["MakeBig",Se.TEXCLASS.CLOSE,1.75],bigm:["MakeBig",Se.TEXCLASS.REL,.85],Bigm:["MakeBig",Se.TEXCLASS.REL,1.15],biggm:["MakeBig",Se.TEXCLASS.REL,1.45],Biggm:["MakeBig",Se.TEXCLASS.REL,1.75],mathord:["TeXAtom",Se.TEXCLASS.ORD],mathop:["TeXAtom",Se.TEXCLASS.OP],mathopen:["TeXAtom",Se.TEXCLASS.OPEN],mathclose:["TeXAtom",Se.TEXCLASS.CLOSE],mathbin:["TeXAtom",Se.TEXCLASS.BIN],mathrel:["TeXAtom",Se.TEXCLASS.REL],mathpunct:["TeXAtom",Se.TEXCLASS.PUNCT],mathinner:["TeXAtom",Se.TEXCLASS.INNER],vcenter:["TeXAtom",Se.TEXCLASS.VCENTER],buildrel:"BuildRel",hbox:["HBox",0],text:"HBox",mbox:["HBox",0],fbox:"FBox",boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],framebox:"FrameBox",strut:"Strut",mathstrut:["Macro","\\vphantom{(}"],phantom:"Phantom",vphantom:["Phantom",1,0],hphantom:["Phantom",0,1],smash:"Smash",acute:["Accent","00B4"],grave:["Accent","0060"],ddot:["Accent","00A8"],tilde:["Accent","007E"],bar:["Accent","00AF"],breve:["Accent","02D8"],check:["Accent","02C7"],hat:["Accent","005E"],vec:["Accent","2192"],dot:["Accent","02D9"],widetilde:["Accent","007E",1],widehat:["Accent","005E",1],matrix:"Matrix",array:"Matrix",pmatrix:["Matrix","(",")"],cases:["Matrix","{","","left left",null,".1em",null,!0],eqalign:["Matrix",null,null,"right left",(0,er.em)(er.MATHSPACE.thickmathspace),".5em","D"],displaylines:["Matrix",null,null,"center",null,".5em","D"],cr:"Cr","\\":"CrLaTeX",newline:["CrLaTeX",!0],hline:["HLine","solid"],hdashline:["HLine","dashed"],eqalignno:["Matrix",null,null,"right left",(0,er.em)(er.MATHSPACE.thickmathspace),".5em","D",null,"right"],leqalignno:["Matrix",null,null,"right left",(0,er.em)(er.MATHSPACE.thickmathspace),".5em","D",null,"left"],hfill:"HFill",hfil:"HFill",hfilll:"HFill",bmod:["Macro",'\\mmlToken{mo}[lspace="thickmathspace" rspace="thickmathspace"]{mod}'],pmod:["Macro","\\pod{\\mmlToken{mi}{mod}\\kern 6mu #1}",1],mod:["Macro","\\mathchoice{\\kern18mu}{\\kern12mu}{\\kern12mu}{\\kern12mu}\\mmlToken{mi}{mod}\\,\\,#1",1],pod:["Macro","\\mathchoice{\\kern18mu}{\\kern8mu}{\\kern8mu}{\\kern8mu}(#1)",1],iff:["Macro","\\;\\Longleftrightarrow\\;"],skew:["Macro","{{#2{#3\\mkern#1mu}\\mkern-#1mu}{}}",3],pmb:["Macro","\\rlap{#1}\\kern1px{#1}",1],TeX:["Macro","T\\kern-.14em\\lower.5ex{E}\\kern-.115em X"],LaTeX:["Macro","L\\kern-.325em\\raise.21em{\\scriptstyle{A}}\\kern-.17em\\TeX"]," ":["Macro","\\text{ }"],not:"Not",dots:"Dots",space:"Tilde","\xA0":"Tilde",begin:"BeginEnd",end:"BeginEnd",label:"HandleLabel",ref:"HandleRef",nonumber:"HandleNoTag",mathchoice:"MathChoice",mmlToken:"MmlToken"},zy.default);new Wr.EnvironmentMap("environment",bi.default.environment,{array:["AlignedArray"],equation:["Equation",null,!0],eqnarray:["EqnArray",null,!0,!0,"rcl",Bj.default.cols(0,er.MATHSPACE.thickmathspace),".5em"]},zy.default);new Wr.CharacterMap("not_remap",null,{"\u2190":"\u219A","\u2192":"\u219B","\u2194":"\u21AE","\u21D0":"\u21CD","\u21D2":"\u21CF","\u21D4":"\u21CE","\u2208":"\u2209","\u220B":"\u220C","\u2223":"\u2224","\u2225":"\u2226","\u223C":"\u2241","~":"\u2241","\u2243":"\u2244","\u2245":"\u2247","\u2248":"\u2249","\u224D":"\u226D","=":"\u2260","\u2261":"\u2262","<":"\u226E",">":"\u226F","\u2264":"\u2270","\u2265":"\u2271","\u2272":"\u2274","\u2273":"\u2275","\u2276":"\u2278","\u2277":"\u2279","\u227A":"\u2280","\u227B":"\u2281","\u2282":"\u2284","\u2283":"\u2285","\u2286":"\u2288","\u2287":"\u2289","\u22A2":"\u22AC","\u22A8":"\u22AD","\u22A9":"\u22AE","\u22AB":"\u22AF","\u227C":"\u22E0","\u227D":"\u22E1","\u2291":"\u22E2","\u2292":"\u22E3","\u22B2":"\u22EA","\u22B3":"\u22EB","\u22B4":"\u22EC","\u22B5":"\u22ED","\u2203":"\u2204"})});var _c=ee(vt=>{"use strict";var Fj=vt&&vt.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),qj=vt&&vt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Uj=vt&&vt.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Hj=vt&&vt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&qj(t,e,r);return Uj(t,e),t},zj=vt&&vt.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},bA=vt&&vt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ut;Object.defineProperty(vt,"__esModule",{value:!0});vt.BaseConfiguration=vt.BaseTags=vt.Other=void 0;var Gj=ze(),Wj=Ts(),wA=bA($e()),Kj=bA(st()),Xj=He(),Ce=Hj(mn()),$j=Qn();vA();var Vj=cy();new Xj.CharacterMap("remap",null,{"-":"\u2212","*":"\u2217","`":"\u2018"});function EA(e,t){var r=e.stack.env.font,n=r?{mathvariant:e.stack.env.font}:{},i=Wj.MapHandler.getMap("remap").lookup(t),a=(0,Vj.getRange)(t),o=a?a[3]:"mo",s=e.create("token",o,n,i?i.char:t);a[4]&&s.attributes.set("mathvariant",a[4]),o==="mo"&&(Kj.default.setProperty(s,"fixStretchy",!0),e.configuration.addNode("fixStretchy",s)),e.Push(s)}vt.Other=EA;function Yj(e,t){throw new wA.default("UndefinedControlSequence","Undefined control sequence %1","\\"+t)}function Zj(e,t){throw new wA.default("UnknownEnv","Unknown environment '%1'",t)}function Jj(e){var t,r,n=e.data;try{for(var i=zj(n.getList("nonscript")),a=i.next();!a.done;a=i.next()){var o=a.value;if(o.attributes.get("scriptlevel")>0){var s=o.parent;if(s.childNodes.splice(s.childIndex(o),1),n.removeFromList(o.kind,[o]),o.isKind("mrow")){var l=o.childNodes[0];n.removeFromList("mstyle",[l]),n.removeFromList("mspace",l.childNodes[0].childNodes)}}else o.isKind("mrow")&&(o.parent.replaceChild(o.childNodes[0],o),n.removeFromList("mrow",[o]))}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}var AA=(function(e){Fj(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})($j.AbstractTags);vt.BaseTags=AA;vt.BaseConfiguration=Gj.Configuration.create("base",{handler:{character:["command","special","letter","digit"],delimiter:["delimiter"],macro:["delimiter","macros","mathchar0mi","mathchar0mo","mathchar7"],environment:["environment"]},fallback:{character:EA,macro:Yj,environment:Zj},items:(ut={},ut[Ce.StartItem.prototype.kind]=Ce.StartItem,ut[Ce.StopItem.prototype.kind]=Ce.StopItem,ut[Ce.OpenItem.prototype.kind]=Ce.OpenItem,ut[Ce.CloseItem.prototype.kind]=Ce.CloseItem,ut[Ce.PrimeItem.prototype.kind]=Ce.PrimeItem,ut[Ce.SubsupItem.prototype.kind]=Ce.SubsupItem,ut[Ce.OverItem.prototype.kind]=Ce.OverItem,ut[Ce.LeftItem.prototype.kind]=Ce.LeftItem,ut[Ce.Middle.prototype.kind]=Ce.Middle,ut[Ce.RightItem.prototype.kind]=Ce.RightItem,ut[Ce.BeginItem.prototype.kind]=Ce.BeginItem,ut[Ce.EndItem.prototype.kind]=Ce.EndItem,ut[Ce.StyleItem.prototype.kind]=Ce.StyleItem,ut[Ce.PositionItem.prototype.kind]=Ce.PositionItem,ut[Ce.CellItem.prototype.kind]=Ce.CellItem,ut[Ce.MmlItem.prototype.kind]=Ce.MmlItem,ut[Ce.FnItem.prototype.kind]=Ce.FnItem,ut[Ce.NotItem.prototype.kind]=Ce.NotItem,ut[Ce.NonscriptItem.prototype.kind]=Ce.NonscriptItem,ut[Ce.DotsItem.prototype.kind]=Ce.DotsItem,ut[Ce.ArrayItem.prototype.kind]=Ce.ArrayItem,ut[Ce.EqnArrayItem.prototype.kind]=Ce.EqnArrayItem,ut[Ce.EquationItem.prototype.kind]=Ce.EquationItem,ut),options:{maxMacros:1e3,baseURL:typeof document>"u"||document.getElementsByTagName("base").length===0?"":String(document.location).replace(/#.*$/,"")},tags:{base:AA},postprocessors:[[Jj,-4]]})});var MA=ee(vr=>{"use strict";var Qj=vr&&vr.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),bc=vr&&vr.__assign||function(){return bc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},bc.apply(this,arguments)},eR=vr&&vr.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},Ms=vr&&vr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vr,"__esModule",{value:!0});vr.TeX=void 0;var OA=iy(),TA=It(),SA=x0(),co=Ms(R0()),xA=Ms(st()),tR=Ms(jt()),rR=Ms($e()),nR=Ms(Sy()),vc=Qn(),iR=ze();_c();var aR=(function(e){Qj(t,e);function t(r){r===void 0&&(r={});var n=this,i=eR((0,TA.separateOptions)(r,t.OPTIONS,SA.FindTeX.OPTIONS),3),a=i[0],o=i[1],s=i[2];n=e.call(this,o)||this,n.findTeX=n.options.FindTeX||new SA.FindTeX(s);var l=n.options.packages,c=n.configuration=t.configure(l),d=n._parseOptions=new nR.default(c,[n.options,vc.TagsFactory.OPTIONS]);return(0,TA.userOptions)(d.options,a),c.config(n),t.tags(d,c),n.postFilters.add(co.default.cleanSubSup,-6),n.postFilters.add(co.default.setInherited,-5),n.postFilters.add(co.default.moveLimits,-4),n.postFilters.add(co.default.cleanStretchy,-3),n.postFilters.add(co.default.cleanAttributes,-2),n.postFilters.add(co.default.combineRelations,-1),n}return t.configure=function(r){var n=new iR.ParserConfiguration(r,["tex"]);return n.init(),n},t.tags=function(r,n){vc.TagsFactory.addTags(n.tags),vc.TagsFactory.setDefault(r.options.tags),r.tags=vc.TagsFactory.getDefault(),r.tags.configuration=r},t.prototype.setMmlFactory=function(r){e.prototype.setMmlFactory.call(this,r),this._parseOptions.nodeFactory.setMmlFactory(r)},Object.defineProperty(t.prototype,"parseOptions",{get:function(){return this._parseOptions},enumerable:!1,configurable:!0}),t.prototype.reset=function(r){r===void 0&&(r=0),this.parseOptions.tags.reset(r)},t.prototype.compile=function(r,n){this.parseOptions.clear(),this.executeFilters(this.preFilters,r,n,this.parseOptions);var i=r.display;this.latex=r.math;var a;this.parseOptions.tags.startEquation(r);var o;try{var s=new tR.default(this.latex,{display:i,isInner:!1},this.parseOptions);a=s.mml(),o=s.stack.global}catch(l){if(!(l instanceof rR.default))throw l;this.parseOptions.error=!0,a=this.options.formatError(this,l)}return a=this.parseOptions.nodeFactory.create("node","math",[a]),o?.indentalign&&xA.default.setAttribute(a,"indentalign",o.indentalign),i&&xA.default.setAttribute(a,"display","block"),this.parseOptions.tags.finishEquation(r),this.parseOptions.root=a,this.executeFilters(this.postFilters,r,n,this.parseOptions),this.mathNode=this.parseOptions.root,this.mathNode},t.prototype.findMath=function(r){return this.findTeX.findMath(r)},t.prototype.formatError=function(r){var n=r.message.replace(/\n.*/,"");return this.parseOptions.nodeFactory.create("error",n,r.id,this.latex)},t.NAME="TeX",t.OPTIONS=bc(bc({},OA.AbstractInputJax.OPTIONS),{FindTeX:null,packages:["base"],digits:/^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)?|\.[0-9]+)/,maxBuffer:5*1024,formatError:function(r,n){return r.formatError(n)}}),t})(OA.AbstractInputJax);vr.TeX=aR});var kA=ee(br=>{"use strict";var CA=br&&br.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(br,"__esModule",{value:!0});br.ActionConfiguration=br.ActionMethods=void 0;var oR=ze(),sR=CA(jt()),lR=He(),cR=CA(dr());br.ActionMethods={};br.ActionMethods.Macro=cR.default.Macro;br.ActionMethods.Toggle=function(e,t){for(var r=[],n;(n=e.GetArgument(t))!=="\\endtoggle";)r.push(new sR.default(n,e.stack.env,e.configuration).mml());e.Push(e.create("node","maction",r,{actiontype:"toggle"}))};br.ActionMethods.Mathtip=function(e,t){var r=e.ParseArg(t),n=e.ParseArg(t);e.Push(e.create("node","maction",[r,n],{actiontype:"tooltip"}))};new lR.CommandMap("action-macros",{toggle:"Toggle",mathtip:"Mathtip",texttip:["Macro","\\mathtip{#1}{\\text{#2}}",2]},br.ActionMethods);br.ActionConfiguration=oR.Configuration.create("action",{handler:{macro:["action-macros"]}})});var Xy=ee(Er=>{"use strict";var NA=Er&&Er.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Wy=Er&&Er.__assign||function(){return Wy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Wy.apply(this,arguments)},Ky=Er&&Er.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Er,"__esModule",{value:!0});Er.FlalignItem=Er.MultlineItem=void 0;var IA=mn(),uR=Ky(Qe()),wr=Ky(st()),PA=Ky($e()),Gy=Rt(),dR=(function(e){NA(t,e);function t(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var a=e.call(this,r)||this;return a.factory.configuration.tags.start("multline",!0,n[0]),a}return Object.defineProperty(t.prototype,"kind",{get:function(){return"multline"},enumerable:!1,configurable:!0}),t.prototype.EndEntry=function(){this.table.length&&uR.default.fixInitialMO(this.factory.configuration,this.nodes);var r=this.getProperty("shove"),n=this.create("node","mtd",this.nodes,r?{columnalign:r}:{});this.setProperty("shove",null),this.row.push(n),this.Clear()},t.prototype.EndRow=function(){if(this.row.length!==1)throw new PA.default("MultlineRowsOneCol","The rows within the %1 environment must have exactly one column","multline");var r=this.create("node","mtr",this.row);this.table.push(r),this.row=[]},t.prototype.EndTable=function(){if(e.prototype.EndTable.call(this),this.table.length){var r=this.table.length-1,n=-1;wr.default.getAttribute(wr.default.getChildren(this.table[0])[0],"columnalign")||wr.default.setAttribute(wr.default.getChildren(this.table[0])[0],"columnalign",Gy.TexConstant.Align.LEFT),wr.default.getAttribute(wr.default.getChildren(this.table[r])[0],"columnalign")||wr.default.setAttribute(wr.default.getChildren(this.table[r])[0],"columnalign",Gy.TexConstant.Align.RIGHT);var i=this.factory.configuration.tags.getTag();if(i){n=this.arraydef.side===Gy.TexConstant.Align.LEFT?0:this.table.length-1;var a=this.table[n],o=this.create("node","mlabeledtr",[i].concat(wr.default.getChildren(a)));wr.default.copyAttributes(a,o),this.table[n]=o}}this.factory.configuration.tags.end()},t})(IA.ArrayItem);Er.MultlineItem=dR;var fR=(function(e){NA(t,e);function t(r,n,i,a,o){var s=e.call(this,r)||this;return s.name=n,s.numbered=i,s.padded=a,s.center=o,s.factory.configuration.tags.start(n,i,i),s}return Object.defineProperty(t.prototype,"kind",{get:function(){return"flalign"},enumerable:!1,configurable:!0}),t.prototype.EndEntry=function(){e.prototype.EndEntry.call(this);var r=this.getProperty("xalignat");if(r&&this.row.length>r)throw new PA.default("XalignOverflow","Extra %1 in row of %2","&",this.name)},t.prototype.EndRow=function(){for(var r,n=this.row,i=this.getProperty("xalignat");n.length<i;)n.push(this.create("node","mtd"));for(this.row=[],this.padded&&this.row.push(this.create("node","mtd"));r=n.shift();)this.row.push(r),r=n.shift(),r&&this.row.push(r),(n.length||this.padded)&&this.row.push(this.create("node","mtd"));this.row.length>this.maxrow&&(this.maxrow=this.row.length),e.prototype.EndRow.call(this);var a=this.table[this.table.length-1];if(this.getProperty("zeroWidthLabel")&&a.isKind("mlabeledtr")){var o=wr.default.getChildren(a)[0],s=this.factory.configuration.options.tagSide,l=Wy({width:0},s==="right"?{lspace:"-1width"}:{}),c=this.create("node","mpadded",wr.default.getChildren(o),l);o.setChildren([c])}},t.prototype.EndTable=function(){if(e.prototype.EndTable.call(this),this.center&&this.maxrow<=2){var r=this.arraydef;delete r.width,delete this.global.indentalign}},t})(IA.EqnArrayItem);Er.FlalignItem=fR});var fo=ee(Ie=>{"use strict";var wc=Ie&&Ie.__assign||function(){return wc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},wc.apply(this,arguments)},jA=Ie&&Ie.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},uo=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.NEW_OPS=Ie.AmsMethods=void 0;var fr=uo(Qe()),mR=uo(hn()),mt=uo(st()),$y=Rt(),Ec=uo(jt()),wi=uo($e()),hR=_a(),Kr=uo(dr()),Vy=Te();Ie.AmsMethods={};Ie.AmsMethods.AmsEqnArray=function(e,t,r,n,i,a,o){var s=e.GetBrackets("\\begin{"+t.getName()+"}"),l=Kr.default.EqnArray(e,t,r,n,i,a,o);return fr.default.setArrayAlign(l,s)};Ie.AmsMethods.AlignAt=function(e,t,r,n){var i=t.getName(),a,o,s="",l=[];if(n||(o=e.GetBrackets("\\begin{"+i+"}")),a=e.GetArgument("\\begin{"+i+"}"),a.match(/[^0-9]/))throw new wi.default("PositiveIntegerArg","Argument to %1 must me a positive integer","\\begin{"+i+"}");for(var c=parseInt(a,10);c>0;)s+="rl",l.push("0em 0em"),c--;var d=l.join(" ");if(n)return Ie.AmsMethods.EqnArray(e,t,r,n,s,d);var f=Ie.AmsMethods.EqnArray(e,t,r,n,s,d);return fr.default.setArrayAlign(f,o)};Ie.AmsMethods.Multline=function(e,t,r){e.Push(t),fr.default.checkEqnEnv(e);var n=e.itemFactory.create("multline",r,e.stack);return n.arraydef={displaystyle:!0,rowspacing:".5em",columnspacing:"100%",width:e.options.ams.multlineWidth,side:e.options.tagSide,minlabelspacing:e.options.tagIndent,framespacing:e.options.ams.multlineIndent+" 0",frame:"","data-width-includes-label":!0},n};Ie.AmsMethods.XalignAt=function(e,t,r,n){var i=e.GetArgument("\\begin{"+t.getName()+"}");if(i.match(/[^0-9]/))throw new wi.default("PositiveIntegerArg","Argument to %1 must me a positive integer","\\begin{"+t.getName()+"}");var a=n?"crl":"rlc",o=n?"fit auto auto":"auto auto fit",s=Ie.AmsMethods.FlalignArray(e,t,r,n,!1,a,o,!0);return s.setProperty("xalignat",2*parseInt(i)),s};Ie.AmsMethods.FlalignArray=function(e,t,r,n,i,a,o,s){s===void 0&&(s=!1),e.Push(t),fr.default.checkEqnEnv(e),a=a.split("").join(" ").replace(/r/g,"right").replace(/l/g,"left").replace(/c/g,"center");var l=e.itemFactory.create("flalign",t.getName(),r,n,i,e.stack);return l.arraydef={width:"100%",displaystyle:!0,columnalign:a,columnspacing:"0em",columnwidth:o,rowspacing:"3pt",side:e.options.tagSide,minlabelspacing:s?"0":e.options.tagIndent,"data-width-includes-label":!0},l.setProperty("zeroWidthLabel",s),l};Ie.NEW_OPS="ams-declare-ops";Ie.AmsMethods.HandleDeclareOp=function(e,t){var r=e.GetStar()?"*":"",n=fr.default.trimSpaces(e.GetArgument(t));n.charAt(0)==="\\"&&(n=n.substr(1));var i=e.GetArgument(t);e.configuration.handlers.retrieve(Ie.NEW_OPS).add(n,new hR.Macro(n,Ie.AmsMethods.Macro,["\\operatorname".concat(r,"{").concat(i,"}")]))};Ie.AmsMethods.HandleOperatorName=function(e,t){var r=e.GetStar(),n=fr.default.trimSpaces(e.GetArgument(t)),i=new Ec.default(n,wc(wc({},e.stack.env),{font:$y.TexConstant.Variant.NORMAL,multiLetterIdentifiers:/^[-*a-z]+/i,operatorLetters:!0}),e.configuration).mml();if(i.isKind("mi")||(i=e.create("node","TeXAtom",[i])),mt.default.setProperties(i,{movesupsub:r,movablelimits:!0,texClass:Vy.TEXCLASS.OP}),!r){var a=e.GetNext(),o=e.i;a==="\\"&&++e.i&&e.GetCS()!=="limits"&&(e.i=o)}e.Push(i)};Ie.AmsMethods.SideSet=function(e,t){var r=jA(RA(e.ParseArg(t)),2),n=r[0],i=r[1],a=jA(RA(e.ParseArg(t)),2),o=a[0],s=a[1],l=e.ParseArg(t),c=l;n&&(i?n.replaceChild(e.create("node","mphantom",[e.create("node","mpadded",[fr.default.copyNode(l,e)],{width:0})]),mt.default.getChildAt(n,0)):(c=e.create("node","mmultiscripts",[l]),o&&mt.default.appendChildren(c,[mt.default.getChildAt(o,1)||e.create("node","none"),mt.default.getChildAt(o,2)||e.create("node","none")]),mt.default.setProperty(c,"scriptalign","left"),mt.default.appendChildren(c,[e.create("node","mprescripts"),mt.default.getChildAt(n,1)||e.create("node","none"),mt.default.getChildAt(n,2)||e.create("node","none")]))),o&&c===l&&(o.replaceChild(l,mt.default.getChildAt(o,0)),c=o);var d=e.create("node","TeXAtom",[],{texClass:Vy.TEXCLASS.OP,movesupsub:!0,movablelimits:!0});i&&(n&&d.appendChild(n),d.appendChild(i)),d.appendChild(c),s&&d.appendChild(s),e.Push(d)};function RA(e){if(!e||e.isInferred&&e.childNodes.length===0)return[null,null];if(e.isKind("msubsup")&&LA(e))return[e,null];var t=mt.default.getChildAt(e,0);return e.isInferred&&t&&LA(t)?(e.childNodes.splice(0,1),[t,e]):[null,e]}function LA(e){var t=e.childNodes[0];return t&&t.isKind("mi")&&t.getText()===""}Ie.AmsMethods.operatorLetter=function(e,t){return e.stack.env.operatorLetters?mR.default.variable(e,t):!1};Ie.AmsMethods.MultiIntegral=function(e,t,r){var n=e.GetNext();if(n==="\\"){var i=e.i;n=e.GetArgument(t),e.i=i,n==="\\limits"&&(t==="\\idotsint"?r="\\!\\!\\mathop{\\,\\,"+r+"}":r="\\!\\!\\!\\mathop{\\,\\,\\,"+r+"}")}e.string=r+" "+e.string.slice(e.i),e.i=0};Ie.AmsMethods.xArrow=function(e,t,r,n,i){var a={width:"+"+fr.default.Em((n+i)/18),lspace:fr.default.Em(n/18)},o=e.GetBrackets(t),s=e.ParseArg(t),l=e.create("node","mspace",[],{depth:".25em"}),c=e.create("token","mo",{stretchy:!0,texClass:Vy.TEXCLASS.REL},String.fromCodePoint(r));c=e.create("node","mstyle",[c],{scriptlevel:0});var d=e.create("node","munderover",[c]),f=e.create("node","mpadded",[s,l],a);if(mt.default.setAttribute(f,"voffset","-.2em"),mt.default.setAttribute(f,"height","-.2em"),mt.default.setChild(d,d.over,f),o){var m=new Ec.default(o,e.stack.env,e.configuration).mml(),p=e.create("node","mspace",[],{height:".75em"});f=e.create("node","mpadded",[m,p],a),mt.default.setAttribute(f,"voffset",".15em"),mt.default.setAttribute(f,"depth","-.15em"),mt.default.setChild(d,d.under,f)}mt.default.setProperty(d,"subsupOK",!0),e.Push(d)};Ie.AmsMethods.HandleShove=function(e,t,r){var n=e.stack.Top();if(n.kind!=="multline")throw new wi.default("CommandOnlyAllowedInEnv","%1 only allowed in %2 environment",e.currentCS,"multline");if(n.Size())throw new wi.default("CommandAtTheBeginingOfLine","%1 must come at the beginning of the line",e.currentCS);n.setProperty("shove",r)};Ie.AmsMethods.CFrac=function(e,t){var r=fr.default.trimSpaces(e.GetBrackets(t,"")),n=e.GetArgument(t),i=e.GetArgument(t),a={l:$y.TexConstant.Align.LEFT,r:$y.TexConstant.Align.RIGHT,"":""},o=new Ec.default("\\strut\\textstyle{"+n+"}",e.stack.env,e.configuration).mml(),s=new Ec.default("\\strut\\textstyle{"+i+"}",e.stack.env,e.configuration).mml(),l=e.create("node","mfrac",[o,s]);if(r=a[r],r==null)throw new wi.default("IllegalAlign","Illegal alignment specified in %1",e.currentCS);r&&mt.default.setProperties(l,{numalign:r,denomalign:r}),e.Push(l)};Ie.AmsMethods.Genfrac=function(e,t,r,n,i,a){r==null&&(r=e.GetDelimiterArg(t)),n==null&&(n=e.GetDelimiterArg(t)),i==null&&(i=e.GetArgument(t)),a==null&&(a=fr.default.trimSpaces(e.GetArgument(t)));var o=e.ParseArg(t),s=e.ParseArg(t),l=e.create("node","mfrac",[o,s]);if(i!==""&&mt.default.setAttribute(l,"linethickness",i),(r||n)&&(mt.default.setProperty(l,"withDelims",!0),l=fr.default.fixedFence(e.configuration,r,l,n)),a!==""){var c=parseInt(a,10),d=["D","T","S","SS"][c];if(d==null)throw new wi.default("BadMathStyleFor","Bad math style for %1",e.currentCS);l=e.create("node","mstyle",[l]),d==="D"?mt.default.setProperties(l,{displaystyle:!0,scriptlevel:0}):mt.default.setProperties(l,{displaystyle:!1,scriptlevel:c-1})}e.Push(l)};Ie.AmsMethods.HandleTag=function(e,t){if(!e.tags.currentTag.taggable&&e.tags.env)throw new wi.default("CommandNotAllowedInEnv","%1 not allowed in %2 environment",e.currentCS,e.tags.env);if(e.tags.currentTag.tag)throw new wi.default("MultipleCommand","Multiple %1",e.currentCS);var r=e.GetStar(),n=fr.default.trimSpaces(e.GetArgument(t));e.tags.tag(n,r)};Ie.AmsMethods.HandleNoTag=Kr.default.HandleNoTag;Ie.AmsMethods.HandleRef=Kr.default.HandleRef;Ie.AmsMethods.Macro=Kr.default.Macro;Ie.AmsMethods.Accent=Kr.default.Accent;Ie.AmsMethods.Tilde=Kr.default.Tilde;Ie.AmsMethods.Array=Kr.default.Array;Ie.AmsMethods.Spacer=Kr.default.Spacer;Ie.AmsMethods.NamedOp=Kr.default.NamedOp;Ie.AmsMethods.EqnArray=Kr.default.EqnArray;Ie.AmsMethods.Equation=Kr.default.Equation});var BA=ee(gn=>{"use strict";var pR=gn&&gn.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),gR=gn&&gn.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),yR=gn&&gn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&pR(t,e,r);return gR(t,e),t},DA=gn&&gn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gn,"__esModule",{value:!0});var Ac=fo(),ri=yR(He()),Ht=Rt(),mo=DA(hn()),ba=DA(Qe()),Cs=Te(),Yy=oo();new ri.CharacterMap("AMSmath-mathchar0mo",mo.default.mathchar0mo,{iiiint:["\u2A0C",{texClass:Cs.TEXCLASS.OP}]});new ri.RegExpMap("AMSmath-operatorLetter",Ac.AmsMethods.operatorLetter,/[-*]/i);new ri.CommandMap("AMSmath-macros",{mathring:["Accent","02DA"],nobreakspace:"Tilde",negmedspace:["Spacer",Yy.MATHSPACE.negativemediummathspace],negthickspace:["Spacer",Yy.MATHSPACE.negativethickmathspace],idotsint:["MultiIntegral","\\int\\cdots\\int"],dddot:["Accent","20DB"],ddddot:["Accent","20DC"],sideset:"SideSet",boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],tag:"HandleTag",notag:"HandleNoTag",eqref:["HandleRef",!0],substack:["Macro","\\begin{subarray}{c}#1\\end{subarray}",1],injlim:["NamedOp","inj lim"],projlim:["NamedOp","proj lim"],varliminf:["Macro","\\mathop{\\underline{\\mmlToken{mi}{lim}}}"],varlimsup:["Macro","\\mathop{\\overline{\\mmlToken{mi}{lim}}}"],varinjlim:["Macro","\\mathop{\\underrightarrow{\\mmlToken{mi}{lim}}}"],varprojlim:["Macro","\\mathop{\\underleftarrow{\\mmlToken{mi}{lim}}}"],DeclareMathOperator:"HandleDeclareOp",operatorname:"HandleOperatorName",genfrac:"Genfrac",frac:["Genfrac","","","",""],tfrac:["Genfrac","","","","1"],dfrac:["Genfrac","","","","0"],binom:["Genfrac","(",")","0",""],tbinom:["Genfrac","(",")","0","1"],dbinom:["Genfrac","(",")","0","0"],cfrac:"CFrac",shoveleft:["HandleShove",Ht.TexConstant.Align.LEFT],shoveright:["HandleShove",Ht.TexConstant.Align.RIGHT],xrightarrow:["xArrow",8594,5,10],xleftarrow:["xArrow",8592,10,5]},Ac.AmsMethods);new ri.EnvironmentMap("AMSmath-environment",mo.default.environment,{"equation*":["Equation",null,!1],"eqnarray*":["EqnArray",null,!1,!0,"rcl",ba.default.cols(0,Yy.MATHSPACE.thickmathspace),".5em"],align:["EqnArray",null,!0,!0,"rl",ba.default.cols(0,2)],"align*":["EqnArray",null,!1,!0,"rl",ba.default.cols(0,2)],multline:["Multline",null,!0],"multline*":["Multline",null,!1],split:["EqnArray",null,!1,!1,"rl",ba.default.cols(0)],gather:["EqnArray",null,!0,!0,"c"],"gather*":["EqnArray",null,!1,!0,"c"],alignat:["AlignAt",null,!0,!0],"alignat*":["AlignAt",null,!1,!0],alignedat:["AlignAt",null,!1,!1],aligned:["AmsEqnArray",null,null,null,"rl",ba.default.cols(0,2),".5em","D"],gathered:["AmsEqnArray",null,null,null,"c",null,".5em","D"],xalignat:["XalignAt",null,!0,!0],"xalignat*":["XalignAt",null,!1,!0],xxalignat:["XalignAt",null,!1,!1],flalign:["FlalignArray",null,!0,!1,!0,"rlc","auto auto fit"],"flalign*":["FlalignArray",null,!1,!1,!0,"rlc","auto auto fit"],subarray:["Array",null,null,null,null,ba.default.cols(0),"0.1em","S",1],smallmatrix:["Array",null,null,null,"c",ba.default.cols(1/3),".2em","S",1],matrix:["Array",null,null,null,"c"],pmatrix:["Array",null,"(",")","c"],bmatrix:["Array",null,"[","]","c"],Bmatrix:["Array",null,"\\{","\\}","c"],vmatrix:["Array",null,"\\vert","\\vert","c"],Vmatrix:["Array",null,"\\Vert","\\Vert","c"],cases:["Array",null,"\\{",".","ll",null,".2em","T"]},Ac.AmsMethods);new ri.DelimiterMap("AMSmath-delimiter",mo.default.delimiter,{"\\lvert":["|",{texClass:Cs.TEXCLASS.OPEN}],"\\rvert":["|",{texClass:Cs.TEXCLASS.CLOSE}],"\\lVert":["\u2016",{texClass:Cs.TEXCLASS.OPEN}],"\\rVert":["\u2016",{texClass:Cs.TEXCLASS.CLOSE}]});new ri.CharacterMap("AMSsymbols-mathchar0mi",mo.default.mathchar0mi,{digamma:"\u03DD",varkappa:"\u03F0",varGamma:["\u0393",{mathvariant:Ht.TexConstant.Variant.ITALIC}],varDelta:["\u0394",{mathvariant:Ht.TexConstant.Variant.ITALIC}],varTheta:["\u0398",{mathvariant:Ht.TexConstant.Variant.ITALIC}],varLambda:["\u039B",{mathvariant:Ht.TexConstant.Variant.ITALIC}],varXi:["\u039E",{mathvariant:Ht.TexConstant.Variant.ITALIC}],varPi:["\u03A0",{mathvariant:Ht.TexConstant.Variant.ITALIC}],varSigma:["\u03A3",{mathvariant:Ht.TexConstant.Variant.ITALIC}],varUpsilon:["\u03A5",{mathvariant:Ht.TexConstant.Variant.ITALIC}],varPhi:["\u03A6",{mathvariant:Ht.TexConstant.Variant.ITALIC}],varPsi:["\u03A8",{mathvariant:Ht.TexConstant.Variant.ITALIC}],varOmega:["\u03A9",{mathvariant:Ht.TexConstant.Variant.ITALIC}],beth:"\u2136",gimel:"\u2137",daleth:"\u2138",backprime:["\u2035",{variantForm:!0}],hslash:"\u210F",varnothing:["\u2205",{variantForm:!0}],blacktriangle:"\u25B4",triangledown:["\u25BD",{variantForm:!0}],blacktriangledown:"\u25BE",square:"\u25FB",Box:"\u25FB",blacksquare:"\u25FC",lozenge:"\u25CA",Diamond:"\u25CA",blacklozenge:"\u29EB",circledS:["\u24C8",{mathvariant:Ht.TexConstant.Variant.NORMAL}],bigstar:"\u2605",sphericalangle:"\u2222",measuredangle:"\u2221",nexists:"\u2204",complement:"\u2201",mho:"\u2127",eth:["\xF0",{mathvariant:Ht.TexConstant.Variant.NORMAL}],Finv:"\u2132",diagup:"\u2571",Game:"\u2141",diagdown:"\u2572",Bbbk:["k",{mathvariant:Ht.TexConstant.Variant.DOUBLESTRUCK}],yen:"\xA5",circledR:"\xAE",checkmark:"\u2713",maltese:"\u2720"});new ri.CharacterMap("AMSsymbols-mathchar0mo",mo.default.mathchar0mo,{dotplus:"\u2214",ltimes:"\u22C9",smallsetminus:["\u2216",{variantForm:!0}],rtimes:"\u22CA",Cap:"\u22D2",doublecap:"\u22D2",leftthreetimes:"\u22CB",Cup:"\u22D3",doublecup:"\u22D3",rightthreetimes:"\u22CC",barwedge:"\u22BC",curlywedge:"\u22CF",veebar:"\u22BB",curlyvee:"\u22CE",doublebarwedge:"\u2A5E",boxminus:"\u229F",circleddash:"\u229D",boxtimes:"\u22A0",circledast:"\u229B",boxdot:"\u22A1",circledcirc:"\u229A",boxplus:"\u229E",centerdot:["\u22C5",{variantForm:!0}],divideontimes:"\u22C7",intercal:"\u22BA",leqq:"\u2266",geqq:"\u2267",leqslant:"\u2A7D",geqslant:"\u2A7E",eqslantless:"\u2A95",eqslantgtr:"\u2A96",lesssim:"\u2272",gtrsim:"\u2273",lessapprox:"\u2A85",gtrapprox:"\u2A86",approxeq:"\u224A",lessdot:"\u22D6",gtrdot:"\u22D7",lll:"\u22D8",llless:"\u22D8",ggg:"\u22D9",gggtr:"\u22D9",lessgtr:"\u2276",gtrless:"\u2277",lesseqgtr:"\u22DA",gtreqless:"\u22DB",lesseqqgtr:"\u2A8B",gtreqqless:"\u2A8C",doteqdot:"\u2251",Doteq:"\u2251",eqcirc:"\u2256",risingdotseq:"\u2253",circeq:"\u2257",fallingdotseq:"\u2252",triangleq:"\u225C",backsim:"\u223D",thicksim:["\u223C",{variantForm:!0}],backsimeq:"\u22CD",thickapprox:["\u2248",{variantForm:!0}],subseteqq:"\u2AC5",supseteqq:"\u2AC6",Subset:"\u22D0",Supset:"\u22D1",sqsubset:"\u228F",sqsupset:"\u2290",preccurlyeq:"\u227C",succcurlyeq:"\u227D",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",precsim:"\u227E",succsim:"\u227F",precapprox:"\u2AB7",succapprox:"\u2AB8",vartriangleleft:"\u22B2",lhd:"\u22B2",vartriangleright:"\u22B3",rhd:"\u22B3",trianglelefteq:"\u22B4",unlhd:"\u22B4",trianglerighteq:"\u22B5",unrhd:"\u22B5",vDash:["\u22A8",{variantForm:!0}],Vdash:"\u22A9",Vvdash:"\u22AA",smallsmile:["\u2323",{variantForm:!0}],shortmid:["\u2223",{variantForm:!0}],smallfrown:["\u2322",{variantForm:!0}],shortparallel:["\u2225",{variantForm:!0}],bumpeq:"\u224F",between:"\u226C",Bumpeq:"\u224E",pitchfork:"\u22D4",varpropto:["\u221D",{variantForm:!0}],backepsilon:"\u220D",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",therefore:"\u2234",because:"\u2235",eqsim:"\u2242",vartriangle:["\u25B3",{variantForm:!0}],Join:"\u22C8",nless:"\u226E",ngtr:"\u226F",nleq:"\u2270",ngeq:"\u2271",nleqslant:["\u2A87",{variantForm:!0}],ngeqslant:["\u2A88",{variantForm:!0}],nleqq:["\u2270",{variantForm:!0}],ngeqq:["\u2271",{variantForm:!0}],lneq:"\u2A87",gneq:"\u2A88",lneqq:"\u2268",gneqq:"\u2269",lvertneqq:["\u2268",{variantForm:!0}],gvertneqq:["\u2269",{variantForm:!0}],lnsim:"\u22E6",gnsim:"\u22E7",lnapprox:"\u2A89",gnapprox:"\u2A8A",nprec:"\u2280",nsucc:"\u2281",npreceq:["\u22E0",{variantForm:!0}],nsucceq:["\u22E1",{variantForm:!0}],precneqq:"\u2AB5",succneqq:"\u2AB6",precnsim:"\u22E8",succnsim:"\u22E9",precnapprox:"\u2AB9",succnapprox:"\u2ABA",nsim:"\u2241",ncong:"\u2247",nshortmid:["\u2224",{variantForm:!0}],nshortparallel:["\u2226",{variantForm:!0}],nmid:"\u2224",nparallel:"\u2226",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",ntriangleleft:"\u22EA",ntriangleright:"\u22EB",ntrianglelefteq:"\u22EC",ntrianglerighteq:"\u22ED",nsubseteq:"\u2288",nsupseteq:"\u2289",nsubseteqq:["\u2288",{variantForm:!0}],nsupseteqq:["\u2289",{variantForm:!0}],subsetneq:"\u228A",supsetneq:"\u228B",varsubsetneq:["\u228A",{variantForm:!0}],varsupsetneq:["\u228B",{variantForm:!0}],subsetneqq:"\u2ACB",supsetneqq:"\u2ACC",varsubsetneqq:["\u2ACB",{variantForm:!0}],varsupsetneqq:["\u2ACC",{variantForm:!0}],leftleftarrows:"\u21C7",rightrightarrows:"\u21C9",leftrightarrows:"\u21C6",rightleftarrows:"\u21C4",Lleftarrow:"\u21DA",Rrightarrow:"\u21DB",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",leftarrowtail:"\u21A2",rightarrowtail:"\u21A3",looparrowleft:"\u21AB",looparrowright:"\u21AC",leftrightharpoons:"\u21CB",rightleftharpoons:["\u21CC",{variantForm:!0}],curvearrowleft:"\u21B6",curvearrowright:"\u21B7",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",Lsh:"\u21B0",Rsh:"\u21B1",upuparrows:"\u21C8",downdownarrows:"\u21CA",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",downharpoonleft:"\u21C3",restriction:"\u21BE",multimap:"\u22B8",downharpoonright:"\u21C2",leftrightsquigarrow:"\u21AD",rightsquigarrow:"\u21DD",leadsto:"\u21DD",dashrightarrow:"\u21E2",dashleftarrow:"\u21E0",nleftarrow:"\u219A",nrightarrow:"\u219B",nLeftarrow:"\u21CD",nRightarrow:"\u21CF",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE"});new ri.DelimiterMap("AMSsymbols-delimiter",mo.default.delimiter,{"\\ulcorner":"\u231C","\\urcorner":"\u231D","\\llcorner":"\u231E","\\lrcorner":"\u231F"});new ri.CommandMap("AMSsymbols-macros",{implies:["Macro","\\;\\Longrightarrow\\;"],impliedby:["Macro","\\;\\Longleftarrow\\;"]},Ac.AmsMethods)});var Zy=ee(Ei=>{"use strict";var _R=Ei&&Ei.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Oc;Object.defineProperty(Ei,"__esModule",{value:!0});Ei.AmsConfiguration=Ei.AmsTags=void 0;var qA=ze(),Tc=Xy(),vR=Qn(),FA=fo();BA();var bR=He(),UA=(function(e){_R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(vR.AbstractTags);Ei.AmsTags=UA;var wR=function(e){new bR.CommandMap(FA.NEW_OPS,{},{}),e.append(qA.Configuration.local({handler:{macro:[FA.NEW_OPS]},priority:-1}))};Ei.AmsConfiguration=qA.Configuration.create("ams",{handler:{character:["AMSmath-operatorLetter"],delimiter:["AMSsymbols-delimiter","AMSmath-delimiter"],macro:["AMSsymbols-mathchar0mi","AMSsymbols-mathchar0mo","AMSsymbols-delimiter","AMSsymbols-macros","AMSmath-mathchar0mo","AMSmath-macros","AMSmath-delimiter"],environment:["AMSmath-environment"]},items:(Oc={},Oc[Tc.MultlineItem.prototype.kind]=Tc.MultlineItem,Oc[Tc.FlalignItem.prototype.kind]=Tc.FlalignItem,Oc),tags:{ams:UA},init:wR,config:function(e,t){t.parseOptions.options.multlineWidth&&(t.parseOptions.options.ams.multlineWidth=t.parseOptions.options.multlineWidth),delete t.parseOptions.options.multlineWidth},options:{multlineWidth:"",ams:{multlineWidth:"100%",multlineIndent:"1em"}}})});var zA=ee(ks=>{"use strict";var HA=ks&&ks.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ks,"__esModule",{value:!0});var Sc=HA(jt()),ER=_c(),AR=Te(),ho=HA(st()),ni={};ni.CD=function(e,t){e.Push(t);var r=e.itemFactory.create("array"),n=e.configuration.options.amscd;return r.setProperties({minw:e.stack.env.CD_minw||n.harrowsize,minh:e.stack.env.CD_minh||n.varrowsize}),r.arraydef={columnalign:"center",columnspacing:n.colspace,rowspacing:n.rowspace,displaystyle:!0},r};ni.arrow=function(e,t){var r=e.string.charAt(e.i);if(r.match(/[><VA.|=]/))e.i++;else return(0,ER.Other)(e,t);var n=e.stack.Top();(!n.isKind("array")||n.Size())&&(ni.cell(e,t),n=e.stack.Top());for(var i=n,a=i.table.length%2===1,o=(i.row.length+(a?0:1))%2;o;)ni.cell(e,t),o--;var s,l={minsize:i.getProperty("minw"),stretchy:!0},c={minsize:i.getProperty("minh"),stretchy:!0,symmetric:!0,lspace:0,rspace:0};if(r!==".")if(r==="|")s=e.create("token","mo",c,"\u2225");else if(r==="=")s=e.create("token","mo",l,"=");else{var d={">":"\u2192","<":"\u2190",V:"\u2193",A:"\u2191"}[r],f=e.GetUpTo(t+r,r),m=e.GetUpTo(t+r,r);if(r===">"||r==="<"){if(s=e.create("token","mo",l,d),f||(f="\\kern "+i.getProperty("minw")),f||m){var p={width:"+.67em",lspace:".33em"};if(s=e.create("node","munderover",[s]),f){var b=new Sc.default(f,e.stack.env,e.configuration).mml(),v=e.create("node","mpadded",[b],p);ho.default.setAttribute(v,"voffset",".1em"),ho.default.setChild(s,s.over,v)}if(m){var A=new Sc.default(m,e.stack.env,e.configuration).mml();ho.default.setChild(s,s.under,e.create("node","mpadded",[A],p))}e.configuration.options.amscd.hideHorizontalLabels&&(s=e.create("node","mpadded",s,{depth:0,height:".67em"}))}}else{var y=e.create("token","mo",c,d);s=y,(f||m)&&(s=e.create("node","mrow"),f&&ho.default.appendChildren(s,[new Sc.default("\\scriptstyle\\llap{"+f+"}",e.stack.env,e.configuration).mml()]),y.texClass=AR.TEXCLASS.ORD,ho.default.appendChildren(s,[y]),m&&ho.default.appendChildren(s,[new Sc.default("\\scriptstyle\\rlap{"+m+"}",e.stack.env,e.configuration).mml()]))}}s&&e.Push(s),ni.cell(e,t)};ni.cell=function(e,t){var r=e.stack.Top();(r.table||[]).length%2===0&&(r.row||[]).length===0&&e.Push(e.create("node","mpadded",[],{height:"8.5pt",depth:"2pt"})),e.Push(e.itemFactory.create("cell").setProperties({isEntry:!0,name:t}))};ni.minCDarrowwidth=function(e,t){e.stack.env.CD_minw=e.GetDimen(t)};ni.minCDarrowheight=function(e,t){e.stack.env.CD_minh=e.GetDimen(t)};ks.default=ni});var WA=ee(yn=>{"use strict";var OR=yn&&yn.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),TR=yn&&yn.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),SR=yn&&yn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&OR(t,e,r);return TR(t,e),t},GA=yn&&yn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yn,"__esModule",{value:!0});var Jy=SR(He()),xR=GA(hn()),Qy=GA(zA());new Jy.EnvironmentMap("amscd_environment",xR.default.environment,{CD:"CD"},Qy.default);new Jy.CommandMap("amscd_macros",{minCDarrowwidth:"minCDarrowwidth",minCDarrowheight:"minCDarrowheight"},Qy.default);new Jy.MacroMap("amscd_special",{"@":"arrow"},Qy.default)});var KA=ee(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.AmsCdConfiguration=void 0;var MR=ze();WA();xc.AmsCdConfiguration=MR.Configuration.create("amscd",{handler:{character:["amscd_special"],macro:["amscd_macros"],environment:["amscd_environment"]},options:{amscd:{colspace:"5pt",rowspace:"5pt",harrowsize:"2.75em",varrowsize:"1.75em",hideHorizontalLabels:!1}}})});var XA=ee(_n=>{"use strict";var CR=_n&&_n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_n,"__esModule",{value:!0});_n.BboxConfiguration=_n.BboxMethods=void 0;var kR=ze(),NR=He(),Mc=CR($e());_n.BboxMethods={};_n.BboxMethods.BBox=function(e,t){for(var r=e.GetBrackets(t,""),n=e.ParseArg(t),i=r.split(/,/),a,o,s,l=0,c=i.length;l<c;l++){var d=i[l].trim(),f=d.match(/^(\.\d+|\d+(\.\d*)?)(pt|em|ex|mu|px|in|cm|mm)$/);if(f){if(a)throw new Mc.default("MultipleBBoxProperty","%1 specified twice in %2","Padding",t);var m=PR(f[1]+f[3]);m&&(a={height:"+"+m,depth:"+"+m,lspace:m,width:"+"+2*parseInt(f[1],10)+f[3]})}else if(d.match(/^([a-z0-9]+|\#[0-9a-f]{6}|\#[0-9a-f]{3})$/i)){if(o)throw new Mc.default("MultipleBBoxProperty","%1 specified twice in %2","Background",t);o=d}else if(d.match(/^[-a-z]+:/i)){if(s)throw new Mc.default("MultipleBBoxProperty","%1 specified twice in %2","Style",t);s=IR(d)}else if(d!=="")throw new Mc.default("InvalidBBoxProperty",`"%1" doesn't look like a color, a padding dimension, or a style`,d)}a&&(n=e.create("node","mpadded",[n],a)),(o||s)&&(a={},o&&Object.assign(a,{mathbackground:o}),s&&Object.assign(a,{style:s}),n=e.create("node","mstyle",[n],a)),e.Push(n)};var IR=function(e){return e},PR=function(e){return e};new NR.CommandMap("bbox",{bbox:"BBox"},_n.BboxMethods);_n.BboxConfiguration=kR.Configuration.create("bbox",{handler:{macro:["bbox"]}})});var YA=ee(zt=>{"use strict";var jR=zt&&zt.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},RR=zt&&zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zt,"__esModule",{value:!0});zt.BoldsymbolConfiguration=zt.rewriteBoldTokens=zt.createBoldToken=zt.BoldsymbolMethods=void 0;var LR=ze(),po=RR(st()),Ar=Rt(),DR=He(),BR=mc(),ii={};ii[Ar.TexConstant.Variant.NORMAL]=Ar.TexConstant.Variant.BOLD;ii[Ar.TexConstant.Variant.ITALIC]=Ar.TexConstant.Variant.BOLDITALIC;ii[Ar.TexConstant.Variant.FRAKTUR]=Ar.TexConstant.Variant.BOLDFRAKTUR;ii[Ar.TexConstant.Variant.SCRIPT]=Ar.TexConstant.Variant.BOLDSCRIPT;ii[Ar.TexConstant.Variant.SANSSERIF]=Ar.TexConstant.Variant.BOLDSANSSERIF;ii["-tex-calligraphic"]="-tex-bold-calligraphic";ii["-tex-oldstyle"]="-tex-bold-oldstyle";ii["-tex-mathit"]=Ar.TexConstant.Variant.BOLDITALIC;zt.BoldsymbolMethods={};zt.BoldsymbolMethods.Boldsymbol=function(e,t){var r=e.stack.env.boldsymbol;e.stack.env.boldsymbol=!0;var n=e.ParseArg(t);e.stack.env.boldsymbol=r,e.Push(n)};new DR.CommandMap("boldsymbol",{boldsymbol:"Boldsymbol"},zt.BoldsymbolMethods);function $A(e,t,r,n){var i=BR.NodeFactory.createToken(e,t,r,n);return t!=="mtext"&&e.configuration.parser.stack.env.boldsymbol&&(po.default.setProperty(i,"fixBold",!0),e.configuration.addNode("fixBold",i)),i}zt.createBoldToken=$A;function VA(e){var t,r;try{for(var n=jR(e.data.getList("fixBold")),i=n.next();!i.done;i=n.next()){var a=i.value;if(po.default.getProperty(a,"fixBold")){var o=po.default.getAttribute(a,"mathvariant");o==null?po.default.setAttribute(a,"mathvariant",Ar.TexConstant.Variant.BOLD):po.default.setAttribute(a,"mathvariant",ii[o]||o),po.default.removeProperties(a,"fixBold")}}}catch(s){t={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}}zt.rewriteBoldTokens=VA;zt.BoldsymbolConfiguration=LR.Configuration.create("boldsymbol",{handler:{macro:["boldsymbol"]},nodes:{token:$A},postprocessors:[VA]})});var JA=ee(Ai=>{"use strict";var FR=Ai&&Ai.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),qR=Ai&&Ai.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.BraketItem=void 0;var ZA=ga(),e_=Te(),UR=qR(Qe()),HR=(function(e){FR(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"braket"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){return r.isKind("close")?[[this.factory.create("mml",this.toMml())],!0]:r.isKind("mml")?(this.Push(r.toMml()),this.getProperty("single")?[[this.toMml()],!0]:ZA.BaseItem.fail):e.prototype.checkItem.call(this,r)},t.prototype.toMml=function(){var r=e.prototype.toMml.call(this),n=this.getProperty("open"),i=this.getProperty("close");if(this.getProperty("stretchy"))return UR.default.fenced(this.factory.configuration,n,r,i);var a={fence:!0,stretchy:!1,symmetric:!0,texClass:e_.TEXCLASS.OPEN},o=this.create("token","mo",a,n);a.texClass=e_.TEXCLASS.CLOSE;var s=this.create("token","mo",a,i),l=this.create("node","mrow",[o,r,s],{open:n,close:i,texClass:e_.TEXCLASS.INNER});return l},t})(ZA.BaseItem);Ai.BraketItem=HR});var eO=ee(Ns=>{"use strict";var QA=Ns&&Ns.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ns,"__esModule",{value:!0});var zR=QA(dr()),t_=Te(),GR=QA($e()),Cc={};Cc.Macro=zR.default.Macro;Cc.Braket=function(e,t,r,n,i,a){var o=e.GetNext();if(o==="")throw new GR.default("MissingArgFor","Missing argument for %1",e.currentCS);var s=!0;o==="{"&&(e.i++,s=!1),e.Push(e.itemFactory.create("braket").setProperties({barmax:a,barcount:0,open:r,close:n,stretchy:i,single:s}))};Cc.Bar=function(e,t){var r=t==="|"?"|":"\u2225",n=e.stack.Top();if(n.kind!=="braket"||n.getProperty("barcount")>=n.getProperty("barmax")){var i=e.create("token","mo",{texClass:t_.TEXCLASS.ORD,stretchy:!1},r);e.Push(i);return}r==="|"&&e.GetNext()==="|"&&(e.i++,r="\u2225");var a=n.getProperty("stretchy");if(!a){var o=e.create("token","mo",{stretchy:!1,braketbar:!0},r);e.Push(o);return}var s=e.create("node","TeXAtom",[],{texClass:t_.TEXCLASS.CLOSE});e.Push(s),n.setProperty("barcount",n.getProperty("barcount")+1),s=e.create("token","mo",{stretchy:!0,braketbar:!0},r),e.Push(s),s=e.create("node","TeXAtom",[],{texClass:t_.TEXCLASS.OPEN}),e.Push(s)};Ns.default=Cc});var nO=ee(kc=>{"use strict";var WR=kc&&kc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(kc,"__esModule",{value:!0});var tO=He(),rO=WR(eO());new tO.CommandMap("Braket-macros",{bra:["Macro","{\\langle {#1} \\vert}",1],ket:["Macro","{\\vert {#1} \\rangle}",1],braket:["Braket","\u27E8","\u27E9",!1,1/0],set:["Braket","{","}",!1,1],Bra:["Macro","{\\left\\langle {#1} \\right\\vert}",1],Ket:["Macro","{\\left\\vert {#1} \\right\\rangle}",1],Braket:["Braket","\u27E8","\u27E9",!0,1/0],Set:["Braket","{","}",!0,1],ketbra:["Macro","{\\vert {#1} \\rangle\\langle {#2} \\vert}",2],Ketbra:["Macro","{\\left\\vert {#1} \\right\\rangle\\left\\langle {#2} \\right\\vert}",2],"|":"Bar"},rO.default);new tO.MacroMap("Braket-characters",{"|":"Bar"},rO.default)});var aO=ee(Nc=>{"use strict";var r_;Object.defineProperty(Nc,"__esModule",{value:!0});Nc.BraketConfiguration=void 0;var KR=ze(),iO=JA();nO();Nc.BraketConfiguration=KR.Configuration.create("braket",{handler:{character:["Braket-characters"],macro:["Braket-macros"]},items:(r_={},r_[iO.BraketItem.prototype.kind]=iO.BraketItem,r_)})});var jc=ee(xe=>{"use strict";var XR=xe&&xe.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},$R=xe&&xe.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},lO=xe&&xe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},n_;Object.defineProperty(xe,"__esModule",{value:!0});xe.clearDocument=xe.saveDocument=xe.makeBsprAttributes=xe.removeProperty=xe.getProperty=xe.setProperty=xe.balanceRules=void 0;var Xr=lO(st()),Pc=lO(Qe()),Is=null,i_=null,Oi=function(e){i_.root=e;var t=Is.outputJax.getBBox(i_,Is).w;return t},o_=function(e){for(var t=0;e&&!Xr.default.isType(e,"mtable");){if(Xr.default.isType(e,"text"))return null;if(Xr.default.isType(e,"mrow")){e=e.childNodes[0],t=0;continue}e=e.parent.childNodes[t],t++}return e},cO=function(e,t){return e.childNodes[t==="up"?1:0].childNodes[0].childNodes[0].childNodes[0].childNodes[0]},uO=function(e,t){return e.childNodes[t].childNodes[0].childNodes[0]},dO=function(e){return uO(e,0)},VR=function(e){return uO(e,e.childNodes.length-1)},fO=function(e,t){return e.childNodes[t==="up"?0:1].childNodes[0].childNodes[0].childNodes[0]},YR=function(e){for(;e&&!Xr.default.isType(e,"mtd");)e=e.parent;return e},ZR=function(e){return e.parent.childNodes[e.parent.childNodes.indexOf(e)+1]},mO=function(e){for(;e&&(0,xe.getProperty)(e,"inference")==null;)e=e.parent;return e},a_=function(e,t,r){r===void 0&&(r=!1);var n=0;if(e===t)return n;if(e!==t.parent){var i=e.childNodes,a=r?i.length-1:0;Xr.default.isType(i[a],"mspace")&&(n+=Oi(i[a])),e=t.parent}if(e===t)return n;var o=e.childNodes,s=r?o.length-1:0;return o[s]!==t&&(n+=Oi(o[s])),n},oO=function(e,t){t===void 0&&(t=!1);var r=o_(e),n=fO(r,(0,xe.getProperty)(r,"inferenceRule")),i=a_(e,r,t),a=Oi(r),o=Oi(n);return i+(a-o)/2},Ic=function(e,t,r,n){if(n===void 0&&(n=!1),(0,xe.getProperty)(t,"inferenceRule")||(0,xe.getProperty)(t,"labelledRule")){var i=e.nodeFactory.create("node","mrow");t.parent.replaceChild(i,t),i.setChildren([t]),JR(t,i),t=i}var a=n?t.childNodes.length-1:0,o=t.childNodes[a];if(Xr.default.isType(o,"mspace")){Xr.default.setAttribute(o,"width",Pc.default.Em(Pc.default.dimen2em(Xr.default.getAttribute(o,"width"))+r));return}if(o=e.nodeFactory.create("node","mspace",[],{width:Pc.default.Em(r)}),n){t.appendChild(o);return}o.parent=t,t.childNodes.unshift(o)},JR=function(e,t){var r=["inference","proof","maxAdjust","labelledRule"];r.forEach(function(n){var i=(0,xe.getProperty)(e,n);i!=null&&((0,xe.setProperty)(t,n,i),(0,xe.removeProperty)(e,n))})},QR=function(e){var t=e.nodeLists.sequent;if(t)for(var r=t.length-1,n=void 0;n=t[r];r--){if((0,xe.getProperty)(n,"sequentProcessed")){(0,xe.removeProperty)(n,"sequentProcessed");continue}var i=[],a=mO(n);if((0,xe.getProperty)(a,"inference")===1){for(i.push(n);(0,xe.getProperty)(a,"inference")===1;){a=o_(a);var o=dO(cO(a,(0,xe.getProperty)(a,"inferenceRule"))),s=(0,xe.getProperty)(o,"inferenceRule")?fO(o,(0,xe.getProperty)(o,"inferenceRule")):o;(0,xe.getProperty)(s,"sequent")&&(n=s.childNodes[0],i.push(n),(0,xe.setProperty)(n,"sequentProcessed",!0)),a=o}eL(e,i)}}},sO=function(e,t,r,n,i){var a=e.nodeFactory.create("node","mspace",[],{width:Pc.default.Em(i)});if(n==="left"){var o=t.childNodes[r].childNodes[0];a.parent=o,o.childNodes.unshift(a)}else t.childNodes[r].appendChild(a);(0,xe.setProperty)(t.parent,"sequentAdjust_"+n,i)},eL=function(e,t){for(var r=t.pop();t.length;){var n=t.pop(),i=XR(tL(r,n),2),a=i[0],o=i[1];(0,xe.getProperty)(r.parent,"axiom")&&(sO(e,a<0?r:n,0,"left",Math.abs(a)),sO(e,o<0?r:n,2,"right",Math.abs(o))),r=n}},tL=function(e,t){var r=Oi(e.childNodes[2]),n=Oi(t.childNodes[2]),i=Oi(e.childNodes[0]),a=Oi(t.childNodes[0]),o=i-a,s=r-n;return[o,s]},rL=function(e){var t,r;i_=new e.document.options.MathItem("",null,e.math.display);var n=e.data;QR(n);var i=n.nodeLists.inference||[];try{for(var a=$R(i),o=a.next();!o.done;o=a.next()){var s=o.value,l=(0,xe.getProperty)(s,"proof"),c=o_(s),d=cO(c,(0,xe.getProperty)(c,"inferenceRule")),f=dO(d);if((0,xe.getProperty)(f,"inference")){var m=oO(f);if(m){Ic(n,f,-m);var p=a_(s,c,!1);Ic(n,s,m-p)}}var b=VR(d);if((0,xe.getProperty)(b,"inference")!=null){var v=oO(b,!0);Ic(n,b,-v,!0);var A=a_(s,c,!0),y=(0,xe.getProperty)(s,"maxAdjust");y!=null&&(v=Math.max(v,y));var T=void 0;if(l||!(T=YR(s))){Ic(n,(0,xe.getProperty)(s,"proof")?s:s.parent,v-A,!0);continue}var E=ZR(T);if(E){var w=n.nodeFactory.create("node","mspace",[],{width:v-A+"em"});E.appendChild(w),s.removeProperty("maxAdjust");continue}var x=mO(T);x&&(v=(0,xe.getProperty)(x,"maxAdjust")?Math.max((0,xe.getProperty)(x,"maxAdjust"),v):v,(0,xe.setProperty)(x,"maxAdjust",v))}}}catch(D){t={error:D}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}};xe.balanceRules=rL;var Ps="bspr_",nL=(n_={},n_[Ps+"maxAdjust"]=!0,n_),iL=function(e,t,r){Xr.default.setProperty(e,Ps+t,r)};xe.setProperty=iL;var aL=function(e,t){return Xr.default.getProperty(e,Ps+t)};xe.getProperty=aL;var oL=function(e,t){e.removeProperty(Ps+t)};xe.removeProperty=oL;var sL=function(e){e.data.root.walkTree(function(t,r){var n=[];t.getPropertyNames().forEach(function(i){!nL[i]&&i.match(RegExp("^"+Ps))&&n.push(i+":"+t.getProperty(i))}),n.length&&Xr.default.setAttribute(t,"semantics",n.join(";"))})};xe.makeBsprAttributes=sL;var lL=function(e){if(Is=e.document,!("getBBox"in Is.outputJax))throw Error("The bussproofs extension requires an output jax with a getBBox() method")};xe.saveDocument=lL;var cL=function(e){Is=null};xe.clearDocument=cL});var gO=ee(tr=>{"use strict";var uL=tr&&tr.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),dL=tr&&tr.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),fL=tr&&tr.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),mL=tr&&tr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&dL(t,e,r);return fL(t,e),t},pO=tr&&tr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(tr,"__esModule",{value:!0});tr.ProofTreeItem=void 0;var hL=pO($e()),hO=ga(),pL=pO(_y()),gL=mL(jc()),yL=(function(e){uL(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.leftLabel=null,r.rigthLabel=null,r.innerStack=new pL.default(r.factory,{},!0),r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"proofTree"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("end")&&r.getName()==="prooftree"){var n=this.toMml();return gL.setProperty(n,"proof",!0),[[this.factory.create("mml",n),r],!0]}if(r.isKind("stop"))throw new hL.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return this.innerStack.Push(r),hO.BaseItem.fail},t.prototype.toMml=function(){var r=e.prototype.toMml.call(this),n=this.innerStack.Top();if(n.isKind("start")&&!n.Size())return r;this.innerStack.Push(this.factory.create("stop"));var i=this.innerStack.Top().toMml();return this.create("node","mrow",[i,r],{})},t})(hO.BaseItem);tr.ProofTreeItem=yL});var EO=ee(Zt=>{"use strict";var _L=Zt&&Zt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),vL=Zt&&Zt.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),bL=Zt&&Zt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&_L(t,e,r);return vL(t,e),t},_O=Zt&&Zt.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},yO=Zt&&Zt.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},c_=Zt&&Zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zt,"__esModule",{value:!0});var $r=c_($e()),s_=c_(jt()),l_=c_(Qe()),ai=bL(jc()),vn={};vn.Prooftree=function(e,t){e.Push(t);var r=e.itemFactory.create("proofTree").setProperties({name:t.getName(),line:"solid",currentLine:"solid",rootAtTop:!1});return r};vn.Axiom=function(e,t){var r=e.stack.Top();if(r.kind!=="proofTree")throw new $r.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");var n=vO(e,e.GetArgument(t));ai.setProperty(n,"axiom",!0),r.Push(n)};var vO=function(e,t){var r=l_.default.internalMath(e,l_.default.trimSpaces(t),0);if(!r[0].childNodes[0].childNodes.length)return e.create("node","mrow",[]);var n=e.create("node","mspace",[],{width:".5ex"}),i=e.create("node","mspace",[],{width:".5ex"});return e.create("node","mrow",yO(yO([n],_O(r),!1),[i],!1))};vn.Inference=function(e,t,r){var n=e.stack.Top();if(n.kind!=="proofTree")throw new $r.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");if(n.Size()<r)throw new $r.default("BadProofTree","Proof tree badly specified.");var i=n.getProperty("rootAtTop"),a=r===1&&!n.Peek()[0].childNodes.length?0:r,o=[];do o.length&&o.unshift(e.create("node","mtd",[],{})),o.unshift(e.create("node","mtd",[n.Pop()],{rowalign:i?"top":"bottom"})),r--;while(r>0);var s=e.create("node","mtr",o,{}),l=e.create("node","mtable",[s],{framespacing:"0 0"}),c=vO(e,e.GetArgument(t)),d=n.getProperty("currentLine");d!==n.getProperty("line")&&n.setProperty("currentLine",n.getProperty("line"));var f=bO(e,l,[c],n.getProperty("left"),n.getProperty("right"),d,i);n.setProperty("left",null),n.setProperty("right",null),ai.setProperty(f,"inference",a),e.configuration.addNode("inference",f),n.Push(f)};function bO(e,t,r,n,i,a,o){var s=e.create("node","mtr",[e.create("node","mtd",[t],{})],{}),l=e.create("node","mtr",[e.create("node","mtd",r,{})],{}),c=e.create("node","mtable",o?[l,s]:[s,l],{align:"top 2",rowlines:a,framespacing:"0 0"});ai.setProperty(c,"inferenceRule",o?"up":"down");var d,f;n&&(d=e.create("node","mpadded",[n],{height:"+.5em",width:"+.5em",voffset:"-.15em"}),ai.setProperty(d,"prooflabel","left")),i&&(f=e.create("node","mpadded",[i],{height:"+.5em",width:"+.5em",voffset:"-.15em"}),ai.setProperty(f,"prooflabel","right"));var m,p;if(n&&i)m=[d,c,f],p="both";else if(n)m=[d,c],p="left";else if(i)m=[c,f],p="right";else return c;return c=e.create("node","mrow",m),ai.setProperty(c,"labelledRule",p),c}vn.Label=function(e,t,r){var n=e.stack.Top();if(n.kind!=="proofTree")throw new $r.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");var i=l_.default.internalMath(e,e.GetArgument(t),0),a=i.length>1?e.create("node","mrow",i,{}):i[0];n.setProperty(r,a)};vn.SetLine=function(e,t,r,n){var i=e.stack.Top();if(i.kind!=="proofTree")throw new $r.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");i.setProperty("currentLine",r),n&&i.setProperty("line",r)};vn.RootAtTop=function(e,t,r){var n=e.stack.Top();if(n.kind!=="proofTree")throw new $r.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");n.setProperty("rootAtTop",r)};vn.AxiomF=function(e,t){var r=e.stack.Top();if(r.kind!=="proofTree")throw new $r.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");var n=wO(e,t);ai.setProperty(n,"axiom",!0),r.Push(n)};function wO(e,t){var r=e.GetNext();if(r!=="$")throw new $r.default("IllegalUseOfCommand","Use of %1 does not match it's definition.",t);e.i++;var n=e.GetUpTo(t,"$");if(n.indexOf("\\fCenter")===-1)throw new $r.default("IllegalUseOfCommand","Missing \\fCenter in %1.",t);var i=_O(n.split("\\fCenter"),2),a=i[0],o=i[1],s=new s_.default(a,e.stack.env,e.configuration).mml(),l=new s_.default(o,e.stack.env,e.configuration).mml(),c=new s_.default("\\fCenter",e.stack.env,e.configuration).mml(),d=e.create("node","mtd",[s],{}),f=e.create("node","mtd",[c],{}),m=e.create("node","mtd",[l],{}),p=e.create("node","mtr",[d,f,m],{}),b=e.create("node","mtable",[p],{columnspacing:".5ex",columnalign:"center 2"});return ai.setProperty(b,"sequent",!0),e.configuration.addNode("sequent",p),b}vn.FCenter=function(e,t){};vn.InferenceF=function(e,t,r){var n=e.stack.Top();if(n.kind!=="proofTree")throw new $r.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");if(n.Size()<r)throw new $r.default("BadProofTree","Proof tree badly specified.");var i=n.getProperty("rootAtTop"),a=r===1&&!n.Peek()[0].childNodes.length?0:r,o=[];do o.length&&o.unshift(e.create("node","mtd",[],{})),o.unshift(e.create("node","mtd",[n.Pop()],{rowalign:i?"top":"bottom"})),r--;while(r>0);var s=e.create("node","mtr",o,{}),l=e.create("node","mtable",[s],{framespacing:"0 0"}),c=wO(e,t),d=n.getProperty("currentLine");d!==n.getProperty("line")&&n.setProperty("currentLine",n.getProperty("line"));var f=bO(e,l,[c],n.getProperty("left"),n.getProperty("right"),d,i);n.setProperty("left",null),n.setProperty("right",null),ai.setProperty(f,"inference",a),e.configuration.addNode("inference",f),n.Push(f)};Zt.default=vn});var SO=ee(Rc=>{"use strict";var AO=Rc&&Rc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rc,"__esModule",{value:!0});var OO=AO(EO()),wL=AO(hn()),TO=He();new TO.CommandMap("Bussproofs-macros",{AxiomC:"Axiom",UnaryInfC:["Inference",1],BinaryInfC:["Inference",2],TrinaryInfC:["Inference",3],QuaternaryInfC:["Inference",4],QuinaryInfC:["Inference",5],RightLabel:["Label","right"],LeftLabel:["Label","left"],AXC:"Axiom",UIC:["Inference",1],BIC:["Inference",2],TIC:["Inference",3],RL:["Label","right"],LL:["Label","left"],noLine:["SetLine","none",!1],singleLine:["SetLine","solid",!1],solidLine:["SetLine","solid",!1],dashedLine:["SetLine","dashed",!1],alwaysNoLine:["SetLine","none",!0],alwaysSingleLine:["SetLine","solid",!0],alwaysSolidLine:["SetLine","solid",!0],alwaysDashedLine:["SetLine","dashed",!0],rootAtTop:["RootAtTop",!0],alwaysRootAtTop:["RootAtTop",!0],rootAtBottom:["RootAtTop",!1],alwaysRootAtBottom:["RootAtTop",!1],fCenter:"FCenter",Axiom:"AxiomF",UnaryInf:["InferenceF",1],BinaryInf:["InferenceF",2],TrinaryInf:["InferenceF",3],QuaternaryInf:["InferenceF",4],QuinaryInf:["InferenceF",5]},OO.default);new TO.EnvironmentMap("Bussproofs-environments",wL.default.environment,{prooftree:["Prooftree",null,!1]},OO.default)});var MO=ee(Dc=>{"use strict";var u_;Object.defineProperty(Dc,"__esModule",{value:!0});Dc.BussproofsConfiguration=void 0;var EL=ze(),xO=gO(),Lc=jc();SO();Dc.BussproofsConfiguration=EL.Configuration.create("bussproofs",{handler:{macro:["Bussproofs-macros"],environment:["Bussproofs-environments"]},items:(u_={},u_[xO.ProofTreeItem.prototype.kind]=xO.ProofTreeItem,u_),preprocessors:[[Lc.saveDocument,1]],postprocessors:[[Lc.clearDocument,3],[Lc.makeBsprAttributes,2],[Lc.balanceRules,1]]})});var d_=ee(mr=>{"use strict";var AL=mr&&mr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mr,"__esModule",{value:!0});mr.EncloseConfiguration=mr.EncloseMethods=mr.ENCLOSE_OPTIONS=void 0;var OL=ze(),TL=He(),SL=AL(Qe());mr.ENCLOSE_OPTIONS={"data-arrowhead":1,color:1,mathcolor:1,background:1,mathbackground:1,"data-padding":1,"data-thickness":1};mr.EncloseMethods={};mr.EncloseMethods.Enclose=function(e,t){var r=e.GetArgument(t).replace(/,/g," "),n=e.GetBrackets(t,""),i=e.ParseArg(t),a=SL.default.keyvalOptions(n,mr.ENCLOSE_OPTIONS);a.notation=r,e.Push(e.create("node","menclose",[i],a))};new TL.CommandMap("enclose",{enclose:"Enclose"},mr.EncloseMethods);mr.EncloseConfiguration=OL.Configuration.create("enclose",{handler:{macro:["enclose"]}})});var NO=ee(Vr=>{"use strict";var xL=Vr&&Vr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.CancelConfiguration=Vr.CancelMethods=void 0;var ML=ze(),wa=Rt(),CL=He(),CO=xL(Qe()),kO=d_();Vr.CancelMethods={};Vr.CancelMethods.Cancel=function(e,t,r){var n=e.GetBrackets(t,""),i=e.ParseArg(t),a=CO.default.keyvalOptions(n,kO.ENCLOSE_OPTIONS);a.notation=r,e.Push(e.create("node","menclose",[i],a))};Vr.CancelMethods.CancelTo=function(e,t){var r=e.GetBrackets(t,""),n=e.ParseArg(t),i=e.ParseArg(t),a=CO.default.keyvalOptions(r,kO.ENCLOSE_OPTIONS);a.notation=[wa.TexConstant.Notation.UPDIAGONALSTRIKE,wa.TexConstant.Notation.UPDIAGONALARROW,wa.TexConstant.Notation.NORTHEASTARROW].join(" "),n=e.create("node","mpadded",[n],{depth:"-.1em",height:"+.1em",voffset:".1em"}),e.Push(e.create("node","msup",[e.create("node","menclose",[i],a),n]))};new CL.CommandMap("cancel",{cancel:["Cancel",wa.TexConstant.Notation.UPDIAGONALSTRIKE],bcancel:["Cancel",wa.TexConstant.Notation.DOWNDIAGONALSTRIKE],xcancel:["Cancel",wa.TexConstant.Notation.UPDIAGONALSTRIKE+" "+wa.TexConstant.Notation.DOWNDIAGONALSTRIKE],cancelto:"CancelTo"},Vr.CancelMethods);Vr.CancelConfiguration=ML.Configuration.create("cancel",{handler:{macro:["cancel"]}})});var m_=ee(rr=>{"use strict";var kL=rr&&rr.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},NL=rr&&rr.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},f_=rr&&rr.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},IO=rr&&rr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rr,"__esModule",{value:!0});rr.EmpheqUtil=void 0;var Bc=IO(Qe()),IL=IO(jt());rr.EmpheqUtil={environment:function(e,t,r,n){var i=n[0],a=e.itemFactory.create(i+"-begin").setProperties({name:t,end:i});e.Push(r.apply(void 0,NL([e,a],kL(n.slice(1)),!1)))},splitOptions:function(e,t){return t===void 0&&(t=null),Bc.default.keyvalOptions(e,t,!0)},columnCount:function(e){var t,r,n=0;try{for(var i=f_(e.childNodes),a=i.next();!a.done;a=i.next()){var o=a.value,s=o.childNodes.length-(o.isKind("mlabeledtr")?1:0);s>n&&(n=s)}}catch(l){t={error:l}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},cellBlock:function(e,t,r,n){var i,a,o=r.create("node","mpadded",[],{height:0,depth:0,voffset:"-1height"}),s=new IL.default(e,r.stack.env,r.configuration),l=s.mml();n&&s.configuration.tags.label&&(s.configuration.tags.currentTag.env=n,s.configuration.tags.getTag(!0));try{for(var c=f_(l.isInferred?l.childNodes:[l]),d=c.next();!d.done;d=c.next()){var f=d.value;o.appendChild(f)}}catch(m){i={error:m}}finally{try{d&&!d.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return o.appendChild(r.create("node","mphantom",[r.create("node","mpadded",[t],{width:0})])),o},topRowTable:function(e,t){var r=Bc.default.copyNode(e,t);return r.setChildren(r.childNodes.slice(0,1)),r.attributes.set("align","baseline 1"),e.factory.create("mphantom",{},[t.create("node","mpadded",[r],{width:0})])},rowspanCell:function(e,t,r,n,i){e.appendChild(n.create("node","mpadded",[this.cellBlock(t,Bc.default.copyNode(r,n),n,i),this.topRowTable(r,n)],{height:0,depth:0,voffset:"height"}))},left:function(e,t,r,n,i){var a,o;i===void 0&&(i=""),e.attributes.set("columnalign","right "+(e.attributes.get("columnalign")||"")),e.attributes.set("columnspacing","0em "+(e.attributes.get("columnspacing")||""));var s;try{for(var l=f_(e.childNodes.slice(0).reverse()),c=l.next();!c.done;c=l.next()){var d=c.value;s=n.create("node","mtd"),d.childNodes.unshift(s),s.parent=d,d.isKind("mlabeledtr")&&(d.childNodes[0]=d.childNodes[1],d.childNodes[1]=s)}}catch(f){a={error:f}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(a)throw a.error}}this.rowspanCell(s,r,t,n,i)},right:function(e,t,r,n,i){i===void 0&&(i=""),e.childNodes.length===0&&e.appendChild(n.create("node","mtr"));for(var a=rr.EmpheqUtil.columnCount(e),o=e.childNodes[0];o.childNodes.length<a;)o.appendChild(n.create("node","mtd"));var s=o.appendChild(n.create("node","mtd"));rr.EmpheqUtil.rowspanCell(s,r,t,n,i),e.attributes.set("columnalign",(e.attributes.get("columnalign")||"").split(/ /).slice(0,a).join(" ")+" left"),e.attributes.set("columnspacing",(e.attributes.get("columnspacing")||"").split(/ /).slice(0,a-1).join(" ")+" 0em")},adjustTable:function(e,t){var r=e.getProperty("left"),n=e.getProperty("right");if(r||n){var i=e.Last,a=Bc.default.copyNode(i,t);r&&this.left(i,a,r,t),n&&this.right(i,a,n,t)}},allowEnv:{equation:!0,align:!0,gather:!0,flalign:!0,alignat:!0,multline:!0},checkEnv:function(e){return this.allowEnv.hasOwnProperty(e.replace(/\*$/,""))||!1}}});var FO=ee(Gt=>{"use strict";var RO=Gt&&Gt.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),g_=Gt&&Gt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},h_;Object.defineProperty(Gt,"__esModule",{value:!0});Gt.CasesConfiguration=Gt.CasesMethods=Gt.CasesTags=Gt.CasesBeginItem=void 0;var PL=ze(),LO=He(),PO=g_(Qe()),jO=g_(dr()),jL=g_($e()),RL=mn(),LL=Zy(),DO=m_(),p_=(function(e){RO(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"cases-begin"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){return r.isKind("end")&&r.getName()===this.getName()&&this.getProperty("end")?(this.setProperty("end",!1),[[],!0]):e.prototype.checkItem.call(this,r)},t})(RL.BeginItem);Gt.CasesBeginItem=p_;var BO=(function(e){RO(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.subcounter=0,r}return t.prototype.start=function(r,n,i){this.subcounter=0,e.prototype.start.call(this,r,n,i)},t.prototype.autoTag=function(){this.currentTag.tag==null&&(this.currentTag.env==="subnumcases"?(this.subcounter===0&&this.counter++,this.subcounter++,this.tag(this.formatNumber(this.counter,this.subcounter),!1)):((this.subcounter===0||this.currentTag.env!=="numcases-left")&&this.counter++,this.tag(this.formatNumber(this.counter),!1)))},t.prototype.formatNumber=function(r,n){return n===void 0&&(n=null),r.toString()+(n===null?"":String.fromCharCode(96+n))},t})(LL.AmsTags);Gt.CasesTags=BO;Gt.CasesMethods={NumCases:function(e,t){if(e.stack.env.closing===t.getName()){delete e.stack.env.closing,e.Push(e.itemFactory.create("end").setProperty("name",t.getName()));var r=e.stack.Top(),n=r.Last,i=PO.default.copyNode(n,e),a=r.getProperty("left");return DO.EmpheqUtil.left(n,i,a+"\\empheqlbrace\\,",e,"numcases-left"),e.Push(e.itemFactory.create("end").setProperty("name",t.getName())),null}else{var a=e.GetArgument("\\begin{"+t.getName()+"}");t.setProperty("left",a);var o=jO.default.EqnArray(e,t,!0,!0,"ll");return o.arraydef.displaystyle=!1,o.arraydef.rowspacing=".2em",o.setProperty("numCases",!0),e.Push(t),o}},Entry:function(e,t){if(!e.stack.Top().getProperty("numCases"))return jO.default.Entry(e,t);e.Push(e.itemFactory.create("cell").setProperties({isEntry:!0,name:t}));for(var r=e.string,n=0,i=e.i,a=r.length;i<a;){var o=r.charAt(i);if(o==="{")n++,i++;else if(o==="}"){if(n===0)break;n--,i++}else{if(o==="&"&&n===0)throw new jL.default("ExtraCasesAlignTab","Extra alignment tab in text for numcase environment");if(o==="\\"&&n===0){var s=(r.slice(i+1).match(/^[a-z]+|./i)||[])[0];if(s==="\\"||s==="cr"||s==="end"||s==="label")break;i+=s.length}else i++}}var l=r.substr(e.i,i-e.i).replace(/^\s*/,"");e.PushAll(PO.default.internalMath(e,l,0)),e.i=i}};new LO.EnvironmentMap("cases-env",DO.EmpheqUtil.environment,{numcases:["NumCases","cases"],subnumcases:["NumCases","cases"]},Gt.CasesMethods);new LO.MacroMap("cases-macros",{"&":"Entry"},Gt.CasesMethods);Gt.CasesConfiguration=PL.Configuration.create("cases",{handler:{environment:["cases-env"],character:["cases-macros"]},items:(h_={},h_[p_.prototype.kind]=p_,h_),tags:{cases:BO}})});var zO=ee(bn=>{"use strict";var DL=bn&&bn.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},y_=bn&&bn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bn,"__esModule",{value:!0});bn.CenternotConfiguration=bn.filterCenterOver=void 0;var BL=ze(),qO=y_(jt()),UO=y_(st()),FL=He(),qL=y_(dr());new FL.CommandMap("centernot",{centerOver:"CenterOver",centernot:["Macro","\\centerOver{#1}{{\u29F8}}",1]},{CenterOver:function(e,t){var r="{"+e.GetArgument(t)+"}",n=e.ParseArg(t),i=new qO.default(r,e.stack.env,e.configuration).mml(),a=e.create("node","TeXAtom",[new qO.default(r,e.stack.env,e.configuration).mml(),e.create("node","mpadded",[e.create("node","mpadded",[n],{width:0,lspace:"-.5width"}),e.create("node","mphantom",[i])],{width:0,lspace:"-.5width"})]);e.configuration.addNode("centerOver",i),e.Push(a)},Macro:qL.default.Macro});function HO(e){var t,r,n=e.data;try{for(var i=DL(n.getList("centerOver")),a=i.next();!a.done;a=i.next()){var o=a.value,s=UO.default.getTexClass(o.childNodes[0].childNodes[0]);s!==null&&UO.default.setProperties(o.parent.parent.parent.parent.parent.parent,{texClass:s})}}catch(l){t={error:l}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}bn.filterCenterOver=HO;bn.CenternotConfiguration=BL.Configuration.create("centernot",{handler:{macro:["centernot"]},postprocessors:[HO]})});var $O=ee(Yr=>{"use strict";var GO=Yr&&Yr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.ColorMethods=void 0;var WO=GO(st()),KO=GO(Qe());function XO(e){var t="+".concat(e),r=e.replace(/^.*?([a-z]*)$/,"$1"),n=2*parseFloat(t);return{width:"+".concat(n).concat(r),height:t,depth:t,lspace:e}}Yr.ColorMethods={};Yr.ColorMethods.Color=function(e,t){var r=e.GetBrackets(t,""),n=e.GetArgument(t),i=e.configuration.packageData.get("color").model,a=i.getColor(r,n),o=e.itemFactory.create("style").setProperties({styles:{mathcolor:a}});e.stack.env.color=a,e.Push(o)};Yr.ColorMethods.TextColor=function(e,t){var r=e.GetBrackets(t,""),n=e.GetArgument(t),i=e.configuration.packageData.get("color").model,a=i.getColor(r,n),o=e.stack.env.color;e.stack.env.color=a;var s=e.ParseArg(t);o?e.stack.env.color=o:delete e.stack.env.color;var l=e.create("node","mstyle",[s],{mathcolor:a});e.Push(l)};Yr.ColorMethods.DefineColor=function(e,t){var r=e.GetArgument(t),n=e.GetArgument(t),i=e.GetArgument(t),a=e.configuration.packageData.get("color").model;a.defineColor(n,r,i)};Yr.ColorMethods.ColorBox=function(e,t){var r=e.GetArgument(t),n=KO.default.internalMath(e,e.GetArgument(t)),i=e.configuration.packageData.get("color").model,a=e.create("node","mpadded",n,{mathbackground:i.getColor("named",r)});WO.default.setProperties(a,XO(e.options.color.padding)),e.Push(a)};Yr.ColorMethods.FColorBox=function(e,t){var r=e.GetArgument(t),n=e.GetArgument(t),i=KO.default.internalMath(e,e.GetArgument(t)),a=e.options.color,o=e.configuration.packageData.get("color").model,s=e.create("node","mpadded",i,{mathbackground:o.getColor("named",n),style:"border: ".concat(a.borderWidth," solid ").concat(o.getColor("named",r))});WO.default.setProperties(s,XO(a.padding)),e.Push(s)}});var VO=ee(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.COLORS=void 0;Fc.COLORS=new Map([["Apricot","#FBB982"],["Aquamarine","#00B5BE"],["Bittersweet","#C04F17"],["Black","#221E1F"],["Blue","#2D2F92"],["BlueGreen","#00B3B8"],["BlueViolet","#473992"],["BrickRed","#B6321C"],["Brown","#792500"],["BurntOrange","#F7921D"],["CadetBlue","#74729A"],["CarnationPink","#F282B4"],["Cerulean","#00A2E3"],["CornflowerBlue","#41B0E4"],["Cyan","#00AEEF"],["Dandelion","#FDBC42"],["DarkOrchid","#A4538A"],["Emerald","#00A99D"],["ForestGreen","#009B55"],["Fuchsia","#8C368C"],["Goldenrod","#FFDF42"],["Gray","#949698"],["Green","#00A64F"],["GreenYellow","#DFE674"],["JungleGreen","#00A99A"],["Lavender","#F49EC4"],["LimeGreen","#8DC73E"],["Magenta","#EC008C"],["Mahogany","#A9341F"],["Maroon","#AF3235"],["Melon","#F89E7B"],["MidnightBlue","#006795"],["Mulberry","#A93C93"],["NavyBlue","#006EB8"],["OliveGreen","#3C8031"],["Orange","#F58137"],["OrangeRed","#ED135A"],["Orchid","#AF72B0"],["Peach","#F7965A"],["Periwinkle","#7977B8"],["PineGreen","#008B72"],["Plum","#92268F"],["ProcessBlue","#00B0F0"],["Purple","#99479B"],["RawSienna","#974006"],["Red","#ED1B23"],["RedOrange","#F26035"],["RedViolet","#A1246B"],["Rhodamine","#EF559F"],["RoyalBlue","#0071BC"],["RoyalPurple","#613F99"],["RubineRed","#ED017D"],["Salmon","#F69289"],["SeaGreen","#3FBC9D"],["Sepia","#671800"],["SkyBlue","#46C5DD"],["SpringGreen","#C6DC67"],["Tan","#DA9D76"],["TealBlue","#00AEB3"],["Thistle","#D883B7"],["Turquoise","#00B4CE"],["Violet","#58429B"],["VioletRed","#EF58A0"],["White","#FFFFFF"],["WildStrawberry","#EE2967"],["Yellow","#FFF200"],["YellowGreen","#98CC70"],["YellowOrange","#FAA21A"]])});var JO=ee(Ti=>{"use strict";var ZO=Ti&&Ti.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},UL=Ti&&Ti.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ti,"__esModule",{value:!0});Ti.ColorModel=void 0;var oi=UL($e()),YO=VO(),js=new Map,HL=(function(){function e(){this.userColors=new Map}return e.prototype.normalizeColor=function(t,r){if(!t||t==="named")return r;if(js.has(t)){var n=js.get(t);return n(r)}throw new oi.default("UndefinedColorModel","Color model '%1' not defined",t)},e.prototype.getColor=function(t,r){return!t||t==="named"?this.getColorByName(r):this.normalizeColor(t,r)},e.prototype.getColorByName=function(t){return this.userColors.has(t)?this.userColors.get(t):YO.COLORS.has(t)?YO.COLORS.get(t):t},e.prototype.defineColor=function(t,r,n){var i=this.normalizeColor(t,n);this.userColors.set(r,i)},e})();Ti.ColorModel=HL;js.set("rgb",function(e){var t,r,n=e.trim().split(/\s*,\s*/),i="#";if(n.length!==3)throw new oi.default("ModelArg1","Color values for the %1 model require 3 numbers","rgb");try{for(var a=ZO(n),o=a.next();!o.done;o=a.next()){var s=o.value;if(!s.match(/^(\d+(\.\d*)?|\.\d+)$/))throw new oi.default("InvalidDecimalNumber","Invalid decimal number");var l=parseFloat(s);if(l<0||l>1)throw new oi.default("ModelArg2","Color values for the %1 model must be between %2 and %3","rgb","0","1");var c=Math.floor(l*255).toString(16);c.length<2&&(c="0"+c),i+=c}}catch(d){t={error:d}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return i});js.set("RGB",function(e){var t,r,n=e.trim().split(/\s*,\s*/),i="#";if(n.length!==3)throw new oi.default("ModelArg1","Color values for the %1 model require 3 numbers","RGB");try{for(var a=ZO(n),o=a.next();!o.done;o=a.next()){var s=o.value;if(!s.match(/^\d+$/))throw new oi.default("InvalidNumber","Invalid number");var l=parseInt(s);if(l>255)throw new oi.default("ModelArg2","Color values for the %1 model must be between %2 and %3","RGB","0","255");var c=l.toString(16);c.length<2&&(c="0"+c),i+=c}}catch(d){t={error:d}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return i});js.set("gray",function(e){if(!e.match(/^\s*(\d+(\.\d*)?|\.\d+)\s*$/))throw new oi.default("InvalidDecimalNumber","Invalid decimal number");var t=parseFloat(e);if(t<0||t>1)throw new oi.default("ModelArg2","Color values for the %1 model must be between %2 and %3","gray","0","1");var r=Math.floor(t*255).toString(16);return r.length<2&&(r="0"+r),"#".concat(r).concat(r).concat(r)})});var QO=ee(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.ColorConfiguration=void 0;var zL=He(),GL=ze(),WL=$O(),KL=JO();new zL.CommandMap("color",{color:"Color",textcolor:"TextColor",definecolor:"DefineColor",colorbox:"ColorBox",fcolorbox:"FColorBox"},WL.ColorMethods);var XL=function(e,t){t.parseOptions.packageData.set("color",{model:new KL.ColorModel})};qc.ColorConfiguration=GL.Configuration.create("color",{handler:{macro:["color"]},options:{color:{padding:"5px",borderWidth:"2px"}},config:XL})});var eT=ee(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.ColorConfiguration=Ea.ColorV2Methods=void 0;var $L=He(),VL=ze();Ea.ColorV2Methods={Color:function(e,t){var r=e.GetArgument(t),n=e.stack.env.color;e.stack.env.color=r;var i=e.ParseArg(t);n?e.stack.env.color=n:delete e.stack.env.color;var a=e.create("node","mstyle",[i],{mathcolor:r});e.Push(a)}};new $L.CommandMap("colorv2",{color:"Color"},Ea.ColorV2Methods);Ea.ColorConfiguration=VL.Configuration.create("colorv2",{handler:{macro:["colorv2"]}})});var rT=ee(wn=>{"use strict";var YL=wn&&wn.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),ZL=wn&&wn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wn,"__esModule",{value:!0});wn.ColortblConfiguration=wn.ColorArrayItem=void 0;var JL=mn(),tT=ze(),QL=He(),__=ZL($e()),v_=(function(e){YL(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.color={cell:"",row:"",col:[]},r.hasColor=!1,r}return t.prototype.EndEntry=function(){e.prototype.EndEntry.call(this);var r=this.row[this.row.length-1],n=this.color.cell||this.color.row||this.color.col[this.row.length-1];n&&(r.attributes.set("mathbackground",n),this.color.cell="",this.hasColor=!0)},t.prototype.EndRow=function(){e.prototype.EndRow.call(this),this.color.row=""},t.prototype.createMml=function(){var r=e.prototype.createMml.call(this),n=r.isKind("mrow")?r.childNodes[1]:r;return n.isKind("menclose")&&(n=n.childNodes[0].childNodes[0]),this.hasColor&&n.attributes.get("frame")==="none"&&n.attributes.set("frame",""),r},t})(JL.ArrayItem);wn.ColorArrayItem=v_;new QL.CommandMap("colortbl",{cellcolor:["TableColor","cell"],rowcolor:["TableColor","row"],columncolor:["TableColor","col"]},{TableColor:function(e,t,r){var n=e.configuration.packageData.get("color").model,i=e.GetBrackets(t,""),a=n.getColor(i,e.GetArgument(t)),o=e.stack.Top();if(!(o instanceof v_))throw new __.default("UnsupportedTableColor","Unsupported use of %1",e.currentCS);if(r==="col"){if(o.table.length)throw new __.default("ColumnColorNotTop","%1 must be in the top row",t);o.color.col[o.row.length]=a,e.GetBrackets(t,"")&&e.GetBrackets(t,"")}else if(o.color[r]=a,r==="row"&&(o.Size()||o.row.length))throw new __.default("RowColorNotFirst","%1 must be at the beginning of a row",t)}});var eD=function(e,t){t.parseOptions.packageData.has("color")||tT.ConfigurationHandler.get("color").config(e,t)};wn.ColortblConfiguration=tT.Configuration.create("colortbl",{handler:{macro:["colortbl"]},items:{array:v_},priority:10,config:[eD,10]})});var Ls=ee(Rs=>{"use strict";var nT=Rs&&Rs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rs,"__esModule",{value:!0});var b_=nT(Qe()),Aa=nT($e()),Uc=_a(),w_;(function(e){function t(m,p){var b=[m,p.char];if(p.attributes)for(var v in p.attributes)b.push(v),b.push(p.attributes[v]);return b}e.disassembleSymbol=t;function r(m){for(var p=m[0],b=m[1],v={},A=2;A<m.length;A=A+2)v[m[A]]=m[A+1];return new Uc.Symbol(p,b,v)}e.assembleSymbol=r;function n(m,p){var b=m.GetNext();if(b!=="\\")throw new Aa.default("MissingCS","%1 must be followed by a control sequence",p);var v=b_.default.trimSpaces(m.GetArgument(p));return v.substr(1)}e.GetCSname=n;function i(m,p){var b=b_.default.trimSpaces(m.GetArgument(p));if(b.charAt(0)==="\\"&&(b=b.substr(1)),!b.match(/^(.|[a-z]+)$/i))throw new Aa.default("IllegalControlSequenceName","Illegal control sequence name for %1",p);return b}e.GetCsNameArgument=i;function a(m,p){var b=m.GetBrackets(p);if(b&&(b=b_.default.trimSpaces(b),!b.match(/^[0-9]+$/)))throw new Aa.default("IllegalParamNumber","Illegal number of parameters specified in %1",p);return b}e.GetArgCount=a;function o(m,p,b){for(var v=m.GetNext(),A=[],y=0,T=m.i;m.i<m.string.length;){if(v=m.GetNext(),v==="#"){if(T!==m.i&&(A[y]=m.string.substr(T,m.i-T)),v=m.string.charAt(++m.i),!v.match(/^[1-9]$/))throw new Aa.default("CantUseHash2","Illegal use of # in template for %1",b);if(parseInt(v)!==++y)throw new Aa.default("SequentialParam","Parameters for %1 must be numbered sequentially",b);T=m.i+1}else if(v==="{")return T!==m.i&&(A[y]=m.string.substr(T,m.i-T)),A.length>0?[y.toString()].concat(A):y;m.i++}throw new Aa.default("MissingReplacementString","Missing replacement string for definition of %1",p)}e.GetTemplate=o;function s(m,p,b){if(b==null)return m.GetArgument(p);for(var v=m.i,A=0,y=0;m.i<m.string.length;){var T=m.string.charAt(m.i);if(T==="{")m.i===v&&(y=1),m.GetArgument(p),A=m.i-v;else{if(l(m,b))return y&&(v++,A-=2),m.string.substr(v,A);if(T==="\\"){m.i++,A++,y=0;var E=m.string.substr(m.i).match(/[a-z]+|./i);E&&(m.i+=E[0].length,A=m.i-v)}else m.i++,A++,y=0}}throw new Aa.default("RunawayArgument","Runaway argument for %1?",p)}e.GetParameter=s;function l(m,p){return m.string.substr(m.i,p.length)!==p||p.match(/\\[a-z]+$/i)&&m.string.charAt(m.i+p.length).match(/[a-z]/i)?0:(m.i+=p.length,1)}e.MatchParam=l;function c(m,p,b,v){var A=m.configuration.handlers,y=A.retrieve(e.NEW_DELIMITER);y.add(p,new Uc.Symbol(p,b,v))}e.addDelimiter=c;function d(m,p,b,v,A){A===void 0&&(A="");var y=m.configuration.handlers,T=y.retrieve(e.NEW_COMMAND);T.add(p,new Uc.Macro(A||p,b,v))}e.addMacro=d;function f(m,p,b,v){var A=m.configuration.handlers,y=A.retrieve(e.NEW_ENVIRONMENT);y.add(p,new Uc.Macro(p,b,v))}e.addEnvironment=f,e.NEW_DELIMITER="new-Delimiter",e.NEW_COMMAND="new-Command",e.NEW_ENVIRONMENT="new-Environment"})(w_||(w_={}));Rs.default=w_});var zc=ee(Zr=>{"use strict";var tD=Zr&&Zr.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),rD=Zr&&Zr.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),nD=Zr&&Zr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&tD(t,e,r);return rD(t,e),t},Hc=Zr&&Zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zr,"__esModule",{value:!0});var iD=Hc($e()),aD=nD(He()),oD=Hc(dr()),Oa=Hc(Qe()),bt=Hc(Ls()),hr={};hr.NewCommand=function(e,t){var r=bt.default.GetCsNameArgument(e,t),n=bt.default.GetArgCount(e,t),i=e.GetBrackets(t),a=e.GetArgument(t);bt.default.addMacro(e,r,hr.Macro,[a,n,i])};hr.NewEnvironment=function(e,t){var r=Oa.default.trimSpaces(e.GetArgument(t)),n=bt.default.GetArgCount(e,t),i=e.GetBrackets(t),a=e.GetArgument(t),o=e.GetArgument(t);bt.default.addEnvironment(e,r,hr.BeginEnv,[!0,a,o,n,i])};hr.MacroDef=function(e,t){var r=bt.default.GetCSname(e,t),n=bt.default.GetTemplate(e,t,"\\"+r),i=e.GetArgument(t);n instanceof Array?bt.default.addMacro(e,r,hr.MacroWithTemplate,[i].concat(n)):bt.default.addMacro(e,r,hr.Macro,[i,n])};hr.Let=function(e,t){var r=bt.default.GetCSname(e,t),n=e.GetNext();n==="="&&(e.i++,n=e.GetNext());var i=e.configuration.handlers;if(n==="\\"){t=bt.default.GetCSname(e,t);var a=i.get("delimiter").lookup("\\"+t);if(a){bt.default.addDelimiter(e,"\\"+r,a.char,a.attributes);return}var o=i.get("macro").applicable(t);if(!o)return;if(o instanceof aD.MacroMap){var s=o.lookup(t);bt.default.addMacro(e,r,s.func,s.args,s.symbol);return}a=o.lookup(t);var l=bt.default.disassembleSymbol(r,a),c=function(f,m){for(var p=[],b=2;b<arguments.length;b++)p[b-2]=arguments[b];var v=bt.default.assembleSymbol(p);return o.parser(f,v)};bt.default.addMacro(e,r,c,l);return}e.i++;var d=i.get("delimiter").lookup(n);if(d){bt.default.addDelimiter(e,"\\"+r,d.char,d.attributes);return}bt.default.addMacro(e,r,hr.Macro,[n])};hr.MacroWithTemplate=function(e,t,r,n){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];var o=parseInt(n,10);if(o){var s=[];if(e.GetNext(),i[0]&&!bt.default.MatchParam(e,i[0]))throw new iD.default("MismatchUseDef","Use of %1 doesn't match its definition",t);for(var l=0;l<o;l++)s.push(bt.default.GetParameter(e,t,i[l+1]));r=Oa.default.substituteArgs(e,s,r)}e.string=Oa.default.addArgs(e,r,e.string.slice(e.i)),e.i=0,Oa.default.checkMaxMacros(e)};hr.BeginEnv=function(e,t,r,n,i,a){if(t.getProperty("end")&&e.stack.env.closing===t.getName()){delete e.stack.env.closing;var o=e.string.slice(e.i);return e.string=n,e.i=0,e.Parse(),e.string=o,e.i=0,e.itemFactory.create("end").setProperty("name",t.getName())}if(i){var s=[];if(a!=null){var l=e.GetBrackets("\\begin{"+t.getName()+"}");s.push(l??a)}for(var c=s.length;c<i;c++)s.push(e.GetArgument("\\begin{"+t.getName()+"}"));r=Oa.default.substituteArgs(e,s,r),n=Oa.default.substituteArgs(e,[],n)}return e.string=Oa.default.addArgs(e,r,e.string.slice(e.i)),e.i=0,e.itemFactory.create("beginEnv").setProperty("name",t.getName())};hr.Macro=oD.default.Macro;Zr.default=hr});var E_=ee(Si=>{"use strict";var sD=Si&&Si.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),lD=Si&&Si.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Si,"__esModule",{value:!0});Si.BeginEnvItem=void 0;var iT=lD($e()),cD=ga(),uD=(function(e){sD(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"beginEnv"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("end")){if(r.getName()!==this.getName())throw new iT.default("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),r.getName());return[[this.factory.create("mml",this.toMml())],!0]}if(r.isKind("stop"))throw new iT.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return e.prototype.checkItem.call(this,r)},t})(cD.BaseItem);Si.BeginEnvItem=uD});var dT=ee(xi=>{"use strict";var lT=xi&&xi.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},cT=xi&&xi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},A_;Object.defineProperty(xi,"__esModule",{value:!0});xi.ConfigMacrosConfiguration=void 0;var uT=ze(),aT=It(),oT=He(),dD=cT(hn()),O_=_a(),T_=cT(zc()),sT=E_(),S_="configmacros-map",x_="configmacros-env-map";function fD(e){new oT.CommandMap(S_,{},{}),new oT.EnvironmentMap(x_,dD.default.environment,{},{}),e.append(uT.Configuration.local({handler:{macro:[S_],environment:[x_]},priority:3}))}function mD(e,t){hD(t),pD(t)}function hD(e){var t,r,n=e.parseOptions.handlers.retrieve(S_),i=e.parseOptions.options.macros;try{for(var a=lT(Object.keys(i)),o=a.next();!o.done;o=a.next()){var s=o.value,l=typeof i[s]=="string"?[i[s]]:i[s],c=Array.isArray(l[2])?new O_.Macro(s,T_.default.MacroWithTemplate,l.slice(0,2).concat(l[2])):new O_.Macro(s,T_.default.Macro,l);n.add(s,c)}}catch(d){t={error:d}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}}function pD(e){var t,r,n=e.parseOptions.handlers.retrieve(x_),i=e.parseOptions.options.environments;try{for(var a=lT(Object.keys(i)),o=a.next();!o.done;o=a.next()){var s=o.value;n.add(s,new O_.Macro(s,T_.default.BeginEnv,[!0].concat(i[s])))}}catch(l){t={error:l}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}}xi.ConfigMacrosConfiguration=uT.Configuration.create("configmacros",{init:fD,config:mD,items:(A_={},A_[sT.BeginEnvItem.prototype.kind]=sT.BeginEnvItem,A_),options:{macros:(0,aT.expandable)({}),environments:(0,aT.expandable)({})}})});var hT=ee(Wt=>{"use strict";var gD=Wt&&Wt.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),yD=Wt&&Wt.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},fT=Wt&&Wt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},M_;Object.defineProperty(Wt,"__esModule",{value:!0});Wt.EmpheqConfiguration=Wt.EmpheqMethods=Wt.EmpheqBeginItem=void 0;var _D=ze(),mT=He(),vD=fT(Qe()),bD=fT($e()),wD=mn(),Gc=m_(),C_=(function(e){gD(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"empheq-begin"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){return r.isKind("end")&&r.getName()===this.getName()&&this.setProperty("end",!1),e.prototype.checkItem.call(this,r)},t})(wD.BeginItem);Wt.EmpheqBeginItem=C_;Wt.EmpheqMethods={Empheq:function(e,t){if(e.stack.env.closing===t.getName()){delete e.stack.env.closing,e.Push(e.itemFactory.create("end").setProperty("name",e.stack.global.empheq)),e.stack.global.empheq="";var r=e.stack.Top();Gc.EmpheqUtil.adjustTable(r,e),e.Push(e.itemFactory.create("end").setProperty("name","empheq"))}else{vD.default.checkEqnEnv(e),delete e.stack.global.eqnenv;var n=e.GetBrackets("\\begin{"+t.getName()+"}")||"",i=yD((e.GetArgument("\\begin{"+t.getName()+"}")||"").split(/=/),2),a=i[0],o=i[1];if(!Gc.EmpheqUtil.checkEnv(a))throw new bD.default("UnknownEnv",'Unknown environment "%1"',a);n&&t.setProperties(Gc.EmpheqUtil.splitOptions(n,{left:1,right:1})),e.stack.global.empheq=a,e.string="\\begin{"+a+"}"+(o?"{"+o+"}":"")+e.string.slice(e.i),e.i=0,e.Push(t)}},EmpheqMO:function(e,t,r){e.Push(e.create("token","mo",{},r))},EmpheqDelim:function(e,t){var r=e.GetDelimiter(t);e.Push(e.create("token","mo",{stretchy:!0,symmetric:!0},r))}};new mT.EnvironmentMap("empheq-env",Gc.EmpheqUtil.environment,{empheq:["Empheq","empheq"]},Wt.EmpheqMethods);new mT.CommandMap("empheq-macros",{empheqlbrace:["EmpheqMO","{"],empheqrbrace:["EmpheqMO","}"],empheqlbrack:["EmpheqMO","["],empheqrbrack:["EmpheqMO","]"],empheqlangle:["EmpheqMO","\u27E8"],empheqrangle:["EmpheqMO","\u27E9"],empheqlparen:["EmpheqMO","("],empheqrparen:["EmpheqMO",")"],empheqlvert:["EmpheqMO","|"],empheqrvert:["EmpheqMO","|"],empheqlVert:["EmpheqMO","\u2016"],empheqrVert:["EmpheqMO","\u2016"],empheqlfloor:["EmpheqMO","\u230A"],empheqrfloor:["EmpheqMO","\u230B"],empheqlceil:["EmpheqMO","\u2308"],empheqrceil:["EmpheqMO","\u2309"],empheqbiglbrace:["EmpheqMO","{"],empheqbigrbrace:["EmpheqMO","}"],empheqbiglbrack:["EmpheqMO","["],empheqbigrbrack:["EmpheqMO","]"],empheqbiglangle:["EmpheqMO","\u27E8"],empheqbigrangle:["EmpheqMO","\u27E9"],empheqbiglparen:["EmpheqMO","("],empheqbigrparen:["EmpheqMO",")"],empheqbiglvert:["EmpheqMO","|"],empheqbigrvert:["EmpheqMO","|"],empheqbiglVert:["EmpheqMO","\u2016"],empheqbigrVert:["EmpheqMO","\u2016"],empheqbiglfloor:["EmpheqMO","\u230A"],empheqbigrfloor:["EmpheqMO","\u230B"],empheqbiglceil:["EmpheqMO","\u2308"],empheqbigrceil:["EmpheqMO","\u2309"],empheql:"EmpheqDelim",empheqr:"EmpheqDelim",empheqbigl:"EmpheqDelim",empheqbigr:"EmpheqDelim"},Wt.EmpheqMethods);Wt.EmpheqConfiguration=_D.Configuration.create("empheq",{handler:{macro:["empheq-macros"],environment:["empheq-env"]},items:(M_={},M_[C_.prototype.kind]=C_,M_)})});var pT=ee(Wc=>{"use strict";var ED=Wc&&Wc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wc,"__esModule",{value:!0});var AD=ED(zc()),OD=He();new OD.CommandMap("Newcommand-macros",{newcommand:"NewCommand",renewcommand:"NewCommand",newenvironment:"NewEnvironment",renewenvironment:"NewEnvironment",def:"MacroDef",let:"Let"},AD.default)});var I_=ee(Or=>{"use strict";var TD=Or&&Or.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),SD=Or&&Or.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),xD=Or&&Or.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&TD(t,e,r);return SD(t,e),t},_T=Or&&Or.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},k_;Object.defineProperty(Or,"__esModule",{value:!0});Or.NewcommandConfiguration=void 0;var vT=ze(),gT=E_(),Ta=_T(Ls());pT();var yT=_T(hn()),N_=xD(He()),MD=function(e){new N_.DelimiterMap(Ta.default.NEW_DELIMITER,yT.default.delimiter,{}),new N_.CommandMap(Ta.default.NEW_COMMAND,{},{}),new N_.EnvironmentMap(Ta.default.NEW_ENVIRONMENT,yT.default.environment,{},{}),e.append(vT.Configuration.local({handler:{character:[],delimiter:[Ta.default.NEW_DELIMITER],macro:[Ta.default.NEW_DELIMITER,Ta.default.NEW_COMMAND],environment:[Ta.default.NEW_ENVIRONMENT]},priority:-1}))};Or.NewcommandConfiguration=vT.Configuration.create("newcommand",{handler:{macro:["Newcommand-macros"]},items:(k_={},k_[gT.BeginEnvItem.prototype.kind]=gT.BeginEnvItem,k_),options:{maxMacros:1e3},init:MD})});var wT=ee(Tr=>{"use strict";var bT=Tr&&Tr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.ExtpfeilConfiguration=Tr.ExtpfeilMethods=void 0;var CD=ze(),kD=He(),ND=fo(),ID=bT(Ls()),PD=I_(),P_=bT($e());Tr.ExtpfeilMethods={};Tr.ExtpfeilMethods.xArrow=ND.AmsMethods.xArrow;Tr.ExtpfeilMethods.NewExtArrow=function(e,t){var r=e.GetArgument(t),n=e.GetArgument(t),i=e.GetArgument(t);if(!r.match(/^\\([a-z]+|.)$/i))throw new P_.default("NewextarrowArg1","First argument to %1 must be a control sequence name",t);if(!n.match(/^(\d+),(\d+)$/))throw new P_.default("NewextarrowArg2","Second argument to %1 must be two integers separated by a comma",t);if(!i.match(/^(\d+|0x[0-9A-F]+)$/i))throw new P_.default("NewextarrowArg3","Third argument to %1 must be a unicode character number",t);r=r.substr(1);var a=n.split(",");ID.default.addMacro(e,r,Tr.ExtpfeilMethods.xArrow,[parseInt(i),parseInt(a[0]),parseInt(a[1])])};new kD.CommandMap("extpfeil",{xtwoheadrightarrow:["xArrow",8608,12,16],xtwoheadleftarrow:["xArrow",8606,17,13],xmapsto:["xArrow",8614,6,7],xlongequal:["xArrow",61,7,7],xtofrom:["xArrow",8644,12,12],Newextarrow:"NewExtArrow"},Tr.ExtpfeilMethods);var jD=function(e){PD.NewcommandConfiguration.init(e)};Tr.ExtpfeilConfiguration=CD.Configuration.create("extpfeil",{handler:{macro:["extpfeil"]},init:jD})});var ET=ee(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.GensymbConfiguration=void 0;var RD=ze(),LD=Rt(),DD=He();function BD(e,t){var r=t.attributes||{};r.mathvariant=LD.TexConstant.Variant.NORMAL,r.class="MathML-Unit";var n=e.create("token","mi",r,t.char);e.Push(n)}new DD.CharacterMap("gensymb-symbols",BD,{ohm:"\u2126",degree:"\xB0",celsius:"\u2103",perthousand:"\u2030",micro:"\xB5"});Kc.GensymbConfiguration=RD.Configuration.create("gensymb",{handler:{macro:["gensymb-symbols"]}})});var AT=ee(Ds=>{"use strict";var FD=Ds&&Ds.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ds,"__esModule",{value:!0});var En=FD(st()),Bs={};Bs.Href=function(e,t){var r=e.GetArgument(t),n=Xc(e,t);En.default.setAttribute(n,"href",r),e.Push(n)};Bs.Class=function(e,t){var r=e.GetArgument(t),n=Xc(e,t),i=En.default.getAttribute(n,"class");i&&(r=i+" "+r),En.default.setAttribute(n,"class",r),e.Push(n)};Bs.Style=function(e,t){var r=e.GetArgument(t),n=Xc(e,t),i=En.default.getAttribute(n,"style");i&&(r.charAt(r.length-1)!==";"&&(r+=";"),r=i+" "+r),En.default.setAttribute(n,"style",r),e.Push(n)};Bs.Id=function(e,t){var r=e.GetArgument(t),n=Xc(e,t);En.default.setAttribute(n,"id",r),e.Push(n)};var Xc=function(e,t){var r=e.ParseArg(t);if(!En.default.isInferred(r))return r;var n=En.default.getChildren(r);if(n.length===1)return n[0];var i=e.create("node","mrow");return En.default.copyChildren(r,i),En.default.copyAttributes(r,i),i};Ds.default=Bs});var OT=ee(go=>{"use strict";var qD=go&&go.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(go,"__esModule",{value:!0});go.HtmlConfiguration=void 0;var UD=ze(),HD=He(),zD=qD(AT());new HD.CommandMap("html_macros",{href:"Href",class:"Class",style:"Style",cssId:"Id"},zD.default);go.HtmlConfiguration=UD.Configuration.create("html",{handler:{macro:["html_macros"]}})});var R_=ee(Mi=>{"use strict";var GD=Mi&&Mi.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},j_=Mi&&Mi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.MathtoolsUtil=void 0;var WD=mn(),$c=j_(Qe()),KD=j_(jt()),TT=j_($e()),XD=_a(),$D=It(),VD=L_(),YD=D_();Mi.MathtoolsUtil={setDisplayLevel:function(e,t){if(t){var r=GD((0,$D.lookup)(t,{"\\displaystyle":[!0,0],"\\textstyle":[!1,0],"\\scriptstyle":[!1,1],"\\scriptscriptstyle":[!1,2]},[null,null]),2),n=r[0],i=r[1];n!==null&&(e.attributes.set("displaystyle",n),e.attributes.set("scriptlevel",i))}},checkAlignment:function(e,t){var r=e.stack.Top();if(r.kind!==WD.EqnArrayItem.prototype.kind)throw new TT.default("NotInAlignment","%1 can only be used in aligment environments",t);return r},addPairedDelims:function(e,t,r){var n=e.handlers.retrieve(YD.PAIREDDELIMS);n.add(t,new XD.Macro(t,VD.MathtoolsMethods.PairedDelimiters,r))},spreadLines:function(e,t){if(e.isKind("mtable")){var r=e.attributes.get("rowspacing");if(r){var n=$c.default.dimen2em(t);r=r.split(/ /).map(function(i){return $c.default.Em(Math.max(0,$c.default.dimen2em(i)+n))}).join(" ")}else r=t;e.attributes.set("rowspacing",r)}},plusOrMinus:function(e,t){if(t=t.trim(),!t.match(/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)$/))throw new TT.default("NotANumber","Argument to %1 is not a number",e);return t.match(/^[-+]/)?t:"+"+t},getScript:function(e,t,r){var n=$c.default.trimSpaces(e.GetArgument(t));if(n==="")return e.create("node","none");var i=e.options.mathtools["prescript-".concat(r,"-format")];return i&&(n="".concat(i,"{").concat(n,"}")),new KD.default(n,e.stack.env,e.configuration).mml()}}});var L_=ee(Lt=>{"use strict";var qs=Lt&&Lt.__assign||function(){return qs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},qs.apply(this,arguments)},B_=Lt&&Lt.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},ST=Lt&&Lt.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Sa=Lt&&Lt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.MathtoolsMethods=void 0;var Sr=Sa(Qe()),F_=fo(),xT=Sa(dr()),Vc=Sa(jt()),si=Sa($e()),Jr=Sa(st()),q_=Te(),MT=oo(),ZD=It(),Fs=Sa(Ls()),JD=Sa(zc()),Kt=R_();Lt.MathtoolsMethods={MtMatrix:function(e,t,r,n){var i=e.GetBrackets("\\begin{".concat(t.getName(),"}"),"c");return Lt.MathtoolsMethods.Array(e,t,r,n,i)},MtSmallMatrix:function(e,t,r,n,i){return i||(i=e.GetBrackets("\\begin{".concat(t.getName(),"}"),e.options.mathtools["smallmatrix-align"])),Lt.MathtoolsMethods.Array(e,t,r,n,i,Sr.default.Em(1/3),".2em","S",1)},MtMultlined:function(e,t){var r,n="\\begin{".concat(t.getName(),"}"),i=e.GetBrackets(n,e.options.mathtools["multlined-pos"]||"c"),a=i?e.GetBrackets(n,""):"";i&&!i.match(/^[cbt]$/)&&(r=B_([i,a],2),a=r[0],i=r[1]),e.Push(t);var o=e.itemFactory.create("multlined",e,t);return o.arraydef={displaystyle:!0,rowspacing:".5em",width:a||"auto",columnwidth:"100%"},Sr.default.setArrayAlign(o,i||"c")},HandleShove:function(e,t,r){var n=e.stack.Top();if(n.kind!=="multline"&&n.kind!=="multlined")throw new si.default("CommandInMultlined","%1 can only appear within the multline or multlined environments",t);if(n.Size())throw new si.default("CommandAtTheBeginingOfLine","%1 must come at the beginning of the line",t);n.setProperty("shove",r);var i=e.GetBrackets(t),a=e.ParseArg(t);if(i){var o=e.create("node","mrow",[]),s=e.create("node","mspace",[],{width:i});r==="left"?(o.appendChild(s),o.appendChild(a)):(o.appendChild(a),o.appendChild(s)),a=o}e.Push(a)},SpreadLines:function(e,t){var r,n;if(e.stack.env.closing===t.getName()){delete e.stack.env.closing;var i=e.stack.Pop(),a=i.toMml(),o=i.getProperty("spread");if(a.isInferred)try{for(var s=ST(Jr.default.getChildren(a)),l=s.next();!l.done;l=s.next()){var c=l.value;Kt.MathtoolsUtil.spreadLines(c,o)}}catch(d){r={error:d}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}else Kt.MathtoolsUtil.spreadLines(a,o);e.Push(a)}else{var o=e.GetDimen("\\begin{".concat(t.getName(),"}"));t.setProperty("spread",o),e.Push(t)}},Cases:function(e,t,r,n,i){var a=e.itemFactory.create("array").setProperty("casesEnv",t.getName());return a.arraydef={rowspacing:".2em",columnspacing:"1em",columnalign:"left"},i==="D"&&(a.arraydef.displaystyle=!0),a.setProperties({open:r,close:n}),e.Push(t),a},MathLap:function(e,t,r,n){var i=e.GetBrackets(t,"").trim(),a=e.create("node","mstyle",[e.create("node","mpadded",[e.ParseArg(t)],qs({width:0},r==="r"?{}:{lspace:r==="l"?"-1width":"-.5width"}))],{"data-cramped":n});Kt.MathtoolsUtil.setDisplayLevel(a,i),e.Push(e.create("node","TeXAtom",[a]))},Cramped:function(e,t){var r=e.GetBrackets(t,"").trim(),n=e.ParseArg(t),i=e.create("node","mstyle",[n],{"data-cramped":!0});Kt.MathtoolsUtil.setDisplayLevel(i,r),e.Push(i)},MtLap:function(e,t,r){var n=Sr.default.internalMath(e,e.GetArgument(t),0),i=e.create("node","mpadded",n,{width:0});r!=="r"&&Jr.default.setAttribute(i,"lspace",r==="l"?"-1width":"-.5width"),e.Push(i)},MathMakeBox:function(e,t){var r=e.GetBrackets(t),n=e.GetBrackets(t,"c"),i=e.create("node","mpadded",[e.ParseArg(t)]);r&&Jr.default.setAttribute(i,"width",r);var a=(0,ZD.lookup)(n,{c:"center",r:"right"},"");a&&Jr.default.setAttribute(i,"data-align",a),e.Push(i)},MathMBox:function(e,t){e.Push(e.create("node","mrow",[e.ParseArg(t)]))},UnderOverBracket:function(e,t){var r=(0,MT.length2em)(e.GetBrackets(t,".1em"),.1),n=e.GetBrackets(t,".2em"),i=e.GetArgument(t),a=B_(t.charAt(1)==="o"?["over","accent","bottom"]:["under","accentunder","top"],3),o=a[0],s=a[1],l=a[2],c=(0,MT.em)(r),d=new Vc.default(i,e.stack.env,e.configuration).mml(),f=new Vc.default(i,e.stack.env,e.configuration).mml(),m=e.create("node","mpadded",[e.create("node","mphantom",[f])],{style:"border: ".concat(c," solid; border-").concat(l,": none"),height:n,depth:0}),p=Sr.default.underOver(e,d,m,o,!0),b=Jr.default.getChildAt(Jr.default.getChildAt(p,0),0);Jr.default.setAttribute(b,s,!0),e.Push(p)},Aboxed:function(e,t){var r=Kt.MathtoolsUtil.checkAlignment(e,t);r.row.length%2===1&&r.row.push(e.create("node","mtd",[]));var n=e.GetArgument(t),i=e.string.substr(e.i);e.string=n+"&&\\endAboxed",e.i=0;var a=e.GetUpTo(t,"&"),o=e.GetUpTo(t,"&");e.GetUpTo(t,"\\endAboxed");var s=Sr.default.substituteArgs(e,[a,o],"\\rlap{\\boxed{#1{}#2}}\\kern.267em\\phantom{#1}&\\phantom{{}#2}\\kern.267em");e.string=s+i,e.i=0},ArrowBetweenLines:function(e,t){var r=Kt.MathtoolsUtil.checkAlignment(e,t);if(r.Size()||r.row.length)throw new si.default("BetweenLines","%1 must be on a row by itself",t);var n=e.GetStar(),i=e.GetBrackets(t,"\\Updownarrow");n&&(r.EndEntry(),r.EndEntry());var a=n?"\\quad"+i:i+"\\quad",o=new Vc.default(a,e.stack.env,e.configuration).mml();e.Push(o),r.EndEntry(),r.EndRow()},VDotsWithin:function(e,t){var r=e.stack.Top(),n=r.getProperty("flushspaceabove")===r.table.length,i="\\mmlToken{mi}{}"+e.GetArgument(t)+"\\mmlToken{mi}{}",a=new Vc.default(i,e.stack.env,e.configuration).mml(),o=e.create("node","mpadded",[e.create("node","mpadded",[e.create("node","mo",[e.create("text","\u22EE")])],qs({width:0,lspace:"-.5width"},n?{height:"-.6em",voffset:"-.18em"}:{})),e.create("node","mphantom",[a])],{lspace:".5width"});e.Push(o)},ShortVDotsWithin:function(e,t){var r=e.stack.Top(),n=e.GetStar();Lt.MathtoolsMethods.FlushSpaceAbove(e,"\\MTFlushSpaceAbove"),!n&&r.EndEntry(),Lt.MathtoolsMethods.VDotsWithin(e,"\\vdotswithin"),n&&r.EndEntry(),Lt.MathtoolsMethods.FlushSpaceBelow(e,"\\MTFlushSpaceBelow")},FlushSpaceAbove:function(e,t){var r=Kt.MathtoolsUtil.checkAlignment(e,t);r.setProperty("flushspaceabove",r.table.length),r.addRowSpacing("-"+e.options.mathtools.shortvdotsadjustabove)},FlushSpaceBelow:function(e,t){var r=Kt.MathtoolsUtil.checkAlignment(e,t);r.Size()&&r.EndEntry(),r.EndRow(),r.addRowSpacing("-"+e.options.mathtools.shortvdotsadjustbelow)},PairedDelimiters:function(e,t,r,n,i,a,o,s){i===void 0&&(i="#1"),a===void 0&&(a=1),o===void 0&&(o=""),s===void 0&&(s="");var l=e.GetStar(),c=l?"":e.GetBrackets(t),d=B_(l?["\\left","\\right"]:c?[c+"l",c+"r"]:["",""],2),f=d[0],m=d[1],p=l?"\\middle":c||"";if(a){for(var b=[],v=b.length;v<a;v++)b.push(e.GetArgument(t));o=Sr.default.substituteArgs(e,b,o),i=Sr.default.substituteArgs(e,b,i),s=Sr.default.substituteArgs(e,b,s)}i=i.replace(/\\delimsize/g,p),e.string=[o,f,r,i,m,n,s,e.string.substr(e.i)].reduce(function(A,y){return Sr.default.addArgs(e,A,y)},""),e.i=0,Sr.default.checkMaxMacros(e)},DeclarePairedDelimiter:function(e,t){var r=Fs.default.GetCsNameArgument(e,t),n=e.GetArgument(t),i=e.GetArgument(t);Kt.MathtoolsUtil.addPairedDelims(e.configuration,r,[n,i])},DeclarePairedDelimiterX:function(e,t){var r=Fs.default.GetCsNameArgument(e,t),n=Fs.default.GetArgCount(e,t),i=e.GetArgument(t),a=e.GetArgument(t),o=e.GetArgument(t);Kt.MathtoolsUtil.addPairedDelims(e.configuration,r,[i,a,o,n])},DeclarePairedDelimiterXPP:function(e,t){var r=Fs.default.GetCsNameArgument(e,t),n=Fs.default.GetArgCount(e,t),i=e.GetArgument(t),a=e.GetArgument(t),o=e.GetArgument(t),s=e.GetArgument(t),l=e.GetArgument(t);Kt.MathtoolsUtil.addPairedDelims(e.configuration,r,[a,o,l,n,i,s])},CenterColon:function(e,t,r,n,i){n===void 0&&(n=!1),i===void 0&&(i=!1);var a=e.options.mathtools,o=e.create("token","mo",{},":");if(r&&(a.centercolon||n)){var s=a["centercolon-offset"];o=e.create("node","mpadded",[o],qs({voffset:s,height:"+".concat(s),depth:"-".concat(s)},i?{width:a["thincolon-dw"],lspace:a["thincolon-dx"]}:{}))}e.Push(o)},Relation:function(e,t,r,n){var i=e.options.mathtools;i["use-unicode"]&&n?e.Push(e.create("token","mo",{texClass:q_.TEXCLASS.REL},n)):(r="\\mathrel{"+r.replace(/:/g,"\\MTThinColon").replace(/-/g,"\\mathrel{-}")+"}",e.string=Sr.default.addArgs(e,r,e.string.substr(e.i)),e.i=0)},NArrow:function(e,t,r,n){e.Push(e.create("node","TeXAtom",[e.create("token","mtext",{},r),e.create("node","mpadded",[e.create("node","mpadded",[e.create("node","menclose",[e.create("node","mspace",[],{height:".2em",depth:0,width:".4em"})],{notation:"updiagonalstrike","data-thickness":".05em","data-padding":0})],{width:0,lspace:"-.5width",voffset:n}),e.create("node","mphantom",[e.create("token","mtext",{},r)])],{width:0,lspace:"-.5width"})],{texClass:q_.TEXCLASS.REL}))},SplitFrac:function(e,t,r){var n=e.ParseArg(t),i=e.ParseArg(t);e.Push(e.create("node","mstyle",[e.create("node","mfrac",[e.create("node","mstyle",[n,e.create("token","mi"),e.create("token","mspace",{width:"1em"})],{scriptlevel:0}),e.create("node","mstyle",[e.create("token","mspace",{width:"1em"}),e.create("token","mi"),i],{scriptlevel:0})],{linethickness:0,numalign:"left",denomalign:"right"})],{displaystyle:r,scriptlevel:0}))},XMathStrut:function(e,t){var r=e.GetBrackets(t),n=e.GetArgument(t);n=Kt.MathtoolsUtil.plusOrMinus(t,n),r=Kt.MathtoolsUtil.plusOrMinus(t,r||n),e.Push(e.create("node","TeXAtom",[e.create("node","mpadded",[e.create("node","mphantom",[e.create("token","mo",{stretchy:!1},"(")])],{width:0,height:n+"height",depth:r+"depth"})],{texClass:q_.TEXCLASS.ORD}))},Prescript:function(e,t){var r=Kt.MathtoolsUtil.getScript(e,t,"sup"),n=Kt.MathtoolsUtil.getScript(e,t,"sub"),i=Kt.MathtoolsUtil.getScript(e,t,"arg");if(Jr.default.isType(r,"none")&&Jr.default.isType(n,"none")){e.Push(i);return}var a=e.create("node","mmultiscripts",[i]);Jr.default.getChildren(a).push(null,null),Jr.default.appendChildren(a,[e.create("node","mprescripts"),n,r]),a.setProperty("fixPrescript",!0),e.Push(a)},NewTagForm:function(e,t,r){r===void 0&&(r=!1);var n=e.tags;if(!("mtFormats"in n))throw new si.default("TagsNotMT","%1 can only be used with ams or mathtools tags",t);var i=e.GetArgument(t).trim();if(!i)throw new si.default("InvalidTagFormID","Tag form name can't be empty");var a=e.GetBrackets(t,""),o=e.GetArgument(t),s=e.GetArgument(t);if(!r&&n.mtFormats.has(i))throw new si.default("DuplicateTagForm","Duplicate tag form: %1",i);n.mtFormats.set(i,[o,s,a])},UseTagForm:function(e,t){var r=e.tags;if(!("mtFormats"in r))throw new si.default("TagsNotMT","%1 can only be used with ams or mathtools tags",t);var n=e.GetArgument(t).trim();if(!n){r.mtCurrent=null;return}if(!r.mtFormats.has(n))throw new si.default("UndefinedTagForm","Undefined tag form: %1",n);r.mtCurrent=r.mtFormats.get(n)},SetOptions:function(e,t){var r,n,i=e.options.mathtools;if(!i["allow-mathtoolsset"])throw new si.default("ForbiddenMathtoolsSet","%1 is disabled",t);var a={};Object.keys(i).forEach(function(f){f!=="pariedDelimiters"&&f!=="tagforms"&&f!=="allow-mathtoolsset"&&(a[f]=1)});var o=e.GetArgument(t),s=Sr.default.keyvalOptions(o,a,!0);try{for(var l=ST(Object.keys(s)),c=l.next();!c.done;c=l.next()){var d=c.value;i[d]=s[d]}}catch(f){r={error:f}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}},Array:xT.default.Array,Macro:xT.default.Macro,xArrow:F_.AmsMethods.xArrow,HandleRef:F_.AmsMethods.HandleRef,AmsEqnArray:F_.AmsMethods.AmsEqnArray,MacroWithTemplate:JD.default.MacroWithTemplate}});var NT=ee(Yc=>{"use strict";var QD=Yc&&Yc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yc,"__esModule",{value:!0});var kT=QD(hn()),Zc=He(),CT=Rt(),U_=L_();new Zc.CommandMap("mathtools-macros",{shoveleft:["HandleShove",CT.TexConstant.Align.LEFT],shoveright:["HandleShove",CT.TexConstant.Align.RIGHT],xleftrightarrow:["xArrow",8596,10,10],xLeftarrow:["xArrow",8656,12,7],xRightarrow:["xArrow",8658,7,12],xLeftrightarrow:["xArrow",8660,12,12],xhookleftarrow:["xArrow",8617,10,5],xhookrightarrow:["xArrow",8618,5,10],xmapsto:["xArrow",8614,10,10],xrightharpoondown:["xArrow",8641,5,10],xleftharpoondown:["xArrow",8637,10,5],xrightleftharpoons:["xArrow",8652,10,10],xrightharpoonup:["xArrow",8640,5,10],xleftharpoonup:["xArrow",8636,10,5],xleftrightharpoons:["xArrow",8651,10,10],mathllap:["MathLap","l",!1],mathrlap:["MathLap","r",!1],mathclap:["MathLap","c",!1],clap:["MtLap","c"],textllap:["MtLap","l"],textrlap:["MtLap","r"],textclap:["MtLap","c"],cramped:"Cramped",crampedllap:["MathLap","l",!0],crampedrlap:["MathLap","r",!0],crampedclap:["MathLap","c",!0],crampedsubstack:["Macro","\\begin{crampedsubarray}{c}#1\\end{crampedsubarray}",1],mathmbox:"MathMBox",mathmakebox:"MathMakeBox",overbracket:"UnderOverBracket",underbracket:"UnderOverBracket",refeq:"HandleRef",MoveEqLeft:["Macro","\\hspace{#1em}&\\hspace{-#1em}",1,"2"],Aboxed:"Aboxed",ArrowBetweenLines:"ArrowBetweenLines",vdotswithin:"VDotsWithin",shortvdotswithin:"ShortVDotsWithin",MTFlushSpaceAbove:"FlushSpaceAbove",MTFlushSpaceBelow:"FlushSpaceBelow",DeclarePairedDelimiter:"DeclarePairedDelimiter",DeclarePairedDelimiterX:"DeclarePairedDelimiterX",DeclarePairedDelimiterXPP:"DeclarePairedDelimiterXPP",DeclarePairedDelimiters:"DeclarePairedDelimiter",DeclarePairedDelimitersX:"DeclarePairedDelimiterX",DeclarePairedDelimitersXPP:"DeclarePairedDelimiterXPP",centercolon:["CenterColon",!0,!0],ordinarycolon:["CenterColon",!1],MTThinColon:["CenterColon",!0,!0,!0],coloneqq:["Relation",":=","\u2254"],Coloneqq:["Relation","::=","\u2A74"],coloneq:["Relation",":-"],Coloneq:["Relation","::-"],eqqcolon:["Relation","=:","\u2255"],Eqqcolon:["Relation","=::"],eqcolon:["Relation","-:","\u2239"],Eqcolon:["Relation","-::"],colonapprox:["Relation",":\\approx"],Colonapprox:["Relation","::\\approx"],colonsim:["Relation",":\\sim"],Colonsim:["Relation","::\\sim"],dblcolon:["Relation","::","\u2237"],nuparrow:["NArrow","\u2191",".06em"],ndownarrow:["NArrow","\u2193",".25em"],bigtimes:["Macro","\\mathop{\\Large\\kern-.1em\\boldsymbol{\\times}\\kern-.1em}"],splitfrac:["SplitFrac",!1],splitdfrac:["SplitFrac",!0],xmathstrut:"XMathStrut",prescript:"Prescript",newtagform:["NewTagForm",!1],renewtagform:["NewTagForm",!0],usetagform:"UseTagForm",adjustlimits:["MacroWithTemplate","\\mathop{{#1}\\vphantom{{#3}}}_{{#2}\\vphantom{{#4}}}\\mathop{{#3}\\vphantom{{#1}}}_{{#4}\\vphantom{{#2}}}",4,,"_",,"_"],mathtoolsset:"SetOptions"},U_.MathtoolsMethods);new Zc.EnvironmentMap("mathtools-environments",kT.default.environment,{dcases:["Array",null,"\\{","","ll",null,".2em","D"],rcases:["Array",null,"","\\}","ll",null,".2em"],drcases:["Array",null,"","\\}","ll",null,".2em","D"],"dcases*":["Cases",null,"{","","D"],"rcases*":["Cases",null,"","}"],"drcases*":["Cases",null,"","}","D"],"cases*":["Cases",null,"{",""],"matrix*":["MtMatrix",null,null,null],"pmatrix*":["MtMatrix",null,"(",")"],"bmatrix*":["MtMatrix",null,"[","]"],"Bmatrix*":["MtMatrix",null,"\\{","\\}"],"vmatrix*":["MtMatrix",null,"\\vert","\\vert"],"Vmatrix*":["MtMatrix",null,"\\Vert","\\Vert"],"smallmatrix*":["MtSmallMatrix",null,null,null],psmallmatrix:["MtSmallMatrix",null,"(",")","c"],"psmallmatrix*":["MtSmallMatrix",null,"(",")"],bsmallmatrix:["MtSmallMatrix",null,"[","]","c"],"bsmallmatrix*":["MtSmallMatrix",null,"[","]"],Bsmallmatrix:["MtSmallMatrix",null,"\\{","\\}","c"],"Bsmallmatrix*":["MtSmallMatrix",null,"\\{","\\}"],vsmallmatrix:["MtSmallMatrix",null,"\\vert","\\vert","c"],"vsmallmatrix*":["MtSmallMatrix",null,"\\vert","\\vert"],Vsmallmatrix:["MtSmallMatrix",null,"\\Vert","\\Vert","c"],"Vsmallmatrix*":["MtSmallMatrix",null,"\\Vert","\\Vert"],crampedsubarray:["Array",null,null,null,null,"0em","0.1em","S'",1],multlined:"MtMultlined",spreadlines:["SpreadLines",!0],lgathered:["AmsEqnArray",null,null,null,"l",null,".5em","D"],rgathered:["AmsEqnArray",null,null,null,"r",null,".5em","D"]},U_.MathtoolsMethods);new Zc.DelimiterMap("mathtools-delimiters",kT.default.delimiter,{"\\lparen":"(","\\rparen":")"});new Zc.CommandMap("mathtools-characters",{":":["CenterColon",!0]},U_.MathtoolsMethods)});var PT=ee(xr=>{"use strict";var eB=xr&&xr.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),tB=xr&&xr.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},rB=xr&&xr.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},nB=xr&&xr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xr,"__esModule",{value:!0});xr.MathtoolsTagFormat=void 0;var iB=nB($e()),H_=Qn(),IT=0;function aB(e,t){var r=t.parseOptions.options.tags;r!=="base"&&e.tags.hasOwnProperty(r)&&H_.TagsFactory.add(r,e.tags[r]);var n=H_.TagsFactory.create(t.parseOptions.options.tags).constructor,i=(function(o){eB(s,o);function s(){var l,c,d=o.call(this)||this;d.mtFormats=new Map,d.mtCurrent=null;var f=t.parseOptions.options.mathtools.tagforms;try{for(var m=tB(Object.keys(f)),p=m.next();!p.done;p=m.next()){var b=p.value;if(!Array.isArray(f[b])||f[b].length!==3)throw new iB.default("InvalidTagFormDef",'The tag form definition for "%1" should be an array fo three strings',b);d.mtFormats.set(b,f[b])}}catch(v){l={error:v}}finally{try{p&&!p.done&&(c=m.return)&&c.call(m)}finally{if(l)throw l.error}}return d}return s.prototype.formatTag=function(l){if(this.mtCurrent){var c=rB(this.mtCurrent,3),d=c[0],f=c[1],m=c[2];return m?"".concat(d).concat(m,"{").concat(l,"}").concat(f):"".concat(d).concat(l).concat(f)}return o.prototype.formatTag.call(this,l)},s})(n);IT++;var a="MathtoolsTags-"+IT;H_.TagsFactory.add(a,i),t.parseOptions.options.tags=a}xr.MathtoolsTagFormat=aB});var RT=ee(Ci=>{"use strict";var oB=Ci&&Ci.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),sB=Ci&&Ci.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ci,"__esModule",{value:!0});Ci.MultlinedItem=void 0;var lB=Xy(),yo=sB(st()),jT=Rt(),cB=(function(e){oB(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"multlined"},enumerable:!1,configurable:!0}),t.prototype.EndTable=function(){if((this.Size()||this.row.length)&&(this.EndEntry(),this.EndRow()),this.table.length>1){var r=this.factory.configuration.options.mathtools,n=r.multlinegap,i=r["firstline-afterskip"]||n,a=r["lastline-preskip"]||n,o=yo.default.getChildren(this.table[0])[0];yo.default.getAttribute(o,"columnalign")!==jT.TexConstant.Align.RIGHT&&o.appendChild(this.create("node","mspace",[],{width:i}));var s=yo.default.getChildren(this.table[this.table.length-1])[0];if(yo.default.getAttribute(s,"columnalign")!==jT.TexConstant.Align.LEFT){var l=yo.default.getChildren(s)[0];l.childNodes.unshift(null);var c=this.create("node","mspace",[],{width:a});yo.default.setChild(l,0,c)}}e.prototype.EndTable.call(this)},t})(lB.MultlineItem);Ci.MultlinedItem=cB});var D_=ee(nr=>{"use strict";var Jc=nr&&nr.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},uB=nr&&nr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},z_;Object.defineProperty(nr,"__esModule",{value:!0});nr.MathtoolsConfiguration=nr.fixPrescripts=nr.PAIREDDELIMS=void 0;var BT=ze(),dB=He(),Us=uB(st()),LT=It();NT();var fB=R_(),mB=PT(),DT=RT();nr.PAIREDDELIMS="mathtools-paired-delims";function hB(e){new dB.CommandMap(nr.PAIREDDELIMS,{},{}),e.append(BT.Configuration.local({handler:{macro:[nr.PAIREDDELIMS]},priority:-5}))}function pB(e,t){var r,n,i=t.parseOptions,a=i.options.mathtools.pairedDelimiters;try{for(var o=Jc(Object.keys(a)),s=o.next();!s.done;s=o.next()){var l=s.value;fB.MathtoolsUtil.addPairedDelims(i,l,a[l])}}catch(c){r={error:c}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}(0,mB.MathtoolsTagFormat)(e,t)}function FT(e){var t,r,n,i,a,o,s=e.data;try{for(var l=Jc(s.getList("mmultiscripts")),c=l.next();!c.done;c=l.next()){var d=c.value;if(d.getProperty("fixPrescript")){var f=Us.default.getChildren(d),m=0;try{for(var p=(n=void 0,Jc([1,2])),b=p.next();!b.done;b=p.next()){var v=b.value;f[v]||(Us.default.setChild(d,v,s.nodeFactory.create("node","none")),m++)}}catch(T){n={error:T}}finally{try{b&&!b.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}try{for(var A=(a=void 0,Jc([4,5])),y=A.next();!y.done;y=A.next()){var v=y.value;Us.default.isType(f[v],"mrow")&&Us.default.getChildren(f[v]).length===0&&Us.default.setChild(d,v,s.nodeFactory.create("node","none"))}}catch(T){a={error:T}}finally{try{y&&!y.done&&(o=A.return)&&o.call(A)}finally{if(a)throw a.error}}m===2&&f.splice(1,2)}}}catch(T){t={error:T}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}}nr.fixPrescripts=FT;nr.MathtoolsConfiguration=BT.Configuration.create("mathtools",{handler:{macro:["mathtools-macros","mathtools-delimiters"],environment:["mathtools-environments"],delimiter:["mathtools-delimiters"],character:["mathtools-characters"]},items:(z_={},z_[DT.MultlinedItem.prototype.kind]=DT.MultlinedItem,z_),init:hB,config:pB,postprocessors:[[FT,-6]],options:{mathtools:{multlinegap:"1em","multlined-pos":"c","firstline-afterskip":"","lastline-preskip":"","smallmatrix-align":"c",shortvdotsadjustabove:".2em",shortvdotsadjustbelow:".2em",centercolon:!1,"centercolon-offset":".04em","thincolon-dx":"-.04em","thincolon-dw":"-.08em","use-unicode":!1,"prescript-sub-format":"","prescript-sup-format":"","prescript-arg-format":"","allow-mathtoolsset":!0,pairedDelimiters:(0,LT.expandable)({}),tagforms:(0,LT.expandable)({})}}})});var qT=ee(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.mhchemParser=void 0;var gB=(function(){function e(){}return e.toTex=function(t,r){return it.go(pe.go(t,r),r!=="tex")},e})();Qc.mhchemParser=gB;function ir(e){var t,r,n={};for(t in e)for(r in e[t]){var i=r.split("|");e[t][r].stateArray=i;for(var a=0;a<i.length;a++)n[i[a]]=[]}for(t in e)for(r in e[t])for(var i=e[t][r].stateArray||[],a=0;a<i.length;a++){var o=e[t][r];o.action_=[].concat(o.action_);for(var s=0;s<o.action_.length;s++)typeof o.action_[s]=="string"&&(o.action_[s]={type_:o.action_[s]});for(var l=t.split("|"),c=0;c<l.length;c++)if(i[a]==="*"){var d=void 0;for(d in n)n[d].push({pattern:l[c],task:o})}else n[i[a]].push({pattern:l[c],task:o})}return n}var pe={go:function(e,t){if(!e)return[];t===void 0&&(t="ce");var r="0",n={};n.parenthesisLevel=0,e=e.replace(/\n/g," "),e=e.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),e=e.replace(/[\u2026]/g,"...");for(var i,a=10,o=[];;){i!==e?(a=10,i=e):a--;var s=pe.stateMachines[t],l=s.transitions[r]||s.transitions["*"];e:for(var c=0;c<l.length;c++){var d=pe.patterns.match_(l[c].pattern,e);if(d){for(var f=l[c].task,m=0;m<f.action_.length;m++){var p=void 0;if(s.actions[f.action_[m].type_])p=s.actions[f.action_[m].type_](n,d.match_,f.action_[m].option);else if(pe.actions[f.action_[m].type_])p=pe.actions[f.action_[m].type_](n,d.match_,f.action_[m].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+f.action_[m].type_+")"];pe.concatArray(o,p)}if(r=f.nextState||r,e.length>0){if(f.revisit||(e=d.remainder),!f.toContinue)break e}else return o}}if(a<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,t){if(t)if(Array.isArray(t))for(var r=0;r<t.length;r++)e.push(t[r]);else e.push(t)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return t&&t[0]?{match_:t.slice(1),remainder:e.substr(t[0].length)}:null},"(-)(9)^(-9)":/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/,"state of aggregation $":function(e){var t=pe.patterns.findObserveGroups(e,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(t&&t.remainder.match(/^($|[\s,;\)\]\}])/))return t;var r=e.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return r?{match_:r[0],remainder:e.substr(r[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". __* ":/^([.\u22C5\u00B7\u2022]|[*])\s*/,"...":/^\.\.\.(?=$|[^.])/,"^{(...)}":function(e){return pe.patterns.findObserveGroups(e,"^{","","","}")},"^($...$)":function(e){return pe.patterns.findObserveGroups(e,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(e){return pe.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(e){return pe.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(e){return pe.patterns.findObserveGroups(e,"_{","","","}")},"_($...$)":function(e){return pe.patterns.findObserveGroups(e,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(e){return pe.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(e){return pe.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}^":/^\{\}(?=\^)/,"{}":/^\{\}/,"{...}":function(e){return pe.patterns.findObserveGroups(e,"","{","}","")},"{(...)}":function(e){return pe.patterns.findObserveGroups(e,"{","","","}")},"$...$":function(e){return pe.patterns.findObserveGroups(e,"","$","$","")},"${(...)}$__$(...)$":function(e){return pe.patterns.findObserveGroups(e,"${","","","}$")||pe.patterns.findObserveGroups(e,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return pe.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return pe.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return pe.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return pe.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return pe.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return pe.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return pe.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return pe.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}":function(e){return pe.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}":function(e){return pe.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")||pe.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return pe.patterns.findObserveGroups(e,"\\ce{","","","}")},"\\pu{(...)}":function(e){return pe.patterns.findObserveGroups(e,"\\pu{","","","}")},oxidation$:/^(?:[+-][IVX]+|(?:\\pm|\$\\pm\$|\+-|\+\/-)\s*0)$/,"d-oxidation$":/^(?:[+-]?[IVX]+|(?:\\pm|\$\\pm\$|\+-|\+\/-)\s*0)$/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;if(t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/),t)return{match_:t[0],remainder:e.substr(t[0].length)};var r=pe.patterns.findObserveGroups(e,"","$","$","");return r&&(t=r.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),t)?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,r,n,i,a,o,s,l,c){var d=function(y,T){if(typeof T=="string")return y.indexOf(T)!==0?null:T;var E=y.match(T);return E?E[0]:null},f=function(y,T,E){for(var w=0;T<y.length;){var x=y.charAt(T),D=d(y.substr(T),E);if(D!==null&&w===0)return{endMatchBegin:T,endMatchEnd:T+D.length};if(x==="{")w++;else if(x==="}"){if(w===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];w--}T++}return w>0,null},m=d(e,t);if(m===null||(e=e.substr(m.length),m=d(e,r),m===null))return null;var p=f(e,m.length,n||i);if(p===null)return null;var b=e.substring(0,n?p.endMatchEnd:p.endMatchBegin);if(a||o){var v=this.findObserveGroups(e.substr(p.endMatchEnd),a,o,s,l);if(v===null)return null;var A=[b,v.match_];return{match_:c?A.join(""):A,remainder:v.remainder}}else return{match_:b,remainder:e.substr(p.endMatchEnd)}},match_:function(e,t){var r=pe.patterns.patterns[e];if(r===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+e+")"];if(typeof r=="function")return pe.patterns.patterns[e](t);var n=t.match(r);return n?n.length>2?{match_:n.slice(1),remainder:t.substr(n[0].length)}:{match_:n[1]||n[0],remainder:t.substr(n[0].length)}:null}},actions:{"a=":function(e,t){e.a=(e.a||"")+t},"b=":function(e,t){e.b=(e.b||"")+t},"p=":function(e,t){e.p=(e.p||"")+t},"o=":function(e,t){e.o=(e.o||"")+t},"o=+p1":function(e,t,r){e.o=(e.o||"")+r},"q=":function(e,t){e.q=(e.q||"")+t},"d=":function(e,t){e.d=(e.d||"")+t},"rm=":function(e,t){e.rm=(e.rm||"")+t},"text=":function(e,t){e.text_=(e.text_||"")+t},insert:function(e,t,r){return{type_:r}},"insert+p1":function(e,t,r){return{type_:r,p1:t}},"insert+p1+p2":function(e,t,r){return{type_:r,p1:t[0],p2:t[1]}},copy:function(e,t){return t},write:function(e,t,r){return r},rm:function(e,t){return{type_:"rm",p1:t}},text:function(e,t){return pe.go(t,"text")},"tex-math":function(e,t){return pe.go(t,"tex-math")},"tex-math tight":function(e,t){return pe.go(t,"tex-math tight")},bond:function(e,t,r){return{type_:"bond",kind_:r||t}},"color0-output":function(e,t){return{type_:"color0",color:t}},ce:function(e,t){return pe.go(t,"ce")},pu:function(e,t){return pe.go(t,"pu")},"1/2":function(e,t){var r=[];t.match(/^[+\-]/)&&(r.push(t.substr(0,1)),t=t.substr(1));var n=t.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return n[1]=n[1].replace(/\$/g,""),r.push({type_:"frac",p1:n[1],p2:n[2]}),n[3]&&(n[3]=n[3].replace(/\$/g,""),r.push({type_:"tex-math",p1:n[3]})),r},"9,9":function(e,t){return pe.go(t,"9,9")}},stateMachines:{tex:{transitions:ir({empty:{0:{action_:"copy"}},"\\ce{(...)}":{0:{action_:[{type_:"write",option:"{"},"ce",{type_:"write",option:"}"}]}},"\\pu{(...)}":{0:{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},else:{0:{action_:"copy"}}}),actions:{}},ce:{transitions:ir({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{action_:[]}},space:{a:{action_:[],nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". __* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{action_:[]}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}^":{"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"tinySkip"}],nextState:"1"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}],nextState:"3"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var r;if((e.d||"").match(/^[1-9][0-9]*$/)){var n=e.d;e.d=void 0,r=this.output(e),r.push({type_:"tinySkip"}),e.b=n}else r=this.output(e);return pe.actions["o="](e,t),r},"d= kv":function(e,t){e.d=t,e.dType="kv"},"charge or bond":function(e,t){if(e.beginsWithBond){var r=[];return pe.concatArray(r,this.output(e)),pe.concatArray(r,pe.actions.bond(e,t,"-")),r}else{e.d=t;return}},"- after o/d":function(e,t,r){var n=pe.patterns.match_("orbital",e.o||""),i=pe.patterns.match_("one lowercase greek letter $",e.o||""),a=pe.patterns.match_("one lowercase latin letter $",e.o||""),o=pe.patterns.match_("$one lowercase latin letter$ $",e.o||""),s=t==="-"&&(n&&n.remainder===""||i||a||o);s&&!e.a&&!e.b&&!e.p&&!e.d&&!e.q&&!n&&a&&(e.o="$"+e.o+"$");var l=[];return s?(pe.concatArray(l,this.output(e)),l.push({type_:"hyphen"})):(n=pe.patterns.match_("digits",e.d||""),r&&n&&n.remainder===""?(pe.concatArray(l,pe.actions["d="](e,t)),pe.concatArray(l,this.output(e))):(pe.concatArray(l,this.output(e)),pe.concatArray(l,pe.actions.bond(e,t,"-")))),l},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:pe.go(t,"o")}},comma:function(e,t){var r=t.replace(/\s*$/,""),n=r!==t;return n&&e.parenthesisLevel===0?{type_:"comma enumeration L",p1:r}:{type_:"comma enumeration M",p1:r}},output:function(e,t,r){var n;if(!e.r)n=[],!e.a&&!e.b&&!e.p&&!e.o&&!e.q&&!e.d&&!r||(e.sb&&n.push({type_:"entitySkip"}),!e.o&&!e.q&&!e.d&&!e.b&&!e.p&&r!==2?(e.o=e.a,e.a=void 0):!e.o&&!e.q&&!e.d&&(e.b||e.p)?(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):e.o&&e.dType==="kv"&&pe.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&e.dType==="kv"&&!e.q&&(e.dType=void 0),n.push({type_:"chemfive",a:pe.go(e.a,"a"),b:pe.go(e.b,"bd"),p:pe.go(e.p,"pq"),o:pe.go(e.o,"o"),q:pe.go(e.q,"pq"),d:pe.go(e.d,e.dType==="oxidation"?"oxidation":"bd"),dType:e.dType}));else{var i=void 0;e.rdt==="M"?i=pe.go(e.rd,"tex-math"):e.rdt==="T"?i=[{type_:"text",p1:e.rd||""}]:i=pe.go(e.rd,"ce");var a=void 0;e.rqt==="M"?a=pe.go(e.rq,"tex-math"):e.rqt==="T"?a=[{type_:"text",p1:e.rq||""}]:a=pe.go(e.rq,"ce"),n={type_:"arrow",r:e.r,rd:i,rq:a}}for(var o in e)o!=="parenthesisLevel"&&o!=="beginsWithBond"&&delete e[o];return n},"oxidation-output":function(e,t){var r=["{"];return pe.concatArray(r,pe.go(t,"oxidation")),r.push("}"),r},"frac-output":function(e,t){return{type_:"frac-ce",p1:pe.go(t[0],"ce"),p2:pe.go(t[1],"ce")}},"overset-output":function(e,t){return{type_:"overset",p1:pe.go(t[0],"ce"),p2:pe.go(t[1],"ce")}},"underset-output":function(e,t){return{type_:"underset",p1:pe.go(t[0],"ce"),p2:pe.go(t[1],"ce")}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:pe.go(t[0],"ce"),p2:pe.go(t[1],"ce")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:pe.go(t[1],"ce")}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,r){return{type_:"operator",kind_:r||t}}}},a:{transitions:ir({empty:{"*":{action_:[]}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"1",revisit:!0}},"${(...)}$__$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:ir({empty:{"*":{action_:[]}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:[{type_:"write",option:"{"},"text",{type_:"write",option:"}"}]}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:ir({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var r in e)delete e[r];return t}}}},pq:{transitions:ir({empty:{"*":{action_:[]}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{action_:[],nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{action_:[],nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"!f",revisit:!0}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}":{"*":{action_:"color-output"}},"\\color{(...)}":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:pe.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:pe.go(t[1],"pq")}}}},bd:{transitions:ir({empty:{"*":{action_:[]}},x$:{0:{action_:[],nextState:"!f",revisit:!0}},formula$:{0:{action_:[],nextState:"f",revisit:!0}},else:{0:{action_:[],nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}":{"*":{action_:"color-output"}},"\\color{(...)}":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:pe.go(t[1],"bd")}}}},oxidation:{transitions:ir({empty:{"*":{action_:"roman-numeral"}},"pm-operator":{"*":{action_:{type_:"o=+p1",option:"\\pm"}}},else:{"*":{action_:"o="}}}),actions:{"roman-numeral":function(e){return{type_:"roman numeral",p1:e.o||""}}}},"tex-math":{transitions:ir({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"tex-math tight":{transitions:ir({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}"},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"9,9":{transitions:ir({empty:{"*":{action_:[]}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:ir({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{action_:[]}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var r=[];return t[0]==="+-"||t[0]==="+/-"?r.push("\\pm "):t[0]&&r.push(t[0]),t[1]&&(pe.concatArray(r,pe.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?pe.concatArray(r,pe.go(t[2],"pu-9,9")):r.push(t[2])),(t[3]||t[4])&&(t[3]==="e"||t[4]==="*"?r.push({type_:"cdot"}):r.push({type_:"times"}))),t[5]&&r.push("10^{"+t[5]+"}"),r},"number^":function(e,t){var r=[];return t[0]==="+-"||t[0]==="+/-"?r.push("\\pm "):t[0]&&r.push(t[0]),pe.concatArray(r,pe.go(t[1],"pu-9,9")),r.push("^{"+t[2]+"}"),r},operator:function(e,t,r){return{type_:"operator",kind_:r||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t,r=pe.patterns.match_("{(...)}",e.d||"");r&&r.remainder===""&&(e.d=r.match_);var n=pe.patterns.match_("{(...)}",e.q||"");if(n&&n.remainder===""&&(e.q=n.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var i={d:pe.go(e.d,"pu"),q:pe.go(e.q,"pu")};e.o==="//"?t={type_:"pu-frac",p1:i.d,p2:i.q}:(t=i.d,i.d.length>1||i.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),pe.concatArray(t,i.q))}else t=pe.go(e.d,"pu-2");for(var a in e)delete e[a];return t}}},"pu-2":{transitions:ir({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var r=pe.patterns.match_("{(...)}",e.rm||"");r&&r.remainder===""?t=pe.go(r.match_,"pu"):t={type_:"rm",p1:e.rm}}for(var n in e)delete e[n];return t}}},"pu-9,9":{transitions:ir({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var r=e.text_.length%3;r===0&&(r=3);for(var n=e.text_.length-3;n>0;n-=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,r)),t.reverse()}else t.push(e.text_);for(var i in e)delete e[i];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var r=e.text_.length-3,n=void 0;for(n=0;n<r;n+=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(n))}else t.push(e.text_);for(var i in e)delete e[i];return t}}}}},it={go:function(e,t){if(!e)return"";for(var r="",n=!1,i=0;i<e.length;i++){var a=e[i];typeof a=="string"?r+=a:(r+=it._go2(a),a.type_==="1st-level escape"&&(n=!0))}return t&&!n&&r&&(r="{"+r+"}"),r},_goInner:function(e){return it.go(e,!1)},_go2:function(e){var t;switch(e.type_){case"chemfive":t="";var r={a:it._goInner(e.a),b:it._goInner(e.b),p:it._goInner(e.p),o:it._goInner(e.o),q:it._goInner(e.q),d:it._goInner(e.d)};r.a&&(r.a.match(/^[+\-]/)&&(r.a="{"+r.a+"}"),t+=r.a+"\\,"),(r.b||r.p)&&(t+="{\\vphantom{A}}",t+="^{\\hphantom{"+(r.b||"")+"}}_{\\hphantom{"+(r.p||"")+"}}",t+="\\mkern-1.5mu",t+="{\\vphantom{A}}",t+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(r.b||"")+"}}",t+="_{\\vphantom{2}\\llap{\\smash[t]{"+(r.p||"")+"}}}"),r.o&&(r.o.match(/^[+\-]/)&&(r.o="{"+r.o+"}"),t+=r.o),e.dType==="kv"?((r.d||r.q)&&(t+="{\\vphantom{A}}"),r.d&&(t+="^{"+r.d+"}"),r.q&&(t+="_{\\smash[t]{"+r.q+"}}")):e.dType==="oxidation"?(r.d&&(t+="{\\vphantom{A}}",t+="^{"+r.d+"}"),r.q&&(t+="{\\vphantom{A}}",t+="_{\\smash[t]{"+r.q+"}}")):(r.q&&(t+="{\\vphantom{A}}",t+="_{\\smash[t]{"+r.q+"}}"),r.d&&(t+="{\\vphantom{A}}",t+="^{"+r.d+"}"));break;case"rm":t="\\mathrm{"+e.p1+"}";break;case"text":e.p1.match(/[\^_]/)?(e.p1=e.p1.replace(" ","~").replace("-","\\text{-}"),t="\\mathrm{"+e.p1+"}"):t="\\text{"+e.p1+"}";break;case"roman numeral":t="\\mathrm{"+e.p1+"}";break;case"state of aggregation":t="\\mskip2mu "+it._goInner(e.p1);break;case"state of aggregation subscript":t="\\mskip1mu "+it._goInner(e.p1);break;case"bond":if(t=it._getBond(e.kind_),!t)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+e.kind_+")"];break;case"frac":var n="\\frac{"+e.p1+"}{"+e.p2+"}";t="\\mathchoice{\\textstyle"+n+"}{"+n+"}{"+n+"}{"+n+"}";break;case"pu-frac":var i="\\frac{"+it._goInner(e.p1)+"}{"+it._goInner(e.p2)+"}";t="\\mathchoice{\\textstyle"+i+"}{"+i+"}{"+i+"}{"+i+"}";break;case"tex-math":t=e.p1+" ";break;case"frac-ce":t="\\frac{"+it._goInner(e.p1)+"}{"+it._goInner(e.p2)+"}";break;case"overset":t="\\overset{"+it._goInner(e.p1)+"}{"+it._goInner(e.p2)+"}";break;case"underset":t="\\underset{"+it._goInner(e.p1)+"}{"+it._goInner(e.p2)+"}";break;case"underbrace":t="\\underbrace{"+it._goInner(e.p1)+"}_{"+it._goInner(e.p2)+"}";break;case"color":t="{\\color{"+e.color1+"}{"+it._goInner(e.color2)+"}}";break;case"color0":t="\\color{"+e.color+"}";break;case"arrow":var a={rd:it._goInner(e.rd),rq:it._goInner(e.rq)},o=it._getArrow(e.r);a.rd||a.rq?e.r==="<=>"||e.r==="<=>>"||e.r==="<<=>"||e.r==="<-->"?(o="\\long"+o,a.rd&&(o="\\overset{"+a.rd+"}{"+o+"}"),a.rq&&(e.r==="<-->"?o="\\underset{\\lower2mu{"+a.rq+"}}{"+o+"}":o="\\underset{\\lower6mu{"+a.rq+"}}{"+o+"}"),o=" {}\\mathrel{"+o+"}{} "):(a.rq&&(o+="[{"+a.rq+"}]"),o+="{"+a.rd+"}",o=" {}\\mathrel{\\x"+o+"}{} "):o=" {}\\mathrel{\\long"+o+"}{} ",t=o;break;case"operator":t=it._getOperator(e.kind_);break;case"1st-level escape":t=e.p1+" ";break;case"space":t=" ";break;case"tinySkip":t="\\mkern2mu";break;case"entitySkip":t="~";break;case"pu-space-1":t="~";break;case"pu-space-2":t="\\mkern3mu ";break;case"1000 separator":t="\\mkern2mu ";break;case"commaDecimal":t="{,}";break;case"comma enumeration L":t="{"+e.p1+"}\\mkern6mu ";break;case"comma enumeration M":t="{"+e.p1+"}\\mkern3mu ";break;case"comma enumeration S":t="{"+e.p1+"}\\mkern1mu ";break;case"hyphen":t="\\text{-}";break;case"addition compound":t="\\,{\\cdot}\\,";break;case"electron dot":t="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":t="{\\times}";break;case"prime":t="\\prime ";break;case"cdot":t="\\cdot ";break;case"tight cdot":t="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":t="\\times ";break;case"circa":t="{\\sim}";break;case"^":t="uparrow";break;case"v":t="downarrow";break;case"ellipsis":t="\\ldots ";break;case"/":t="/";break;case" / ":t="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return t},_getArrow:function(e){switch(e){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}}});var HT=ee(_o=>{"use strict";var UT=_o&&_o.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_o,"__esModule",{value:!0});_o.MhchemConfiguration=void 0;var yB=ze(),_B=He(),vB=UT($e()),bB=UT(dr()),wB=fo(),EB=qT(),eu={};eu.Macro=bB.default.Macro;eu.xArrow=wB.AmsMethods.xArrow;eu.Machine=function(e,t,r){var n=e.GetArgument(t),i;try{i=EB.mhchemParser.toTex(n,r)}catch(a){throw new vB.default(a[0],a[1])}e.string=i+e.string.substr(e.i),e.i=0};new _B.CommandMap("mhchem",{ce:["Machine","ce"],pu:["Machine","pu"],longrightleftharpoons:["Macro","\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}"],longRightleftharpoons:["Macro","\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{\\leftharpoondown}}"],longLeftrightharpoons:["Macro","\\stackrel{\\textstyle\\vphantom{{-}}{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}"],longleftrightarrows:["Macro","\\stackrel{\\longrightarrow}{\\smash{\\longleftarrow}\\Rule{0px}{.25em}{0px}}"],tripledash:["Macro","\\vphantom{-}\\raise2mu{\\kern2mu\\tiny\\text{-}\\kern1mu\\text{-}\\kern1mu\\text{-}\\kern2mu}"],xleftrightarrow:["xArrow",8596,6,6],xrightleftharpoons:["xArrow",8652,5,7],xRightleftharpoons:["xArrow",8652,5,7],xLeftrightharpoons:["xArrow",8652,5,7]},eu);_o.MhchemConfiguration=yB.Configuration.create("mhchem",{handler:{macro:["mhchem"]}})});var zT=ee(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.NoErrorsConfiguration=void 0;var AB=ze();function OB(e,t,r,n){var i=e.create("token","mtext",{},n.replace(/\n/g," ")),a=e.create("node","merror",[i],{"data-mjx-error":t,title:t});return a}tu.NoErrorsConfiguration=AB.Configuration.create("noerrors",{nodes:{error:OB}})});var GT=ee(vo=>{"use strict";var TB=vo&&vo.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(vo,"__esModule",{value:!0});vo.NoUndefinedConfiguration=void 0;var SB=ze();function xB(e,t){var r,n,i=e.create("text","\\"+t),a=e.options.noundefined||{},o={};try{for(var s=TB(["color","background","size"]),l=s.next();!l.done;l=s.next()){var c=l.value;a[c]&&(o["math"+c]=a[c])}}catch(d){r={error:d}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}e.Push(e.create("node","mtext",[],o,i))}vo.NoUndefinedConfiguration=SB.Configuration.create("noundefined",{fallback:{macro:xB},options:{noundefined:{color:"red",background:"",size:""}},priority:3})});var KT=ee(ki=>{"use strict";var MB=ki&&ki.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),G_=ki&&ki.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ki,"__esModule",{value:!0});ki.AutoOpen=void 0;var WT=ga(),CB=G_(Qe()),kB=G_(st()),NB=G_(jt()),IB=(function(e){MB(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.openCount=0,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"auto open"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.toMml=function(){var r=this.factory.configuration.parser,n=this.getProperty("right");if(this.getProperty("smash")){var i=e.prototype.toMml.call(this),a=r.create("node","mpadded",[i],{height:0,depth:0});this.Clear(),this.Push(r.create("node","TeXAtom",[a]))}n&&this.Push(new NB.default(n,r.stack.env,r.configuration).mml());var o=CB.default.fenced(this.factory.configuration,this.getProperty("open"),e.prototype.toMml.call(this),this.getProperty("close"),this.getProperty("big"));return kB.default.removeProperties(o,"open","close","texClass"),o},t.prototype.checkItem=function(r){if(r.isKind("mml")&&r.Size()===1){var n=r.toMml();n.isKind("mo")&&n.getText()===this.getProperty("open")&&this.openCount++}var i=r.getProperty("autoclose");return i&&i===this.getProperty("close")&&!this.openCount--?this.getProperty("ignore")?(this.Clear(),[[],!0]):[[this.toMml()],!0]:e.prototype.checkItem.call(this,r)},t.errors=Object.assign(Object.create(WT.BaseItem.errors),{stop:["ExtraOrMissingDelims","Extra open or missing close delimiter"]}),t})(WT.BaseItem);ki.AutoOpen=IB});var ZT=ee(xa=>{"use strict";var PB=xa&&xa.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},Gs=xa&&xa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xa,"__esModule",{value:!0});var K_=Gs(dr()),St=Gs(jt()),bo=Gs($e()),X_=Te(),zs=Gs(Qe()),W_=Gs(st()),jB=mc(),Ye={},XT={"(":")","[":"]","{":"}","|":"|"},$T=/^(b|B)i(g{1,2})$/;Ye.Quantity=function(e,t,r,n,i,a,o){r===void 0&&(r="("),n===void 0&&(n=")"),i===void 0&&(i=!1),a===void 0&&(a=""),o===void 0&&(o="");var s=i?e.GetStar():!1,l=e.GetNext(),c=e.i,d=null;if(l==="\\"){if(e.i++,d=e.GetCS(),!d.match($T)){var f=e.create("node","mrow");e.Push(zs.default.fenced(e.configuration,r,f,n)),e.i=c;return}l=e.GetNext()}var m=XT[l];if(i&&l!=="{")throw new bo.default("MissingArgFor","Missing argument for %1",e.currentCS);if(!m){var f=e.create("node","mrow");e.Push(zs.default.fenced(e.configuration,r,f,n)),e.i=c;return}if(a){var p=e.create("token","mi",{texClass:X_.TEXCLASS.OP},a);o&&W_.default.setAttribute(p,"mathvariant",o),e.Push(e.itemFactory.create("fn",p))}if(l==="{"){var b=e.GetArgument(t);l=i?r:"\\{",m=i?n:"\\}",b=s?l+" "+b+" "+m:d?"\\"+d+"l"+l+" "+b+" \\"+d+"r"+m:"\\left"+l+" "+b+" \\right"+m,e.Push(new St.default(b,e.stack.env,e.configuration).mml());return}i&&(l=r,m=n),e.i++,e.Push(e.itemFactory.create("auto open").setProperties({open:l,close:m,big:d}))};Ye.Eval=function(e,t){var r=e.GetStar(),n=e.GetNext();if(n==="{"){var i=e.GetArgument(t),a="\\left. "+(r?"\\smash{"+i+"}":i)+" \\vphantom{\\int}\\right|";e.string=e.string.slice(0,e.i)+a+e.string.slice(e.i);return}if(n==="("||n==="["){e.i++,e.Push(e.itemFactory.create("auto open").setProperties({open:n,close:"|",smash:r,right:"\\vphantom{\\int}"}));return}throw new bo.default("MissingArgFor","Missing argument for %1",e.currentCS)};Ye.Commutator=function(e,t,r,n){r===void 0&&(r="["),n===void 0&&(n="]");var i=e.GetStar(),a=e.GetNext(),o=null;if(a==="\\"){if(e.i++,o=e.GetCS(),!o.match($T))throw new bo.default("MissingArgFor","Missing argument for %1",e.currentCS);a=e.GetNext()}if(a!=="{")throw new bo.default("MissingArgFor","Missing argument for %1",e.currentCS);var s=e.GetArgument(t),l=e.GetArgument(t),c=s+","+l;c=i?r+" "+c+" "+n:o?"\\"+o+"l"+r+" "+c+" \\"+o+"r"+n:"\\left"+r+" "+c+" \\right"+n,e.Push(new St.default(c,e.stack.env,e.configuration).mml())};var RB=[65,90],LB=[97,122],DB=[913,937],BB=[945,969],FB=[48,57];function Hs(e,t){return e>=t[0]&&e<=t[1]}function qB(e,t,r,n){var i=e.configuration.parser,a=jB.NodeFactory.createToken(e,t,r,n),o=n.codePointAt(0);return n.length===1&&!i.stack.env.font&&i.stack.env.vectorFont&&(Hs(o,RB)||Hs(o,LB)||Hs(o,DB)||Hs(o,FB)||Hs(o,BB)&&i.stack.env.vectorStar||W_.default.getAttribute(a,"accent"))&&W_.default.setAttribute(a,"mathvariant",i.stack.env.vectorFont),a}Ye.VectorBold=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),i=e.configuration.nodeFactory.get("token"),a=e.stack.env.font;delete e.stack.env.font,e.configuration.nodeFactory.set("token",qB),e.stack.env.vectorFont=r?"bold-italic":"bold",e.stack.env.vectorStar=r;var o=new St.default(n,e.stack.env,e.configuration).mml();a&&(e.stack.env.font=a),delete e.stack.env.vectorFont,delete e.stack.env.vectorStar,e.configuration.nodeFactory.set("token",i),e.Push(o)};Ye.StarMacro=function(e,t,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];var a=e.GetStar(),o=[];if(r)for(var s=o.length;s<r;s++)o.push(e.GetArgument(t));var l=n.join(a?"*":"");l=zs.default.substituteArgs(e,o,l),e.string=zs.default.addArgs(e,l,e.string.slice(e.i)),e.i=0,zs.default.checkMaxMacros(e)};var VT=function(e,t,r,n,i){var a=new St.default(n,e.stack.env,e.configuration).mml();e.Push(e.itemFactory.create(t,a));var o=e.GetNext(),s=XT[o];if(s){var l="",c="",d="",f=i.indexOf(o)!==-1;if(o==="{"){d=e.GetArgument(r),l=f?"\\left\\{":"",c=f?"\\right\\}":"";var m=l+" "+d+" "+c;e.string=m+e.string.slice(e.i),e.i=0;return}f&&(e.i++,e.Push(e.itemFactory.create("auto open").setProperties({open:o,close:s})))}};Ye.OperatorApplication=function(e,t,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];VT(e,"fn",t,r,n)};Ye.VectorOperator=function(e,t,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];VT(e,"mml",t,r,n)};Ye.Expression=function(e,t,r,n){r===void 0&&(r=!0),n===void 0&&(n=""),n=n||t.slice(1);var i=r?e.GetBrackets(t):null,a=e.create("token","mi",{texClass:X_.TEXCLASS.OP},n);if(i){var o=new St.default(i,e.stack.env,e.configuration).mml();a=e.create("node","msup",[a,o])}e.Push(e.itemFactory.create("fn",a)),e.GetNext()==="("&&(e.i++,e.Push(e.itemFactory.create("auto open").setProperties({open:"(",close:")"})))};Ye.Qqtext=function(e,t,r){var n=e.GetStar(),i=r||e.GetArgument(t),a=(n?"":"\\quad")+"\\text{"+i+"}\\quad ";e.string=e.string.slice(0,e.i)+a+e.string.slice(e.i)};Ye.Differential=function(e,t,r){var n=e.GetBrackets(t),i=n!=null?"^{"+n+"}":" ",a=e.GetNext()==="(",o=e.GetNext()==="{",s=r+i;if(!(a||o)){s+=e.GetArgument(t,!0)||"";var l=new St.default(s,e.stack.env,e.configuration).mml();e.Push(l);return}if(o){s+=e.GetArgument(t);var l=new St.default(s,e.stack.env,e.configuration).mml();e.Push(e.create("node","TeXAtom",[l],{texClass:X_.TEXCLASS.OP}));return}e.Push(new St.default(s,e.stack.env,e.configuration).mml()),e.i++,e.Push(e.itemFactory.create("auto open").setProperties({open:"(",close:")"}))};Ye.Derivative=function(e,t,r,n){var i=e.GetStar(),a=e.GetBrackets(t),o=1,s=[];for(s.push(e.GetArgument(t));e.GetNext()==="{"&&o<r;)s.push(e.GetArgument(t)),o++;var l=!1,c=" ",d=" ";r>2&&s.length>2?(c="^{"+(s.length-1)+"}",l=!0):a!=null&&(r>2&&s.length>1&&(l=!0),c="^{"+a+"}",d=c);for(var f=i?"\\flatfrac":"\\frac",m=s.length>1?s[0]:"",p=s.length>1?s[1]:s[0],b="",v=2,A=void 0;A=s[v];v++)b+=n+" "+A;var y=f+"{"+n+c+m+"}{"+n+" "+p+d+" "+b+"}";e.Push(new St.default(y,e.stack.env,e.configuration).mml()),e.GetNext()==="("&&(e.i++,e.Push(e.itemFactory.create("auto open").setProperties({open:"(",close:")",ignore:l})))};Ye.Bra=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),i="",a=!1,o=!1;if(e.GetNext()==="\\"){var s=e.i;e.i++;var l=e.GetCS(),c=e.lookup("macro",l);c&&c.symbol==="ket"?(a=!0,s=e.i,o=e.GetStar(),e.GetNext()==="{"?i=e.GetArgument(l,!0):(e.i=s,o=!1)):e.i=s}var d="";a?d=r||o?"\\langle{".concat(n,"}\\vert{").concat(i,"}\\rangle"):"\\left\\langle{".concat(n,"}\\middle\\vert{").concat(i,"}\\right\\rangle"):d=r||o?"\\langle{".concat(n,"}\\vert"):"\\left\\langle{".concat(n,"}\\right\\vert{").concat(i,"}"),e.Push(new St.default(d,e.stack.env,e.configuration).mml())};Ye.Ket=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),i=r?"\\vert{".concat(n,"}\\rangle"):"\\left\\vert{".concat(n,"}\\right\\rangle");e.Push(new St.default(i,e.stack.env,e.configuration).mml())};Ye.BraKet=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),i=null;e.GetNext()==="{"&&(i=e.GetArgument(t,!0));var a="";i==null?a=r?"\\langle{".concat(n,"}\\vert{").concat(n,"}\\rangle"):"\\left\\langle{".concat(n,"}\\middle\\vert{").concat(n,"}\\right\\rangle"):a=r?"\\langle{".concat(n,"}\\vert{").concat(i,"}\\rangle"):"\\left\\langle{".concat(n,"}\\middle\\vert{").concat(i,"}\\right\\rangle"),e.Push(new St.default(a,e.stack.env,e.configuration).mml())};Ye.KetBra=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),i=null;e.GetNext()==="{"&&(i=e.GetArgument(t,!0));var a="";i==null?a=r?"\\vert{".concat(n,"}\\rangle\\!\\langle{").concat(n,"}\\vert"):"\\left\\vert{".concat(n,"}\\middle\\rangle\\!\\middle\\langle{").concat(n,"}\\right\\vert"):a=r?"\\vert{".concat(n,"}\\rangle\\!\\langle{").concat(i,"}\\vert"):"\\left\\vert{".concat(n,"}\\middle\\rangle\\!\\middle\\langle{").concat(i,"}\\right\\vert"),e.Push(new St.default(a,e.stack.env,e.configuration).mml())};function YT(e,t,r){var n=PB(e,3),i=n[0],a=n[1],o=n[2];return t&&r?"\\left\\langle{".concat(i,"}\\middle\\vert{").concat(a,"}\\middle\\vert{").concat(o,"}\\right\\rangle"):t?"\\langle{".concat(i,"}\\vert{").concat(a,"}\\vert{").concat(o,"}\\rangle"):"\\left\\langle{".concat(i,"}\\right\\vert{").concat(a,"}\\left\\vert{").concat(o,"}\\right\\rangle")}Ye.Expectation=function(e,t){var r=e.GetStar(),n=r&&e.GetStar(),i=e.GetArgument(t),a=null;e.GetNext()==="{"&&(a=e.GetArgument(t,!0));var o=i&&a?YT([a,i,a],r,n):r?"\\langle {".concat(i,"} \\rangle"):"\\left\\langle {".concat(i,"} \\right\\rangle");e.Push(new St.default(o,e.stack.env,e.configuration).mml())};Ye.MatrixElement=function(e,t){var r=e.GetStar(),n=r&&e.GetStar(),i=e.GetArgument(t),a=e.GetArgument(t),o=e.GetArgument(t),s=YT([i,a,o],r,n);e.Push(new St.default(s,e.stack.env,e.configuration).mml())};Ye.MatrixQuantity=function(e,t,r){var n=e.GetStar(),i=e.GetNext(),a=r?"smallmatrix":"array",o="",s="",l="";switch(i){case"{":o=e.GetArgument(t);break;case"(":e.i++,s=n?"\\lgroup":"(",l=n?"\\rgroup":")",o=e.GetUpTo(t,")");break;case"[":e.i++,s="[",l="]",o=e.GetUpTo(t,"]");break;case"|":e.i++,s="|",l="|",o=e.GetUpTo(t,"|");break;default:s="(",l=")";break}var c=(s?"\\left":"")+s+"\\begin{"+a+"}{} "+o+"\\end{"+a+"}"+(s?"\\right":"")+l;e.Push(new St.default(c,e.stack.env,e.configuration).mml())};Ye.IdentityMatrix=function(e,t){var r=e.GetArgument(t),n=parseInt(r,10);if(isNaN(n))throw new bo.default("InvalidNumber","Invalid number");if(n<=1){e.string="1"+e.string.slice(e.i),e.i=0;return}for(var i=Array(n).fill("0"),a=[],o=0;o<n;o++){var s=i.slice();s[o]="1",a.push(s.join(" & "))}e.string=a.join("\\\\ ")+e.string.slice(e.i),e.i=0};Ye.XMatrix=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),i=e.GetArgument(t),a=e.GetArgument(t),o=parseInt(i,10),s=parseInt(a,10);if(isNaN(o)||isNaN(s)||s.toString()!==a||o.toString()!==i)throw new bo.default("InvalidNumber","Invalid number");if(o=o<1?1:o,s=s<1?1:s,!r){var l=Array(s).fill(n).join(" & "),c=Array(o).fill(l).join("\\\\ ");e.string=c+e.string.slice(e.i),e.i=0;return}var d="";if(o===1&&s===1)d=n;else if(o===1){for(var l=[],f=1;f<=s;f++)l.push("".concat(n,"_{").concat(f,"}"));d=l.join(" & ")}else if(s===1){for(var l=[],f=1;f<=o;f++)l.push("".concat(n,"_{").concat(f,"}"));d=l.join("\\\\ ")}else{for(var m=[],f=1;f<=o;f++){for(var l=[],p=1;p<=s;p++)l.push("".concat(n,"_{{").concat(f,"}{").concat(p,"}}"));m.push(l.join(" & "))}d=m.join("\\\\ ")}e.string=d+e.string.slice(e.i),e.i=0};Ye.PauliMatrix=function(e,t){var r=e.GetArgument(t),n=r.slice(1);switch(r[0]){case"0":n+=" 1 & 0\\\\ 0 & 1";break;case"1":case"x":n+=" 0 & 1\\\\ 1 & 0";break;case"2":case"y":n+=" 0 & -i\\\\ i & 0";break;case"3":case"z":n+=" 1 & 0\\\\ 0 & -1";break;default:}e.string=n+e.string.slice(e.i),e.i=0};Ye.DiagonalMatrix=function(e,t,r){if(e.GetNext()==="{"){var n=e.i;e.GetArgument(t);var i=e.i;e.i=n+1;for(var a=[],o="",s=e.i;s<i;){try{o=e.GetUpTo(t,",")}catch{e.i=i,a.push(e.string.slice(s,i-1));break}if(e.i>=i){a.push(e.string.slice(s,i));break}s=e.i,a.push(o)}e.string=UB(a,r)+e.string.slice(i),e.i=0}};function UB(e,t){for(var r=e.length,n=[],i=0;i<r;i++)n.push(Array(t?r-i:i+1).join("&")+"\\mqty{"+e[i]+"}");return n.join("\\\\ ")}Ye.AutoClose=function(e,t,r){var n=e.create("token","mo",{stretchy:!1},t),i=e.itemFactory.create("mml",n).setProperties({autoclose:t});e.Push(i)};Ye.Vnabla=function(e,t){var r=e.options.physics.arrowdel?"\\vec{\\gradientnabla}":"{\\gradientnabla}";return e.Push(new St.default(r,e.stack.env,e.configuration).mml())};Ye.DiffD=function(e,t){var r=e.options.physics.italicdiff?"d":"{\\rm d}";return e.Push(new St.default(r,e.stack.env,e.configuration).mml())};Ye.Macro=K_.default.Macro;Ye.NamedFn=K_.default.NamedFn;Ye.Array=K_.default.Array;xa.default=Ye});var QT=ee(ru=>{"use strict";var JT=ru&&ru.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ru,"__esModule",{value:!0});var Qr=He(),li=JT(ZT()),wo=Rt(),$_=JT(hn()),HB=Te();new Qr.CommandMap("Physics-automatic-bracing-macros",{quantity:"Quantity",qty:"Quantity",pqty:["Quantity","(",")",!0],bqty:["Quantity","[","]",!0],vqty:["Quantity","|","|",!0],Bqty:["Quantity","\\{","\\}",!0],absolutevalue:["Quantity","|","|",!0],abs:["Quantity","|","|",!0],norm:["Quantity","\\|","\\|",!0],evaluated:"Eval",eval:"Eval",order:["Quantity","(",")",!0,"O",wo.TexConstant.Variant.CALLIGRAPHIC],commutator:"Commutator",comm:"Commutator",anticommutator:["Commutator","\\{","\\}"],acomm:["Commutator","\\{","\\}"],poissonbracket:["Commutator","\\{","\\}"],pb:["Commutator","\\{","\\}"]},li.default);new Qr.CharacterMap("Physics-vector-mo",$_.default.mathchar0mo,{dotproduct:["\u22C5",{mathvariant:wo.TexConstant.Variant.BOLD}],vdot:["\u22C5",{mathvariant:wo.TexConstant.Variant.BOLD}],crossproduct:"\xD7",cross:"\xD7",cp:"\xD7",gradientnabla:["\u2207",{mathvariant:wo.TexConstant.Variant.BOLD}]});new Qr.CharacterMap("Physics-vector-mi",$_.default.mathchar0mi,{real:["\u211C",{mathvariant:wo.TexConstant.Variant.NORMAL}],imaginary:["\u2111",{mathvariant:wo.TexConstant.Variant.NORMAL}]});new Qr.CommandMap("Physics-vector-macros",{vnabla:"Vnabla",vectorbold:"VectorBold",vb:"VectorBold",vectorarrow:["StarMacro",1,"\\vec{\\vb","{#1}}"],va:["StarMacro",1,"\\vec{\\vb","{#1}}"],vectorunit:["StarMacro",1,"\\hat{\\vb","{#1}}"],vu:["StarMacro",1,"\\hat{\\vb","{#1}}"],gradient:["OperatorApplication","\\vnabla","(","["],grad:["OperatorApplication","\\vnabla","(","["],divergence:["VectorOperator","\\vnabla\\vdot","(","["],div:["VectorOperator","\\vnabla\\vdot","(","["],curl:["VectorOperator","\\vnabla\\crossproduct","(","["],laplacian:["OperatorApplication","\\nabla^2","(","["]},li.default);new Qr.CommandMap("Physics-expressions-macros",{sin:"Expression",sinh:"Expression",arcsin:"Expression",asin:"Expression",cos:"Expression",cosh:"Expression",arccos:"Expression",acos:"Expression",tan:"Expression",tanh:"Expression",arctan:"Expression",atan:"Expression",csc:"Expression",csch:"Expression",arccsc:"Expression",acsc:"Expression",sec:"Expression",sech:"Expression",arcsec:"Expression",asec:"Expression",cot:"Expression",coth:"Expression",arccot:"Expression",acot:"Expression",exp:["Expression",!1],log:"Expression",ln:"Expression",det:["Expression",!1],Pr:["Expression",!1],tr:["Expression",!1],trace:["Expression",!1,"tr"],Tr:["Expression",!1],Trace:["Expression",!1,"Tr"],rank:"NamedFn",erf:["Expression",!1],Residue:["Macro","\\mathrm{Res}"],Res:["OperatorApplication","\\Residue","(","[","{"],principalvalue:["OperatorApplication","{\\cal P}"],pv:["OperatorApplication","{\\cal P}"],PV:["OperatorApplication","{\\rm P.V.}"],Re:["OperatorApplication","\\mathrm{Re}","{"],Im:["OperatorApplication","\\mathrm{Im}","{"],sine:["NamedFn","sin"],hypsine:["NamedFn","sinh"],arcsine:["NamedFn","arcsin"],asine:["NamedFn","asin"],cosine:["NamedFn","cos"],hypcosine:["NamedFn","cosh"],arccosine:["NamedFn","arccos"],acosine:["NamedFn","acos"],tangent:["NamedFn","tan"],hyptangent:["NamedFn","tanh"],arctangent:["NamedFn","arctan"],atangent:["NamedFn","atan"],cosecant:["NamedFn","csc"],hypcosecant:["NamedFn","csch"],arccosecant:["NamedFn","arccsc"],acosecant:["NamedFn","acsc"],secant:["NamedFn","sec"],hypsecant:["NamedFn","sech"],arcsecant:["NamedFn","arcsec"],asecant:["NamedFn","asec"],cotangent:["NamedFn","cot"],hypcotangent:["NamedFn","coth"],arccotangent:["NamedFn","arccot"],acotangent:["NamedFn","acot"],exponential:["NamedFn","exp"],logarithm:["NamedFn","log"],naturallogarithm:["NamedFn","ln"],determinant:["NamedFn","det"],Probability:["NamedFn","Pr"]},li.default);new Qr.CommandMap("Physics-quick-quad-macros",{qqtext:"Qqtext",qq:"Qqtext",qcomma:["Macro","\\qqtext*{,}"],qc:["Macro","\\qqtext*{,}"],qcc:["Qqtext","c.c."],qif:["Qqtext","if"],qthen:["Qqtext","then"],qelse:["Qqtext","else"],qotherwise:["Qqtext","otherwise"],qunless:["Qqtext","unless"],qgiven:["Qqtext","given"],qusing:["Qqtext","using"],qassume:["Qqtext","assume"],qsince:["Qqtext","since"],qlet:["Qqtext","let"],qfor:["Qqtext","for"],qall:["Qqtext","all"],qeven:["Qqtext","even"],qodd:["Qqtext","odd"],qinteger:["Qqtext","integer"],qand:["Qqtext","and"],qor:["Qqtext","or"],qas:["Qqtext","as"],qin:["Qqtext","in"]},li.default);new Qr.CommandMap("Physics-derivative-macros",{diffd:"DiffD",flatfrac:["Macro","\\left.#1\\middle/#2\\right.",2],differential:["Differential","\\diffd"],dd:["Differential","\\diffd"],variation:["Differential","\\delta"],var:["Differential","\\delta"],derivative:["Derivative",2,"\\diffd"],dv:["Derivative",2,"\\diffd"],partialderivative:["Derivative",3,"\\partial"],pderivative:["Derivative",3,"\\partial"],pdv:["Derivative",3,"\\partial"],functionalderivative:["Derivative",2,"\\delta"],fderivative:["Derivative",2,"\\delta"],fdv:["Derivative",2,"\\delta"]},li.default);new Qr.CommandMap("Physics-bra-ket-macros",{bra:"Bra",ket:"Ket",innerproduct:"BraKet",ip:"BraKet",braket:"BraKet",outerproduct:"KetBra",dyad:"KetBra",ketbra:"KetBra",op:"KetBra",expectationvalue:"Expectation",expval:"Expectation",ev:"Expectation",matrixelement:"MatrixElement",matrixel:"MatrixElement",mel:"MatrixElement"},li.default);new Qr.CommandMap("Physics-matrix-macros",{matrixquantity:"MatrixQuantity",mqty:"MatrixQuantity",pmqty:["Macro","\\mqty(#1)",1],Pmqty:["Macro","\\mqty*(#1)",1],bmqty:["Macro","\\mqty[#1]",1],vmqty:["Macro","\\mqty|#1|",1],smallmatrixquantity:["MatrixQuantity",!0],smqty:["MatrixQuantity",!0],spmqty:["Macro","\\smqty(#1)",1],sPmqty:["Macro","\\smqty*(#1)",1],sbmqty:["Macro","\\smqty[#1]",1],svmqty:["Macro","\\smqty|#1|",1],matrixdeterminant:["Macro","\\vmqty{#1}",1],mdet:["Macro","\\vmqty{#1}",1],smdet:["Macro","\\svmqty{#1}",1],identitymatrix:"IdentityMatrix",imat:"IdentityMatrix",xmatrix:"XMatrix",xmat:"XMatrix",zeromatrix:["Macro","\\xmat{0}{#1}{#2}",2],zmat:["Macro","\\xmat{0}{#1}{#2}",2],paulimatrix:"PauliMatrix",pmat:"PauliMatrix",diagonalmatrix:"DiagonalMatrix",dmat:"DiagonalMatrix",antidiagonalmatrix:["DiagonalMatrix",!0],admat:["DiagonalMatrix",!0]},li.default);new Qr.EnvironmentMap("Physics-aux-envs",$_.default.environment,{smallmatrix:["Array",null,null,null,"c","0.333em",".2em","S",1]},li.default);new Qr.MacroMap("Physics-characters",{"|":["AutoClose",HB.TEXCLASS.ORD],")":"AutoClose","]":"AutoClose"},li.default)});var tS=ee(nu=>{"use strict";var V_;Object.defineProperty(nu,"__esModule",{value:!0});nu.PhysicsConfiguration=void 0;var zB=ze(),eS=KT();QT();nu.PhysicsConfiguration=zB.Configuration.create("physics",{handler:{macro:["Physics-automatic-bracing-macros","Physics-vector-macros","Physics-vector-mo","Physics-vector-mi","Physics-derivative-macros","Physics-expressions-macros","Physics-quick-quad-macros","Physics-bra-ket-macros","Physics-matrix-macros"],character:["Physics-characters"],environment:["Physics-aux-envs"]},items:(V_={},V_[eS.AutoOpen.prototype.kind]=eS.AutoOpen,V_),options:{physics:{italicdiff:!1,arrowdel:!1}}})});var oS=ee(pr=>{"use strict";var GB=pr&&pr.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Y_=pr&&pr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pr,"__esModule",{value:!0});pr.SetOptionsConfiguration=pr.SetOptionsUtil=void 0;var iS=ze(),WB=He(),Ws=Y_($e()),KB=Y_(Qe()),rS=_a(),XB=Y_(dr()),aS=It();pr.SetOptionsUtil={filterPackage:function(e,t){if(t!=="tex"&&!iS.ConfigurationHandler.get(t))throw new Ws.default("NotAPackage","Not a defined package: %1",t);var r=e.options.setoptions,n=r.allowOptions[t];if(n===void 0&&!r.allowPackageDefault||n===!1)throw new Ws.default("PackageNotSettable",`Options can't be set for package "%1"`,t);return!0},filterOption:function(e,t,r){var n,i=e.options.setoptions,a=i.allowOptions[t]||{},o=a.hasOwnProperty(r)&&!(0,aS.isObject)(a[r])?a[r]:null;if(o===!1||o===null&&!i.allowOptionsDefault)throw new Ws.default("OptionNotSettable",'Option "%1" is not allowed to be set',r);if(!(!((n=t==="tex"?e.options:e.options[t])===null||n===void 0)&&n.hasOwnProperty(r)))throw t==="tex"?new Ws.default("InvalidTexOption",'Invalid TeX option "%1"',r):new Ws.default("InvalidOptionKey",'Invalid option "%1" for package "%2"',r,t);return!0},filterValue:function(e,t,r,n){return n}};var nS=new WB.CommandMap("setoptions",{setOptions:"SetOptions"},{SetOptions:function(e,t){var r,n,i=e.GetBrackets(t)||"tex",a=KB.default.keyvalOptions(e.GetArgument(t)),o=e.options.setoptions;if(o.filterPackage(e,i))try{for(var s=GB(Object.keys(a)),l=s.next();!l.done;l=s.next()){var c=l.value;o.filterOption(e,i,c)&&((i==="tex"?e.options:e.options[i])[c]=o.filterValue(e,i,c,a[c]))}}catch(d){r={error:d}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}}});function $B(e,t){var r=t.parseOptions.handlers.get("macro").lookup("require");r&&(nS.add("Require",new rS.Macro("Require",r._func)),nS.add("require",new rS.Macro("require",XB.default.Macro,["\\Require{#2}\\setOptions[#2]{#1}",2,""])))}pr.SetOptionsConfiguration=iS.Configuration.create("setoptions",{handler:{macro:["setoptions"]},config:$B,priority:3,options:{setoptions:{filterPackage:pr.SetOptionsUtil.filterPackage,filterOption:pr.SetOptionsUtil.filterOption,filterValue:pr.SetOptionsUtil.filterValue,allowPackageDefault:!0,allowOptionsDefault:!0,allowOptions:(0,aS.expandable)({tex:{FindTeX:!1,formatError:!1,package:!1,baseURL:!1,tags:!1,maxBuffer:!1,maxMaxros:!1,macros:!1,environments:!1},setoptions:!1,autoload:!1,require:!1,configmacros:!1,tagformat:!1})}}})});var cS=ee(Ni=>{"use strict";var VB=Ni&&Ni.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Ni,"__esModule",{value:!0});Ni.TagFormatConfiguration=Ni.tagformatConfig=void 0;var YB=ze(),Z_=Qn(),sS=0;function lS(e,t){var r=t.parseOptions.options.tags;r!=="base"&&e.tags.hasOwnProperty(r)&&Z_.TagsFactory.add(r,e.tags[r]);var n=Z_.TagsFactory.create(t.parseOptions.options.tags).constructor,i=(function(o){VB(s,o);function s(){return o!==null&&o.apply(this,arguments)||this}return s.prototype.formatNumber=function(l){return t.parseOptions.options.tagformat.number(l)},s.prototype.formatTag=function(l){return t.parseOptions.options.tagformat.tag(l)},s.prototype.formatId=function(l){return t.parseOptions.options.tagformat.id(l)},s.prototype.formatUrl=function(l,c){return t.parseOptions.options.tagformat.url(l,c)},s})(n);sS++;var a="configTags-"+sS;Z_.TagsFactory.add(a,i),t.parseOptions.options.tags=a}Ni.tagformatConfig=lS;Ni.TagFormatConfiguration=YB.Configuration.create("tagformat",{config:[lS,10],options:{tagformat:{number:function(e){return e.toString()},tag:function(e){return"("+e+")"},id:function(e){return"mjx-eqn:"+e.replace(/\s/g,"_")},url:function(e,t){return t+"#"+encodeURIComponent(e)}}}})});var iu=ee(Ao=>{"use strict";var uS=Ao&&Ao.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ao,"__esModule",{value:!0});Ao.TextMacrosMethods=void 0;var ZB=uS(jt()),JB=rc(),Eo=uS(dr());Ao.TextMacrosMethods={Comment:function(e,t){for(;e.i<e.string.length&&e.string.charAt(e.i)!==`
|
|
7
|
+
`;)e.i++;e.i++},Math:function(e,t){e.saveText();for(var r=e.i,n,i,a=0;i=e.GetNext();)switch(n=e.i++,i){case"\\":var o=e.GetCS();o===")"&&(i="\\(");case"$":if(a===0&&t===i){var s=e.texParser.configuration,l=new ZB.default(e.string.substr(r,n-r),e.stack.env,s).mml();e.PushMath(l);return}break;case"{":a++;break;case"}":a===0&&e.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace"),a--;break}e.Error("MathNotTerminated","Math-mode is not properly terminated")},MathModeOnly:function(e,t){e.Error("MathModeOnly","'%1' allowed only in math mode",t)},Misplaced:function(e,t){e.Error("Misplaced","'%1' can not be used here",t)},OpenBrace:function(e,t){var r=e.stack.env;e.envStack.push(r),e.stack.env=Object.assign({},r)},CloseBrace:function(e,t){e.envStack.length?(e.saveText(),e.stack.env=e.envStack.pop()):e.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace")},OpenQuote:function(e,t){e.string.charAt(e.i)===t?(e.text+="\u201C",e.i++):e.text+="\u2018"},CloseQuote:function(e,t){e.string.charAt(e.i)===t?(e.text+="\u201D",e.i++):e.text+="\u2019"},Tilde:function(e,t){e.text+="\xA0"},Space:function(e,t){for(e.text+=" ";e.GetNext().match(/\s/);)e.i++},SelfQuote:function(e,t){e.text+=t.substr(1)},Insert:function(e,t,r){e.text+=r},Accent:function(e,t,r){var n=e.ParseArg(t),i=e.create("token","mo",{},r);e.addAttributes(i),e.Push(e.create("node","mover",[n,i]))},Emph:function(e,t){var r=e.stack.env.mathvariant==="-tex-mathit"?"normal":"-tex-mathit";e.Push(e.ParseTextArg(t,{mathvariant:r}))},SetFont:function(e,t,r){e.saveText(),e.stack.env.mathvariant=r},SetSize:function(e,t,r){e.saveText(),e.stack.env.mathsize=r},CheckAutoload:function(e,t){var r=e.configuration.packageData.get("autoload"),n=e.texParser;t=t.slice(1);var i=n.lookup("macro",t);if(!i||r&&i._func===r.Autoload){if(n.parse("macro",[n,t]),!i)return;(0,JB.retryAfter)(Promise.resolve())}n.parse("macro",[e,t])},Macro:Eo.default.Macro,Spacer:Eo.default.Spacer,Hskip:Eo.default.Hskip,rule:Eo.default.rule,Rule:Eo.default.Rule,HandleRef:Eo.default.HandleRef}});var J_=ee(ar=>{"use strict";var QB=ar&&ar.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),dS=ar&&ar.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},eF=ar&&ar.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},tF=ar&&ar.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},au=ar&&ar.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ar,"__esModule",{value:!0});ar.TextParser=void 0;var rF=au(jt()),fS=au($e()),nF=au(Qe()),iF=Te(),mS=au(st()),hS=mn(),aF=(function(e){QB(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.level=a,o}return Object.defineProperty(t.prototype,"texParser",{get:function(){return this.configuration.packageData.get("textmacros").texParser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tags",{get:function(){return this.texParser.tags},enumerable:!1,configurable:!0}),t.prototype.mml=function(){return this.level!=null?this.create("node","mstyle",this.nodes,{displaystyle:!1,scriptlevel:this.level}):this.nodes.length===1?this.nodes[0]:this.create("node","mrow",this.nodes)},t.prototype.Parse=function(){this.text="",this.nodes=[],this.envStack=[],e.prototype.Parse.call(this)},t.prototype.saveText=function(){if(this.text){var r=this.stack.env.mathvariant,n=nF.default.internalText(this,this.text,r?{mathvariant:r}:{});this.text="",this.Push(n)}},t.prototype.Push=function(r){if(this.text&&this.saveText(),r instanceof hS.StopItem)return e.prototype.Push.call(this,r);if(r instanceof hS.StyleItem){this.stack.env.mathcolor=this.stack.env.color;return}r instanceof iF.AbstractMmlNode&&(this.addAttributes(r),this.nodes.push(r))},t.prototype.PushMath=function(r){var n,i,a=this.stack.env;r.isKind("TeXAtom")||(r=this.create("node","TeXAtom",[r]));try{for(var o=dS(["mathsize","mathcolor"]),s=o.next();!s.done;s=o.next()){var l=s.value;a[l]&&!r.attributes.getExplicit(l)&&(!r.isToken&&!r.isKind("mstyle")&&(r=this.create("node","mstyle",[r])),mS.default.setAttribute(r,l,a[l]))}}catch(c){n={error:c}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}r.isInferred&&(r=this.create("node","mrow",r.childNodes)),this.nodes.push(r)},t.prototype.addAttributes=function(r){var n,i,a=this.stack.env;if(r.isToken)try{for(var o=dS(["mathsize","mathcolor","mathvariant"]),s=o.next();!s.done;s=o.next()){var l=s.value;a[l]&&!r.attributes.getExplicit(l)&&mS.default.setAttribute(r,l,a[l])}}catch(c){n={error:c}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},t.prototype.ParseTextArg=function(r,n){var i=this.GetArgument(r);return n=Object.assign(Object.assign({},this.stack.env),n),new t(i,n,this.configuration).mml()},t.prototype.ParseArg=function(r){return new t(this.GetArgument(r),this.stack.env,this.configuration).mml()},t.prototype.Error=function(r,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];throw new(fS.default.bind.apply(fS.default,tF([void 0,r,n],eF(i),!1)))},t})(rF.default);ar.TextParser=aF});var pS=ee(ou=>{"use strict";var oF=ou&&ou.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ou,"__esModule",{value:!0});var sF=He(),Mr=Rt(),lF=iu(),cF=oF(Qe()),uF=J_();new sF.CommandMap("textcomp-macros",{textasciicircum:["Insert","^"],textasciitilde:["Insert","~"],textasteriskcentered:["Insert","*"],textbackslash:["Insert","\\"],textbar:["Insert","|"],textbraceleft:["Insert","{"],textbraceright:["Insert","}"],textbullet:["Insert","\u2022"],textdagger:["Insert","\u2020"],textdaggerdbl:["Insert","\u2021"],textellipsis:["Insert","\u2026"],textemdash:["Insert","\u2014"],textendash:["Insert","\u2013"],textexclamdown:["Insert","\xA1"],textgreater:["Insert",">"],textless:["Insert","<"],textordfeminine:["Insert","\xAA"],textordmasculine:["Insert","\xBA"],textparagraph:["Insert","\xB6"],textperiodcentered:["Insert","\xB7"],textquestiondown:["Insert","\xBF"],textquotedblleft:["Insert","\u201C"],textquotedblright:["Insert","\u201D"],textquoteleft:["Insert","\u2018"],textquoteright:["Insert","\u2019"],textsection:["Insert","\xA7"],textunderscore:["Insert","_"],textvisiblespace:["Insert","\u2423"],textacutedbl:["Insert","\u02DD"],textasciiacute:["Insert","\xB4"],textasciibreve:["Insert","\u02D8"],textasciicaron:["Insert","\u02C7"],textasciidieresis:["Insert","\xA8"],textasciimacron:["Insert","\xAF"],textgravedbl:["Insert","\u02F5"],texttildelow:["Insert","\u02F7"],textbaht:["Insert","\u0E3F"],textcent:["Insert","\xA2"],textcolonmonetary:["Insert","\u20A1"],textcurrency:["Insert","\xA4"],textdollar:["Insert","$"],textdong:["Insert","\u20AB"],texteuro:["Insert","\u20AC"],textflorin:["Insert","\u0192"],textguarani:["Insert","\u20B2"],textlira:["Insert","\u20A4"],textnaira:["Insert","\u20A6"],textpeso:["Insert","\u20B1"],textsterling:["Insert","\xA3"],textwon:["Insert","\u20A9"],textyen:["Insert","\xA5"],textcircledP:["Insert","\u2117"],textcompwordmark:["Insert","\u200C"],textcopyleft:["Insert","\u{1F12F}"],textcopyright:["Insert","\xA9"],textregistered:["Insert","\xAE"],textservicemark:["Insert","\u2120"],texttrademark:["Insert","\u2122"],textbardbl:["Insert","\u2016"],textbigcircle:["Insert","\u25EF"],textblank:["Insert","\u2422"],textbrokenbar:["Insert","\xA6"],textdiscount:["Insert","\u2052"],textestimated:["Insert","\u212E"],textinterrobang:["Insert","\u203D"],textinterrobangdown:["Insert","\u2E18"],textmusicalnote:["Insert","\u266A"],textnumero:["Insert","\u2116"],textopenbullet:["Insert","\u25E6"],textpertenthousand:["Insert","\u2031"],textperthousand:["Insert","\u2030"],textrecipe:["Insert","\u211E"],textreferencemark:["Insert","\u203B"],textlangle:["Insert","\u2329"],textrangle:["Insert","\u232A"],textlbrackdbl:["Insert","\u27E6"],textrbrackdbl:["Insert","\u27E7"],textlquill:["Insert","\u2045"],textrquill:["Insert","\u2046"],textcelsius:["Insert","\u2103"],textdegree:["Insert","\xB0"],textdiv:["Insert","\xF7"],textdownarrow:["Insert","\u2193"],textfractionsolidus:["Insert","\u2044"],textleftarrow:["Insert","\u2190"],textlnot:["Insert","\xAC"],textmho:["Insert","\u2127"],textminus:["Insert","\u2212"],textmu:["Insert","\xB5"],textohm:["Insert","\u2126"],textonehalf:["Insert","\xBD"],textonequarter:["Insert","\xBC"],textonesuperior:["Insert","\xB9"],textpm:["Insert","\xB1"],textrightarrow:["Insert","\u2192"],textsurd:["Insert","\u221A"],textthreequarters:["Insert","\xBE"],textthreesuperior:["Insert","\xB3"],texttimes:["Insert","\xD7"],texttwosuperior:["Insert","\xB2"],textuparrow:["Insert","\u2191"],textborn:["Insert","*"],textdied:["Insert","\u2020"],textdivorced:["Insert","\u26AE"],textmarried:["Insert","\u26AD"],textcentoldstyle:["Insert","\xA2",Mr.TexConstant.Variant.OLDSTYLE],textdollaroldstyle:["Insert","$",Mr.TexConstant.Variant.OLDSTYLE],textzerooldstyle:["Insert","0",Mr.TexConstant.Variant.OLDSTYLE],textoneoldstyle:["Insert","1",Mr.TexConstant.Variant.OLDSTYLE],texttwooldstyle:["Insert","2",Mr.TexConstant.Variant.OLDSTYLE],textthreeoldstyle:["Insert","3",Mr.TexConstant.Variant.OLDSTYLE],textfouroldstyle:["Insert","4",Mr.TexConstant.Variant.OLDSTYLE],textfiveoldstyle:["Insert","5",Mr.TexConstant.Variant.OLDSTYLE],textsixoldstyle:["Insert","6",Mr.TexConstant.Variant.OLDSTYLE],textsevenoldstyle:["Insert","7",Mr.TexConstant.Variant.OLDSTYLE],texteightoldstyle:["Insert","8",Mr.TexConstant.Variant.OLDSTYLE],textnineoldstyle:["Insert","9",Mr.TexConstant.Variant.OLDSTYLE]},{Insert:function(e,t,r,n){if(e instanceof uF.TextParser){if(!n){lF.TextMacrosMethods.Insert(e,t,r);return}e.saveText()}e.Push(cF.default.internalText(e,r,n?{mathvariant:n}:{}))}})});var gS=ee(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.TextcompConfiguration=void 0;var dF=ze();pS();su.TextcompConfiguration=dF.Configuration.create("textcomp",{handler:{macro:["textcomp-macros"]}})});var bS=ee(vS=>{"use strict";Object.defineProperty(vS,"__esModule",{value:!0});var yS=He(),An=Rt(),_S=iu(),Ma=oo();new yS.MacroMap("text-special",{$:"Math","%":"Comment","^":"MathModeOnly",_:"MathModeOnly","&":"Misplaced","#":"Misplaced","~":"Tilde"," ":"Space"," ":"Space","\r":"Space","\n":"Space","\xA0":"Tilde","{":"OpenBrace","}":"CloseBrace","`":"OpenQuote","'":"CloseQuote"},_S.TextMacrosMethods);new yS.CommandMap("text-macros",{"(":"Math",$:"SelfQuote",_:"SelfQuote","%":"SelfQuote","{":"SelfQuote","}":"SelfQuote"," ":"SelfQuote","&":"SelfQuote","#":"SelfQuote","\\":"SelfQuote","'":["Accent","\xB4"],"\u2019":["Accent","\xB4"],"`":["Accent","`"],"\u2018":["Accent","`"],"^":["Accent","^"],'"':["Accent","\xA8"],"~":["Accent","~"],"=":["Accent","\xAF"],".":["Accent","\u02D9"],u:["Accent","\u02D8"],v:["Accent","\u02C7"],emph:"Emph",rm:["SetFont",An.TexConstant.Variant.NORMAL],mit:["SetFont",An.TexConstant.Variant.ITALIC],oldstyle:["SetFont",An.TexConstant.Variant.OLDSTYLE],cal:["SetFont",An.TexConstant.Variant.CALLIGRAPHIC],it:["SetFont","-tex-mathit"],bf:["SetFont",An.TexConstant.Variant.BOLD],bbFont:["SetFont",An.TexConstant.Variant.DOUBLESTRUCK],scr:["SetFont",An.TexConstant.Variant.SCRIPT],frak:["SetFont",An.TexConstant.Variant.FRAKTUR],sf:["SetFont",An.TexConstant.Variant.SANSSERIF],tt:["SetFont",An.TexConstant.Variant.MONOSPACE],tiny:["SetSize",.5],Tiny:["SetSize",.6],scriptsize:["SetSize",.7],small:["SetSize",.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],Bbb:["Macro","{\\bbFont #1}",1],textnormal:["Macro","{\\rm #1}",1],textup:["Macro","{\\rm #1}",1],textrm:["Macro","{\\rm #1}",1],textit:["Macro","{\\it #1}",1],textbf:["Macro","{\\bf #1}",1],textsf:["Macro","{\\sf #1}",1],texttt:["Macro","{\\tt #1}",1],dagger:["Insert","\u2020"],ddagger:["Insert","\u2021"],S:["Insert","\xA7"],",":["Spacer",Ma.MATHSPACE.thinmathspace],":":["Spacer",Ma.MATHSPACE.mediummathspace],">":["Spacer",Ma.MATHSPACE.mediummathspace],";":["Spacer",Ma.MATHSPACE.thickmathspace],"!":["Spacer",Ma.MATHSPACE.negativethinmathspace],enspace:["Spacer",.5],quad:["Spacer",1],qquad:["Spacer",2],thinspace:["Spacer",Ma.MATHSPACE.thinmathspace],negthinspace:["Spacer",Ma.MATHSPACE.negativethinmathspace],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",rule:"rule",Rule:["Rule"],Space:["Rule","blank"],color:"CheckAutoload",textcolor:"CheckAutoload",colorbox:"CheckAutoload",fcolorbox:"CheckAutoload",href:"CheckAutoload",style:"CheckAutoload",class:"CheckAutoload",cssId:"CheckAutoload",unicode:"CheckAutoload",ref:["HandleRef",!1],eqref:["HandleRef",!0]},_S.TextMacrosMethods)});var AS=ee(Pi=>{"use strict";var fF=Pi&&Pi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Oo;Object.defineProperty(Pi,"__esModule",{value:!0});Pi.TextMacrosConfiguration=Pi.TextBaseConfiguration=void 0;var Q_=ze(),mF=fF(Sy()),wS=Qn(),Ii=mn(),ES=J_(),hF=iu();bS();Pi.TextBaseConfiguration=Q_.Configuration.create("text-base",{parser:"text",handler:{character:["command","text-special"],macro:["text-macros"]},fallback:{character:function(e,t){e.text+=t},macro:function(e,t){var r=e.texParser,n=r.lookup("macro",t);n&&n._func!==hF.TextMacrosMethods.Macro&&e.Error("MathMacro","%1 is only supported in math mode","\\"+t),r.parse("macro",[e,t])}},items:(Oo={},Oo[Ii.StartItem.prototype.kind]=Ii.StartItem,Oo[Ii.StopItem.prototype.kind]=Ii.StopItem,Oo[Ii.MmlItem.prototype.kind]=Ii.MmlItem,Oo[Ii.StyleItem.prototype.kind]=Ii.StyleItem,Oo)});function pF(e,t,r,n){var i=e.configuration.packageData.get("textmacros");return e instanceof ES.TextParser||(i.texParser=e),[new ES.TextParser(t,n?{mathvariant:n}:{},i.parseOptions,r).mml()]}Pi.TextMacrosConfiguration=Q_.Configuration.create("textmacros",{config:function(e,t){var r=new Q_.ParserConfiguration(t.parseOptions.options.textmacros.packages,["tex","text"]);r.init();var n=new mF.default(r,[]);n.options=t.parseOptions.options,r.config(t),wS.TagsFactory.addTags(r.tags),n.tags=wS.TagsFactory.getDefault(),n.tags.configuration=n,n.packageData=t.parseOptions.packageData,n.packageData.set("textmacros",{parseOptions:n,jax:t,texParser:null}),n.options.internalMath=pF},preprocessors:[function(e){var t=e.data.packageData.get("textmacros");t.parseOptions.nodeFactory.setMmlFactory(t.jax.mmlFactory)}],options:{textmacros:{packages:["text-base"]}}})});var OS=ee(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.UpgreekConfiguration=void 0;var gF=ze(),yF=He(),_F=Rt();function vF(e,t){var r=t.attributes||{};r.mathvariant=_F.TexConstant.Variant.NORMAL;var n=e.create("token","mi",r,t.char);e.Push(n)}new yF.CharacterMap("upgreek",vF,{upalpha:"\u03B1",upbeta:"\u03B2",upgamma:"\u03B3",updelta:"\u03B4",upepsilon:"\u03F5",upzeta:"\u03B6",upeta:"\u03B7",uptheta:"\u03B8",upiota:"\u03B9",upkappa:"\u03BA",uplambda:"\u03BB",upmu:"\u03BC",upnu:"\u03BD",upxi:"\u03BE",upomicron:"\u03BF",uppi:"\u03C0",uprho:"\u03C1",upsigma:"\u03C3",uptau:"\u03C4",upupsilon:"\u03C5",upphi:"\u03D5",upchi:"\u03C7",uppsi:"\u03C8",upomega:"\u03C9",upvarepsilon:"\u03B5",upvartheta:"\u03D1",upvarpi:"\u03D6",upvarrho:"\u03F1",upvarsigma:"\u03C2",upvarphi:"\u03C6",Upgamma:"\u0393",Updelta:"\u0394",Uptheta:"\u0398",Uplambda:"\u039B",Upxi:"\u039E",Uppi:"\u03A0",Upsigma:"\u03A3",Upupsilon:"\u03A5",Upphi:"\u03A6",Uppsi:"\u03A8",Upomega:"\u03A9"});lu.UpgreekConfiguration=gF.Configuration.create("upgreek",{handler:{macro:["upgreek"]}})});var TS=ee(On=>{"use strict";var ev=On&&On.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(On,"__esModule",{value:!0});On.UnicodeConfiguration=On.UnicodeMethods=void 0;var bF=ze(),wF=ev($e()),EF=He(),AF=ev(Qe()),OF=ev(st()),TF=eo();On.UnicodeMethods={};var To={};On.UnicodeMethods.Unicode=function(e,t){var r=e.GetBrackets(t),n=null,i=null;r&&(r.replace(/ /g,"").match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)?(n=r.replace(/ /g,"").split(/,/),i=e.GetBrackets(t)):i=r);var a=AF.default.trimSpaces(e.GetArgument(t)).replace(/^0x/,"x");if(!a.match(/^(x[0-9A-Fa-f]+|[0-9]+)$/))throw new wF.default("BadUnicode","Argument to \\unicode must be a number");var o=parseInt(a.match(/^x/)?"0"+a:a);To[o]?i||(i=To[o][2]):To[o]=[800,200,i,o],n&&(To[o][0]=Math.floor(parseFloat(n[0])*1e3),To[o][1]=Math.floor(parseFloat(n[1])*1e3));var s=e.stack.env.font,l={};i?(To[o][2]=l.fontfamily=i.replace(/'/g,"'"),s&&(s.match(/bold/)&&(l.fontweight="bold"),s.match(/italic|-mathit/)&&(l.fontstyle="italic"))):s&&(l.mathvariant=s);var c=e.create("token","mtext",l,(0,TF.numeric)(a));OF.default.setProperty(c,"unicode",!0),e.Push(c)};new EF.CommandMap("unicode",{unicode:"Unicode"},On.UnicodeMethods);On.UnicodeConfiguration=bF.Configuration.create("unicode",{handler:{macro:["unicode"]}})});var xS=ee(Tn=>{"use strict";var SF=Tn&&Tn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.VerbConfiguration=Tn.VerbMethods=void 0;var xF=ze(),MF=Rt(),CF=He(),SS=SF($e());Tn.VerbMethods={};Tn.VerbMethods.Verb=function(e,t){var r=e.GetNext(),n=++e.i;if(r==="")throw new SS.default("MissingArgFor","Missing argument for %1",t);for(;e.i<e.string.length&&e.string.charAt(e.i)!==r;)e.i++;if(e.i===e.string.length)throw new SS.default("NoClosingDelim","Can't find closing delimiter for %1",e.currentCS);var i=e.string.slice(n,e.i).replace(/ /g,"\xA0");e.i++,e.Push(e.create("token","mtext",{mathvariant:MF.TexConstant.Variant.MONOSPACE},i))};new CF.CommandMap("verb",{verb:"Verb"},Tn.VerbMethods);Tn.VerbConfiguration=xF.Configuration.create("verb",{handler:{macro:["verb"]}})});var MS=ee(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.AllPackages=void 0;_c();kA();Zy();KA();XA();YA();aO();MO();NO();FO();zO();QO();eT();rT();dT();hT();d_();wT();ET();OT();D_();HT();I_();zT();GT();tS();oS();cS();gS();AS();OS();TS();xS();typeof MathJax<"u"&&MathJax.loader&&MathJax.loader.preLoad("[tex]/action","[tex]/ams","[tex]/amscd","[tex]/bbox","[tex]/boldsymbol","[tex]/braket","[tex]/bussproofs","[tex]/cancel","[tex]/cases","[tex]/centernot","[tex]/color","[tex]/colorv2","[tex]/colortbl","[tex]/empheq","[tex]/enclose","[tex]/extpfeil","[tex]/gensymb","[tex]/html","[tex]/mathtools","[tex]/mhchem","[tex]/newcommand","[tex]/noerrors","[tex]/noundefined","[tex]/physics","[tex]/upgreek","[tex]/unicode","[tex]/verb","[tex]/configmacros","[tex]/tagformat","[tex]/textcomp","[tex]/textmacros","[tex]/setoptions");cu.AllPackages=["base","action","ams","amscd","bbox","boldsymbol","braket","bussproofs","cancel","cases","centernot","color","colortbl","empheq","enclose","extpfeil","gensymb","html","mathtools","mhchem","newcommand","noerrors","noundefined","upgreek","unicode","verb","configmacros","tagformat","textcomp","textmacros"]});var CS=ee(So=>{"use strict";var uu=So&&So.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(So,"__esModule",{value:!0});So.AbstractDOMAdaptor=void 0;var kF=(function(){function e(t){t===void 0&&(t=null),this.document=t}return e.prototype.node=function(t,r,n,i){var a,o;r===void 0&&(r={}),n===void 0&&(n=[]);var s=this.create(t,i);this.setAttributes(s,r);try{for(var l=uu(n),c=l.next();!c.done;c=l.next()){var d=c.value;this.append(s,d)}}catch(f){a={error:f}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(a)throw a.error}}return s},e.prototype.setAttributes=function(t,r){var n,i,a,o,s,l;if(r.style&&typeof r.style!="string")try{for(var c=uu(Object.keys(r.style)),d=c.next();!d.done;d=c.next()){var f=d.value;this.setStyle(t,f.replace(/-([a-z])/g,function(A,y){return y.toUpperCase()}),r.style[f])}}catch(A){n={error:A}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}if(r.properties)try{for(var m=uu(Object.keys(r.properties)),p=m.next();!p.done;p=m.next()){var f=p.value;t[f]=r.properties[f]}}catch(A){a={error:A}}finally{try{p&&!p.done&&(o=m.return)&&o.call(m)}finally{if(a)throw a.error}}try{for(var b=uu(Object.keys(r)),v=b.next();!v.done;v=b.next()){var f=v.value;(f!=="style"||typeof r.style=="string")&&f!=="properties"&&this.setAttribute(t,f,r[f])}}catch(A){s={error:A}}finally{try{v&&!v.done&&(l=b.return)&&l.call(b)}finally{if(s)throw s.error}}},e.prototype.replace=function(t,r){return this.insert(t,r),this.remove(r),r},e.prototype.childNode=function(t,r){return this.childNodes(t)[r]},e.prototype.allClasses=function(t){var r=this.getAttribute(t,"class");return r?r.replace(/ +/g," ").replace(/^ /,"").replace(/ $/,"").split(/ /):[]},e})();So.AbstractDOMAdaptor=kF});var kS=ee(en=>{"use strict";var NF=en&&en.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),fu=en&&en.__assign||function(){return fu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},fu.apply(this,arguments)};Object.defineProperty(en,"__esModule",{value:!0});en.NodeMixin=en.NodeMixinOptions=void 0;var du=It();en.NodeMixinOptions={badCSS:!0,badSizes:!0};function IF(e,t){var r;return t===void 0&&(t={}),t=(0,du.userOptions)((0,du.defaultOptions)({},en.NodeMixinOptions),t),r=(function(n){NF(i,n);function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];var s=n.call(this,a[0])||this,l=s.constructor;return s.options=(0,du.userOptions)((0,du.defaultOptions)({},l.OPTIONS),a[1]),s}return i.prototype.fontSize=function(a){return t.badCSS?this.options.fontSize:n.prototype.fontSize.call(this,a)},i.prototype.fontFamily=function(a){return t.badCSS?this.options.fontFamily:n.prototype.fontFamily.call(this,a)},i.prototype.nodeSize=function(a,o,s){if(o===void 0&&(o=1),s===void 0&&(s=null),!t.badSizes)return n.prototype.nodeSize.call(this,a,o,s);var l=this.textContent(a),c=Array.from(l.replace(i.cjkPattern,"")).length,d=Array.from(l).length-c;return[d*this.options.cjkCharWidth+c*this.options.unknownCharWidth,this.options.unknownCharHeight]},i.prototype.nodeBBox=function(a){return t.badSizes?{left:0,right:0,top:0,bottom:0}:n.prototype.nodeBBox.call(this,a)},i})(e),r.OPTIONS=fu(fu({},t.badCSS?{fontSize:16,fontFamily:"Times"}:{}),t.badSizes?{cjkCharWidth:1,unknownCharWidth:.6,unknownCharHeight:.8}:{}),r.cjkPattern=new RegExp(["[","\u1100-\u115F","\u2329\u232A","\u2E80-\u303E","\u3040-\u3247","\u3250-\u4DBF","\u4E00-\uA4C6","\uA960-\uA97C","\uAC00-\uD7A3","\uF900-\uFAFF","\uFE10-\uFE19","\uFE30-\uFE6B","\uFF01-\uFF60\uFFE0-\uFFE6","\u{1B000}-\u{1B001}","\u{1F200}-\u{1F251}","\u{20000}-\u{3FFFD}","]"].join(""),"gu"),r}en.NodeMixin=IF});var Ks=ee(Cr=>{"use strict";var tv=Cr&&Cr.__assign||function(){return tv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},tv.apply(this,arguments)},PF=Cr&&Cr.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},jF=Cr&&Cr.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},RF=Cr&&Cr.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Cr,"__esModule",{value:!0});Cr.LiteElement=void 0;var LF=(function(){function e(t,r,n){var i,a;r===void 0&&(r={}),n===void 0&&(n=[]),this.kind=t,this.attributes=tv({},r),this.children=jF([],PF(n),!1);try{for(var o=RF(this.children),s=o.next();!s.done;s=o.next()){var l=s.value;l.parent=this}}catch(c){i={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}this.styles=null}return e})();Cr.LiteElement=LF});var nv=ee(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.LiteDocument=void 0;var rv=Ks(),DF=(function(){function e(){this.root=new rv.LiteElement("html",{},[this.head=new rv.LiteElement("head"),this.body=new rv.LiteElement("body")]),this.type=""}return Object.defineProperty(e.prototype,"kind",{get:function(){return"#document"},enumerable:!1,configurable:!0}),e})();mu.LiteDocument=DF});var iv=ee(ji=>{"use strict";var BF=ji&&ji.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(ji,"__esModule",{value:!0});ji.LiteComment=ji.LiteText=void 0;var NS=(function(){function e(t){t===void 0&&(t=""),this.value=t}return Object.defineProperty(e.prototype,"kind",{get:function(){return"#text"},enumerable:!1,configurable:!0}),e})();ji.LiteText=NS;var FF=(function(e){BF(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"#comment"},enumerable:!1,configurable:!0}),t})(NS);ji.LiteComment=FF});var IS=ee(Ri=>{"use strict";var qF=Ri&&Ri.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},UF=Ri&&Ri.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(Ri,"__esModule",{value:!0});Ri.LiteList=void 0;var HF=(function(){function e(t){this.nodes=[],this.nodes=UF([],qF(t),!1)}return e.prototype.append=function(t){this.nodes.push(t)},e.prototype[Symbol.iterator]=function(){var t=0;return{next:function(){return t===this.nodes.length?{value:null,done:!0}:{value:this.nodes[t++],done:!1}}}},e})();Ri.LiteList=HF});var sv=ee(Dt=>{"use strict";var zF=Dt&&Dt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),GF=Dt&&Dt.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),WF=Dt&&Dt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&zF(t,e,r);return GF(t,e),t},KF=Dt&&Dt.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},av=Dt&&Dt.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.LiteParser=Dt.PATTERNS=void 0;var PS=WF(eo()),XF=Ks(),jS=iv(),ov;(function(e){e.TAGNAME="[a-z][^\\s\\n>]*",e.ATTNAME="[a-z][^\\s\\n>=]*",e.VALUE=`(?:'[^']*'|"[^"]*"|[^\\s\\n]+)`,e.VALUESPLIT=`(?:'([^']*)'|"([^"]*)"|([^\\s\\n]+))`,e.SPACE="(?:\\s|\\n)+",e.OPTIONALSPACE="(?:\\s|\\n)*",e.ATTRIBUTE=e.ATTNAME+"(?:"+e.OPTIONALSPACE+"="+e.OPTIONALSPACE+e.VALUE+")?",e.ATTRIBUTESPLIT="("+e.ATTNAME+")(?:"+e.OPTIONALSPACE+"="+e.OPTIONALSPACE+e.VALUESPLIT+")?",e.TAG="(<(?:"+e.TAGNAME+"(?:"+e.SPACE+e.ATTRIBUTE+")*"+e.OPTIONALSPACE+"/?|/"+e.TAGNAME+"|!--[^]*?--|![^]*?)(?:>|$))",e.tag=new RegExp(e.TAG,"i"),e.attr=new RegExp(e.ATTRIBUTE,"i"),e.attrsplit=new RegExp(e.ATTRIBUTESPLIT,"i")})(ov=Dt.PATTERNS||(Dt.PATTERNS={}));var $F=(function(){function e(){}return e.prototype.parseFromString=function(t,r,n){r===void 0&&(r="text/html"),n===void 0&&(n=null);for(var i=n.createDocument(),a=n.body(i),o=t.replace(/<\?.*?\?>/g,"").split(ov.tag);o.length;){var s=o.shift(),l=o.shift();s&&this.addText(n,a,s),l&&l.charAt(l.length-1)===">"&&(l.charAt(1)==="!"?this.addComment(n,a,l):l.charAt(1)==="/"?a=this.closeTag(n,a,l):a=this.openTag(n,a,l,o))}return this.checkDocument(n,i),i},e.prototype.addText=function(t,r,n){return n=PS.translate(n),t.append(r,t.text(n))},e.prototype.addComment=function(t,r,n){return t.append(r,new jS.LiteComment(n))},e.prototype.closeTag=function(t,r,n){for(var i=n.slice(2,n.length-1).toLowerCase();t.parent(r)&&t.kind(r)!==i;)r=t.parent(r);return t.parent(r)},e.prototype.openTag=function(t,r,n,i){var a=this.constructor.PCDATA,o=this.constructor.SELF_CLOSING,s=n.match(/<(.*?)[\s\n>\/]/)[1].toLowerCase(),l=t.node(s),c=n.replace(/^<.*?[\s\n>]/,"").split(ov.attrsplit);return(c.pop().match(/>$/)||c.length<5)&&(this.addAttributes(t,l,c),t.append(r,l),!o[s]&&!n.match(/\/>$/)&&(a[s]?this.handlePCDATA(t,l,s,i):r=l)),r},e.prototype.addAttributes=function(t,r,n){for(var i=this.constructor.CDATA_ATTR;n.length;){var a=KF(n.splice(0,5),5),o=a[1],s=a[2],l=a[3],c=a[4],d=s||l||c||"";i[o]||(d=PS.translate(d)),t.setAttribute(r,o,d)}},e.prototype.handlePCDATA=function(t,r,n,i){for(var a=[],o="</"+n+">",s="";i.length&&s!==o;)a.push(s),a.push(i.shift()),s=i.shift();t.append(r,t.text(a.join("")))},e.prototype.checkDocument=function(t,r){var n,i,a,o,s=this.getOnlyChild(t,t.body(r));if(s){try{for(var l=av(t.childNodes(t.body(r))),c=l.next();!c.done;c=l.next()){var d=c.value;if(d===s)break;d instanceof jS.LiteComment&&d.value.match(/^<!DOCTYPE/)&&(r.type=d.value)}}catch(p){n={error:p}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}switch(t.kind(s)){case"html":try{for(var f=av(s.children),m=f.next();!m.done;m=f.next()){var d=m.value;switch(t.kind(d)){case"head":r.head=d;break;case"body":r.body=d;break}}}catch(p){a={error:p}}finally{try{m&&!m.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}r.root=s,t.remove(s),t.parent(r.body)!==s&&t.append(s,r.body),t.parent(r.head)!==s&&t.insert(r.head,r.body);break;case"head":r.head=t.replace(s,r.head);break;case"body":r.body=t.replace(s,r.body);break}}},e.prototype.getOnlyChild=function(t,r){var n,i,a=null;try{for(var o=av(t.childNodes(r)),s=o.next();!s.done;s=o.next()){var l=s.value;if(l instanceof XF.LiteElement){if(a)return null;a=l}}}catch(c){n={error:c}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a},e.prototype.serialize=function(t,r,n){var i=this;n===void 0&&(n=!1);var a=this.constructor.SELF_CLOSING,o=this.constructor.CDATA_ATTR,s=t.kind(r),l=t.allAttributes(r).map(function(f){return f.name+'="'+(o[f.name]?f.value:i.protectAttribute(f.value))+'"'}).join(" "),c=this.serializeInner(t,r,n),d="<"+s+(l?" "+l:"")+((!n||c)&&!a[s]?">".concat(c,"</").concat(s,">"):n?"/>":">");return d},e.prototype.serializeInner=function(t,r,n){var i=this;n===void 0&&(n=!1);var a=this.constructor.PCDATA;return a.hasOwnProperty(r.kind)?t.childNodes(r).map(function(o){return t.value(o)}).join(""):t.childNodes(r).map(function(o){var s=t.kind(o);return s==="#text"?i.protectHTML(t.value(o)):s==="#comment"?o.value:i.serialize(t,o,n)}).join("")},e.prototype.protectAttribute=function(t){return typeof t!="string"&&(t=String(t)),t.replace(/"/g,""")},e.prototype.protectHTML=function(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")},e.SELF_CLOSING={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},e.PCDATA={option:!0,textarea:!0,fieldset:!0,title:!0,style:!0,script:!0},e.CDATA_ATTR={style:!0,datafld:!0,datasrc:!0,href:!0,src:!0,longdesc:!0,usemap:!0,cite:!0,datetime:!0,action:!0,axis:!0,profile:!0,content:!0,scheme:!0},e})();Dt.LiteParser=$F});var LS=ee(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.LiteWindow=void 0;var VF=Ks(),RS=nv(),lv=IS(),YF=sv(),ZF=(function(){function e(){this.DOMParser=YF.LiteParser,this.NodeList=lv.LiteList,this.HTMLCollection=lv.LiteList,this.HTMLElement=VF.LiteElement,this.DocumentFragment=lv.LiteList,this.Document=RS.LiteDocument,this.document=new RS.LiteDocument}return e})();hu.LiteWindow=ZF});var FS=ee(Sn=>{"use strict";var kr=Sn&&Sn.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},cv=Sn&&Sn.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},JF=Sn&&Sn.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(Sn,"__esModule",{value:!0});Sn.Styles=void 0;var Xs=["top","right","bottom","left"],pu=["width","style","color"];function uv(e){for(var t=e.split(/((?:'[^']*'|"[^"]*"|,[\s\n]|[^\s\n])*)/g),r=[];t.length>1;)t.shift(),r.push(t.shift());return r}function gu(e){var t,r,n=uv(this.styles[e]);n.length===0&&n.push(""),n.length===1&&n.push(n[0]),n.length===2&&n.push(n[0]),n.length===3&&n.push(n[1]);try{for(var i=kr(Li.connect[e].children),a=i.next();!a.done;a=i.next()){var o=a.value;this.setStyle(this.childName(e,o),n.shift())}}catch(s){t={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}function QF(e){var t,r,n=Li.connect[e].children,i=[];try{for(var a=kr(n),o=a.next();!o.done;o=a.next()){var s=o.value,l=this.styles[e+"-"+s];if(!l){delete this.styles[e];return}i.push(l)}}catch(c){t={error:c}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}i[3]===i[1]&&(i.pop(),i[2]===i[0]&&(i.pop(),i[1]===i[0]&&i.pop())),this.styles[e]=i.join(" ")}function e3(e){var t,r;try{for(var n=kr(Li.connect[e].children),i=n.next();!i.done;i=n.next()){var a=i.value;this.setStyle(this.childName(e,a),this.styles[e])}}catch(o){t={error:o}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}}function t3(e){var t,r,n=JF([],cv(Li.connect[e].children),!1),i=this.styles[this.childName(e,n.shift())];try{for(var a=kr(n),o=a.next();!o.done;o=a.next()){var s=o.value;if(this.styles[this.childName(e,s)]!==i){delete this.styles[e];return}}}catch(l){t={error:l}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}this.styles[e]=i}var DS={width:/^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/,style:/^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/};function yu(e){var t,r,n,i,a={width:"",style:"",color:""};try{for(var o=kr(uv(this.styles[e])),s=o.next();!s.done;s=o.next()){var l=s.value;l.match(DS.width)&&a.width===""?a.width=l:l.match(DS.style)&&a.style===""?a.style=l:a.color=l}}catch(m){t={error:m}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}try{for(var c=kr(Li.connect[e].children),d=c.next();!d.done;d=c.next()){var f=d.value;this.setStyle(this.childName(e,f),a[f])}}catch(m){n={error:m}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}function _u(e){var t,r,n=[];try{for(var i=kr(Li.connect[e].children),a=i.next();!a.done;a=i.next()){var o=a.value,s=this.styles[this.childName(e,o)];s&&n.push(s)}}catch(l){t={error:l}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}n.length?this.styles[e]=n.join(" "):delete this.styles[e]}var BS={style:/^(?:normal|italic|oblique|inherit|initial|unset)$/,variant:new RegExp("^(?:"+["normal|none","inherit|initial|unset","common-ligatures|no-common-ligatures","discretionary-ligatures|no-discretionary-ligatures","historical-ligatures|no-historical-ligatures","contextual|no-contextual","(?:stylistic|character-variant|swash|ornaments|annotation)\\([^)]*\\)","small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","lining-nums|oldstyle-nums|proportional-nums|tabular-nums","diagonal-fractions|stacked-fractions","ordinal|slashed-zero","jis78|jis83|jis90|jis04|simplified|traditional","full-width|proportional-width","ruby"].join("|")+")$"),weight:/^(?:normal|bold|bolder|lighter|[1-9]00|inherit|initial|unset)$/,stretch:new RegExp("^(?:"+["normal","(?:(?:ultra|extra|semi)-)?condensed","(?:(?:semi|extra|ulta)-)?expanded","inherit|initial|unset"].join("|")+")$"),size:new RegExp("^(?:"+["xx-small|x-small|small|medium|large|x-large|xx-large|larger|smaller","[d.]+%|[d.]+[a-z]+","inherit|initial|unset"].join("|")+")(?:/(?:normal|[d.+](?:%|[a-z]+)?))?$")};function r3(e){var t,r,n,i,a=uv(this.styles[e]),o={style:"",variant:[],weight:"",stretch:"",size:"",family:"","line-height":""};try{for(var s=kr(a),l=s.next();!l.done;l=s.next()){var c=l.value;o.family=c;try{for(var d=(n=void 0,kr(Object.keys(BS))),f=d.next();!f.done;f=d.next()){var m=f.value;if((Array.isArray(o[m])||o[m]==="")&&c.match(BS[m]))if(m==="size"){var p=cv(c.split(/\//),2),b=p[0],v=p[1];o[m]=b,v&&(o["line-height"]=v)}else o.size===""&&(Array.isArray(o[m])?o[m].push(c):o[m]=c)}}catch(A){n={error:A}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}}}catch(A){t={error:A}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}n3(e,o),delete this.styles[e]}function n3(e,t){var r,n;try{for(var i=kr(Li.connect[e].children),a=i.next();!a.done;a=i.next()){var o=a.value,s=this.childName(e,o);if(Array.isArray(t[o])){var l=t[o];l.length&&(this.styles[s]=l.join(" "))}else t[o]!==""&&(this.styles[s]=t[o])}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}function i3(e){}var Li=(function(){function e(t){t===void 0&&(t=""),this.parse(t)}return Object.defineProperty(e.prototype,"cssText",{get:function(){var t,r,n=[];try{for(var i=kr(Object.keys(this.styles)),a=i.next();!a.done;a=i.next()){var o=a.value,s=this.parentName(o);this.styles[s]||n.push(o+": "+this.styles[o]+";")}}catch(l){t={error:l}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n.join(" ")},enumerable:!1,configurable:!0}),e.prototype.set=function(t,r){for(t=this.normalizeName(t),this.setStyle(t,r),e.connect[t]&&!e.connect[t].combine&&(this.combineChildren(t),delete this.styles[t]);t.match(/-/)&&(t=this.parentName(t),!!e.connect[t]);)e.connect[t].combine.call(this,t)},e.prototype.get=function(t){return t=this.normalizeName(t),this.styles.hasOwnProperty(t)?this.styles[t]:""},e.prototype.setStyle=function(t,r){this.styles[t]=r,e.connect[t]&&e.connect[t].children&&e.connect[t].split.call(this,t),r===""&&delete this.styles[t]},e.prototype.combineChildren=function(t){var r,n,i=this.parentName(t);try{for(var a=kr(e.connect[t].children),o=a.next();!o.done;o=a.next()){var s=o.value,l=this.childName(i,s);e.connect[l].combine.call(this,l)}}catch(c){r={error:c}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}},e.prototype.parentName=function(t){var r=t.replace(/-[^-]*$/,"");return t===r?"":r},e.prototype.childName=function(t,r){return r.match(/-/)?r:(e.connect[t]&&!e.connect[t].combine&&(r+=t.replace(/.*-/,"-"),t=this.parentName(t)),t+"-"+r)},e.prototype.normalizeName=function(t){return t.replace(/[A-Z]/g,function(r){return"-"+r.toLowerCase()})},e.prototype.parse=function(t){t===void 0&&(t="");var r=this.constructor.pattern;this.styles={};for(var n=t.replace(r.comment,"").split(r.style);n.length>1;){var i=cv(n.splice(0,3),3),a=i[0],o=i[1],s=i[2];if(a.match(/[^\s\n]/))return;this.set(o,s)}},e.pattern={style:/([-a-z]+)[\s\n]*:[\s\n]*((?:'[^']*'|"[^"]*"|\n|.)*?)[\s\n]*(?:;|$)/g,comment:/\/\*[^]*?\*\//g},e.connect={padding:{children:Xs,split:gu,combine:QF},border:{children:Xs,split:e3,combine:t3},"border-top":{children:pu,split:yu,combine:_u},"border-right":{children:pu,split:yu,combine:_u},"border-bottom":{children:pu,split:yu,combine:_u},"border-left":{children:pu,split:yu,combine:_u},"border-width":{children:Xs,split:gu,combine:null},"border-style":{children:Xs,split:gu,combine:null},"border-color":{children:Xs,split:gu,combine:null},font:{children:["style","variant","weight","stretch","line-height","size","family"],split:r3,combine:i3}},e})();Sn.Styles=Li});var KS=ee(xt=>{"use strict";var zS=xt&&xt.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),dv=xt&&xt.__assign||function(){return dv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},dv.apply(this,arguments)},qS=xt&&xt.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a3=xt&&xt.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},o3=xt&&xt.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(xt,"__esModule",{value:!0});xt.liteAdaptor=xt.LiteAdaptor=xt.LiteBase=void 0;var s3=CS(),l3=kS(),c3=nv(),US=Ks(),$s=iv(),u3=LS(),d3=sv(),HS=FS(),GS=(function(e){zS(t,e);function t(){var r=e.call(this)||this;return r.parser=new d3.LiteParser,r.window=new u3.LiteWindow,r}return t.prototype.parse=function(r,n){return this.parser.parseFromString(r,n,this)},t.prototype.create=function(r,n){return n===void 0&&(n=null),new US.LiteElement(r)},t.prototype.text=function(r){return new $s.LiteText(r)},t.prototype.comment=function(r){return new $s.LiteComment(r)},t.prototype.createDocument=function(){return new c3.LiteDocument},t.prototype.head=function(r){return r.head},t.prototype.body=function(r){return r.body},t.prototype.root=function(r){return r.root},t.prototype.doctype=function(r){return r.type},t.prototype.tags=function(r,n,i){i===void 0&&(i=null);var a=[],o=[];if(i)return o;for(var s=r;s;){var l=s.kind;l!=="#text"&&l!=="#comment"&&(s=s,l===n&&o.push(s),s.children.length&&(a=s.children.concat(a))),s=a.shift()}return o},t.prototype.elementById=function(r,n){for(var i=[],a=r;a;){if(a.kind!=="#text"&&a.kind!=="#comment"){if(a=a,a.attributes.id===n)return a;a.children.length&&(i=a.children.concat(i))}a=i.shift()}return null},t.prototype.elementsByClass=function(r,n){for(var i=[],a=[],o=r;o;){if(o.kind!=="#text"&&o.kind!=="#comment"){o=o;var s=(o.attributes.class||"").trim().split(/ +/);s.includes(n)&&a.push(o),o.children.length&&(i=o.children.concat(i))}o=i.shift()}return a},t.prototype.getElements=function(r,n){var i,a,o=[],s=this.body(n);try{for(var l=qS(r),c=l.next();!c.done;c=l.next()){var d=c.value;if(typeof d=="string")if(d.charAt(0)==="#"){var f=this.elementById(s,d.slice(1));f&&o.push(f)}else d.charAt(0)==="."?o=o.concat(this.elementsByClass(s,d.slice(1))):d.match(/^[-a-z][-a-z0-9]*$/i)&&(o=o.concat(this.tags(s,d)));else Array.isArray(d)?o=o.concat(d):d instanceof this.window.NodeList||d instanceof this.window.HTMLCollection?o=o.concat(d.nodes):o.push(d)}}catch(m){i={error:m}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}return o},t.prototype.contains=function(r,n){for(;n&&n!==r;)n=this.parent(n);return!!n},t.prototype.parent=function(r){return r.parent},t.prototype.childIndex=function(r){return r.parent?r.parent.children.findIndex(function(n){return n===r}):-1},t.prototype.append=function(r,n){return n.parent&&this.remove(n),r.children.push(n),n.parent=r,n},t.prototype.insert=function(r,n){if(r.parent&&this.remove(r),n&&n.parent){var i=this.childIndex(n);n.parent.children.splice(i,0,r),r.parent=n.parent}},t.prototype.remove=function(r){var n=this.childIndex(r);return n>=0&&r.parent.children.splice(n,1),r.parent=null,r},t.prototype.replace=function(r,n){var i=this.childIndex(n);return i>=0&&(n.parent.children[i]=r,r.parent=n.parent,n.parent=null),n},t.prototype.clone=function(r){var n=this,i=new US.LiteElement(r.kind);return i.attributes=dv({},r.attributes),i.children=r.children.map(function(a){if(a.kind==="#text")return new $s.LiteText(a.value);if(a.kind==="#comment")return new $s.LiteComment(a.value);var o=n.clone(a);return o.parent=i,o}),i},t.prototype.split=function(r,n){var i=new $s.LiteText(r.value.slice(n));return r.value=r.value.slice(0,n),r.parent.children.splice(this.childIndex(r)+1,0,i),i.parent=r.parent,i},t.prototype.next=function(r){var n=r.parent;if(!n)return null;var i=this.childIndex(r)+1;return i>=0&&i<n.children.length?n.children[i]:null},t.prototype.previous=function(r){var n=r.parent;if(!n)return null;var i=this.childIndex(r)-1;return i>=0?n.children[i]:null},t.prototype.firstChild=function(r){return r.children[0]},t.prototype.lastChild=function(r){return r.children[r.children.length-1]},t.prototype.childNodes=function(r){return o3([],a3(r.children),!1)},t.prototype.childNode=function(r,n){return r.children[n]},t.prototype.kind=function(r){return r.kind},t.prototype.value=function(r){return r.kind==="#text"?r.value:r.kind==="#comment"?r.value.replace(/^<!(--)?((?:.|\n)*)\1>$/,"$2"):""},t.prototype.textContent=function(r){var n=this;return r.children.reduce(function(i,a){return i+(a.kind==="#text"?a.value:a.kind==="#comment"?"":n.textContent(a))},"")},t.prototype.innerHTML=function(r){return this.parser.serializeInner(this,r)},t.prototype.outerHTML=function(r){return this.parser.serialize(this,r)},t.prototype.serializeXML=function(r){return this.parser.serialize(this,r,!0)},t.prototype.setAttribute=function(r,n,i,a){a===void 0&&(a=null),typeof i!="string"&&(i=String(i)),a&&(n=a.replace(/.*\//,"")+":"+n.replace(/^.*:/,"")),r.attributes[n]=i,n==="style"&&(r.styles=null)},t.prototype.getAttribute=function(r,n){return r.attributes[n]},t.prototype.removeAttribute=function(r,n){delete r.attributes[n]},t.prototype.hasAttribute=function(r,n){return r.attributes.hasOwnProperty(n)},t.prototype.allAttributes=function(r){var n,i,a=r.attributes,o=[];try{for(var s=qS(Object.keys(a)),l=s.next();!l.done;l=s.next()){var c=l.value;o.push({name:c,value:a[c]})}}catch(d){n={error:d}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o},t.prototype.addClass=function(r,n){var i=(r.attributes.class||"").split(/ /);i.find(function(a){return a===n})||(i.push(n),r.attributes.class=i.join(" "))},t.prototype.removeClass=function(r,n){var i=(r.attributes.class||"").split(/ /),a=i.findIndex(function(o){return o===n});a>=0&&(i.splice(a,1),r.attributes.class=i.join(" "))},t.prototype.hasClass=function(r,n){var i=(r.attributes.class||"").split(/ /);return!!i.find(function(a){return a===n})},t.prototype.setStyle=function(r,n,i){r.styles||(r.styles=new HS.Styles(this.getAttribute(r,"style"))),r.styles.set(n,i),r.attributes.style=r.styles.cssText},t.prototype.getStyle=function(r,n){if(!r.styles){var i=this.getAttribute(r,"style");if(!i)return"";r.styles=new HS.Styles(i)}return r.styles.get(n)},t.prototype.allStyles=function(r){return this.getAttribute(r,"style")},t.prototype.insertRules=function(r,n){r.children=[this.text(n.join(`
|
|
8
|
+
|
|
9
|
+
`)+`
|
|
10
|
+
|
|
11
|
+
`+this.textContent(r))]},t.prototype.fontSize=function(r){return 0},t.prototype.fontFamily=function(r){return""},t.prototype.nodeSize=function(r,n,i){return n===void 0&&(n=1),i===void 0&&(i=null),[0,0]},t.prototype.nodeBBox=function(r){return{left:0,right:0,top:0,bottom:0}},t})(s3.AbstractDOMAdaptor);xt.LiteBase=GS;var WS=(function(e){zS(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})((0,l3.NodeMixin)(GS));xt.LiteAdaptor=WS;function f3(e){return e===void 0&&(e=null),new WS(null,e)}xt.liteAdaptor=f3});var $S=ee(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.AbstractOutputJax=void 0;var XS=It(),m3=ws(),h3=(function(){function e(t){t===void 0&&(t={}),this.adaptor=null;var r=this.constructor;this.options=(0,XS.userOptions)((0,XS.defaultOptions)({},r.OPTIONS),t),this.postFilters=new m3.FunctionList}return Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),e.prototype.setAdaptor=function(t){this.adaptor=t},e.prototype.initialize=function(){},e.prototype.reset=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r]},e.prototype.getMetrics=function(t){},e.prototype.styleSheet=function(t){return null},e.prototype.pageElements=function(t){return null},e.prototype.executeFilters=function(t,r,n,i){var a={math:r,document:n,data:i};return t.execute(a),a.data},e.NAME="generic",e.OPTIONS={},e})();vu.AbstractOutputJax=h3});var YS=ee(ct=>{"use strict";var VS=ct&&ct.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(d){return l([c,d])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(d){c=[6,d],i=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},xo=ct&&ct.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},p3=ct&&ct.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},bu=ct&&ct.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ct,"__esModule",{value:!0});ct.LinkedList=ct.ListItem=ct.END=void 0;ct.END=Symbol();var Vs=(function(){function e(t){t===void 0&&(t=null),this.next=null,this.prev=null,this.data=t}return e})();ct.ListItem=Vs;var g3=(function(){function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.list=new Vs(ct.END),this.list.next=this.list.prev=this.list,this.push.apply(this,p3([],xo(t),!1))}return e.prototype.isBefore=function(t,r){return t<r},e.prototype.push=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];try{for(var a=bu(n),o=a.next();!o.done;o=a.next()){var s=o.value,l=new Vs(s);l.next=this.list,l.prev=this.list.prev,this.list.prev=l,l.prev.next=l}}catch(c){t={error:c}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return this},e.prototype.pop=function(){var t=this.list.prev;return t.data===ct.END?null:(this.list.prev=t.prev,t.prev.next=this.list,t.next=t.prev=null,t.data)},e.prototype.unshift=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];try{for(var a=bu(n.slice(0).reverse()),o=a.next();!o.done;o=a.next()){var s=o.value,l=new Vs(s);l.next=this.list.next,l.prev=this.list,this.list.next=l,l.next.prev=l}}catch(c){t={error:c}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return this},e.prototype.shift=function(){var t=this.list.next;return t.data===ct.END?null:(this.list.next=t.next,t.next.prev=this.list,t.next=t.prev=null,t.data)},e.prototype.remove=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var a=new Map;try{for(var o=bu(n),s=o.next();!s.done;s=o.next()){var l=s.value;a.set(l,!0)}}catch(f){t={error:f}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}for(var c=this.list.next;c.data!==ct.END;){var d=c.next;a.has(c.data)&&(c.prev.next=c.next,c.next.prev=c.prev,c.next=c.prev=null),c=d}},e.prototype.clear=function(){return this.list.next.prev=this.list.prev.next=null,this.list.next=this.list.prev=this.list,this},e.prototype[Symbol.iterator]=function(){var t;return VS(this,function(r){switch(r.label){case 0:t=this.list.next,r.label=1;case 1:return t.data===ct.END?[3,3]:[4,t.data];case 2:return r.sent(),t=t.next,[3,1];case 3:return[2]}})},e.prototype.reversed=function(){var t;return VS(this,function(r){switch(r.label){case 0:t=this.list.prev,r.label=1;case 1:return t.data===ct.END?[3,3]:[4,t.data];case 2:return r.sent(),t=t.prev,[3,1];case 3:return[2]}})},e.prototype.insert=function(t,r){r===void 0&&(r=null),r===null&&(r=this.isBefore.bind(this));for(var n=new Vs(t),i=this.list.next;i.data!==ct.END&&r(i.data,n.data);)i=i.next;return n.prev=i.prev,n.next=i,i.prev.next=i.prev=n,this},e.prototype.sort=function(t){var r,n;t===void 0&&(t=null),t===null&&(t=this.isBefore.bind(this));var i=[];try{for(var a=bu(this),o=a.next();!o.done;o=a.next()){var s=o.value;i.push(new e(s))}}catch(d){r={error:d}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}for(this.list.next=this.list.prev=this.list;i.length>1;){var l=i.shift(),c=i.shift();l.merge(c,t),i.push(l)}return i.length&&(this.list=i[0].list),this},e.prototype.merge=function(t,r){var n,i,a,o,s;r===void 0&&(r=null),r===null&&(r=this.isBefore.bind(this));for(var l=this.list.next,c=t.list.next;l.data!==ct.END&&c.data!==ct.END;)r(c.data,l.data)?(n=xo([l,c],2),c.prev.next=n[0],l.prev.next=n[1],i=xo([l.prev,c.prev],2),c.prev=i[0],l.prev=i[1],a=xo([t.list,this.list],2),this.list.prev.next=a[0],t.list.prev.next=a[1],o=xo([t.list.prev,this.list.prev],2),this.list.prev=o[0],t.list.prev=o[1],s=xo([c.next,l],2),l=s[0],c=s[1]):l=l.next;return c.data!==ct.END&&(this.list.prev.next=t.list.next,t.list.next.prev=this.list.prev,t.list.prev.next=this.list,this.list.prev=t.list.prev,t.list.next=t.list.prev=t.list),this},e})();ct.LinkedList=g3});var fv=ee(Mo=>{"use strict";var y3=Mo&&Mo.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Mo,"__esModule",{value:!0});Mo.AbstractMathList=void 0;var _3=YS(),v3=(function(e){y3(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isBefore=function(r,n){return r.start.i<n.start.i||r.start.i===n.start.i&&r.start.n<n.start.n},t})(_3.LinkedList);Mo.AbstractMathList=v3});var ZS=ee(Co=>{"use strict";var b3=Co&&Co.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Co,"__esModule",{value:!0});Co.AbstractNodeFactory=void 0;var w3=Oy(),E3=(function(e){b3(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(r,n,i){return n===void 0&&(n={}),i===void 0&&(i=[]),this.node[r](n,i)},t})(w3.AbstractFactory);Co.AbstractNodeFactory=E3});var QS=ee(Di=>{"use strict";var A3=Di&&Di.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),wu=Di&&Di.__assign||function(){return wu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},wu.apply(this,arguments)};Object.defineProperty(Di,"__esModule",{value:!0});Di.MmlMath=void 0;var JS=Te(),O3=(function(e){A3(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"math"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(r,n,i,a){this.attributes.get("mode")==="display"&&this.attributes.setInherited("display","block"),r=this.addInheritedAttributes(r,this.attributes.getAllAttributes()),n=!!this.attributes.get("displaystyle")||!this.attributes.get("displaystyle")&&this.attributes.get("display")==="block",this.attributes.setInherited("displaystyle",n),i=this.attributes.get("scriptlevel")||this.constructor.defaults.scriptlevel,e.prototype.setChildInheritedAttributes.call(this,r,n,i,a)},t.defaults=wu(wu({},JS.AbstractMmlLayoutNode.defaults),{mathvariant:"normal",mathsize:"normal",mathcolor:"",mathbackground:"transparent",dir:"ltr",scriptlevel:0,displaystyle:!1,display:"inline",maxwidth:"",overflow:"linebreak",altimg:"","altimg-width":"","altimg-height":"","altimg-valign":"",alttext:"",cdgroup:"",scriptsizemultiplier:1/Math.sqrt(2),scriptminsize:"8px",infixlinebreakstyle:"before",lineleading:"1ex",linebreakmultchar:"\u2062",indentshift:"auto",indentalign:"auto",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),t})(JS.AbstractMmlLayoutNode);Di.MmlMath=O3});var hv=ee(Bi=>{"use strict";var T3=Bi&&Bi.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),mv=Bi&&Bi.__assign||function(){return mv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},mv.apply(this,arguments)};Object.defineProperty(Bi,"__esModule",{value:!0});Bi.MmlMi=void 0;var Eu=Te(),S3=(function(e){T3(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=Eu.TEXCLASS.ORD,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mi"},enumerable:!1,configurable:!0}),t.prototype.setInheritedAttributes=function(r,n,i,a){r===void 0&&(r={}),n===void 0&&(n=!1),i===void 0&&(i=0),a===void 0&&(a=!1),e.prototype.setInheritedAttributes.call(this,r,n,i,a);var o=this.getText();o.match(t.singleCharacter)&&!r.mathvariant&&this.attributes.setInherited("mathvariant","italic")},t.prototype.setTeXclass=function(r){this.getPrevClass(r);var n=this.getText();return n.length>1&&n.match(t.operatorName)&&this.attributes.get("mathvariant")==="normal"&&this.getProperty("autoOP")===void 0&&this.getProperty("texClass")===void 0&&(this.texClass=Eu.TEXCLASS.OP,this.setProperty("autoOP",!0)),this},t.defaults=mv({},Eu.AbstractMmlTokenNode.defaults),t.operatorName=/^[a-z][a-z0-9]*$/i,t.singleCharacter=/^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/,t})(Eu.AbstractMmlTokenNode);Bi.MmlMi=S3});var e1=ee(Fi=>{"use strict";var x3=Fi&&Fi.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),gv=Fi&&Fi.__assign||function(){return gv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},gv.apply(this,arguments)};Object.defineProperty(Fi,"__esModule",{value:!0});Fi.MmlMn=void 0;var pv=Te(),M3=(function(e){x3(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=pv.TEXCLASS.ORD,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mn"},enumerable:!1,configurable:!0}),t.defaults=gv({},pv.AbstractMmlTokenNode.defaults),t})(pv.AbstractMmlTokenNode);Fi.MmlMn=M3});var t1=ee(qi=>{"use strict";var C3=qi&&qi.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),_v=qi&&qi.__assign||function(){return _v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},_v.apply(this,arguments)};Object.defineProperty(qi,"__esModule",{value:!0});qi.MmlMtext=void 0;var yv=Te(),k3=(function(e){C3(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=yv.TEXCLASS.ORD,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mtext"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),t.defaults=_v({},yv.AbstractMmlTokenNode.defaults),t})(yv.AbstractMmlTokenNode);qi.MmlMtext=k3});var r1=ee(Ui=>{"use strict";var N3=Ui&&Ui.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Au=Ui&&Ui.__assign||function(){return Au=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Au.apply(this,arguments)};Object.defineProperty(Ui,"__esModule",{value:!0});Ui.MmlMspace=void 0;var vv=Te(),I3=(function(e){N3(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=vv.TEXCLASS.NONE,r}return t.prototype.setTeXclass=function(r){return r},Object.defineProperty(t.prototype,"kind",{get:function(){return"mspace"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNewline",{get:function(){var r=this.attributes;return r.getExplicit("width")==null&&r.getExplicit("height")==null&&r.getExplicit("depth")==null&&r.get("linebreak")==="newline"},enumerable:!1,configurable:!0}),t.defaults=Au(Au({},vv.AbstractMmlTokenNode.defaults),{width:"0em",height:"0ex",depth:"0ex",linebreak:"auto"}),t})(vv.AbstractMmlTokenNode);Ui.MmlMspace=I3});var n1=ee(Hi=>{"use strict";var P3=Hi&&Hi.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ou=Hi&&Hi.__assign||function(){return Ou=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ou.apply(this,arguments)};Object.defineProperty(Hi,"__esModule",{value:!0});Hi.MmlMs=void 0;var bv=Te(),j3=(function(e){P3(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=bv.TEXCLASS.ORD,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"ms"},enumerable:!1,configurable:!0}),t.defaults=Ou(Ou({},bv.AbstractMmlTokenNode.defaults),{lquote:'"',rquote:'"'}),t})(bv.AbstractMmlTokenNode);Hi.MmlMs=j3});var a1=ee(Nr=>{"use strict";var i1=Nr&&Nr.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ev=Nr&&Nr.__assign||function(){return Ev=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ev.apply(this,arguments)},ko=Nr&&Nr.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.MmlInferredMrow=Nr.MmlMrow=void 0;var wv=Te(),Av=(function(e){i1(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._core=null,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mrow"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){var r,n;try{for(var i=ko(this.childNodes),a=i.next();!a.done;a=i.next()){var o=a.value;if(!o.isSpacelike)return!1}}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmbellished",{get:function(){var r,n,i=!1,a=0;try{for(var o=ko(this.childNodes),s=o.next();!s.done;s=o.next()){var l=s.value;if(l){if(l.isEmbellished){if(i)return!1;i=!0,this._core=a}else if(!l.isSpacelike)return!1}a++}}catch(c){r={error:c}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},enumerable:!1,configurable:!0}),t.prototype.core=function(){return!this.isEmbellished||this._core==null?this:this.childNodes[this._core]},t.prototype.coreMO=function(){return!this.isEmbellished||this._core==null?this:this.childNodes[this._core].coreMO()},t.prototype.nonSpaceLength=function(){var r,n,i=0;try{for(var a=ko(this.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value;s&&!s.isSpacelike&&i++}}catch(l){r={error:l}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},t.prototype.firstNonSpace=function(){var r,n;try{for(var i=ko(this.childNodes),a=i.next();!a.done;a=i.next()){var o=a.value;if(o&&!o.isSpacelike)return o}}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return null},t.prototype.lastNonSpace=function(){for(var r=this.childNodes.length;--r>=0;){var n=this.childNodes[r];if(n&&!n.isSpacelike)return n}return null},t.prototype.setTeXclass=function(r){var n,i,a,o;if(this.getProperty("open")!=null||this.getProperty("close")!=null){this.getPrevClass(r),r=null;try{for(var s=ko(this.childNodes),l=s.next();!l.done;l=s.next()){var c=l.value;r=c.setTeXclass(r)}}catch(m){n={error:m}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}this.texClass==null&&(this.texClass=wv.TEXCLASS.INNER)}else{try{for(var d=ko(this.childNodes),f=d.next();!f.done;f=d.next()){var c=f.value;r=c.setTeXclass(r)}}catch(m){a={error:m}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}this.childNodes[0]&&this.updateTeXclass(this.childNodes[0])}return r},t.defaults=Ev({},wv.AbstractMmlNode.defaults),t})(wv.AbstractMmlNode);Nr.MmlMrow=Av;var R3=(function(e){i1(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"inferredMrow"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInferred",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"["+this.childNodes.join(",")+"]"},t.defaults=Av.defaults,t})(Av);Nr.MmlInferredMrow=R3});var s1=ee(xn=>{"use strict";var L3=xn&&xn.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Tu=xn&&xn.__assign||function(){return Tu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Tu.apply(this,arguments)},D3=xn&&xn.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(xn,"__esModule",{value:!0});xn.MmlMfrac=void 0;var o1=Te(),B3=(function(e){L3(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mfrac"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(r){var n,i;this.getPrevClass(r);try{for(var a=D3(this.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value;s.setTeXclass(null)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return this},t.prototype.setChildInheritedAttributes=function(r,n,i,a){(!n||i>0)&&i++,this.childNodes[0].setInheritedAttributes(r,!1,i,a),this.childNodes[1].setInheritedAttributes(r,!1,i,!0)},t.defaults=Tu(Tu({},o1.AbstractMmlBaseNode.defaults),{linethickness:"medium",numalign:"center",denomalign:"center",bevelled:!1}),t})(o1.AbstractMmlBaseNode);xn.MmlMfrac=B3});var l1=ee(zi=>{"use strict";var F3=zi&&zi.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Tv=zi&&zi.__assign||function(){return Tv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Tv.apply(this,arguments)};Object.defineProperty(zi,"__esModule",{value:!0});zi.MmlMsqrt=void 0;var Ov=Te(),q3=(function(e){F3(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=Ov.TEXCLASS.ORD,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"msqrt"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(r){return this.getPrevClass(r),this.childNodes[0].setTeXclass(null),this},t.prototype.setChildInheritedAttributes=function(r,n,i,a){this.childNodes[0].setInheritedAttributes(r,n,i,!0)},t.defaults=Tv({},Ov.AbstractMmlNode.defaults),t})(Ov.AbstractMmlNode);zi.MmlMsqrt=q3});var c1=ee(Gi=>{"use strict";var U3=Gi&&Gi.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),xv=Gi&&Gi.__assign||function(){return xv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},xv.apply(this,arguments)};Object.defineProperty(Gi,"__esModule",{value:!0});Gi.MmlMroot=void 0;var Sv=Te(),H3=(function(e){U3(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=Sv.TEXCLASS.ORD,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mroot"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(r){return this.getPrevClass(r),this.childNodes[0].setTeXclass(null),this.childNodes[1].setTeXclass(null),this},t.prototype.setChildInheritedAttributes=function(r,n,i,a){this.childNodes[0].setInheritedAttributes(r,n,i,!0),this.childNodes[1].setInheritedAttributes(r,!1,i+2,a)},t.defaults=xv({},Sv.AbstractMmlNode.defaults),t})(Sv.AbstractMmlNode);Gi.MmlMroot=H3});var d1=ee(Wi=>{"use strict";var z3=Wi&&Wi.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Su=Wi&&Wi.__assign||function(){return Su=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Su.apply(this,arguments)};Object.defineProperty(Wi,"__esModule",{value:!0});Wi.MmlMstyle=void 0;var u1=Te(),Ys=Za(),G3=(function(e){z3(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mstyle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return this.childNodes[0]&&this.childNodes[0].childNodes.length===1},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(r,n,i,a){var o=this.attributes.getExplicit("scriptlevel");o!=null&&(o=o.toString(),o.match(/^\s*[-+]/)?i+=parseInt(o):i=parseInt(o),a=!1);var s=this.attributes.getExplicit("displaystyle");s!=null&&(n=s===!0,a=!1);var l=this.attributes.getExplicit("data-cramped");l!=null&&(a=l),r=this.addInheritedAttributes(r,this.attributes.getAllAttributes()),this.childNodes[0].setInheritedAttributes(r,n,i,a)},t.defaults=Su(Su({},u1.AbstractMmlLayoutNode.defaults),{scriptlevel:Ys.INHERIT,displaystyle:Ys.INHERIT,scriptsizemultiplier:1/Math.sqrt(2),scriptminsize:"8px",mathbackground:Ys.INHERIT,mathcolor:Ys.INHERIT,dir:Ys.INHERIT,infixlinebreakstyle:"before"}),t})(u1.AbstractMmlLayoutNode);Wi.MmlMstyle=G3});var f1=ee(Ki=>{"use strict";var W3=Ki&&Ki.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Cv=Ki&&Ki.__assign||function(){return Cv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Cv.apply(this,arguments)};Object.defineProperty(Ki,"__esModule",{value:!0});Ki.MmlMerror=void 0;var Mv=Te(),K3=(function(e){W3(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=Mv.TEXCLASS.ORD,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"merror"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.defaults=Cv({},Mv.AbstractMmlNode.defaults),t})(Mv.AbstractMmlNode);Ki.MmlMerror=K3});var h1=ee(Xi=>{"use strict";var X3=Xi&&Xi.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),xu=Xi&&Xi.__assign||function(){return xu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},xu.apply(this,arguments)};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.MmlMpadded=void 0;var m1=Te(),$3=(function(e){X3(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mpadded"},enumerable:!1,configurable:!0}),t.defaults=xu(xu({},m1.AbstractMmlLayoutNode.defaults),{width:"",height:"",depth:"",lspace:0,voffset:0}),t})(m1.AbstractMmlLayoutNode);Xi.MmlMpadded=$3});var p1=ee($i=>{"use strict";var V3=$i&&$i.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Nv=$i&&$i.__assign||function(){return Nv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Nv.apply(this,arguments)};Object.defineProperty($i,"__esModule",{value:!0});$i.MmlMphantom=void 0;var kv=Te(),Y3=(function(e){V3(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=kv.TEXCLASS.ORD,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mphantom"},enumerable:!1,configurable:!0}),t.defaults=Nv({},kv.AbstractMmlLayoutNode.defaults),t})(kv.AbstractMmlLayoutNode);$i.MmlMphantom=Y3});var y1=ee(Mn=>{"use strict";var Z3=Mn&&Mn.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Mu=Mn&&Mn.__assign||function(){return Mu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Mu.apply(this,arguments)},g1=Mn&&Mn.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.MmlMfenced=void 0;var Zs=Te(),J3=(function(e){Z3(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=Zs.TEXCLASS.INNER,r.separators=[],r.open=null,r.close=null,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mfenced"},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(r){this.getPrevClass(r),this.open&&(r=this.open.setTeXclass(r)),this.childNodes[0]&&(r=this.childNodes[0].setTeXclass(r));for(var n=1,i=this.childNodes.length;n<i;n++)this.separators[n-1]&&(r=this.separators[n-1].setTeXclass(r)),this.childNodes[n]&&(r=this.childNodes[n].setTeXclass(r));return this.close&&(r=this.close.setTeXclass(r)),this.updateTeXclass(this.open),r},t.prototype.setChildInheritedAttributes=function(r,n,i,a){var o,s;this.addFakeNodes();try{for(var l=g1([this.open,this.close].concat(this.separators)),c=l.next();!c.done;c=l.next()){var d=c.value;d&&d.setInheritedAttributes(r,n,i,a)}}catch(f){o={error:f}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}e.prototype.setChildInheritedAttributes.call(this,r,n,i,a)},t.prototype.addFakeNodes=function(){var r,n,i=this.attributes.getList("open","close","separators"),a=i.open,o=i.close,s=i.separators;if(a=a.replace(/[ \t\n\r]/g,""),o=o.replace(/[ \t\n\r]/g,""),s=s.replace(/[ \t\n\r]/g,""),a&&(this.open=this.fakeNode(a,{fence:!0,form:"prefix"},Zs.TEXCLASS.OPEN)),s){for(;s.length<this.childNodes.length-1;)s+=s.charAt(s.length-1);var l=0;try{for(var c=g1(this.childNodes.slice(1)),d=c.next();!d.done;d=c.next()){var f=d.value;f&&this.separators.push(this.fakeNode(s.charAt(l++)))}}catch(m){r={error:m}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}o&&(this.close=this.fakeNode(o,{fence:!0,form:"postfix"},Zs.TEXCLASS.CLOSE))},t.prototype.fakeNode=function(r,n,i){n===void 0&&(n={}),i===void 0&&(i=null);var a=this.factory.create("text").setText(r),o=this.factory.create("mo",n,[a]);return o.texClass=i,o.parent=this,o},t.defaults=Mu(Mu({},Zs.AbstractMmlNode.defaults),{open:"(",close:")",separators:","}),t})(Zs.AbstractMmlNode);Mn.MmlMfenced=J3});var _1=ee(Vi=>{"use strict";var Q3=Vi&&Vi.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Cu=Vi&&Vi.__assign||function(){return Cu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Cu.apply(this,arguments)};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.MmlMenclose=void 0;var Iv=Te(),e6=(function(e){Q3(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=Iv.TEXCLASS.ORD,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"menclose"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContininer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(r){return r=this.childNodes[0].setTeXclass(r),this.updateTeXclass(this.childNodes[0]),r},t.defaults=Cu(Cu({},Iv.AbstractMmlNode.defaults),{notation:"longdiv"}),t})(Iv.AbstractMmlNode);Vi.MmlMenclose=e6});var b1=ee(Yi=>{"use strict";var t6=Yi&&Yi.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),ku=Yi&&Yi.__assign||function(){return ku=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ku.apply(this,arguments)};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.MmlMaction=void 0;var v1=Te(),r6=(function(e){t6(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"maction"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){var r=this.attributes.get("selection"),n=Math.max(1,Math.min(this.childNodes.length,r))-1;return this.childNodes[n]||this.factory.create("mrow")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmbellished",{get:function(){return this.selected.isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return this.selected.isSpacelike},enumerable:!1,configurable:!0}),t.prototype.core=function(){return this.selected.core()},t.prototype.coreMO=function(){return this.selected.coreMO()},t.prototype.verifyAttributes=function(r){if(e.prototype.verifyAttributes.call(this,r),this.attributes.get("actiontype")!=="toggle"&&this.attributes.getExplicit("selection")!==void 0){var n=this.attributes.getAllAttributes();delete n.selection}},t.prototype.setTeXclass=function(r){this.attributes.get("actiontype")==="tooltip"&&this.childNodes[1]&&this.childNodes[1].setTeXclass(null);var n=this.selected;return r=n.setTeXclass(r),this.updateTeXclass(n),r},t.prototype.nextToggleSelection=function(){var r=Math.max(1,this.attributes.get("selection")+1);r>this.childNodes.length&&(r=1),this.attributes.set("selection",r)},t.defaults=ku(ku({},v1.AbstractMmlNode.defaults),{actiontype:"toggle",selection:1}),t})(v1.AbstractMmlNode);Yi.MmlMaction=r6});var jv=ee(Ir=>{"use strict";var Pv=Ir&&Ir.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),No=Ir&&Ir.__assign||function(){return No=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},No.apply(this,arguments)};Object.defineProperty(Ir,"__esModule",{value:!0});Ir.MmlMsup=Ir.MmlMsub=Ir.MmlMsubsup=void 0;var w1=Te(),Js=(function(e){Pv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"msubsup"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 3},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sub",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sup",{get:function(){return 2},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(r,n,i,a){var o=this.childNodes;o[0].setInheritedAttributes(r,n,i,a),o[1].setInheritedAttributes(r,!1,i+1,a||this.sub===1),o[2]&&o[2].setInheritedAttributes(r,!1,i+1,a||this.sub===2)},t.defaults=No(No({},w1.AbstractMmlBaseNode.defaults),{subscriptshift:"",superscriptshift:""}),t})(w1.AbstractMmlBaseNode);Ir.MmlMsubsup=Js;var n6=(function(e){Pv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"msub"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),t.defaults=No({},Js.defaults),t})(Js);Ir.MmlMsub=n6;var i6=(function(e){Pv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"msup"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sup",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sub",{get:function(){return 2},enumerable:!1,configurable:!0}),t.defaults=No({},Js.defaults),t})(Js);Ir.MmlMsup=i6});var A1=ee(Pr=>{"use strict";var Rv=Pr&&Pr.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Io=Pr&&Pr.__assign||function(){return Io=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Io.apply(this,arguments)};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.MmlMover=Pr.MmlMunder=Pr.MmlMunderover=void 0;var E1=Te(),Qs=(function(e){Rv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"munderover"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 3},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"under",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"over",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(r,n,i,a){var o=this.childNodes;o[0].setInheritedAttributes(r,n,i,a||!!o[this.over]);var s=!!(!n&&o[0].coreMO().attributes.get("movablelimits")),l=this.constructor.ACCENTS;o[1].setInheritedAttributes(r,!1,this.getScriptlevel(l[1],s,i),a||this.under===1),this.setInheritedAccent(1,l[1],n,i,a,s),o[2]&&(o[2].setInheritedAttributes(r,!1,this.getScriptlevel(l[2],s,i),a||this.under===2),this.setInheritedAccent(2,l[2],n,i,a,s))},t.prototype.getScriptlevel=function(r,n,i){return(n||!this.attributes.get(r))&&i++,i},t.prototype.setInheritedAccent=function(r,n,i,a,o,s){var l=this.childNodes[r];if(this.attributes.getExplicit(n)==null&&l.isEmbellished){var c=l.coreMO().attributes.get("accent");this.attributes.setInherited(n,c),c!==this.attributes.getDefault(n)&&l.setInheritedAttributes({},i,this.getScriptlevel(n,s,a),o)}},t.defaults=Io(Io({},E1.AbstractMmlBaseNode.defaults),{accent:!1,accentunder:!1,align:"center"}),t.ACCENTS=["","accentunder","accent"],t})(E1.AbstractMmlBaseNode);Pr.MmlMunderover=Qs;var a6=(function(e){Rv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"munder"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),t.defaults=Io({},Qs.defaults),t})(Qs);Pr.MmlMunder=a6;var o6=(function(e){Rv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mover"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"over",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"under",{get:function(){return 2},enumerable:!1,configurable:!0}),t.defaults=Io({},Qs.defaults),t.ACCENTS=["","accent","accentunder"],t})(Qs);Pr.MmlMover=o6});var T1=ee(jr=>{"use strict";var Lv=jr&&jr.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),el=jr&&jr.__assign||function(){return el=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},el.apply(this,arguments)};Object.defineProperty(jr,"__esModule",{value:!0});jr.MmlNone=jr.MmlMprescripts=jr.MmlMmultiscripts=void 0;var Nu=Te(),O1=jv(),s6=(function(e){Lv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mmultiscripts"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(r,n,i,a){this.childNodes[0].setInheritedAttributes(r,n,i,a);for(var o=!1,s=1,l=0;s<this.childNodes.length;s++){var c=this.childNodes[s];if(c.isKind("mprescripts")){if(!o&&(o=!0,s%2===0)){var d=this.factory.create("mrow");this.childNodes.splice(s,0,d),d.parent=this,s++}}else{var f=a||l%2===0;c.setInheritedAttributes(r,!1,i+1,f),l++}}this.childNodes.length%2===(o?1:0)&&(this.appendChild(this.factory.create("mrow")),this.childNodes[this.childNodes.length-1].setInheritedAttributes(r,!1,i+1,a))},t.prototype.verifyChildren=function(r){for(var n=!1,i=r.fixMmultiscripts,a=0;a<this.childNodes.length;a++){var o=this.childNodes[a];o.isKind("mprescripts")&&(n?o.mError(o.kind+" can only appear once in "+this.kind,r,!0):(n=!0,a%2===0&&!i&&this.mError("There must be an equal number of prescripts of each type",r)))}this.childNodes.length%2===(n?1:0)&&!i&&this.mError("There must be an equal number of scripts of each type",r),e.prototype.verifyChildren.call(this,r)},t.defaults=el({},O1.MmlMsubsup.defaults),t})(O1.MmlMsubsup);jr.MmlMmultiscripts=s6;var l6=(function(e){Lv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mprescripts"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),t.prototype.verifyTree=function(r){e.prototype.verifyTree.call(this,r),this.parent&&!this.parent.isKind("mmultiscripts")&&this.mError(this.kind+" must be a child of mmultiscripts",r,!0)},t.defaults=el({},Nu.AbstractMmlNode.defaults),t})(Nu.AbstractMmlNode);jr.MmlMprescripts=l6;var c6=(function(e){Lv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),t.prototype.verifyTree=function(r){e.prototype.verifyTree.call(this,r),this.parent&&!this.parent.isKind("mmultiscripts")&&this.mError(this.kind+" must be a child of mmultiscripts",r,!0)},t.defaults=el({},Nu.AbstractMmlNode.defaults),t})(Nu.AbstractMmlNode);jr.MmlNone=c6});var S1=ee(Cn=>{"use strict";var u6=Cn&&Cn.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),ju=Cn&&Cn.__assign||function(){return ju=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ju.apply(this,arguments)},Iu=Cn&&Cn.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.MmlMtable=void 0;var Pu=Te(),d6=Es(),f6=(function(e){u6(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.properties={useHeight:!0},r.texclass=Pu.TEXCLASS.ORD,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mtable"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setInheritedAttributes=function(r,n,i,a){var o,s;try{for(var l=Iu(Pu.indentAttributes),c=l.next();!c.done;c=l.next()){var d=c.value;r[d]&&this.attributes.setInherited(d,r[d][1]),this.attributes.getExplicit(d)!==void 0&&delete this.attributes.getAllAttributes()[d]}}catch(f){o={error:f}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}e.prototype.setInheritedAttributes.call(this,r,n,i,a)},t.prototype.setChildInheritedAttributes=function(r,n,i,a){var o,s,l,c;try{for(var d=Iu(this.childNodes),f=d.next();!f.done;f=d.next()){var m=f.value;m.isKind("mtr")||this.replaceChild(this.factory.create("mtr"),m).appendChild(m)}}catch(y){o={error:y}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(o)throw o.error}}i=this.getProperty("scriptlevel")||i,n=!!(this.attributes.getExplicit("displaystyle")||this.attributes.getDefault("displaystyle")),r=this.addInheritedAttributes(r,{columnalign:this.attributes.get("columnalign"),rowalign:"center"});var p=this.attributes.getExplicit("data-cramped"),b=(0,d6.split)(this.attributes.get("rowalign"));try{for(var v=Iu(this.childNodes),A=v.next();!A.done;A=v.next()){var m=A.value;r.rowalign[1]=b.shift()||r.rowalign[1],m.setInheritedAttributes(r,n,i,!!p)}}catch(y){l={error:y}}finally{try{A&&!A.done&&(c=v.return)&&c.call(v)}finally{if(l)throw l.error}}},t.prototype.verifyChildren=function(r){for(var n=null,i=this.factory,a=0;a<this.childNodes.length;a++){var o=this.childNodes[a];if(o.isKind("mtr"))n=null;else{var s=o.isKind("mtd");if(n?(this.removeChild(o),a--):n=this.replaceChild(i.create("mtr"),o),n.appendChild(s?o:i.create("mtd",{},[o])),!r.fixMtables){o.parent.removeChild(o),o.parent=this,s&&n.appendChild(i.create("mtd"));var l=o.mError("Children of "+this.kind+" must be mtr or mlabeledtr",r,s);n.childNodes[n.childNodes.length-1].appendChild(l)}}}e.prototype.verifyChildren.call(this,r)},t.prototype.setTeXclass=function(r){var n,i;this.getPrevClass(r);try{for(var a=Iu(this.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value;s.setTeXclass(null)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return this},t.defaults=ju(ju({},Pu.AbstractMmlNode.defaults),{align:"axis",rowalign:"baseline",columnalign:"center",groupalign:"{left}",alignmentscope:!0,columnwidth:"auto",width:"auto",rowspacing:"1ex",columnspacing:".8em",rowlines:"none",columnlines:"none",frame:"none",framespacing:"0.4em 0.5ex",equalrows:!1,equalcolumns:!1,displaystyle:!1,side:"right",minlabelspacing:"0.8em"}),t})(Pu.AbstractMmlNode);Cn.MmlMtable=f6});var k1=ee(Rr=>{"use strict";var M1=Rr&&Rr.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Lu=Rr&&Rr.__assign||function(){return Lu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Lu.apply(this,arguments)},Ru=Rr&&Rr.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.MmlMlabeledtr=Rr.MmlMtr=void 0;var x1=Te(),Dv=Za(),m6=Es(),C1=(function(e){M1(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mtr"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(r,n,i,a){var o,s,l,c;try{for(var d=Ru(this.childNodes),f=d.next();!f.done;f=d.next()){var m=f.value;m.isKind("mtd")||this.replaceChild(this.factory.create("mtd"),m).appendChild(m)}}catch(A){o={error:A}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(o)throw o.error}}var p=(0,m6.split)(this.attributes.get("columnalign"));this.arity===1&&p.unshift(this.parent.attributes.get("side")),r=this.addInheritedAttributes(r,{rowalign:this.attributes.get("rowalign"),columnalign:"center"});try{for(var b=Ru(this.childNodes),v=b.next();!v.done;v=b.next()){var m=v.value;r.columnalign[1]=p.shift()||r.columnalign[1],m.setInheritedAttributes(r,n,i,a)}}catch(A){l={error:A}}finally{try{v&&!v.done&&(c=b.return)&&c.call(b)}finally{if(l)throw l.error}}},t.prototype.verifyChildren=function(r){var n,i;if(this.parent&&!this.parent.isKind("mtable")){this.mError(this.kind+" can only be a child of an mtable",r,!0);return}try{for(var a=Ru(this.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value;if(!s.isKind("mtd")){var l=this.replaceChild(this.factory.create("mtd"),s);l.appendChild(s),r.fixMtables||s.mError("Children of "+this.kind+" must be mtd",r)}}}catch(c){n={error:c}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}e.prototype.verifyChildren.call(this,r)},t.prototype.setTeXclass=function(r){var n,i;this.getPrevClass(r);try{for(var a=Ru(this.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value;s.setTeXclass(null)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return this},t.defaults=Lu(Lu({},x1.AbstractMmlNode.defaults),{rowalign:Dv.INHERIT,columnalign:Dv.INHERIT,groupalign:Dv.INHERIT}),t})(x1.AbstractMmlNode);Rr.MmlMtr=C1;var h6=(function(e){M1(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mlabeledtr"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),t})(C1);Rr.MmlMlabeledtr=h6});var I1=ee(Zi=>{"use strict";var p6=Zi&&Zi.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Du=Zi&&Zi.__assign||function(){return Du=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Du.apply(this,arguments)};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.MmlMtd=void 0;var N1=Te(),Bv=Za(),g6=(function(e){p6(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mtd"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.verifyChildren=function(r){if(this.parent&&!this.parent.isKind("mtr")){this.mError(this.kind+" can only be a child of an mtr or mlabeledtr",r,!0);return}e.prototype.verifyChildren.call(this,r)},t.prototype.setTeXclass=function(r){return this.getPrevClass(r),this.childNodes[0].setTeXclass(null),this},t.defaults=Du(Du({},N1.AbstractMmlBaseNode.defaults),{rowspan:1,columnspan:1,rowalign:Bv.INHERIT,columnalign:Bv.INHERIT,groupalign:Bv.INHERIT}),t})(N1.AbstractMmlBaseNode);Zi.MmlMtd=g6});var j1=ee(Ji=>{"use strict";var y6=Ji&&Ji.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Bu=Ji&&Ji.__assign||function(){return Bu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Bu.apply(this,arguments)};Object.defineProperty(Ji,"__esModule",{value:!0});Ji.MmlMaligngroup=void 0;var P1=Te(),_6=Za(),v6=(function(e){y6(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"maligngroup"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(r,n,i,a){r=this.addInheritedAttributes(r,this.attributes.getAllAttributes()),e.prototype.setChildInheritedAttributes.call(this,r,n,i,a)},t.defaults=Bu(Bu({},P1.AbstractMmlLayoutNode.defaults),{groupalign:_6.INHERIT}),t})(P1.AbstractMmlLayoutNode);Ji.MmlMaligngroup=v6});var L1=ee(Qi=>{"use strict";var b6=Qi&&Qi.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Fu=Qi&&Qi.__assign||function(){return Fu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Fu.apply(this,arguments)};Object.defineProperty(Qi,"__esModule",{value:!0});Qi.MmlMalignmark=void 0;var R1=Te(),w6=(function(e){b6(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"malignmark"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),t.defaults=Fu(Fu({},R1.AbstractMmlNode.defaults),{edge:"left"}),t})(R1.AbstractMmlNode);Qi.MmlMalignmark=w6});var D1=ee(ea=>{"use strict";var E6=ea&&ea.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),qu=ea&&ea.__assign||function(){return qu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},qu.apply(this,arguments)};Object.defineProperty(ea,"__esModule",{value:!0});ea.MmlMglyph=void 0;var Fv=Te(),A6=(function(e){E6(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=Fv.TEXCLASS.ORD,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mglyph"},enumerable:!1,configurable:!0}),t.prototype.verifyAttributes=function(r){var n=this.attributes.getList("src","fontfamily","index"),i=n.src,a=n.fontfamily,o=n.index;i===""&&(a===""||o==="")?this.mError("mglyph must have either src or fontfamily and index attributes",r,!0):e.prototype.verifyAttributes.call(this,r)},t.defaults=qu(qu({},Fv.AbstractMmlTokenNode.defaults),{alt:"",src:"",index:"",width:"auto",height:"auto",valign:"0em"}),t})(Fv.AbstractMmlTokenNode);ea.MmlMglyph=A6});var B1=ee(Lr=>{"use strict";var Uv=Lr&&Lr.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ca=Lr&&Lr.__assign||function(){return Ca=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ca.apply(this,arguments)};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.MmlAnnotation=Lr.MmlAnnotationXML=Lr.MmlSemantics=void 0;var Uu=Te(),O6=(function(e){Uv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"semantics"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),t.defaults=Ca(Ca({},Uu.AbstractMmlBaseNode.defaults),{definitionUrl:null,encoding:null}),t})(Uu.AbstractMmlBaseNode);Lr.MmlSemantics=O6;var qv=(function(e){Uv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"annotation-xml"},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(){},t.defaults=Ca(Ca({},Uu.AbstractMmlNode.defaults),{definitionUrl:null,encoding:null,cd:"mathmlkeys",name:"",src:null}),t})(Uu.AbstractMmlNode);Lr.MmlAnnotationXML=qv;var T6=(function(e){Uv(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.properties={isChars:!0},r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),t.defaults=Ca({},qv.defaults),t})(qv);Lr.MmlAnnotation=T6});var q1=ee(ta=>{"use strict";var S6=ta&&ta.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),zv=ta&&ta.__assign||function(){return zv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},zv.apply(this,arguments)};Object.defineProperty(ta,"__esModule",{value:!0});ta.TeXAtom=void 0;var Hv=Te(),x6=uc(),F1=(function(e){S6(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.texclass=Hv.TEXCLASS.ORD,a.setProperty("texClass",a.texClass),a}return Object.defineProperty(t.prototype,"kind",{get:function(){return"TeXAtom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return this.childNodes[0]&&this.childNodes[0].childNodes.length===1},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(r){return this.childNodes[0].setTeXclass(null),this.adjustTeXclass(r)},t.prototype.adjustTeXclass=function(r){return r},t.defaults=zv({},Hv.AbstractMmlBaseNode.defaults),t})(Hv.AbstractMmlBaseNode);ta.TeXAtom=F1;F1.prototype.adjustTeXclass=x6.MmlMo.prototype.adjustTeXclass});var H1=ee(ra=>{"use strict";var M6=ra&&ra.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Gv=ra&&ra.__assign||function(){return Gv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Gv.apply(this,arguments)};Object.defineProperty(ra,"__esModule",{value:!0});ra.MathChoice=void 0;var U1=Te(),C6=(function(e){M6(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"MathChoice"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 4},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setInheritedAttributes=function(r,n,i,a){var o=n?0:Math.max(0,Math.min(i,2))+1,s=this.childNodes[o]||this.factory.create("mrow");this.parent.replaceChild(s,this),s.setInheritedAttributes(r,n,i,a)},t.defaults=Gv({},U1.AbstractMmlBaseNode.defaults),t})(U1.AbstractMmlBaseNode);ra.MathChoice=C6});var mx=ee(Wu=>{"use strict";var Ne;Object.defineProperty(Wu,"__esModule",{value:!0});Wu.MML=void 0;var Hu=Te(),z1=QS(),G1=hv(),W1=e1(),K1=uc(),X1=t1(),$1=r1(),V1=n1(),zu=a1(),Y1=s1(),Z1=l1(),J1=c1(),Q1=d1(),ex=f1(),tx=h1(),rx=p1(),nx=y1(),ix=_1(),ax=b1(),Po=jv(),jo=A1(),Ro=T1(),ox=S1(),Gu=k1(),sx=I1(),lx=j1(),cx=L1(),ux=D1(),Lo=B1(),dx=q1(),fx=H1();Wu.MML=(Ne={},Ne[z1.MmlMath.prototype.kind]=z1.MmlMath,Ne[G1.MmlMi.prototype.kind]=G1.MmlMi,Ne[W1.MmlMn.prototype.kind]=W1.MmlMn,Ne[K1.MmlMo.prototype.kind]=K1.MmlMo,Ne[X1.MmlMtext.prototype.kind]=X1.MmlMtext,Ne[$1.MmlMspace.prototype.kind]=$1.MmlMspace,Ne[V1.MmlMs.prototype.kind]=V1.MmlMs,Ne[zu.MmlMrow.prototype.kind]=zu.MmlMrow,Ne[zu.MmlInferredMrow.prototype.kind]=zu.MmlInferredMrow,Ne[Y1.MmlMfrac.prototype.kind]=Y1.MmlMfrac,Ne[Z1.MmlMsqrt.prototype.kind]=Z1.MmlMsqrt,Ne[J1.MmlMroot.prototype.kind]=J1.MmlMroot,Ne[Q1.MmlMstyle.prototype.kind]=Q1.MmlMstyle,Ne[ex.MmlMerror.prototype.kind]=ex.MmlMerror,Ne[tx.MmlMpadded.prototype.kind]=tx.MmlMpadded,Ne[rx.MmlMphantom.prototype.kind]=rx.MmlMphantom,Ne[nx.MmlMfenced.prototype.kind]=nx.MmlMfenced,Ne[ix.MmlMenclose.prototype.kind]=ix.MmlMenclose,Ne[ax.MmlMaction.prototype.kind]=ax.MmlMaction,Ne[Po.MmlMsub.prototype.kind]=Po.MmlMsub,Ne[Po.MmlMsup.prototype.kind]=Po.MmlMsup,Ne[Po.MmlMsubsup.prototype.kind]=Po.MmlMsubsup,Ne[jo.MmlMunder.prototype.kind]=jo.MmlMunder,Ne[jo.MmlMover.prototype.kind]=jo.MmlMover,Ne[jo.MmlMunderover.prototype.kind]=jo.MmlMunderover,Ne[Ro.MmlMmultiscripts.prototype.kind]=Ro.MmlMmultiscripts,Ne[Ro.MmlMprescripts.prototype.kind]=Ro.MmlMprescripts,Ne[Ro.MmlNone.prototype.kind]=Ro.MmlNone,Ne[ox.MmlMtable.prototype.kind]=ox.MmlMtable,Ne[Gu.MmlMlabeledtr.prototype.kind]=Gu.MmlMlabeledtr,Ne[Gu.MmlMtr.prototype.kind]=Gu.MmlMtr,Ne[sx.MmlMtd.prototype.kind]=sx.MmlMtd,Ne[lx.MmlMaligngroup.prototype.kind]=lx.MmlMaligngroup,Ne[cx.MmlMalignmark.prototype.kind]=cx.MmlMalignmark,Ne[ux.MmlMglyph.prototype.kind]=ux.MmlMglyph,Ne[Lo.MmlSemantics.prototype.kind]=Lo.MmlSemantics,Ne[Lo.MmlAnnotation.prototype.kind]=Lo.MmlAnnotation,Ne[Lo.MmlAnnotationXML.prototype.kind]=Lo.MmlAnnotationXML,Ne[dx.TeXAtom.prototype.kind]=dx.TeXAtom,Ne[fx.MathChoice.prototype.kind]=fx.MathChoice,Ne[Hu.TextNode.prototype.kind]=Hu.TextNode,Ne[Hu.XMLNode.prototype.kind]=Hu.XMLNode,Ne)});var Wv=ee(Do=>{"use strict";var k6=Do&&Do.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Do,"__esModule",{value:!0});Do.MmlFactory=void 0;var N6=ZS(),I6=mx(),P6=(function(e){k6(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"MML",{get:function(){return this.node},enumerable:!1,configurable:!0}),t.defaultNodes=I6.MML,t})(N6.AbstractNodeFactory);Do.MmlFactory=P6});var px=ee(or=>{"use strict";var j6=or&&or.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),R6=or&&or.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},L6=or&&or.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},D6=or&&or.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(or,"__esModule",{value:!0});or.BitFieldClass=or.BitField=void 0;var hx=(function(){function e(){this.bits=0}return e.allocate=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];try{for(var a=R6(n),o=a.next();!o.done;o=a.next()){var s=o.value;if(this.has(s))throw new Error("Bit already allocated for "+s);if(this.next===e.MAXBIT)throw new Error("Maximum number of bits already allocated");this.names.set(s,this.next),this.next<<=1}}catch(l){t={error:l}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}},e.has=function(t){return this.names.has(t)},e.prototype.set=function(t){this.bits|=this.getBit(t)},e.prototype.clear=function(t){this.bits&=~this.getBit(t)},e.prototype.isSet=function(t){return!!(this.bits&this.getBit(t))},e.prototype.reset=function(){this.bits=0},e.prototype.getBit=function(t){var r=this.constructor.names.get(t);if(!r)throw new Error("Unknown bit-field name: "+t);return r},e.MAXBIT=1<<31,e.next=1,e.names=new Map,e})();or.BitField=hx;function B6(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(function(n){j6(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i})(hx);return r.allocate.apply(r,D6([],L6(e),!1)),r}or.BitFieldClass=B6});var $v=ee(wt=>{"use strict";var rl=wt&&wt.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Dr=wt&&wt.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},kn=wt&&wt.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},Kv=wt&&wt.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(wt,"__esModule",{value:!0});wt.AbstractMathDocument=wt.resetAllOptions=wt.resetOptions=wt.RenderList=void 0;var tl=It(),F6=iy(),q6=$S(),U6=fv(),sr=Ya(),H6=Wv(),z6=px(),G6=Xa(),Xv=(function(e){rl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.create=function(r){var n,i,a=new this;try{for(var o=Dr(Object.keys(r)),s=o.next();!s.done;s=o.next()){var l=s.value,c=kn(this.action(l,r[l]),2),d=c[0],f=c[1];f&&a.add(d,f)}}catch(m){n={error:m}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a},t.action=function(r,n){var i,a,o,s,l,c,d=!0,f=n[0];if(n.length===1||typeof n[1]=="boolean")n.length===2&&(d=n[1]),i=kn(this.methodActions(r),2),l=i[0],c=i[1];else if(typeof n[1]=="string")if(typeof n[2]=="string"){n.length===4&&(d=n[3]);var m=kn(n.slice(1),2),p=m[0],b=m[1];a=kn(this.methodActions(p,b),2),l=a[0],c=a[1]}else n.length===3&&(d=n[2]),o=kn(this.methodActions(n[1]),2),l=o[0],c=o[1];else n.length===4&&(d=n[3]),s=kn(n.slice(1),2),l=s[0],c=s[1];return[{id:r,renderDoc:l,renderMath:c,convert:d},f]},t.methodActions=function(r,n){return n===void 0&&(n=r),[function(i){return r&&i[r](),!1},function(i,a){return n&&i[n](a),!1}]},t.prototype.renderDoc=function(r,n){var i,a;n===void 0&&(n=sr.STATE.UNPROCESSED);try{for(var o=Dr(this.items),s=o.next();!s.done;s=o.next()){var l=s.value;if(l.priority>=n&&l.item.renderDoc(r))return}}catch(c){i={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}},t.prototype.renderMath=function(r,n,i){var a,o;i===void 0&&(i=sr.STATE.UNPROCESSED);try{for(var s=Dr(this.items),l=s.next();!l.done;l=s.next()){var c=l.value;if(c.priority>=i&&c.item.renderMath(r,n))return}}catch(d){a={error:d}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}},t.prototype.renderConvert=function(r,n,i){var a,o;i===void 0&&(i=sr.STATE.LAST);try{for(var s=Dr(this.items),l=s.next();!l.done;l=s.next()){var c=l.value;if(c.priority>i||c.item.convert&&c.item.renderMath(r,n))return}}catch(d){a={error:d}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}},t.prototype.findID=function(r){var n,i;try{for(var a=Dr(this.items),o=a.next();!o.done;o=a.next()){var s=o.value;if(s.item.id===r)return s.item}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return null},t})(G6.PrioritizedList);wt.RenderList=Xv;wt.resetOptions={all:!1,processed:!1,inputJax:null,outputJax:null};wt.resetAllOptions={all:!0,processed:!0,inputJax:[],outputJax:[]};var W6=(function(e){rl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.compile=function(r){return null},t})(F6.AbstractInputJax),K6=(function(e){rl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.typeset=function(r,n){return n===void 0&&(n=null),null},t.prototype.escaped=function(r,n){return null},t})(q6.AbstractOutputJax),gx=(function(e){rl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(U6.AbstractMathList),X6=(function(e){rl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(sr.AbstractMathItem),$6=(function(){function e(t,r,n){var i=this,a=this.constructor;this.document=t,this.options=(0,tl.userOptions)((0,tl.defaultOptions)({},a.OPTIONS),n),this.math=new(this.options.MathList||gx),this.renderActions=Xv.create(this.options.renderActions),this.processed=new e.ProcessBits,this.outputJax=this.options.OutputJax||new K6;var o=this.options.InputJax||[new W6];Array.isArray(o)||(o=[o]),this.inputJax=o,this.adaptor=r,this.outputJax.setAdaptor(r),this.inputJax.map(function(s){return s.setAdaptor(r)}),this.mmlFactory=this.options.MmlFactory||new H6.MmlFactory,this.inputJax.map(function(s){return s.setMmlFactory(i.mmlFactory)}),this.outputJax.initialize(),this.inputJax.map(function(s){return s.initialize()})}return Object.defineProperty(e.prototype,"kind",{get:function(){return this.constructor.KIND},enumerable:!1,configurable:!0}),e.prototype.addRenderAction=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=kn(Xv.action(t,r),2),a=i[0],o=i[1];this.renderActions.add(a,o)},e.prototype.removeRenderAction=function(t){var r=this.renderActions.findID(t);r&&this.renderActions.remove(r)},e.prototype.render=function(){return this.renderActions.renderDoc(this),this},e.prototype.rerender=function(t){return t===void 0&&(t=sr.STATE.RERENDER),this.state(t-1),this.render(),this},e.prototype.convert=function(t,r){r===void 0&&(r={});var n=(0,tl.userOptions)({format:this.inputJax[0].name,display:!0,end:sr.STATE.LAST,em:16,ex:8,containerWidth:null,lineWidth:1e6,scale:1,family:""},r),i=n.format,a=n.display,o=n.end,s=n.ex,l=n.em,c=n.containerWidth,d=n.lineWidth,f=n.scale,m=n.family;c===null&&(c=80*s);var p=this.inputJax.reduce(function(v,A){return A.name===i?A:v},null),b=new this.options.MathItem(t,p,a);return b.start.node=this.adaptor.body(this.document),b.setMetrics(l,s,c,d,f),this.outputJax.options.mtextInheritFont&&(b.outputData.mtextFamily=m),this.outputJax.options.merrorInheritFont&&(b.outputData.merrorFamily=m),b.convert(this,o),b.typesetRoot||b.root},e.prototype.findMath=function(t){return t===void 0&&(t=null),this.processed.set("findMath"),this},e.prototype.compile=function(){var t,r,n,i;if(!this.processed.isSet("compile")){var a=[];try{for(var o=Dr(this.math),s=o.next();!s.done;s=o.next()){var l=s.value;this.compileMath(l),l.inputData.recompile!==void 0&&a.push(l)}}catch(m){t={error:m}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}try{for(var c=Dr(a),d=c.next();!d.done;d=c.next()){var l=d.value,f=l.inputData.recompile;l.state(f.state),l.inputData.recompile=f,this.compileMath(l)}}catch(m){n={error:m}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}this.processed.set("compile")}return this},e.prototype.compileMath=function(t){try{t.compile(this)}catch(r){if(r.retry||r.restart)throw r;this.options.compileError(this,t,r),t.inputData.error=r}},e.prototype.compileError=function(t,r){t.root=this.mmlFactory.create("math",null,[this.mmlFactory.create("merror",{"data-mjx-error":r.message,title:r.message},[this.mmlFactory.create("mtext",null,[this.mmlFactory.create("text").setText("Math input error")])])]),t.display&&t.root.attributes.set("display","block"),t.inputData.error=r.message},e.prototype.typeset=function(){var t,r;if(!this.processed.isSet("typeset")){try{for(var n=Dr(this.math),i=n.next();!i.done;i=n.next()){var a=i.value;try{a.typeset(this)}catch(o){if(o.retry||o.restart)throw o;this.options.typesetError(this,a,o),a.outputData.error=o}}}catch(o){t={error:o}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}this.processed.set("typeset")}return this},e.prototype.typesetError=function(t,r){t.typesetRoot=this.adaptor.node("mjx-container",{class:"MathJax mjx-output-error",jax:this.outputJax.name},[this.adaptor.node("span",{"data-mjx-error":r.message,title:r.message,style:{color:"red","background-color":"yellow","line-height":"normal"}},[this.adaptor.text("Math output error")])]),t.display&&this.adaptor.setAttributes(t.typesetRoot,{style:{display:"block",margin:"1em 0","text-align":"center"}}),t.outputData.error=r.message},e.prototype.getMetrics=function(){return this.processed.isSet("getMetrics")||(this.outputJax.getMetrics(this),this.processed.set("getMetrics")),this},e.prototype.updateDocument=function(){var t,r;if(!this.processed.isSet("updateDocument")){try{for(var n=Dr(this.math.reversed()),i=n.next();!i.done;i=n.next()){var a=i.value;a.updateDocument(this)}}catch(o){t={error:o}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}this.processed.set("updateDocument")}return this},e.prototype.removeFromDocument=function(t){return t===void 0&&(t=!1),this},e.prototype.state=function(t,r){var n,i;r===void 0&&(r=!1);try{for(var a=Dr(this.math),o=a.next();!o.done;o=a.next()){var s=o.value;s.state(t,r)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return t<sr.STATE.INSERTED&&this.processed.clear("updateDocument"),t<sr.STATE.TYPESET&&(this.processed.clear("typeset"),this.processed.clear("getMetrics")),t<sr.STATE.COMPILED&&this.processed.clear("compile"),this},e.prototype.reset=function(t){var r;return t===void 0&&(t={processed:!0}),t=(0,tl.userOptions)(Object.assign({},wt.resetOptions),t),t.all&&Object.assign(t,wt.resetAllOptions),t.processed&&this.processed.reset(),t.inputJax&&this.inputJax.forEach(function(n){return n.reset.apply(n,Kv([],kn(t.inputJax),!1))}),t.outputJax&&(r=this.outputJax).reset.apply(r,Kv([],kn(t.outputJax),!1)),this},e.prototype.clear=function(){return this.reset(),this.math.clear(),this},e.prototype.concat=function(t){return this.math.merge(t),this},e.prototype.clearMathItemsWithin=function(t){var r,n=this.getMathItemsWithin(t);return(r=this.math).remove.apply(r,Kv([],kn(n),!1)),n},e.prototype.getMathItemsWithin=function(t){var r,n,i,a;Array.isArray(t)||(t=[t]);var o=this.adaptor,s=[],l=o.getElements(t,this.document);try{e:for(var c=Dr(this.math),d=c.next();!d.done;d=c.next()){var f=d.value;try{for(var m=(i=void 0,Dr(l)),p=m.next();!p.done;p=m.next()){var b=p.value;if(f.start.node&&o.contains(b,f.start.node)){s.push(f);continue e}}}catch(v){i={error:v}}finally{try{p&&!p.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}}}catch(v){r={error:v}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return s},e.KIND="MathDocument",e.OPTIONS={OutputJax:null,InputJax:null,MmlFactory:null,MathList:gx,MathItem:X6,compileError:function(t,r,n){t.compileError(r,n)},typesetError:function(t,r,n){t.typesetError(r,n)},renderActions:(0,tl.expandable)({find:[sr.STATE.FINDMATH,"findMath","",!1],compile:[sr.STATE.COMPILED],metrics:[sr.STATE.METRICS,"getMetrics","",!1],typeset:[sr.STATE.TYPESET],update:[sr.STATE.INSERTED,"updateDocument",!1]})},e.ProcessBits=(0,z6.BitFieldClass)("findMath","compile","getMetrics","typeset","updateDocument"),e})();wt.AbstractMathDocument=$6});var yx=ee(Bo=>{"use strict";var V6=Bo&&Bo.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Bo,"__esModule",{value:!0});Bo.AbstractHandler=void 0;var Y6=$v(),Z6=(function(e){V6(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Y6.AbstractMathDocument),J6=(function(){function e(t,r){r===void 0&&(r=5),this.documentClass=Z6,this.adaptor=t,this.priority=r}return Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),e.prototype.handlesDocument=function(t){return!1},e.prototype.create=function(t,r){return new this.documentClass(t,this.adaptor,r)},e.NAME="generic",e})();Bo.AbstractHandler=J6});var _x=ee(Fo=>{"use strict";var Q6=Fo&&Fo.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Fo,"__esModule",{value:!0});Fo.HTMLMathItem=void 0;var Ku=Ya(),e4=(function(e){Q6(t,e);function t(r,n,i,a,o){return i===void 0&&(i=!0),a===void 0&&(a={node:null,n:0,delim:""}),o===void 0&&(o={node:null,n:0,delim:""}),e.call(this,r,n,i,a,o)||this}return Object.defineProperty(t.prototype,"adaptor",{get:function(){return this.inputJax.adaptor},enumerable:!1,configurable:!0}),t.prototype.updateDocument=function(r){if(this.state()<Ku.STATE.INSERTED){if(this.inputJax.processStrings){var n=this.start.node;if(n===this.end.node)this.end.n&&this.end.n<this.adaptor.value(this.end.node).length&&this.adaptor.split(this.end.node,this.end.n),this.start.n&&(n=this.adaptor.split(this.start.node,this.start.n)),this.adaptor.replace(this.typesetRoot,n);else{for(this.start.n&&(n=this.adaptor.split(n,this.start.n));n!==this.end.node;){var i=this.adaptor.next(n);this.adaptor.remove(n),n=i}this.adaptor.insert(this.typesetRoot,n),this.end.n<this.adaptor.value(n).length&&this.adaptor.split(n,this.end.n),this.adaptor.remove(n)}}else this.adaptor.replace(this.typesetRoot,this.start.node);this.start.node=this.end.node=this.typesetRoot,this.start.n=this.end.n=0,this.state(Ku.STATE.INSERTED)}},t.prototype.updateStyleSheet=function(r){r.addStyleSheet()},t.prototype.removeFromDocument=function(r){if(r===void 0&&(r=!1),this.state()>=Ku.STATE.TYPESET){var n=this.adaptor,i=this.start.node,a=n.text("");if(r){var o=this.start.delim+this.math+this.end.delim;if(this.inputJax.processStrings)a=n.text(o);else{var s=n.parse(o,"text/html");a=n.firstChild(n.body(s))}}n.parent(i)&&n.replace(a,i),this.start.node=this.end.node=a,this.start.n=this.end.n=0}},t})(Ku.AbstractMathItem);Fo.HTMLMathItem=e4});var vx=ee(qo=>{"use strict";var t4=qo&&qo.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(qo,"__esModule",{value:!0});qo.HTMLMathList=void 0;var r4=fv(),n4=(function(e){t4(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(r4.AbstractMathList);qo.HTMLMathList=n4});var wx=ee(Uo=>{"use strict";var bx=Uo&&Uo.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.HTMLDomStrings=void 0;var nl=It(),i4=(function(){function e(t){t===void 0&&(t=null);var r=this.constructor;this.options=(0,nl.userOptions)((0,nl.defaultOptions)({},r.OPTIONS),t),this.init(),this.getPatterns()}return e.prototype.init=function(){this.strings=[],this.string="",this.snodes=[],this.nodes=[],this.stack=[]},e.prototype.getPatterns=function(){var t=(0,nl.makeArray)(this.options.skipHtmlTags),r=(0,nl.makeArray)(this.options.ignoreHtmlClass),n=(0,nl.makeArray)(this.options.processHtmlClass);this.skipHtmlTags=new RegExp("^(?:"+t.join("|")+")$","i"),this.ignoreHtmlClass=new RegExp("(?:^| )(?:"+r.join("|")+")(?: |$)"),this.processHtmlClass=new RegExp("(?:^| )(?:"+n+")(?: |$)")},e.prototype.pushString=function(){this.string.match(/\S/)&&(this.strings.push(this.string),this.nodes.push(this.snodes)),this.string="",this.snodes=[]},e.prototype.extendString=function(t,r){this.snodes.push([t,r.length]),this.string+=r},e.prototype.handleText=function(t,r){return r||this.extendString(t,this.adaptor.value(t)),this.adaptor.next(t)},e.prototype.handleTag=function(t,r){if(!r){var n=this.options.includeHtmlTags[this.adaptor.kind(t)];this.extendString(t,n)}return this.adaptor.next(t)},e.prototype.handleContainer=function(t,r){this.pushString();var n=this.adaptor.getAttribute(t,"class")||"",i=this.adaptor.kind(t)||"",a=this.processHtmlClass.exec(n),o=t;return this.adaptor.firstChild(t)&&!this.adaptor.getAttribute(t,"data-MJX")&&(a||!this.skipHtmlTags.exec(i))?(this.adaptor.next(t)&&this.stack.push([this.adaptor.next(t),r]),o=this.adaptor.firstChild(t),r=(r||this.ignoreHtmlClass.exec(n))&&!a):o=this.adaptor.next(t),[o,r]},e.prototype.handleOther=function(t,r){return this.pushString(),this.adaptor.next(t)},e.prototype.find=function(t){var r,n;this.init();for(var i=this.adaptor.next(t),a=!1,o=this.options.includeHtmlTags;t&&t!==i;){var s=this.adaptor.kind(t);s==="#text"?t=this.handleText(t,a):o.hasOwnProperty(s)?t=this.handleTag(t,a):s?(r=bx(this.handleContainer(t,a),2),t=r[0],a=r[1]):t=this.handleOther(t,a),!t&&this.stack.length&&(this.pushString(),n=bx(this.stack.pop(),2),t=n[0],a=n[1])}this.pushString();var l=[this.strings,this.nodes];return this.init(),l},e.OPTIONS={skipHtmlTags:["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],includeHtmlTags:{br:`
|
|
12
|
+
`,wbr:"","#comment":""},ignoreHtmlClass:"mathjax_ignore",processHtmlClass:"mathjax_process"},e})();Uo.HTMLDomStrings=i4});var Ax=ee(Br=>{"use strict";var a4=Br&&Br.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ho=Br&&Br.__assign||function(){return Ho=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ho.apply(this,arguments)},Xu=Br&&Br.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},ka=Br&&Br.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Br,"__esModule",{value:!0});Br.HTMLDocument=void 0;var Vv=$v(),Yv=It(),o4=_x(),s4=vx(),Ex=wx(),Zv=Ya(),l4=(function(e){a4(t,e);function t(r,n,i){var a=this,o=Xu((0,Yv.separateOptions)(i,Ex.HTMLDomStrings.OPTIONS),2),s=o[0],l=o[1];return a=e.call(this,r,n,s)||this,a.domStrings=a.options.DomStrings||new Ex.HTMLDomStrings(l),a.domStrings.adaptor=n,a.styles=[],a}return t.prototype.findPosition=function(r,n,i,a){var o,s,l=this.adaptor;try{for(var c=ka(a[r]),d=c.next();!d.done;d=c.next()){var f=d.value,m=Xu(f,2),p=m[0],b=m[1];if(n<=b&&l.kind(p)==="#text")return{node:p,n:Math.max(n,0),delim:i};n-=b}}catch(v){o={error:v}}finally{try{d&&!d.done&&(s=c.return)&&s.call(c)}finally{if(o)throw o.error}}return{node:null,n:0,delim:i}},t.prototype.mathItem=function(r,n,i){var a=r.math,o=this.findPosition(r.n,r.start.n,r.open,i),s=this.findPosition(r.n,r.end.n,r.close,i);return new this.options.MathItem(a,n,r.display,o,s)},t.prototype.findMath=function(r){var n,i,a,o,s,l,c,d,f;if(!this.processed.isSet("findMath")){this.adaptor.document=this.document,r=(0,Yv.userOptions)({elements:this.options.elements||[this.adaptor.body(this.document)]},r);try{for(var m=ka(this.adaptor.getElements(r.elements,this.document)),p=m.next();!p.done;p=m.next()){var b=p.value,v=Xu([null,null],2),A=v[0],y=v[1];try{for(var T=(a=void 0,ka(this.inputJax)),E=T.next();!E.done;E=T.next()){var w=E.value,x=new this.options.MathList;if(w.processStrings){A===null&&(s=Xu(this.domStrings.find(b),2),A=s[0],y=s[1]);try{for(var D=(l=void 0,ka(w.findMath(A))),B=D.next();!B.done;B=D.next()){var P=B.value;x.push(this.mathItem(P,w,y))}}catch(R){l={error:R}}finally{try{B&&!B.done&&(c=D.return)&&c.call(D)}finally{if(l)throw l.error}}}else try{for(var I=(d=void 0,ka(w.findMath(b))),Z=I.next();!Z.done;Z=I.next()){var P=Z.value,oe=new this.options.MathItem(P.math,w,P.display,P.start,P.end);x.push(oe)}}catch(R){d={error:R}}finally{try{Z&&!Z.done&&(f=I.return)&&f.call(I)}finally{if(d)throw d.error}}this.math.merge(x)}}catch(R){a={error:R}}finally{try{E&&!E.done&&(o=T.return)&&o.call(T)}finally{if(a)throw a.error}}}}catch(R){n={error:R}}finally{try{p&&!p.done&&(i=m.return)&&i.call(m)}finally{if(n)throw n.error}}this.processed.set("findMath")}return this},t.prototype.updateDocument=function(){return this.processed.isSet("updateDocument")||(this.addPageElements(),this.addStyleSheet(),e.prototype.updateDocument.call(this),this.processed.set("updateDocument")),this},t.prototype.addPageElements=function(){var r=this.adaptor.body(this.document),n=this.documentPageElements();n&&this.adaptor.append(r,n)},t.prototype.addStyleSheet=function(){var r=this.documentStyleSheet(),n=this.adaptor;if(r&&!n.parent(r)){var i=n.head(this.document),a=this.findSheet(i,n.getAttribute(r,"id"));a?n.replace(r,a):n.append(i,r)}},t.prototype.findSheet=function(r,n){var i,a;if(n)try{for(var o=ka(this.adaptor.tags(r,"style")),s=o.next();!s.done;s=o.next()){var l=s.value;if(this.adaptor.getAttribute(l,"id")===n)return l}}catch(c){i={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return null},t.prototype.removeFromDocument=function(r){var n,i;if(r===void 0&&(r=!1),this.processed.isSet("updateDocument"))try{for(var a=ka(this.math),o=a.next();!o.done;o=a.next()){var s=o.value;s.state()>=Zv.STATE.INSERTED&&s.state(Zv.STATE.TYPESET,r)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return this.processed.clear("updateDocument"),this},t.prototype.documentStyleSheet=function(){return this.outputJax.styleSheet(this)},t.prototype.documentPageElements=function(){return this.outputJax.pageElements(this)},t.prototype.addStyles=function(r){this.styles.push(r)},t.prototype.getStyles=function(){return this.styles},t.KIND="HTML",t.OPTIONS=Ho(Ho({},Vv.AbstractMathDocument.OPTIONS),{renderActions:(0,Yv.expandable)(Ho(Ho({},Vv.AbstractMathDocument.OPTIONS.renderActions),{styles:[Zv.STATE.INSERTED+1,"","updateStyleSheet",!1]})),MathList:s4.HTMLMathList,MathItem:o4.HTMLMathItem,DomStrings:null}),t})(Vv.AbstractMathDocument);Br.HTMLDocument=l4});var Ox=ee(zo=>{"use strict";var c4=zo&&zo.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(zo,"__esModule",{value:!0});zo.HTMLHandler=void 0;var u4=yx(),d4=Ax(),f4=(function(e){c4(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.documentClass=d4.HTMLDocument,r}return t.prototype.handlesDocument=function(r){var n=this.adaptor;if(typeof r=="string")try{r=n.parse(r,"text/html")}catch{}return r instanceof n.window.Document||r instanceof n.window.HTMLElement||r instanceof n.window.DocumentFragment},t.prototype.create=function(r,n){var i=this.adaptor;if(typeof r=="string")r=i.parse(r,"text/html");else if(r instanceof i.window.HTMLElement||r instanceof i.window.DocumentFragment){var a=r;r=i.parse("","text/html"),i.append(i.body(r),a)}return e.prototype.create.call(this,r,n)},t})(u4.AbstractHandler);zo.HTMLHandler=f4});var Tx=ee($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.RegisterHTMLHandler=void 0;var m4=nc(),h4=Ox();function p4(e){var t=new h4.HTMLHandler(e);return m4.mathjax.handlers.register(t),t}$u.RegisterHTMLHandler=p4});var xx=ee(Nn=>{"use strict";var Sx=Nn&&Nn.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Jv=Nn&&Nn.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},Qv=Nn&&Nn.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(Nn,"__esModule",{value:!0});Nn.AbstractVisitor=void 0;var g4=sy(),y4=(function(){function e(t){var r,n;this.nodeHandlers=new Map;try{for(var i=Sx(t.getKinds()),a=i.next();!a.done;a=i.next()){var o=a.value,s=this[e.methodName(o)];s&&this.nodeHandlers.set(o,s)}}catch(l){r={error:l}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}return e.methodName=function(t){return"visit"+(t.charAt(0).toUpperCase()+t.substr(1)).replace(/[^a-z0-9_]/ig,"_")+"Node"},e.prototype.visitTree=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return this.visitNode.apply(this,Qv([t],Jv(r),!1))},e.prototype.visitNode=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=this.nodeHandlers.get(t.kind)||this.visitDefault;return i.call.apply(i,Qv([this,t],Jv(r),!1))},e.prototype.visitDefault=function(t){for(var r,n,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];if(t instanceof g4.AbstractNode)try{for(var o=Sx(t.childNodes),s=o.next();!s.done;s=o.next()){var l=s.value;this.visitNode.apply(this,Qv([l],Jv(i),!1))}}catch(c){r={error:c}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},e.prototype.setNodeHandler=function(t,r){this.nodeHandlers.set(t,r)},e.prototype.removeNodeHandler=function(t){this.nodeHandlers.delete(t)},e})();Nn.AbstractVisitor=y4});var Mx=ee(Go=>{"use strict";var _4=Go&&Go.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Go,"__esModule",{value:!0});Go.MmlVisitor=void 0;var v4=Wv(),b4=xx(),w4=(function(e){_4(t,e);function t(r){return r===void 0&&(r=null),r||(r=new v4.MmlFactory),e.call(this,r)||this}return t.prototype.visitTextNode=function(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i]},t.prototype.visitXMLNode=function(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i]},t})(b4.AbstractVisitor);Go.MmlVisitor=w4});var kx=ee(Bt=>{"use strict";var E4=Bt&&Bt.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),eb=Bt&&Bt.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},A4=Bt&&Bt.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.SerializedMmlVisitor=Bt.toEntity=Bt.DATAMJX=void 0;var O4=Mx(),Cx=Te(),T4=hv();Bt.DATAMJX="data-mjx-";var S4=function(e){return"&#x"+e.codePointAt(0).toString(16).toUpperCase()+";"};Bt.toEntity=S4;var x4=(function(e){E4(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.visitTree=function(r){return this.visitNode(r,"")},t.prototype.visitTextNode=function(r,n){return this.quoteHTML(r.getText())},t.prototype.visitXMLNode=function(r,n){return n+r.getSerializedXML()},t.prototype.visitInferredMrowNode=function(r,n){var i,a,o=[];try{for(var s=eb(r.childNodes),l=s.next();!l.done;l=s.next()){var c=l.value;o.push(this.visitNode(c,n))}}catch(d){i={error:d}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o.join(`
|
|
13
|
+
`)},t.prototype.visitTeXAtomNode=function(r,n){var i=this.childNodeMml(r,n+" ",`
|
|
14
|
+
`),a=n+"<mrow"+this.getAttributes(r)+">"+(i.match(/\S/)?`
|
|
15
|
+
`+i+n:"")+"</mrow>";return a},t.prototype.visitAnnotationNode=function(r,n){return n+"<annotation"+this.getAttributes(r)+">"+this.childNodeMml(r,"","")+"</annotation>"},t.prototype.visitDefault=function(r,n){var i=r.kind,a=A4(r.isToken||r.childNodes.length===0?["",""]:[`
|
|
16
|
+
`,n],2),o=a[0],s=a[1],l=this.childNodeMml(r,n+" ",o);return n+"<"+i+this.getAttributes(r)+">"+(l.match(/\S/)?o+l+s:"")+"</"+i+">"},t.prototype.childNodeMml=function(r,n,i){var a,o,s="";try{for(var l=eb(r.childNodes),c=l.next();!c.done;c=l.next()){var d=c.value;s+=this.visitNode(d,n)+i}}catch(f){a={error:f}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(a)throw a.error}}return s},t.prototype.getAttributes=function(r){var n,i,a=[],o=this.constructor.defaultAttributes[r.kind]||{},s=Object.assign({},o,this.getDataAttributes(r),r.attributes.getAllAttributes()),l=this.constructor.variants;s.hasOwnProperty("mathvariant")&&l.hasOwnProperty(s.mathvariant)&&(s.mathvariant=l[s.mathvariant]);try{for(var c=eb(Object.keys(s)),d=c.next();!d.done;d=c.next()){var f=d.value,m=String(s[f]);m!==void 0&&a.push(f+'="'+this.quoteHTML(m)+'"')}}catch(p){n={error:p}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}return a.length?" "+a.join(" "):""},t.prototype.getDataAttributes=function(r){var n={},i=r.attributes.getExplicit("mathvariant"),a=this.constructor.variants;i&&a.hasOwnProperty(i)&&this.setDataAttribute(n,"variant",i),r.getProperty("variantForm")&&this.setDataAttribute(n,"alternate","1"),r.getProperty("pseudoscript")&&this.setDataAttribute(n,"pseudoscript","true"),r.getProperty("autoOP")===!1&&this.setDataAttribute(n,"auto-op","false");var o=r.getProperty("scriptalign");o&&this.setDataAttribute(n,"script-align",o);var s=r.getProperty("texClass");if(s!==void 0){var l=!0;if(s===Cx.TEXCLASS.OP&&r.isKind("mi")){var c=r.getText();l=!(c.length>1&&c.match(T4.MmlMi.operatorName))}l&&this.setDataAttribute(n,"texclass",s<0?"NONE":Cx.TEXCLASSNAMES[s])}return r.getProperty("scriptlevel")&&r.getProperty("useHeight")===!1&&this.setDataAttribute(n,"smallmatrix","true"),n},t.prototype.setDataAttribute=function(r,n,i){r[Bt.DATAMJX+n]=i},t.prototype.quoteHTML=function(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\"/g,""").replace(/[\uD800-\uDBFF]./g,Bt.toEntity).replace(/[\u0080-\uD7FF\uE000-\uFFFF]/g,Bt.toEntity)},t.variants={"-tex-calligraphic":"script","-tex-bold-calligraphic":"bold-script","-tex-oldstyle":"normal","-tex-bold-oldstyle":"bold","-tex-mathit":"italic"},t.defaultAttributes={math:{xmlns:"http://www.w3.org/1998/Math/MathML"}},t})(O4.MmlVisitor);Bt.SerializedMmlVisitor=x4});var qx=ee(Vu=>{(function(e){e.parser=function(k,h){return new r(k,h)},e.SAXParser=r,e.SAXStream=c,e.createStream=l,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function r(k,h){if(!(this instanceof r))return new r(k,h);var O=this;i(O),O.q=O.c="",O.bufferCheckPosition=e.MAX_BUFFER_LENGTH,O.opt=h||{},O.opt.lowercase=O.opt.lowercase||O.opt.lowercasetags,O.looseCase=O.opt.lowercase?"toLowerCase":"toUpperCase",O.tags=[],O.closed=O.closedRoot=O.sawRoot=!1,O.tag=O.error=null,O.strict=!!k,O.noscript=!!(k||O.opt.noscript),O.state=P.BEGIN,O.strictEntities=O.opt.strictEntities,O.ENTITIES=O.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),O.attribList=[],O.opt.xmlns&&(O.ns=Object.create(b)),O.opt.unquotedAttributeValues===void 0&&(O.opt.unquotedAttributeValues=!k),O.trackPosition=O.opt.position!==!1,O.trackPosition&&(O.position=O.line=O.column=0),Z(O,"onready")}Object.create||(Object.create=function(k){function h(){}h.prototype=k;var O=new h;return O}),Object.keys||(Object.keys=function(k){var h=[];for(var O in k)k.hasOwnProperty(O)&&h.push(O);return h});function n(k){for(var h=Math.max(e.MAX_BUFFER_LENGTH,10),O=0,j=0,U=t.length;j<U;j++){var F=k[t[j]].length;if(F>h)switch(t[j]){case"textNode":R(k);break;case"cdata":oe(k,"oncdata",k.cdata),k.cdata="";break;case"script":oe(k,"onscript",k.script),k.script="";break;default:C(k,"Max buffer length exceeded: "+t[j])}O=Math.max(O,F)}var q=e.MAX_BUFFER_LENGTH-O;k.bufferCheckPosition=q+k.position}function i(k){for(var h=0,O=t.length;h<O;h++)k[t[h]]=""}function a(k){R(k),k.cdata!==""&&(oe(k,"oncdata",k.cdata),k.cdata=""),k.script!==""&&(oe(k,"onscript",k.script),k.script="")}r.prototype={end:function(){J(this)},write:re,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var o;try{o=vd("stream").Stream}catch{o=function(){}}o||(o=function(){});var s=e.EVENTS.filter(function(k){return k!=="error"&&k!=="end"});function l(k,h){return new c(k,h)}function c(k,h){if(!(this instanceof c))return new c(k,h);o.apply(this),this._parser=new r(k,h),this.writable=!0,this.readable=!0;var O=this;this._parser.onend=function(){O.emit("end")},this._parser.onerror=function(j){O.emit("error",j),O._parser.error=null},this._decoder=null,s.forEach(function(j){Object.defineProperty(O,"on"+j,{get:function(){return O._parser["on"+j]},set:function(U){if(!U)return O.removeAllListeners(j),O._parser["on"+j]=U,U;O.on(j,U)},enumerable:!0,configurable:!1})})}c.prototype=Object.create(o.prototype,{constructor:{value:c}}),c.prototype.write=function(k){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(k)){if(!this._decoder){var h=vd("string_decoder").StringDecoder;this._decoder=new h("utf8")}k=this._decoder.write(k)}return this._parser.write(k.toString()),this.emit("data",k),!0},c.prototype.end=function(k){return k&&k.length&&this.write(k),this._parser.end(),!0},c.prototype.on=function(k,h){var O=this;return!O._parser["on"+k]&&s.indexOf(k)!==-1&&(O._parser["on"+k]=function(){var j=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);j.splice(0,0,k),O.emit.apply(O,j)}),o.prototype.on.call(O,k,h)};var d="[CDATA[",f="DOCTYPE",m="http://www.w3.org/XML/1998/namespace",p="http://www.w3.org/2000/xmlns/",b={xml:m,xmlns:p},v=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,A=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,y=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,T=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function E(k){return k===" "||k===`
|
|
17
|
+
`||k==="\r"||k===" "}function w(k){return k==='"'||k==="'"}function x(k){return k===">"||E(k)}function D(k,h){return k.test(h)}function B(k,h){return!D(k,h)}var P=0;e.STATE={BEGIN:P++,BEGIN_WHITESPACE:P++,TEXT:P++,TEXT_ENTITY:P++,OPEN_WAKA:P++,SGML_DECL:P++,SGML_DECL_QUOTED:P++,DOCTYPE:P++,DOCTYPE_QUOTED:P++,DOCTYPE_DTD:P++,DOCTYPE_DTD_QUOTED:P++,COMMENT_STARTING:P++,COMMENT:P++,COMMENT_ENDING:P++,COMMENT_ENDED:P++,CDATA:P++,CDATA_ENDING:P++,CDATA_ENDING_2:P++,PROC_INST:P++,PROC_INST_BODY:P++,PROC_INST_ENDING:P++,OPEN_TAG:P++,OPEN_TAG_SLASH:P++,ATTRIB:P++,ATTRIB_NAME:P++,ATTRIB_NAME_SAW_WHITE:P++,ATTRIB_VALUE:P++,ATTRIB_VALUE_QUOTED:P++,ATTRIB_VALUE_CLOSED:P++,ATTRIB_VALUE_UNQUOTED:P++,ATTRIB_VALUE_ENTITY_Q:P++,ATTRIB_VALUE_ENTITY_U:P++,CLOSE_TAG:P++,CLOSE_TAG_SAW_WHITE:P++,SCRIPT:P++,SCRIPT_ENDING:P++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(k){var h=e.ENTITIES[k],O=typeof h=="number"?String.fromCharCode(h):h;e.ENTITIES[k]=O});for(var I in e.STATE)e.STATE[e.STATE[I]]=I;P=e.STATE;function Z(k,h,O){k[h]&&k[h](O)}function oe(k,h,O){k.textNode&&R(k),Z(k,h,O)}function R(k){k.textNode=z(k.opt,k.textNode),k.textNode&&Z(k,"ontext",k.textNode),k.textNode=""}function z(k,h){return k.trim&&(h=h.trim()),k.normalize&&(h=h.replace(/\s+/g," ")),h}function C(k,h){return R(k),k.trackPosition&&(h+=`
|
|
18
|
+
Line: `+k.line+`
|
|
19
|
+
Column: `+k.column+`
|
|
20
|
+
Char: `+k.c),h=new Error(h),k.error=h,Z(k,"onerror",h),k}function J(k){return k.sawRoot&&!k.closedRoot&&te(k,"Unclosed root tag"),k.state!==P.BEGIN&&k.state!==P.BEGIN_WHITESPACE&&k.state!==P.TEXT&&C(k,"Unexpected end"),R(k),k.c="",k.closed=!0,Z(k,"onend"),r.call(k,k.strict,k.opt),k}function te(k,h){if(typeof k!="object"||!(k instanceof r))throw new Error("bad call to strictFail");k.strict&&C(k,h)}function X(k){k.strict||(k.tagName=k.tagName[k.looseCase]());var h=k.tags[k.tags.length-1]||k,O=k.tag={name:k.tagName,attributes:{}};k.opt.xmlns&&(O.ns=h.ns),k.attribList.length=0,oe(k,"onopentagstart",O)}function W(k,h){var O=k.indexOf(":"),j=O<0?["",k]:k.split(":"),U=j[0],F=j[1];return h&&k==="xmlns"&&(U="xmlns",F=""),{prefix:U,local:F}}function H(k){if(k.strict||(k.attribName=k.attribName[k.looseCase]()),k.attribList.indexOf(k.attribName)!==-1||k.tag.attributes.hasOwnProperty(k.attribName)){k.attribName=k.attribValue="";return}if(k.opt.xmlns){var h=W(k.attribName,!0),O=h.prefix,j=h.local;if(O==="xmlns")if(j==="xml"&&k.attribValue!==m)te(k,"xml: prefix must be bound to "+m+`
|
|
21
|
+
Actual: `+k.attribValue);else if(j==="xmlns"&&k.attribValue!==p)te(k,"xmlns: prefix must be bound to "+p+`
|
|
22
|
+
Actual: `+k.attribValue);else{var U=k.tag,F=k.tags[k.tags.length-1]||k;U.ns===F.ns&&(U.ns=Object.create(F.ns)),U.ns[j]=k.attribValue}k.attribList.push([k.attribName,k.attribValue])}else k.tag.attributes[k.attribName]=k.attribValue,oe(k,"onattribute",{name:k.attribName,value:k.attribValue});k.attribName=k.attribValue=""}function ae(k,h){if(k.opt.xmlns){var O=k.tag,j=W(k.tagName);O.prefix=j.prefix,O.local=j.local,O.uri=O.ns[j.prefix]||"",O.prefix&&!O.uri&&(te(k,"Unbound namespace prefix: "+JSON.stringify(k.tagName)),O.uri=j.prefix);var U=k.tags[k.tags.length-1]||k;O.ns&&U.ns!==O.ns&&Object.keys(O.ns).forEach(function(Q){oe(k,"onopennamespace",{prefix:Q,uri:O.ns[Q]})});for(var F=0,q=k.attribList.length;F<q;F++){var ne=k.attribList[F],S=ne[0],ie=ne[1],N=W(S,!0),g=N.prefix,_=N.local,M=g===""?"":O.ns[g]||"",G={name:S,value:ie,prefix:g,local:_,uri:M};g&&g!=="xmlns"&&!M&&(te(k,"Unbound namespace prefix: "+JSON.stringify(g)),G.uri=g),k.tag.attributes[S]=G,oe(k,"onattribute",G)}k.attribList.length=0}k.tag.isSelfClosing=!!h,k.sawRoot=!0,k.tags.push(k.tag),oe(k,"onopentag",k.tag),h||(!k.noscript&&k.tagName.toLowerCase()==="script"?k.state=P.SCRIPT:k.state=P.TEXT,k.tag=null,k.tagName=""),k.attribName=k.attribValue="",k.attribList.length=0}function K(k){if(!k.tagName){te(k,"Weird empty close tag."),k.textNode+="</>",k.state=P.TEXT;return}if(k.script){if(k.tagName!=="script"){k.script+="</"+k.tagName+">",k.tagName="",k.state=P.SCRIPT;return}oe(k,"onscript",k.script),k.script=""}var h=k.tags.length,O=k.tagName;k.strict||(O=O[k.looseCase]());for(var j=O;h--;){var U=k.tags[h];if(U.name!==j)te(k,"Unexpected close tag");else break}if(h<0){te(k,"Unmatched closing tag: "+k.tagName),k.textNode+="</"+k.tagName+">",k.state=P.TEXT;return}k.tagName=O;for(var F=k.tags.length;F-- >h;){var q=k.tag=k.tags.pop();k.tagName=k.tag.name,oe(k,"onclosetag",k.tagName);var ne={};for(var S in q.ns)ne[S]=q.ns[S];var ie=k.tags[k.tags.length-1]||k;k.opt.xmlns&&q.ns!==ie.ns&&Object.keys(q.ns).forEach(function(N){var g=q.ns[N];oe(k,"onclosenamespace",{prefix:N,uri:g})})}h===0&&(k.closedRoot=!0),k.tagName=k.attribValue=k.attribName="",k.attribList.length=0,k.state=P.TEXT}function L(k){var h=k.entity,O=h.toLowerCase(),j,U="";return k.ENTITIES[h]?k.ENTITIES[h]:k.ENTITIES[O]?k.ENTITIES[O]:(h=O,h.charAt(0)==="#"&&(h.charAt(1)==="x"?(h=h.slice(2),j=parseInt(h,16),U=j.toString(16)):(h=h.slice(1),j=parseInt(h,10),U=j.toString(10))),h=h.replace(/^0+/,""),isNaN(j)||U.toLowerCase()!==h||j<0||j>1114111?(te(k,"Invalid character entity"),"&"+k.entity+";"):String.fromCodePoint(j))}function V(k,h){h==="<"?(k.state=P.OPEN_WAKA,k.startTagPosition=k.position):E(h)||(te(k,"Non-whitespace before first tag."),k.textNode=h,k.state=P.TEXT)}function Y(k,h){var O="";return h<k.length&&(O=k.charAt(h)),O}function re(k){var h=this;if(this.error)throw this.error;if(h.closed)return C(h,"Cannot write after close. Assign an onready handler.");if(k===null)return J(h);typeof k=="object"&&(k=k.toString());for(var O=0,j="";j=Y(k,O++),h.c=j,!!j;)switch(h.trackPosition&&(h.position++,j===`
|
|
23
|
+
`?(h.line++,h.column=0):h.column++),h.state){case P.BEGIN:if(h.state=P.BEGIN_WHITESPACE,j==="\uFEFF")continue;V(h,j);continue;case P.BEGIN_WHITESPACE:V(h,j);continue;case P.TEXT:if(h.sawRoot&&!h.closedRoot){for(var F=O-1;j&&j!=="<"&&j!=="&";)j=Y(k,O++),j&&h.trackPosition&&(h.position++,j===`
|
|
24
|
+
`?(h.line++,h.column=0):h.column++);h.textNode+=k.substring(F,O-1)}j==="<"&&!(h.sawRoot&&h.closedRoot&&!h.strict)?(h.state=P.OPEN_WAKA,h.startTagPosition=h.position):(!E(j)&&(!h.sawRoot||h.closedRoot)&&te(h,"Text data outside of root node."),j==="&"?h.state=P.TEXT_ENTITY:h.textNode+=j);continue;case P.SCRIPT:j==="<"?h.state=P.SCRIPT_ENDING:h.script+=j;continue;case P.SCRIPT_ENDING:j==="/"?h.state=P.CLOSE_TAG:(h.script+="<"+j,h.state=P.SCRIPT);continue;case P.OPEN_WAKA:if(j==="!")h.state=P.SGML_DECL,h.sgmlDecl="";else if(!E(j))if(D(v,j))h.state=P.OPEN_TAG,h.tagName=j;else if(j==="/")h.state=P.CLOSE_TAG,h.tagName="";else if(j==="?")h.state=P.PROC_INST,h.procInstName=h.procInstBody="";else{if(te(h,"Unencoded <"),h.startTagPosition+1<h.position){var U=h.position-h.startTagPosition;j=new Array(U).join(" ")+j}h.textNode+="<"+j,h.state=P.TEXT}continue;case P.SGML_DECL:if(h.sgmlDecl+j==="--"){h.state=P.COMMENT,h.comment="",h.sgmlDecl="";continue}h.doctype&&h.doctype!==!0&&h.sgmlDecl?(h.state=P.DOCTYPE_DTD,h.doctype+="<!"+h.sgmlDecl+j,h.sgmlDecl=""):(h.sgmlDecl+j).toUpperCase()===d?(oe(h,"onopencdata"),h.state=P.CDATA,h.sgmlDecl="",h.cdata=""):(h.sgmlDecl+j).toUpperCase()===f?(h.state=P.DOCTYPE,(h.doctype||h.sawRoot)&&te(h,"Inappropriately located doctype declaration"),h.doctype="",h.sgmlDecl=""):j===">"?(oe(h,"onsgmldeclaration",h.sgmlDecl),h.sgmlDecl="",h.state=P.TEXT):(w(j)&&(h.state=P.SGML_DECL_QUOTED),h.sgmlDecl+=j);continue;case P.SGML_DECL_QUOTED:j===h.q&&(h.state=P.SGML_DECL,h.q=""),h.sgmlDecl+=j;continue;case P.DOCTYPE:j===">"?(h.state=P.TEXT,oe(h,"ondoctype",h.doctype),h.doctype=!0):(h.doctype+=j,j==="["?h.state=P.DOCTYPE_DTD:w(j)&&(h.state=P.DOCTYPE_QUOTED,h.q=j));continue;case P.DOCTYPE_QUOTED:h.doctype+=j,j===h.q&&(h.q="",h.state=P.DOCTYPE);continue;case P.DOCTYPE_DTD:j==="]"?(h.doctype+=j,h.state=P.DOCTYPE):j==="<"?(h.state=P.OPEN_WAKA,h.startTagPosition=h.position):w(j)?(h.doctype+=j,h.state=P.DOCTYPE_DTD_QUOTED,h.q=j):h.doctype+=j;continue;case P.DOCTYPE_DTD_QUOTED:h.doctype+=j,j===h.q&&(h.state=P.DOCTYPE_DTD,h.q="");continue;case P.COMMENT:j==="-"?h.state=P.COMMENT_ENDING:h.comment+=j;continue;case P.COMMENT_ENDING:j==="-"?(h.state=P.COMMENT_ENDED,h.comment=z(h.opt,h.comment),h.comment&&oe(h,"oncomment",h.comment),h.comment=""):(h.comment+="-"+j,h.state=P.COMMENT);continue;case P.COMMENT_ENDED:j!==">"?(te(h,"Malformed comment"),h.comment+="--"+j,h.state=P.COMMENT):h.doctype&&h.doctype!==!0?h.state=P.DOCTYPE_DTD:h.state=P.TEXT;continue;case P.CDATA:for(var F=O-1;j&&j!=="]";)j=Y(k,O++),j&&h.trackPosition&&(h.position++,j===`
|
|
25
|
+
`?(h.line++,h.column=0):h.column++);h.cdata+=k.substring(F,O-1),j==="]"&&(h.state=P.CDATA_ENDING);continue;case P.CDATA_ENDING:j==="]"?h.state=P.CDATA_ENDING_2:(h.cdata+="]"+j,h.state=P.CDATA);continue;case P.CDATA_ENDING_2:j===">"?(h.cdata&&oe(h,"oncdata",h.cdata),oe(h,"onclosecdata"),h.cdata="",h.state=P.TEXT):j==="]"?h.cdata+="]":(h.cdata+="]]"+j,h.state=P.CDATA);continue;case P.PROC_INST:j==="?"?h.state=P.PROC_INST_ENDING:E(j)?h.state=P.PROC_INST_BODY:h.procInstName+=j;continue;case P.PROC_INST_BODY:if(!h.procInstBody&&E(j))continue;j==="?"?h.state=P.PROC_INST_ENDING:h.procInstBody+=j;continue;case P.PROC_INST_ENDING:j===">"?(oe(h,"onprocessinginstruction",{name:h.procInstName,body:h.procInstBody}),h.procInstName=h.procInstBody="",h.state=P.TEXT):(h.procInstBody+="?"+j,h.state=P.PROC_INST_BODY);continue;case P.OPEN_TAG:D(A,j)?h.tagName+=j:(X(h),j===">"?ae(h):j==="/"?h.state=P.OPEN_TAG_SLASH:(E(j)||te(h,"Invalid character in tag name"),h.state=P.ATTRIB));continue;case P.OPEN_TAG_SLASH:j===">"?(ae(h,!0),K(h)):(te(h,"Forward-slash in opening tag not followed by >"),h.state=P.ATTRIB);continue;case P.ATTRIB:if(E(j))continue;j===">"?ae(h):j==="/"?h.state=P.OPEN_TAG_SLASH:D(v,j)?(h.attribName=j,h.attribValue="",h.state=P.ATTRIB_NAME):te(h,"Invalid attribute name");continue;case P.ATTRIB_NAME:j==="="?h.state=P.ATTRIB_VALUE:j===">"?(te(h,"Attribute without value"),h.attribValue=h.attribName,H(h),ae(h)):E(j)?h.state=P.ATTRIB_NAME_SAW_WHITE:D(A,j)?h.attribName+=j:te(h,"Invalid attribute name");continue;case P.ATTRIB_NAME_SAW_WHITE:if(j==="=")h.state=P.ATTRIB_VALUE;else{if(E(j))continue;te(h,"Attribute without value"),h.tag.attributes[h.attribName]="",h.attribValue="",oe(h,"onattribute",{name:h.attribName,value:""}),h.attribName="",j===">"?ae(h):D(v,j)?(h.attribName=j,h.state=P.ATTRIB_NAME):(te(h,"Invalid attribute name"),h.state=P.ATTRIB)}continue;case P.ATTRIB_VALUE:if(E(j))continue;w(j)?(h.q=j,h.state=P.ATTRIB_VALUE_QUOTED):(h.opt.unquotedAttributeValues||C(h,"Unquoted attribute value"),h.state=P.ATTRIB_VALUE_UNQUOTED,h.attribValue=j);continue;case P.ATTRIB_VALUE_QUOTED:if(j!==h.q){j==="&"?h.state=P.ATTRIB_VALUE_ENTITY_Q:h.attribValue+=j;continue}H(h),h.q="",h.state=P.ATTRIB_VALUE_CLOSED;continue;case P.ATTRIB_VALUE_CLOSED:E(j)?h.state=P.ATTRIB:j===">"?ae(h):j==="/"?h.state=P.OPEN_TAG_SLASH:D(v,j)?(te(h,"No whitespace between attributes"),h.attribName=j,h.attribValue="",h.state=P.ATTRIB_NAME):te(h,"Invalid attribute name");continue;case P.ATTRIB_VALUE_UNQUOTED:if(!x(j)){j==="&"?h.state=P.ATTRIB_VALUE_ENTITY_U:h.attribValue+=j;continue}H(h),j===">"?ae(h):h.state=P.ATTRIB;continue;case P.CLOSE_TAG:if(h.tagName)j===">"?K(h):D(A,j)?h.tagName+=j:h.script?(h.script+="</"+h.tagName,h.tagName="",h.state=P.SCRIPT):(E(j)||te(h,"Invalid tagname in closing tag"),h.state=P.CLOSE_TAG_SAW_WHITE);else{if(E(j))continue;B(v,j)?h.script?(h.script+="</"+j,h.state=P.SCRIPT):te(h,"Invalid tagname in closing tag."):h.tagName=j}continue;case P.CLOSE_TAG_SAW_WHITE:if(E(j))continue;j===">"?K(h):te(h,"Invalid characters in closing tag");continue;case P.TEXT_ENTITY:case P.ATTRIB_VALUE_ENTITY_Q:case P.ATTRIB_VALUE_ENTITY_U:var q,ne;switch(h.state){case P.TEXT_ENTITY:q=P.TEXT,ne="textNode";break;case P.ATTRIB_VALUE_ENTITY_Q:q=P.ATTRIB_VALUE_QUOTED,ne="attribValue";break;case P.ATTRIB_VALUE_ENTITY_U:q=P.ATTRIB_VALUE_UNQUOTED,ne="attribValue";break}if(j===";"){var S=L(h);h.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(S)?(h.entity="",h.state=q,h.write(S)):(h[ne]+=S,h.entity="",h.state=q)}else D(h.entity.length?T:y,j)?h.entity+=j:(te(h,"Invalid character in entity name"),h[ne]+="&"+h.entity+j,h.entity="",h.state=q);continue;default:throw new Error(h,"Unknown state: "+h.state)}return h.position>=h.bufferCheckPosition&&n(h),h}String.fromCodePoint||(function(){var k=String.fromCharCode,h=Math.floor,O=function(){var j=16384,U=[],F,q,ne=-1,S=arguments.length;if(!S)return"";for(var ie="";++ne<S;){var N=Number(arguments[ne]);if(!isFinite(N)||N<0||N>1114111||h(N)!==N)throw RangeError("Invalid code point: "+N);N<=65535?U.push(N):(N-=65536,F=(N>>10)+55296,q=N%1024+56320,U.push(F,q)),(ne+1===S||U.length>j)&&(ie+=k.apply(null,U),U.length=0)}return ie};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:O,configurable:!0,writable:!0}):String.fromCodePoint=O})()})(typeof Vu>"u"?Vu.sax={}:Vu)});var Yu=ee((tH,Ux)=>{Ux.exports={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}});var Zu=ee((rH,Hx)=>{var A5=Yu().isArray;Hx.exports={copyOptions:function(e){var t,r={};for(t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r},ensureFlagExists:function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!A5(e.alwaysArray))&&(e.alwaysArray=!1)},ensureKeyExists:function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}});var sb=ee((nH,Yx)=>{var O5=qx(),T5={on:function(){},parse:function(){}},Be=Zu(),Ko=Yu().isArray,le,ob=!0,ke;function S5(e){return le=Be.copyOptions(e),Be.ensureFlagExists("ignoreDeclaration",le),Be.ensureFlagExists("ignoreInstruction",le),Be.ensureFlagExists("ignoreAttributes",le),Be.ensureFlagExists("ignoreText",le),Be.ensureFlagExists("ignoreComment",le),Be.ensureFlagExists("ignoreCdata",le),Be.ensureFlagExists("ignoreDoctype",le),Be.ensureFlagExists("compact",le),Be.ensureFlagExists("alwaysChildren",le),Be.ensureFlagExists("addParent",le),Be.ensureFlagExists("trim",le),Be.ensureFlagExists("nativeType",le),Be.ensureFlagExists("nativeTypeAttributes",le),Be.ensureFlagExists("sanitize",le),Be.ensureFlagExists("instructionHasAttributes",le),Be.ensureFlagExists("captureSpacesBetweenElements",le),Be.ensureAlwaysArrayExists(le),Be.ensureKeyExists("declaration",le),Be.ensureKeyExists("instruction",le),Be.ensureKeyExists("attributes",le),Be.ensureKeyExists("text",le),Be.ensureKeyExists("comment",le),Be.ensureKeyExists("cdata",le),Be.ensureKeyExists("doctype",le),Be.ensureKeyExists("type",le),Be.ensureKeyExists("name",le),Be.ensureKeyExists("elements",le),Be.ensureKeyExists("parent",le),Be.checkFnExists("doctype",le),Be.checkFnExists("instruction",le),Be.checkFnExists("cdata",le),Be.checkFnExists("comment",le),Be.checkFnExists("text",le),Be.checkFnExists("instructionName",le),Be.checkFnExists("elementName",le),Be.checkFnExists("attributeName",le),Be.checkFnExists("attributeValue",le),Be.checkFnExists("attributes",le),le}function $x(e){var t=Number(e);if(!isNaN(t))return t;var r=e.toLowerCase();return r==="true"?!0:r==="false"?!1:e}function sl(e,t){var r;if(le.compact){if(!ke[le[e+"Key"]]&&(Ko(le.alwaysArray)?le.alwaysArray.indexOf(le[e+"Key"])!==-1:le.alwaysArray)&&(ke[le[e+"Key"]]=[]),ke[le[e+"Key"]]&&!Ko(ke[le[e+"Key"]])&&(ke[le[e+"Key"]]=[ke[le[e+"Key"]]]),e+"Fn"in le&&typeof t=="string"&&(t=le[e+"Fn"](t,ke)),e==="instruction"&&("instructionFn"in le||"instructionNameFn"in le)){for(r in t)if(t.hasOwnProperty(r))if("instructionFn"in le)t[r]=le.instructionFn(t[r],r,ke);else{var n=t[r];delete t[r],t[le.instructionNameFn(r,n,ke)]=n}}Ko(ke[le[e+"Key"]])?ke[le[e+"Key"]].push(t):ke[le[e+"Key"]]=t}else{ke[le.elementsKey]||(ke[le.elementsKey]=[]);var i={};if(i[le.typeKey]=e,e==="instruction"){for(r in t)if(t.hasOwnProperty(r))break;i[le.nameKey]="instructionNameFn"in le?le.instructionNameFn(r,t,ke):r,le.instructionHasAttributes?(i[le.attributesKey]=t[r][le.attributesKey],"instructionFn"in le&&(i[le.attributesKey]=le.instructionFn(i[le.attributesKey],r,ke))):("instructionFn"in le&&(t[r]=le.instructionFn(t[r],r,ke)),i[le.instructionKey]=t[r])}else e+"Fn"in le&&(t=le[e+"Fn"](t,ke)),i[le[e+"Key"]]=t;le.addParent&&(i[le.parentKey]=ke),ke[le.elementsKey].push(i)}}function Vx(e){if("attributesFn"in le&&e&&(e=le.attributesFn(e,ke)),(le.trim||"attributeValueFn"in le||"attributeNameFn"in le||le.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(le.trim&&(e[t]=e[t].trim()),le.nativeTypeAttributes&&(e[t]=$x(e[t])),"attributeValueFn"in le&&(e[t]=le.attributeValueFn(e[t],t,ke)),"attributeNameFn"in le)){var r=e[t];delete e[t],e[le.attributeNameFn(t,e[t],ke)]=r}}return e}function x5(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||le.instructionHasAttributes)){for(var r=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,n;(n=r.exec(e.body))!==null;)t[n[1]]=n[2]||n[3]||n[4];t=Vx(t)}if(e.name.toLowerCase()==="xml"){if(le.ignoreDeclaration)return;ke[le.declarationKey]={},Object.keys(t).length&&(ke[le.declarationKey][le.attributesKey]=t),le.addParent&&(ke[le.declarationKey][le.parentKey]=ke)}else{if(le.ignoreInstruction)return;le.trim&&(e.body=e.body.trim());var i={};le.instructionHasAttributes&&Object.keys(t).length?(i[e.name]={},i[e.name][le.attributesKey]=t):i[e.name]=e.body,sl("instruction",i)}}function zx(e,t){var r;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=Vx(t),"elementNameFn"in le&&(e=le.elementNameFn(e,ke)),le.compact){if(r={},!le.ignoreAttributes&&t&&Object.keys(t).length){r[le.attributesKey]={};var n;for(n in t)t.hasOwnProperty(n)&&(r[le.attributesKey][n]=t[n])}!(e in ke)&&(Ko(le.alwaysArray)?le.alwaysArray.indexOf(e)!==-1:le.alwaysArray)&&(ke[e]=[]),ke[e]&&!Ko(ke[e])&&(ke[e]=[ke[e]]),Ko(ke[e])?ke[e].push(r):ke[e]=r}else ke[le.elementsKey]||(ke[le.elementsKey]=[]),r={},r[le.typeKey]="element",r[le.nameKey]=e,!le.ignoreAttributes&&t&&Object.keys(t).length&&(r[le.attributesKey]=t),le.alwaysChildren&&(r[le.elementsKey]=[]),ke[le.elementsKey].push(r);r[le.parentKey]=ke,ke=r}function Gx(e){le.ignoreText||!e.trim()&&!le.captureSpacesBetweenElements||(le.trim&&(e=e.trim()),le.nativeType&&(e=$x(e)),le.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),sl("text",e))}function Wx(e){le.ignoreComment||(le.trim&&(e=e.trim()),sl("comment",e))}function Kx(e){var t=ke[le.parentKey];le.addParent||delete ke[le.parentKey],ke=t}function M5(e){le.ignoreCdata||(le.trim&&(e=e.trim()),sl("cdata",e))}function C5(e){le.ignoreDoctype||(e=e.replace(/^ /,""),le.trim&&(e=e.trim()),sl("doctype",e))}function Xx(e){e.note=e}Yx.exports=function(e,t){var r=ob?O5.parser(!0,{}):r=new T5.Parser("UTF-8"),n={};if(ke=n,le=S5(t),ob?(r.opt={strictEntities:!0},r.onopentag=zx,r.ontext=Gx,r.oncomment=Wx,r.onclosetag=Kx,r.onerror=Xx,r.oncdata=M5,r.ondoctype=C5,r.onprocessinginstruction=x5):(r.on("startElement",zx),r.on("text",Gx),r.on("comment",Wx),r.on("endElement",Kx),r.on("error",Xx)),ob)r.write(e).close();else if(!r.parse(e))throw new Error("XML parsing error: "+r.getError());if(n[le.elementsKey]){var i=n[le.elementsKey];delete n[le.elementsKey],n[le.elementsKey]=i,delete n.text}return n}});var Qx=ee((iH,Jx)=>{var Zx=Zu(),k5=sb();function N5(e){var t=Zx.copyOptions(e);return Zx.ensureSpacesExists(t),t}Jx.exports=function(e,t){var r,n,i,a;return r=N5(t),n=k5(e,r),a="compact"in r&&r.compact?"_parent":"parent","addParent"in r&&r.addParent?i=JSON.stringify(n,function(o,s){return o===a?"_":s},r.spaces):i=JSON.stringify(n,null,r.spaces),i.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var cb=ee((aH,l2)=>{var qe=Zu(),I5=Yu().isArray,Xt,$t;function P5(e){var t=qe.copyOptions(e);return qe.ensureFlagExists("ignoreDeclaration",t),qe.ensureFlagExists("ignoreInstruction",t),qe.ensureFlagExists("ignoreAttributes",t),qe.ensureFlagExists("ignoreText",t),qe.ensureFlagExists("ignoreComment",t),qe.ensureFlagExists("ignoreCdata",t),qe.ensureFlagExists("ignoreDoctype",t),qe.ensureFlagExists("compact",t),qe.ensureFlagExists("indentText",t),qe.ensureFlagExists("indentCdata",t),qe.ensureFlagExists("indentAttributes",t),qe.ensureFlagExists("indentInstruction",t),qe.ensureFlagExists("fullTagEmptyElement",t),qe.ensureFlagExists("noQuotesForNativeAttributes",t),qe.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),qe.ensureKeyExists("declaration",t),qe.ensureKeyExists("instruction",t),qe.ensureKeyExists("attributes",t),qe.ensureKeyExists("text",t),qe.ensureKeyExists("comment",t),qe.ensureKeyExists("cdata",t),qe.ensureKeyExists("doctype",t),qe.ensureKeyExists("type",t),qe.ensureKeyExists("name",t),qe.ensureKeyExists("elements",t),qe.checkFnExists("doctype",t),qe.checkFnExists("instruction",t),qe.checkFnExists("cdata",t),qe.checkFnExists("comment",t),qe.checkFnExists("text",t),qe.checkFnExists("instructionName",t),qe.checkFnExists("elementName",t),qe.checkFnExists("attributeName",t),qe.checkFnExists("attributeValue",t),qe.checkFnExists("attributes",t),qe.checkFnExists("fullTagEmptyElement",t),t}function Pn(e,t,r){return(!r&&e.spaces?`
|
|
26
|
+
`:"")+Array(t+1).join(e.spaces)}function Ju(e,t,r){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,$t,Xt));var n,i,a,o,s=[];for(n in e)e.hasOwnProperty(n)&&e[n]!==null&&e[n]!==void 0&&(o=t.noQuotesForNativeAttributes&&typeof e[n]!="string"?"":'"',i=""+e[n],i=i.replace(/"/g,"""),a="attributeNameFn"in t?t.attributeNameFn(n,i,$t,Xt):n,s.push(t.spaces&&t.indentAttributes?Pn(t,r+1,!1):" "),s.push(a+"="+o+("attributeValueFn"in t?t.attributeValueFn(i,n,$t,Xt):i)+o));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&s.push(Pn(t,r,!1)),s.join("")}function e2(e,t,r){return Xt=e,$t="xml",t.ignoreDeclaration?"":"<?xml"+Ju(e[t.attributesKey],t,r)+"?>"}function t2(e,t,r){if(t.ignoreInstruction)return"";var n;for(n in e)if(e.hasOwnProperty(n))break;var i="instructionNameFn"in t?t.instructionNameFn(n,e[n],$t,Xt):n;if(typeof e[n]=="object")return Xt=e,$t=i,"<?"+i+Ju(e[n][t.attributesKey],t,r)+"?>";var a=e[n]?e[n]:"";return"instructionFn"in t&&(a=t.instructionFn(a,n,$t,Xt)),"<?"+i+(a?" "+a:"")+"?>"}function r2(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,$t,Xt):e)+"-->"}function n2(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,$t,Xt):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function i2(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,$t,Xt):e)+">"}function lb(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&/g,"&"),e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in t?t.textFn(e,$t,Xt):e)}function j5(e,t){var r;if(e.elements&&e.elements.length)for(r=0;r<e.elements.length;++r)switch(e.elements[r][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function R5(e,t,r){Xt=e,$t=e.name;var n=[],i="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;n.push("<"+i),e[t.attributesKey]&&n.push(Ju(e[t.attributesKey],t,r));var a=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return a||("fullTagEmptyElementFn"in t?a=t.fullTagEmptyElementFn(e.name,e):a=t.fullTagEmptyElement),a?(n.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(n.push(a2(e[t.elementsKey],t,r+1)),Xt=e,$t=e.name),n.push(t.spaces&&j5(e,t)?`
|
|
27
|
+
`+Array(r+1).join(t.spaces):""),n.push("</"+i+">")):n.push("/>"),n.join("")}function a2(e,t,r,n){return e.reduce(function(i,a){var o=Pn(t,r,n&&!i);switch(a.type){case"element":return i+o+R5(a,t,r);case"comment":return i+o+r2(a[t.commentKey],t);case"doctype":return i+o+i2(a[t.doctypeKey],t);case"cdata":return i+(t.indentCdata?o:"")+n2(a[t.cdataKey],t);case"text":return i+(t.indentText?o:"")+lb(a[t.textKey],t);case"instruction":var s={};return s[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],i+(t.indentInstruction?o:"")+t2(s,t,r)}},"")}function o2(e,t,r){var n;for(n in e)if(e.hasOwnProperty(n))switch(n){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||r)return!0;break;case t.cdataKey:if(t.indentCdata||r)return!0;break;case t.instructionKey:if(t.indentInstruction||r)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}function L5(e,t,r,n,i){Xt=e,$t=t;var a="elementNameFn"in r?r.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return"fullTagEmptyElementFn"in r&&r.fullTagEmptyElementFn(t,e)||r.fullTagEmptyElement?"<"+a+"></"+a+">":"<"+a+"/>";var o=[];if(t){if(o.push("<"+a),typeof e!="object")return o.push(">"+lb(e,r)+"</"+a+">"),o.join("");e[r.attributesKey]&&o.push(Ju(e[r.attributesKey],r,n));var s=o2(e,r,!0)||e[r.attributesKey]&&e[r.attributesKey]["xml:space"]==="preserve";if(s||("fullTagEmptyElementFn"in r?s=r.fullTagEmptyElementFn(t,e):s=r.fullTagEmptyElement),s)o.push(">");else return o.push("/>"),o.join("")}return o.push(s2(e,r,n+1,!1)),Xt=e,$t=t,t&&o.push((i?Pn(r,n,!1):"")+"</"+a+">"),o.join("")}function s2(e,t,r,n){var i,a,o,s=[];for(a in e)if(e.hasOwnProperty(a))for(o=I5(e[a])?e[a]:[e[a]],i=0;i<o.length;++i){switch(a){case t.declarationKey:s.push(e2(o[i],t,r));break;case t.instructionKey:s.push((t.indentInstruction?Pn(t,r,n):"")+t2(o[i],t,r));break;case t.attributesKey:case t.parentKey:break;case t.textKey:s.push((t.indentText?Pn(t,r,n):"")+lb(o[i],t));break;case t.cdataKey:s.push((t.indentCdata?Pn(t,r,n):"")+n2(o[i],t));break;case t.doctypeKey:s.push(Pn(t,r,n)+i2(o[i],t));break;case t.commentKey:s.push(Pn(t,r,n)+r2(o[i],t));break;default:s.push(Pn(t,r,n)+L5(o[i],a,t,r,o2(o[i],t)))}n=n&&!s.length}return s.join("")}l2.exports=function(e,t){t=P5(t);var r=[];return Xt=e,$t="_root_",t.compact?r.push(s2(e,t,0,!0)):(e[t.declarationKey]&&r.push(e2(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&r.push(a2(e[t.elementsKey],t,0,!r.length))),r.join("")}});var u2=ee((oH,c2)=>{var D5=cb();c2.exports=function(e,t){e instanceof Buffer&&(e=e.toString());var r=null;if(typeof e=="string")try{r=JSON.parse(e)}catch{throw new Error("The JSON structure is invalid")}else r=e;return D5(r,t)}});var f2=ee((sH,d2)=>{var B5=sb(),F5=Qx(),q5=cb(),U5=u2();d2.exports={xml2js:B5,xml2json:F5,js2xml:q5,json2xml:U5}});var x2=ee((Vz,S2)=>{function dq(e){let t=e.regex,r=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,o,l,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(r,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}S2.exports=dq});var C2=ee((Yz,M2)=>{function fq(e){let t=e.regex,r={},n={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},n]});let i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,i]};i.contains.push(s);let l={match:/\\"/},c={className:"string",begin:/'/,end:/'/},d={match:/\\'/},f={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,r]},m=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=e.SHEBANG({binary:`(${m.join("|")})`,relevance:10}),b={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},v=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],A=["true","false"],y={match:/(\/[a-z._-]+)+/},T=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],E=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],w=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],x=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:v,literal:A,built_in:[...T,...E,"set","shopt",...w,...x]},contains:[p,e.SHEBANG(),b,f,a,o,y,s,l,c,d,r]}}M2.exports=fq});var N2=ee((Zz,k2)=>{function mq(e){let t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+n+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},m={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",A={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},y=[f,s,r,e.C_BLOCK_COMMENT_MODE,d,c],T={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:A,contains:y.concat([{begin:/\(/,end:/\)/,keywords:A,contains:y.concat(["self"]),relevance:0}]),relevance:0},E={begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:A,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:A,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(m,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,c,d,s,{begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,c,d,s]}]},s,r,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C",aliases:["h"],keywords:A,disableAutodetect:!0,illegal:"</",contains:[].concat(T,E,y,[f,{begin:e.IDENT_RE+"::",keywords:A},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:f,strings:c,keywords:A}}}k2.exports=mq});var P2=ee((Jz,I2)=>{function hq(e){let t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+n+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},m={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",b=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],v=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],A=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],y=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],w={type:v,keyword:b,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:A},x={className:"function.dispatch",relevance:0,keywords:{_hint:y},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},D=[x,f,s,r,e.C_BLOCK_COMMENT_MODE,d,c],B={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:D.concat([{begin:/\(/,end:/\)/,keywords:w,contains:D.concat(["self"]),relevance:0}]),relevance:0},P={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:w,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:w,relevance:0},{begin:p,returnBegin:!0,contains:[m],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,c,d,s,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,c,d,s]}]},s,r,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:w,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(B,P,x,D,[f,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:w,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:w},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}I2.exports=hq});var R2=ee((Qz,j2)=>{function pq(e){let t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],n=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],a=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(a),built_in:t,literal:n},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},f=e.inherit(d,{illegal:/\n/}),m={className:"subst",begin:/\{/,end:/\}/,keywords:o},p=e.inherit(m,{illegal:/\n/}),b={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,p]},v={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},m]},A=e.inherit(v,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]});m.contains=[v,b,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],p.contains=[A,b,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let y={variants:[c,v,b,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},T={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},E=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",w={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},y,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,T,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,T,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+E+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,T],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[y,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},w]}}j2.exports=pq});var D2=ee((eG,L2)=>{var gq=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),yq=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],_q=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],vq=[...yq,..._q],bq=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),wq=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Eq=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Aq=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Oq(e){let t=e.regex,r=gq(e),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",a=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,n,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+wq.join("|")+")"},{begin:":(:)?("+Eq.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Aq.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:a},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:bq.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+vq.join("|")+")\\b"}]}}L2.exports=Oq});var F2=ee((tG,B2)=>{function Tq(e){let t=e.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},n={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},a={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},f=e.inherit(c,{contains:[]}),m=e.inherit(d,{contains:[]});c.contains.push(m),d.contains.push(f);let p=[r,l];return[c,d,f,m].forEach(y=>{y.contains=y.contains.concat(p)}),p=p.concat(c,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},r,a,c,d,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,n,l,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}B2.exports=Tq});var U2=ee((rG,q2)=>{function Sq(e){let t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}q2.exports=Sq});var z2=ee((nG,H2)=>{function xq(e){let t=e.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",n=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(n,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],d={className:"subst",begin:/#\{/,end:/\}/,keywords:o},f={className:"string",contains:[e.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,d]})]}]},m="[1-9](_?[0-9])*|0",p="[0-9](_?[0-9])*",b={className:"number",relevance:0,variants:[{begin:`\\b(${m})(\\.(${p}))?([eE][+-]?(${p})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},v={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},D=[f,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:n,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[v]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[f,{begin:r}],relevance:0},b,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,c),relevance:0}].concat(l,c);d.contains=D,v.contains=D;let Z=[{begin:/^\s*=>/,starts:{end:"$",contains:D}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:D}}];return c.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(Z).concat(c).concat(D)}}H2.exports=xq});var W2=ee((iG,G2)=>{function Mq(e){let a={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:a,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,illegal:/["']/}]}]}}G2.exports=Mq});var X2=ee((aG,K2)=>{function Cq(e){let t=e.regex,r=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(r,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}K2.exports=Cq});var V2=ee((oG,$2)=>{function kq(e){let t=e.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},n=e.COMMENT();n.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[n,a,i,o,r,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,d=/'[^']*'/,f=t.either(l,c,d),m=t.concat(f,"(\\s*\\.\\s*",f,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[n,{className:"section",begin:/\[+/,end:/\]+/},{begin:m,className:"attr",starts:{end:/$/,contains:[n,s,a,i,o,r]}}]}}$2.exports=kq});var Q2=ee((sG,J2)=>{var Xo="[0-9](_*[0-9])*",ud=`\\.(${Xo})`,dd="[0-9a-fA-F](_*[0-9a-fA-F])*",Y2={className:"number",variants:[{begin:`(\\b(${Xo})((${ud})|\\.)?|(${ud}))[eE][+-]?(${Xo})[fFdD]?\\b`},{begin:`\\b(${Xo})((${ud})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${ud})[fFdD]?\\b`},{begin:`\\b(${Xo})[fFdD]\\b`},{begin:`\\b0[xX]((${dd})\\.?|(${dd})?\\.(${dd}))[pP][+-]?(${Xo})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${dd})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Z2(e,t,r){return r===-1?"":e.replace(t,n=>Z2(e,t,r-1))}function Nq(e){let t=e.regex,r="[\xC0-\u02B8a-zA-Z_$][\xC0-\u02B8a-zA-Z_$0-9]*",n=r+Z2("(?:<"+r+"~~~(?:\\s*,\\s*"+r+"~~~)*>)?",/~~~/g,2),l={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},c={className:"meta",begin:"@"+r,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},d={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,r),/\s+/,r,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,r],className:{1:"keyword",3:"title.class"},contains:[d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+n+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,Y2,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},Y2,c]}}J2.exports=Nq});var aM=ee((lG,iM)=>{var eM="[A-Za-z$_][0-9A-Za-z$_]*",Iq=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Pq=["true","false","null","undefined","NaN","Infinity"],tM=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],rM=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],nM=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],jq=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Rq=[].concat(nM,tM,rM);function Lq(e){let t=e.regex,r=(W,{after:H})=>{let ae="</"+W[0].slice(1);return W.input.indexOf(ae,H)!==-1},n=eM,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,H)=>{let ae=W[0].length+W.index,K=W.input[ae];if(K==="<"||K===","){H.ignoreMatch();return}K===">"&&(r(W,{after:ae})||H.ignoreMatch());let L,V=W.input.substring(ae);if(L=V.match(/^\s*=/)){H.ignoreMatch();return}if((L=V.match(/^\s+extends\s+/))&&L.index===0){H.ignoreMatch();return}}},s={$pattern:eM,keyword:Iq,literal:Pq,built_in:Rq,"variable.language":jq},l="[0-9](_?[0-9])*",c=`\\.(${l})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${d})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${d})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},m={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,m],subLanguage:"xml"}},b={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,m],subLanguage:"css"}},v={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,m],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,m]},T={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},E=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,b,v,A,{match:/\$\d+/},f];m.contains=E.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(E)});let w=[].concat(T,m.contains),x=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(w)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:x},B={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},P={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...tM,...rM]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Z={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},oe={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function R(W){return t.concat("(?!",W.join("|"),")")}let z={match:t.concat(/\b/,R([...nM,"super","import"].map(W=>`${W}\\s*\\(`)),n,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},C={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},J={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},te="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",X={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(te)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:x,CLASS_REFERENCE:P},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,b,v,A,T,{match:/\$\d+/},f,P,{scope:"attr",match:n+t.lookahead(":"),relevance:0},X,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[T,e.REGEXP_MODE,{className:"function",begin:te,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:x}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},Z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,e.inherit(e.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},C,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},z,oe,B,J,{match:/\$[(.]/}]}}iM.exports=Lq});var sM=ee((cG,oM)=>{function Dq(e){let t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},n=["true","false","null"],i={scope:"literal",beginKeywords:n.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:n},contains:[t,r,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}oM.exports=Dq});var cM=ee((uG,lM)=>{var $o="[0-9](_*[0-9])*",fd=`\\.(${$o})`,md="[0-9a-fA-F](_*[0-9a-fA-F])*",Bq={className:"number",variants:[{begin:`(\\b(${$o})((${fd})|\\.)?|(${fd}))[eE][+-]?(${$o})[fFdD]?\\b`},{begin:`\\b(${$o})((${fd})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${fd})[fFdD]?\\b`},{begin:`\\b(${$o})[fFdD]\\b`},{begin:`\\b0[xX]((${md})\\.?|(${md})?\\.(${md}))[pP][+-]?(${$o})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${md})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Fq(e){let t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},r={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},n={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},a={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[a,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,a,i]}]};i.contains.push(o);let s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},c=Bq,d=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),f={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},m=f;return m.variants[1].contains=[f],f.variants[1].contains=[m],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,d,r,n,s,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[f,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,s,l,o,e.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,l]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
28
|
+
`},c]}}lM.exports=Fq});var mM=ee((dG,fM)=>{var qq=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Uq=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Hq=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],zq=[...Uq,...Hq],Gq=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),uM=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),dM=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Wq=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),Kq=uM.concat(dM).sort().reverse();function Xq(e){let t=qq(e),r=Kq,n="and or not only",i="[\\w-]+",a="("+i+"|@\\{"+i+"\\})",o=[],s=[],l=function(E){return{className:"string",begin:"~?"+E+".*?"+E}},c=function(E,w,x){return{className:E,begin:w,relevance:x}},d={$pattern:/[a-z-]+/,keyword:n,attribute:Gq.join(" ")},f={begin:"\\(",end:"\\)",contains:s,keywords:d,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l("'"),l('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,f,c("variable","@@?"+i,10),c("variable","@\\{"+i+"\\}"),c("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);let m=s.concat({begin:/\{/,end:/\}/,contains:o}),p={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},b={begin:a+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Wq.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},v={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:d,returnEnd:!0,contains:s,relevance:0}},A={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:m}},y={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:a,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,c("keyword","all\\b"),c("variable","@\\{"+i+"\\}"),{begin:"\\b("+zq.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,c("selector-tag",a,0),c("selector-id","#"+a),c("selector-class","\\."+a,0),c("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+uM.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+dM.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:m},{begin:"!important"},t.FUNCTION_DISPATCH]},T={begin:i+`:(:)?(${r.join("|")})`,returnBegin:!0,contains:[y]};return o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,v,A,T,b,y,p,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}fM.exports=Xq});var pM=ee((fG,hM)=>{function $q(e){let t="\\[=*\\[",r="\\]=*\\]",n={begin:t,end:r,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,r,{contains:[n],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:r,contains:[n],relevance:5}])}}hM.exports=$q});var yM=ee((mG,gM)=>{function Vq(e){let t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},n={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,r]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},a={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,r,n,i,a,o]}}gM.exports=Vq});var vM=ee((hG,_M)=>{function Yq(e){let t=e.regex,r=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],n=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:r.join(" ")},a={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},s={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},l={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},c={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[e.BACKSLASH_ESCAPE,a,l],f=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],m=(v,A,y="\\1")=>{let T=y==="\\1"?y:t.concat(y,A);return t.concat(t.concat("(?:",v,")"),A,/(?:\\.|[^\\\/])*?/,T,/(?:\\.|[^\\\/])*?/,y,n)},p=(v,A,y)=>t.concat(t.concat("(?:",v,")"),A,/(?:\\.|[^\\\/])*?/,y,n),b=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},c,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:m("s|tr|y",t.either(...f,{capture:!0}))},{begin:m("s|tr|y","\\(","\\)")},{begin:m("s|tr|y","\\[","\\]")},{begin:m("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p("(?:m|qr)?",/\//,/\//)},{begin:p("m|qr",t.either(...f,{capture:!0}),/\1/)},{begin:p("m|qr",/\(/,/\)/)},{begin:p("m|qr",/\[/,/\]/)},{begin:p("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,c]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return a.contains=b,o.contains=b,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:b}}_M.exports=Yq});var wM=ee((pG,bM)=>{function Zq(e){let t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},l={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}bM.exports=Zq});var AM=ee((gG,EM)=>{function Jq(e){let t=e.regex,r=/(?![A-Za-z0-9])(?![$])/,n=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),a=t.concat(/[A-Z]+/,r),o={scope:"variable",match:"\\$+"+n},s={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),f={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(C,J)=>{J.data._beginMatch=C[1]||C[2]},"on:end":(C,J)=>{J.data._beginMatch!==C[1]&&J.ignoreMatch()}},m=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[
|
|
29
|
+
]`,b={scope:"string",variants:[d,c,f,m]},v={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},A=["false","null","true"],y=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],T=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],w={keyword:y,literal:(C=>{let J=[];return C.forEach(te=>{J.push(te),te.toLowerCase()===te?J.push(te.toUpperCase()):J.push(te.toLowerCase())}),J})(A),built_in:T},x=C=>C.map(J=>J.replace(/\|\d+$/,"")),D={variants:[{match:[/new/,t.concat(p,"+"),t.concat("(?!",x(T).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},B=t.concat(n,"\\b(?!\\()"),P={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),B],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),B],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},I={scope:"attr",match:t.concat(n,t.lookahead(":"),t.lookahead(/(?!::)/))},Z={relevance:0,begin:/\(/,end:/\)/,keywords:w,contains:[I,o,P,e.C_BLOCK_COMMENT_MODE,b,v,D]},oe={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",x(y).join("\\b|"),"|",x(T).join("\\b|"),"\\b)"),n,t.concat(p,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[Z]};Z.contains.push(oe);let R=[I,P,e.C_BLOCK_COMMENT_MODE,b,v,D],z={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:A,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:A,keyword:["new","array"]},contains:["self",...R]},...R,{scope:"meta",variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:w,contains:[z,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},s,{scope:"variable.language",match:/\$this\b/},o,oe,P,{match:[/const/,/\s/,n],scope:{1:"keyword",3:"variable.constant"}},D,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:w,contains:["self",z,o,P,e.C_BLOCK_COMMENT_MODE,b,v]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},b,v]}}EM.exports=Jq});var TM=ee((yG,OM)=>{function Qq(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}OM.exports=Qq});var xM=ee((_G,SM)=>{function e8(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}SM.exports=e8});var CM=ee((vG,MM)=>{function t8(e){let t=e.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),n=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:n,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},d={begin:/\{\{/,relevance:0},f={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,d,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,d,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,d,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,d,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},m="[0-9](_?[0-9])*",p=`(\\b(${m}))?\\.(${m})|\\b(${m})\\.`,b=`\\b|${n.join("|")}`,v={className:"number",relevance:0,variants:[{begin:`(\\b(${m})|(${p}))[eE][+-]?(${m})[jJ]?(?=${b})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${b})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${b})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${b})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${b})`},{begin:`\\b(${m})[jJ](?=${b})`}]},A={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},y={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,v,f,e.HASH_COMMENT_MODE]}]};return c.contains=[f,v,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[l,v,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},f,A,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[y]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[v,y,f]}]}}MM.exports=t8});var NM=ee((bG,kM)=>{function r8(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}kM.exports=r8});var PM=ee((wG,IM)=>{function n8(e){let t=e.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,n=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,n]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,n]},{scope:{1:"punctuation",2:"number"},match:[a,n]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,n]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}IM.exports=n8});var RM=ee((EG,jM)=>{function i8(e){let t=e.regex,r=/(r#)?/,n=t.concat(r,e.UNDERSCORE_IDENT_RE),i=t.concat(r,e.IDENT_RE),a={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",s=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],l=["true","false","Some","None","Ok","Err"],c=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],d=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:d,keyword:s,literal:l,built_in:c},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/fn/,/\s+/,n],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,n],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,n,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:c,type:d}},{className:"punctuation",begin:"->"},a]}}jM.exports=i8});var DM=ee((AG,LM)=>{var a8=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),o8=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],s8=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l8=[...o8,...s8],c8=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),u8=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),d8=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),f8=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function m8(e){let t=a8(e),r=d8,n=u8,i="@[a-z-]+",a="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+l8.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+n.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+r.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+f8.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,s,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:c8.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}LM.exports=m8});var FM=ee((OG,BM)=>{function h8(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}BM.exports=h8});var UM=ee((TG,qM)=>{function p8(e){let t=e.regex,r=e.COMMENT("--","$"),n={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},a=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],d=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],f=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],m=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=d,b=[...c,...l].filter(x=>!d.includes(x)),v={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},A={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},y={match:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function T(x){return t.concat(/\b/,t.either(...x.map(D=>D.replace(/\s+/,"\\s+"))),/\b/)}let E={scope:"keyword",match:T(m),relevance:0};function w(x,{exceptions:D,when:B}={}){let P=B;return D=D||[],x.map(I=>I.match(/\|\d+$/)||D.includes(I)?I:P(I)?`${I}|0`:I)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:w(b,{when:x=>x.length<3}),literal:a,type:s,built_in:f},contains:[{scope:"type",match:T(o)},E,y,v,n,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,A]}}qM.exports=p8});var YM=ee((SG,VM)=>{function WM(e){return e?typeof e=="string"?e:e.source:null}function fl(e){return nt("(?=",e,")")}function nt(...e){return e.map(r=>WM(r)).join("")}function g8(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Jt(...e){return"("+(g8(e).capture?"":"?:")+e.map(n=>WM(n)).join("|")+")"}var yb=e=>nt(/\b/,e,/\w$/.test(e)?/\b/:/\B/),y8=["Protocol","Type"].map(yb),HM=["init","self"].map(yb),_8=["Any","Self"],pb=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],zM=["false","nil","true"],v8=["assignment","associativity","higherThan","left","lowerThan","none","right"],b8=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],GM=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],KM=Jt(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),XM=Jt(KM,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),gb=nt(KM,XM,"*"),$M=Jt(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),pd=Jt($M,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),jn=nt($M,pd,"*"),hd=nt(/[A-Z]/,pd,"*"),w8=["attached","autoclosure",nt(/convention\(/,Jt("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",nt(/objc\(/,jn,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],E8=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function A8(e){let t={match:/\s+/,relevance:0},r=e.COMMENT("/\\*","\\*/",{contains:["self"]}),n=[e.C_LINE_COMMENT_MODE,r],i={match:[/\./,Jt(...y8,...HM)],className:{2:"keyword"}},a={match:nt(/\./,Jt(...pb)),relevance:0},o=pb.filter(N=>typeof N=="string").concat(["_|0"]),s=pb.filter(N=>typeof N!="string").concat(_8).map(yb),l={variants:[{className:"keyword",match:Jt(...s,...HM)}]},c={$pattern:Jt(/\b\w+/,/#\w+/),keyword:o.concat(b8),literal:zM},d=[i,a,l],f={match:nt(/\./,Jt(...GM)),relevance:0},m={className:"built_in",match:nt(/\b/,Jt(...GM),/(?=\()/)},p=[f,m],b={match:/->/,relevance:0},v={className:"operator",relevance:0,variants:[{match:gb},{match:`\\.(\\.|${XM})+`}]},A=[b,v],y="([0-9]_*)+",T="([0-9a-fA-F]_*)+",E={className:"number",relevance:0,variants:[{match:`\\b(${y})(\\.(${y}))?([eE][+-]?(${y}))?\\b`},{match:`\\b0x(${T})(\\.(${T}))?([pP][+-]?(${y}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},w=(N="")=>({className:"subst",variants:[{match:nt(/\\/,N,/[0\\tnr"']/)},{match:nt(/\\/,N,/u\{[0-9a-fA-F]{1,8}\}/)}]}),x=(N="")=>({className:"subst",match:nt(/\\/,N,/[\t ]*(?:[\r\n]|\r\n)/)}),D=(N="")=>({className:"subst",label:"interpol",begin:nt(/\\/,N,/\(/),end:/\)/}),B=(N="")=>({begin:nt(N,/"""/),end:nt(/"""/,N),contains:[w(N),x(N),D(N)]}),P=(N="")=>({begin:nt(N,/"/),end:nt(/"/,N),contains:[w(N),D(N)]}),I={className:"string",variants:[B(),B("#"),B("##"),B("###"),P(),P("#"),P("##"),P("###")]},Z=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],oe={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Z},R=N=>{let g=nt(N,/\//),_=nt(/\//,N);return{begin:g,end:_,contains:[...Z,{scope:"comment",begin:`#(?!.*${_})`,end:/$/}]}},z={scope:"regexp",variants:[R("###"),R("##"),R("#"),oe]},C={match:nt(/`/,jn,/`/)},J={className:"variable",match:/\$\d+/},te={className:"variable",match:`\\$${pd}+`},X=[C,J,te],W={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:E8,contains:[...A,E,I]}]}},H={scope:"keyword",match:nt(/@/,Jt(...w8),fl(Jt(/\(/,/\s+/)))},ae={scope:"meta",match:nt(/@/,jn)},K=[W,H,ae],L={match:fl(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:nt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,pd,"+")},{className:"type",match:hd,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:nt(/\s+&\s+/,fl(hd)),relevance:0}]},V={begin:/</,end:/>/,keywords:c,contains:[...n,...d,...K,b,L]};L.contains.push(V);let Y={match:nt(jn,/\s*:/),keywords:"_|0",relevance:0},re={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",Y,...n,z,...d,...p,...A,E,I,...X,...K,L]},k={begin:/</,end:/>/,keywords:"repeat each",contains:[...n,L]},h={begin:Jt(fl(nt(jn,/\s*:/)),fl(nt(jn,/\s+/,jn,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:jn}]},O={begin:/\(/,end:/\)/,keywords:c,contains:[h,...n,...d,...A,E,I,...K,L,re],endsParent:!0,illegal:/["']/},j={match:[/(func|macro)/,/\s+/,Jt(C.match,jn,gb)],className:{1:"keyword",3:"title.function"},contains:[k,O,t],illegal:[/\[/,/%/]},U={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[k,O,t],illegal:/\[|%/},F={match:[/operator/,/\s+/,gb],className:{1:"keyword",3:"title"}},q={begin:[/precedencegroup/,/\s+/,hd],className:{1:"keyword",3:"title"},contains:[L],keywords:[...v8,...zM],end:/}/},ne={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},S={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},ie={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,jn,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:c,contains:[k,...d,{begin:/:/,end:/\{/,keywords:c,contains:[{scope:"title.class.inherited",match:hd},...d],relevance:0}]};for(let N of I.variants){let g=N.contains.find(M=>M.label==="interpol");g.keywords=c;let _=[...d,...p,...A,E,I,...X];g.contains=[..._,{begin:/\(/,end:/\)/,contains:["self",..._]}]}return{name:"Swift",keywords:c,contains:[...n,j,U,ne,S,ie,F,q,{beginKeywords:"import",end:/$/,contains:[...n],relevance:0},z,...d,...p,...A,E,I,...X,...K,L,re]}}VM.exports=A8});var JM=ee((xG,ZM)=>{function O8(e){let t="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",n={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},o={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},s=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),m={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},p={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},b={begin:/\{/,end:/\}/,contains:[p],illegal:"\\n",relevance:0},v={begin:"\\[",end:"\\]",contains:[p],illegal:"\\n",relevance:0},A=[n,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},m,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},b,v,a,o],y=[...A];return y.pop(),y.push(s),p.contains=y,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:A}}ZM.exports=O8});var sC=ee((MG,oC)=>{var gd="[A-Za-z$_][0-9A-Za-z$_]*",QM=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],eC=["true","false","null","undefined","NaN","Infinity"],tC=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],rC=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],nC=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],iC=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],aC=[].concat(nC,tC,rC);function T8(e){let t=e.regex,r=(W,{after:H})=>{let ae="</"+W[0].slice(1);return W.input.indexOf(ae,H)!==-1},n=gd,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,H)=>{let ae=W[0].length+W.index,K=W.input[ae];if(K==="<"||K===","){H.ignoreMatch();return}K===">"&&(r(W,{after:ae})||H.ignoreMatch());let L,V=W.input.substring(ae);if(L=V.match(/^\s*=/)){H.ignoreMatch();return}if((L=V.match(/^\s+extends\s+/))&&L.index===0){H.ignoreMatch();return}}},s={$pattern:gd,keyword:QM,literal:eC,built_in:aC,"variable.language":iC},l="[0-9](_?[0-9])*",c=`\\.(${l})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${d})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${d})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},m={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,m],subLanguage:"xml"}},b={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,m],subLanguage:"css"}},v={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,m],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,m]},T={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},E=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,b,v,A,{match:/\$\d+/},f];m.contains=E.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(E)});let w=[].concat(T,m.contains),x=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(w)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:x},B={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},P={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...tC,...rC]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Z={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},oe={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function R(W){return t.concat("(?!",W.join("|"),")")}let z={match:t.concat(/\b/,R([...nC,"super","import"].map(W=>`${W}\\s*\\(`)),n,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},C={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},J={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},te="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",X={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(te)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:x,CLASS_REFERENCE:P},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,b,v,A,T,{match:/\$\d+/},f,P,{scope:"attr",match:n+t.lookahead(":"),relevance:0},X,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[T,e.REGEXP_MODE,{className:"function",begin:te,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:x}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},Z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,e.inherit(e.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},C,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},z,oe,B,J,{match:/\$[(.]/}]}}function S8(e){let t=e.regex,r=T8(e),n=gd,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[r.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],c={$pattern:gd,keyword:QM.concat(l),literal:eC,built_in:aC.concat(i),"variable.language":iC},d={className:"meta",begin:"@"+n},f=(v,A,y)=>{let T=v.contains.findIndex(E=>E.label===A);if(T===-1)throw new Error("can not find mode to replace");v.contains.splice(T,1,y)};Object.assign(r.keywords,c),r.exports.PARAMS_CONTAINS.push(d);let m=r.contains.find(v=>v.scope==="attr"),p=Object.assign({},m,{match:t.concat(n,t.lookahead(/\s*\?:/))});r.exports.PARAMS_CONTAINS.push([r.exports.CLASS_REFERENCE,m,p]),r.contains=r.contains.concat([d,a,o,p]),f(r,"shebang",e.SHEBANG()),f(r,"use_strict",s);let b=r.contains.find(v=>v.label==="func.def");return b.relevance=0,Object.assign(r,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),r}oC.exports=S8});var cC=ee((CG,lC)=>{function x8(e){let t=e.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},n={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(o,s),/ *#/)}]},c={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},d={className:"label",begin:/^\w+:/},f=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),m=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,n,l,c,d,f,m,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[m]}]}}lC.exports=x8});var dC=ee((kG,uC)=>{function M8(e){e.regex;let t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");let r=e.COMMENT(/;;/,/$/),n=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},a={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:n},contains:[r,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},a,o,i,e.QUOTE_STRING_MODE,l,c,s]}}uC.exports=M8});var mC=ee((NG,fC)=>{var je=IC();je.registerLanguage("xml",x2());je.registerLanguage("bash",C2());je.registerLanguage("c",N2());je.registerLanguage("cpp",P2());je.registerLanguage("csharp",R2());je.registerLanguage("css",D2());je.registerLanguage("markdown",F2());je.registerLanguage("diff",U2());je.registerLanguage("ruby",z2());je.registerLanguage("go",W2());je.registerLanguage("graphql",X2());je.registerLanguage("ini",V2());je.registerLanguage("java",Q2());je.registerLanguage("javascript",aM());je.registerLanguage("json",sM());je.registerLanguage("kotlin",cM());je.registerLanguage("less",mM());je.registerLanguage("lua",pM());je.registerLanguage("makefile",yM());je.registerLanguage("perl",vM());je.registerLanguage("objectivec",wM());je.registerLanguage("php",AM());je.registerLanguage("php-template",TM());je.registerLanguage("plaintext",xM());je.registerLanguage("python",CM());je.registerLanguage("python-repl",NM());je.registerLanguage("r",PM());je.registerLanguage("rust",RM());je.registerLanguage("scss",DM());je.registerLanguage("shell",FM());je.registerLanguage("sql",UM());je.registerLanguage("swift",YM());je.registerLanguage("yaml",JM());je.registerLanguage("typescript",sC());je.registerLanguage("vbnet",cC());je.registerLanguage("wasm",dC());je.HighlightJS=je;je.default=je;fC.exports=je});var PC=Object.defineProperty,jC=Object.defineProperties,RC=Object.getOwnPropertyDescriptors,xb=Object.getOwnPropertySymbols,LC=Object.prototype.hasOwnProperty,DC=Object.prototype.propertyIsEnumerable,om=(e,t,r)=>t in e?PC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Re=(e,t)=>{for(var r in t||(t={}))LC.call(t,r)&&om(e,r,t[r]);if(xb)for(var r of xb(t))DC.call(t,r)&&om(e,r,t[r]);return e},Un=(e,t)=>jC(e,RC(t));var ce=(e,t,r)=>om(e,typeof t!="symbol"?t+"":t,r),BC=(e,t,r)=>new Promise((n,i)=>{var a=l=>{try{s(r.next(l))}catch(c){i(c)}},o=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);s((r=r.apply(e,t)).next())}),La=class{constructor(t){ce(this,"rootKey"),this.rootKey=t}},FC=Object.seal({}),se=class extends La{constructor(t){super(t),ce(this,"root"),this.root=new Array}prepForXml(t){var r;t.stack.push(this);let n=this.root.map(i=>i instanceof La?i.prepForXml(t):i).filter(i=>i!==void 0);return t.stack.pop(),{[this.rootKey]:n.length?n.length===1&&((r=n[0])!=null&&r._attr)?n[0]:n:FC}}addChildElement(t){return this.root.push(t),this}},qr=class extends se{prepForXml(t){let r=super.prepForXml(t);if(r&&(typeof r[this.rootKey]!="object"||Object.keys(r[this.rootKey]).length))return r}},ve=class extends La{constructor(t){super("_attr"),ce(this,"xmlKeys"),this.root=t}prepForXml(t){let r={};return Object.entries(this.root).forEach(([n,i])=>{if(i!==void 0){let a=this.xmlKeys&&this.xmlKeys[n]||n;r[a]=i}}),{_attr:r}}},Ur=class extends La{constructor(t){super("_attr"),this.root=t}prepForXml(t){return{_attr:Object.values(this.root).filter(({value:n})=>n!==void 0).reduce((n,{key:i,value:a})=>Un(Re({},n),{[i]:a}),{})}}},dt=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}},on=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wd={},gl={exports:{}},Mb;function Wg(){if(Mb)return gl.exports;Mb=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(x,D,B){return Function.prototype.apply.call(x,D,B)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(x){return Object.getOwnPropertyNames(x).concat(Object.getOwnPropertySymbols(x))}:r=function(x){return Object.getOwnPropertyNames(x)};function n(w){console&&console.warn&&console.warn(w)}var i=Number.isNaN||function(x){return x!==x};function a(){a.init.call(this)}gl.exports=a,gl.exports.once=y,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var o=10;function s(w){if(typeof w!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof w)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(w){if(typeof w!="number"||w<0||i(w))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+w+".");o=w}}),a.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(x){if(typeof x!="number"||x<0||i(x))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+x+".");return this._maxListeners=x,this};function l(w){return w._maxListeners===void 0?a.defaultMaxListeners:w._maxListeners}a.prototype.getMaxListeners=function(){return l(this)},a.prototype.emit=function(x){for(var D=[],B=1;B<arguments.length;B++)D.push(arguments[B]);var P=x==="error",I=this._events;if(I!==void 0)P=P&&I.error===void 0;else if(!P)return!1;if(P){var Z;if(D.length>0&&(Z=D[0]),Z instanceof Error)throw Z;var oe=new Error("Unhandled error."+(Z?" ("+Z.message+")":""));throw oe.context=Z,oe}var R=I[x];if(R===void 0)return!1;if(typeof R=="function")t(R,this,D);else for(var z=R.length,C=b(R,z),B=0;B<z;++B)t(C[B],this,D);return!0};function c(w,x,D,B){var P,I,Z;if(s(D),I=w._events,I===void 0?(I=w._events=Object.create(null),w._eventsCount=0):(I.newListener!==void 0&&(w.emit("newListener",x,D.listener?D.listener:D),I=w._events),Z=I[x]),Z===void 0)Z=I[x]=D,++w._eventsCount;else if(typeof Z=="function"?Z=I[x]=B?[D,Z]:[Z,D]:B?Z.unshift(D):Z.push(D),P=l(w),P>0&&Z.length>P&&!Z.warned){Z.warned=!0;var oe=new Error("Possible EventEmitter memory leak detected. "+Z.length+" "+String(x)+" listeners added. Use emitter.setMaxListeners() to increase limit");oe.name="MaxListenersExceededWarning",oe.emitter=w,oe.type=x,oe.count=Z.length,n(oe)}return w}a.prototype.addListener=function(x,D){return c(this,x,D,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(x,D){return c(this,x,D,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(w,x,D){var B={fired:!1,wrapFn:void 0,target:w,type:x,listener:D},P=d.bind(B);return P.listener=D,B.wrapFn=P,P}a.prototype.once=function(x,D){return s(D),this.on(x,f(this,x,D)),this},a.prototype.prependOnceListener=function(x,D){return s(D),this.prependListener(x,f(this,x,D)),this},a.prototype.removeListener=function(x,D){var B,P,I,Z,oe;if(s(D),P=this._events,P===void 0)return this;if(B=P[x],B===void 0)return this;if(B===D||B.listener===D)--this._eventsCount===0?this._events=Object.create(null):(delete P[x],P.removeListener&&this.emit("removeListener",x,B.listener||D));else if(typeof B!="function"){for(I=-1,Z=B.length-1;Z>=0;Z--)if(B[Z]===D||B[Z].listener===D){oe=B[Z].listener,I=Z;break}if(I<0)return this;I===0?B.shift():v(B,I),B.length===1&&(P[x]=B[0]),P.removeListener!==void 0&&this.emit("removeListener",x,oe||D)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(x){var D,B,P;if(B=this._events,B===void 0)return this;if(B.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):B[x]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete B[x]),this;if(arguments.length===0){var I=Object.keys(B),Z;for(P=0;P<I.length;++P)Z=I[P],Z!=="removeListener"&&this.removeAllListeners(Z);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(D=B[x],typeof D=="function")this.removeListener(x,D);else if(D!==void 0)for(P=D.length-1;P>=0;P--)this.removeListener(x,D[P]);return this};function m(w,x,D){var B=w._events;if(B===void 0)return[];var P=B[x];return P===void 0?[]:typeof P=="function"?D?[P.listener||P]:[P]:D?A(P):b(P,P.length)}a.prototype.listeners=function(x){return m(this,x,!0)},a.prototype.rawListeners=function(x){return m(this,x,!1)},a.listenerCount=function(w,x){return typeof w.listenerCount=="function"?w.listenerCount(x):p.call(w,x)},a.prototype.listenerCount=p;function p(w){var x=this._events;if(x!==void 0){var D=x[w];if(typeof D=="function")return 1;if(D!==void 0)return D.length}return 0}a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function b(w,x){for(var D=new Array(x),B=0;B<x;++B)D[B]=w[B];return D}function v(w,x){for(;x+1<w.length;x++)w[x]=w[x+1];w.pop()}function A(w){for(var x=new Array(w.length),D=0;D<x.length;++D)x[D]=w[D].listener||w[D];return x}function y(w,x){return new Promise(function(D,B){function P(Z){w.removeListener(x,I),B(Z)}function I(){typeof w.removeListener=="function"&&w.removeListener("error",P),D([].slice.call(arguments))}E(w,x,I,{once:!0}),x!=="error"&&T(w,P,{once:!0})})}function T(w,x,D){typeof w.on=="function"&&E(w,"error",x,D)}function E(w,x,D,B){if(typeof w.on=="function")B.once?w.once(x,D):w.on(x,D);else if(typeof w.addEventListener=="function")w.addEventListener(x,function P(I){B.once&&w.removeEventListener(x,P),D(I)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof w)}return gl.exports}var yl={exports:{}},Cb;function mi(){return Cb||(Cb=1,typeof Object.create=="function"?yl.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:yl.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),yl.exports}function qC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var SE={exports:{}},gt=SE.exports={},nn,an;function sm(){throw new Error("setTimeout has not been defined")}function lm(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?nn=setTimeout:nn=sm}catch{nn=sm}try{typeof clearTimeout=="function"?an=clearTimeout:an=lm}catch{an=lm}})();function xE(e){if(nn===setTimeout)return setTimeout(e,0);if((nn===sm||!nn)&&setTimeout)return nn=setTimeout,setTimeout(e,0);try{return nn(e,0)}catch{try{return nn.call(null,e,0)}catch{return nn.call(this,e,0)}}}function UC(e){if(an===clearTimeout)return clearTimeout(e);if((an===lm||!an)&&clearTimeout)return an=clearTimeout,clearTimeout(e);try{return an(e)}catch{try{return an.call(null,e)}catch{return an.call(this,e)}}}var Bn=[],ja=!1,sa,Tl=-1;function HC(){!ja||!sa||(ja=!1,sa.length?Bn=sa.concat(Bn):Tl=-1,Bn.length&&ME())}function ME(){if(!ja){var e=xE(HC);ja=!0;for(var t=Bn.length;t;){for(sa=Bn,Bn=[];++Tl<t;)sa&&sa[Tl].run();Tl=-1,t=Bn.length}sa=null,ja=!1,UC(e)}}gt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Bn.push(new CE(e,t)),Bn.length===1&&!ja&&xE(ME)};function CE(e,t){this.fun=e,this.array=t}CE.prototype.run=function(){this.fun.apply(null,this.array)};gt.title="browser";gt.browser=!0;gt.env={};gt.argv=[];gt.version="";gt.versions={};function $n(){}gt.on=$n;gt.addListener=$n;gt.once=$n;gt.off=$n;gt.removeListener=$n;gt.removeAllListeners=$n;gt.emit=$n;gt.prependListener=$n;gt.prependOnceListener=$n;gt.listeners=function(e){return[]};gt.binding=function(e){throw new Error("process.binding is not supported")};gt.cwd=function(){return"/"};gt.chdir=function(e){throw new Error("process.chdir is not supported")};gt.umask=function(){return 0};var zC=SE.exports,De=qC(zC),Ed,kb;function kE(){return kb||(kb=1,Ed=Wg().EventEmitter),Ed}var Ad={},Zo={},Nb;function GC(){if(Nb)return Zo;Nb=1,Zo.byteLength=s,Zo.toByteArray=c,Zo.fromByteArray=m;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=n.length;i<a;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;t[45]=62,t[95]=63;function o(p){var b=p.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=p.indexOf("=");v===-1&&(v=b);var A=v===b?0:4-v%4;return[v,A]}function s(p){var b=o(p),v=b[0],A=b[1];return(v+A)*3/4-A}function l(p,b,v){return(b+v)*3/4-v}function c(p){var b,v=o(p),A=v[0],y=v[1],T=new r(l(p,A,y)),E=0,w=y>0?A-4:A,x;for(x=0;x<w;x+=4)b=t[p.charCodeAt(x)]<<18|t[p.charCodeAt(x+1)]<<12|t[p.charCodeAt(x+2)]<<6|t[p.charCodeAt(x+3)],T[E++]=b>>16&255,T[E++]=b>>8&255,T[E++]=b&255;return y===2&&(b=t[p.charCodeAt(x)]<<2|t[p.charCodeAt(x+1)]>>4,T[E++]=b&255),y===1&&(b=t[p.charCodeAt(x)]<<10|t[p.charCodeAt(x+1)]<<4|t[p.charCodeAt(x+2)]>>2,T[E++]=b>>8&255,T[E++]=b&255),T}function d(p){return e[p>>18&63]+e[p>>12&63]+e[p>>6&63]+e[p&63]}function f(p,b,v){for(var A,y=[],T=b;T<v;T+=3)A=(p[T]<<16&16711680)+(p[T+1]<<8&65280)+(p[T+2]&255),y.push(d(A));return y.join("")}function m(p){for(var b,v=p.length,A=v%3,y=[],T=16383,E=0,w=v-A;E<w;E+=T)y.push(f(p,E,E+T>w?w:E+T));return A===1?(b=p[v-1],y.push(e[b>>2]+e[b<<4&63]+"==")):A===2&&(b=(p[v-2]<<8)+p[v-1],y.push(e[b>>10]+e[b>>4&63]+e[b<<2&63]+"=")),y.join("")}return Zo}var _l={};var Ib;function WC(){return Ib||(Ib=1,_l.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,l=(1<<s)-1,c=l>>1,d=-7,f=r?i-1:0,m=r?-1:1,p=e[t+f];for(f+=m,a=p&(1<<-d)-1,p>>=-d,d+=s;d>0;a=a*256+e[t+f],f+=m,d-=8);for(o=a&(1<<-d)-1,a>>=-d,d+=n;d>0;o=o*256+e[t+f],f+=m,d-=8);if(a===0)a=1-c;else{if(a===l)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-c}return(p?-1:1)*o*Math.pow(2,a-n)},_l.write=function(e,t,r,n,i,a){var o,s,l,c=a*8-i-1,d=(1<<c)-1,f=d>>1,m=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,b=n?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=m/l:t+=m*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=d?(s=0,o=d):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=s&255,p+=b,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;e[r+p]=o&255,p+=b,o/=256,c-=8);e[r+p-b]|=v*128}),_l}var Pb;function Vl(){return Pb||(Pb=1,(function(e){var t=GC(),r=WC(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=T,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var N=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(N,g),N.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(N){if(N>i)throw new RangeError('The value "'+N+'" is invalid for option "size"');var g=new Uint8Array(N);return Object.setPrototypeOf(g,s.prototype),g}function s(N,g,_){if(typeof N=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(N)}return l(N,g,_)}s.poolSize=8192;function l(N,g,_){if(typeof N=="string")return m(N,g);if(ArrayBuffer.isView(N))return b(N);if(N==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N);if(ne(N,ArrayBuffer)||N&&ne(N.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ne(N,SharedArrayBuffer)||N&&ne(N.buffer,SharedArrayBuffer)))return v(N,g,_);if(typeof N=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var M=N.valueOf&&N.valueOf();if(M!=null&&M!==N)return s.from(M,g,_);var G=A(N);if(G)return G;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof N[Symbol.toPrimitive]=="function")return s.from(N[Symbol.toPrimitive]("string"),g,_);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N)}s.from=function(N,g,_){return l(N,g,_)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(N){if(typeof N!="number")throw new TypeError('"size" argument must be of type number');if(N<0)throw new RangeError('The value "'+N+'" is invalid for option "size"')}function d(N,g,_){return c(N),N<=0?o(N):g!==void 0?typeof _=="string"?o(N).fill(g,_):o(N).fill(g):o(N)}s.alloc=function(N,g,_){return d(N,g,_)};function f(N){return c(N),o(N<0?0:y(N)|0)}s.allocUnsafe=function(N){return f(N)},s.allocUnsafeSlow=function(N){return f(N)};function m(N,g){if((typeof g!="string"||g==="")&&(g="utf8"),!s.isEncoding(g))throw new TypeError("Unknown encoding: "+g);var _=E(N,g)|0,M=o(_),G=M.write(N,g);return G!==_&&(M=M.slice(0,G)),M}function p(N){for(var g=N.length<0?0:y(N.length)|0,_=o(g),M=0;M<g;M+=1)_[M]=N[M]&255;return _}function b(N){if(ne(N,Uint8Array)){var g=new Uint8Array(N);return v(g.buffer,g.byteOffset,g.byteLength)}return p(N)}function v(N,g,_){if(g<0||N.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(N.byteLength<g+(_||0))throw new RangeError('"length" is outside of buffer bounds');var M;return g===void 0&&_===void 0?M=new Uint8Array(N):_===void 0?M=new Uint8Array(N,g):M=new Uint8Array(N,g,_),Object.setPrototypeOf(M,s.prototype),M}function A(N){if(s.isBuffer(N)){var g=y(N.length)|0,_=o(g);return _.length===0||N.copy(_,0,0,g),_}if(N.length!==void 0)return typeof N.length!="number"||S(N.length)?o(0):p(N);if(N.type==="Buffer"&&Array.isArray(N.data))return p(N.data)}function y(N){if(N>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return N|0}function T(N){return+N!=N&&(N=0),s.alloc(+N)}s.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==s.prototype},s.compare=function(g,_){if(ne(g,Uint8Array)&&(g=s.from(g,g.offset,g.byteLength)),ne(_,Uint8Array)&&(_=s.from(_,_.offset,_.byteLength)),!s.isBuffer(g)||!s.isBuffer(_))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===_)return 0;for(var M=g.length,G=_.length,Q=0,$=Math.min(M,G);Q<$;++Q)if(g[Q]!==_[Q]){M=g[Q],G=_[Q];break}return M<G?-1:G<M?1:0},s.isEncoding=function(g){switch(String(g).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(g,_){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return s.alloc(0);var M;if(_===void 0)for(_=0,M=0;M<g.length;++M)_+=g[M].length;var G=s.allocUnsafe(_),Q=0;for(M=0;M<g.length;++M){var $=g[M];if(ne($,Uint8Array))Q+$.length>G.length?s.from($).copy(G,Q):Uint8Array.prototype.set.call(G,$,Q);else if(s.isBuffer($))$.copy(G,Q);else throw new TypeError('"list" argument must be an Array of Buffers');Q+=$.length}return G};function E(N,g){if(s.isBuffer(N))return N.length;if(ArrayBuffer.isView(N)||ne(N,ArrayBuffer))return N.byteLength;if(typeof N!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof N);var _=N.length,M=arguments.length>2&&arguments[2]===!0;if(!M&&_===0)return 0;for(var G=!1;;)switch(g){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":return O(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return F(N).length;default:if(G)return M?-1:O(N).length;g=(""+g).toLowerCase(),G=!0}}s.byteLength=E;function w(N,g,_){var M=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,g>>>=0,_<=g))return"";for(N||(N="utf8");;)switch(N){case"hex":return H(this,g,_);case"utf8":case"utf-8":return C(this,g,_);case"ascii":return X(this,g,_);case"latin1":case"binary":return W(this,g,_);case"base64":return z(this,g,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,g,_);default:if(M)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),M=!0}}s.prototype._isBuffer=!0;function x(N,g,_){var M=N[g];N[g]=N[_],N[_]=M}s.prototype.swap16=function(){var g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var _=0;_<g;_+=2)x(this,_,_+1);return this},s.prototype.swap32=function(){var g=this.length;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var _=0;_<g;_+=4)x(this,_,_+3),x(this,_+1,_+2);return this},s.prototype.swap64=function(){var g=this.length;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var _=0;_<g;_+=8)x(this,_,_+7),x(this,_+1,_+6),x(this,_+2,_+5),x(this,_+3,_+4);return this},s.prototype.toString=function(){var g=this.length;return g===0?"":arguments.length===0?C(this,0,g):w.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(g){if(!s.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:s.compare(this,g)===0},s.prototype.inspect=function(){var g="",_=e.INSPECT_MAX_BYTES;return g=this.toString("hex",0,_).replace(/(.{2})/g,"$1 ").trim(),this.length>_&&(g+=" ... "),"<Buffer "+g+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(g,_,M,G,Q){if(ne(g,Uint8Array)&&(g=s.from(g,g.offset,g.byteLength)),!s.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(_===void 0&&(_=0),M===void 0&&(M=g?g.length:0),G===void 0&&(G=0),Q===void 0&&(Q=this.length),_<0||M>g.length||G<0||Q>this.length)throw new RangeError("out of range index");if(G>=Q&&_>=M)return 0;if(G>=Q)return-1;if(_>=M)return 1;if(_>>>=0,M>>>=0,G>>>=0,Q>>>=0,this===g)return 0;for(var $=Q-G,ue=M-_,me=Math.min($,ue),de=this.slice(G,Q),ye=g.slice(_,M),we=0;we<me;++we)if(de[we]!==ye[we]){$=de[we],ue=ye[we];break}return $<ue?-1:ue<$?1:0};function D(N,g,_,M,G){if(N.length===0)return-1;if(typeof _=="string"?(M=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,S(_)&&(_=G?0:N.length-1),_<0&&(_=N.length+_),_>=N.length){if(G)return-1;_=N.length-1}else if(_<0)if(G)_=0;else return-1;if(typeof g=="string"&&(g=s.from(g,M)),s.isBuffer(g))return g.length===0?-1:B(N,g,_,M,G);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?G?Uint8Array.prototype.indexOf.call(N,g,_):Uint8Array.prototype.lastIndexOf.call(N,g,_):B(N,[g],_,M,G);throw new TypeError("val must be string, number or Buffer")}function B(N,g,_,M,G){var Q=1,$=N.length,ue=g.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(N.length<2||g.length<2)return-1;Q=2,$/=2,ue/=2,_/=2}function me(Vt,ui){return Q===1?Vt[ui]:Vt.readUInt16BE(ui*Q)}var de;if(G){var ye=-1;for(de=_;de<$;de++)if(me(N,de)===me(g,ye===-1?0:de-ye)){if(ye===-1&&(ye=de),de-ye+1===ue)return ye*Q}else ye!==-1&&(de-=de-ye),ye=-1}else for(_+ue>$&&(_=$-ue),de=_;de>=0;de--){for(var we=!0,Me=0;Me<ue;Me++)if(me(N,de+Me)!==me(g,Me)){we=!1;break}if(we)return de}return-1}s.prototype.includes=function(g,_,M){return this.indexOf(g,_,M)!==-1},s.prototype.indexOf=function(g,_,M){return D(this,g,_,M,!0)},s.prototype.lastIndexOf=function(g,_,M){return D(this,g,_,M,!1)};function P(N,g,_,M){_=Number(_)||0;var G=N.length-_;M?(M=Number(M),M>G&&(M=G)):M=G;var Q=g.length;M>Q/2&&(M=Q/2);for(var $=0;$<M;++$){var ue=parseInt(g.substr($*2,2),16);if(S(ue))return $;N[_+$]=ue}return $}function I(N,g,_,M){return q(O(g,N.length-_),N,_,M)}function Z(N,g,_,M){return q(j(g),N,_,M)}function oe(N,g,_,M){return q(F(g),N,_,M)}function R(N,g,_,M){return q(U(g,N.length-_),N,_,M)}s.prototype.write=function(g,_,M,G){if(_===void 0)G="utf8",M=this.length,_=0;else if(M===void 0&&typeof _=="string")G=_,M=this.length,_=0;else if(isFinite(_))_=_>>>0,isFinite(M)?(M=M>>>0,G===void 0&&(G="utf8")):(G=M,M=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Q=this.length-_;if((M===void 0||M>Q)&&(M=Q),g.length>0&&(M<0||_<0)||_>this.length)throw new RangeError("Attempt to write outside buffer bounds");G||(G="utf8");for(var $=!1;;)switch(G){case"hex":return P(this,g,_,M);case"utf8":case"utf-8":return I(this,g,_,M);case"ascii":case"latin1":case"binary":return Z(this,g,_,M);case"base64":return oe(this,g,_,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,g,_,M);default:if($)throw new TypeError("Unknown encoding: "+G);G=(""+G).toLowerCase(),$=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function z(N,g,_){return g===0&&_===N.length?t.fromByteArray(N):t.fromByteArray(N.slice(g,_))}function C(N,g,_){_=Math.min(N.length,_);for(var M=[],G=g;G<_;){var Q=N[G],$=null,ue=Q>239?4:Q>223?3:Q>191?2:1;if(G+ue<=_){var me,de,ye,we;switch(ue){case 1:Q<128&&($=Q);break;case 2:me=N[G+1],(me&192)===128&&(we=(Q&31)<<6|me&63,we>127&&($=we));break;case 3:me=N[G+1],de=N[G+2],(me&192)===128&&(de&192)===128&&(we=(Q&15)<<12|(me&63)<<6|de&63,we>2047&&(we<55296||we>57343)&&($=we));break;case 4:me=N[G+1],de=N[G+2],ye=N[G+3],(me&192)===128&&(de&192)===128&&(ye&192)===128&&(we=(Q&15)<<18|(me&63)<<12|(de&63)<<6|ye&63,we>65535&&we<1114112&&($=we))}}$===null?($=65533,ue=1):$>65535&&($-=65536,M.push($>>>10&1023|55296),$=56320|$&1023),M.push($),G+=ue}return te(M)}var J=4096;function te(N){var g=N.length;if(g<=J)return String.fromCharCode.apply(String,N);for(var _="",M=0;M<g;)_+=String.fromCharCode.apply(String,N.slice(M,M+=J));return _}function X(N,g,_){var M="";_=Math.min(N.length,_);for(var G=g;G<_;++G)M+=String.fromCharCode(N[G]&127);return M}function W(N,g,_){var M="";_=Math.min(N.length,_);for(var G=g;G<_;++G)M+=String.fromCharCode(N[G]);return M}function H(N,g,_){var M=N.length;(!g||g<0)&&(g=0),(!_||_<0||_>M)&&(_=M);for(var G="",Q=g;Q<_;++Q)G+=ie[N[Q]];return G}function ae(N,g,_){for(var M=N.slice(g,_),G="",Q=0;Q<M.length-1;Q+=2)G+=String.fromCharCode(M[Q]+M[Q+1]*256);return G}s.prototype.slice=function(g,_){var M=this.length;g=~~g,_=_===void 0?M:~~_,g<0?(g+=M,g<0&&(g=0)):g>M&&(g=M),_<0?(_+=M,_<0&&(_=0)):_>M&&(_=M),_<g&&(_=g);var G=this.subarray(g,_);return Object.setPrototypeOf(G,s.prototype),G};function K(N,g,_){if(N%1!==0||N<0)throw new RangeError("offset is not uint");if(N+g>_)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(g,_,M){g=g>>>0,_=_>>>0,M||K(g,_,this.length);for(var G=this[g],Q=1,$=0;++$<_&&(Q*=256);)G+=this[g+$]*Q;return G},s.prototype.readUintBE=s.prototype.readUIntBE=function(g,_,M){g=g>>>0,_=_>>>0,M||K(g,_,this.length);for(var G=this[g+--_],Q=1;_>0&&(Q*=256);)G+=this[g+--_]*Q;return G},s.prototype.readUint8=s.prototype.readUInt8=function(g,_){return g=g>>>0,_||K(g,1,this.length),this[g]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(g,_){return g=g>>>0,_||K(g,2,this.length),this[g]|this[g+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(g,_){return g=g>>>0,_||K(g,2,this.length),this[g]<<8|this[g+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(g,_){return g=g>>>0,_||K(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(g,_){return g=g>>>0,_||K(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},s.prototype.readIntLE=function(g,_,M){g=g>>>0,_=_>>>0,M||K(g,_,this.length);for(var G=this[g],Q=1,$=0;++$<_&&(Q*=256);)G+=this[g+$]*Q;return Q*=128,G>=Q&&(G-=Math.pow(2,8*_)),G},s.prototype.readIntBE=function(g,_,M){g=g>>>0,_=_>>>0,M||K(g,_,this.length);for(var G=_,Q=1,$=this[g+--G];G>0&&(Q*=256);)$+=this[g+--G]*Q;return Q*=128,$>=Q&&($-=Math.pow(2,8*_)),$},s.prototype.readInt8=function(g,_){return g=g>>>0,_||K(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},s.prototype.readInt16LE=function(g,_){g=g>>>0,_||K(g,2,this.length);var M=this[g]|this[g+1]<<8;return M&32768?M|4294901760:M},s.prototype.readInt16BE=function(g,_){g=g>>>0,_||K(g,2,this.length);var M=this[g+1]|this[g]<<8;return M&32768?M|4294901760:M},s.prototype.readInt32LE=function(g,_){return g=g>>>0,_||K(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},s.prototype.readInt32BE=function(g,_){return g=g>>>0,_||K(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},s.prototype.readFloatLE=function(g,_){return g=g>>>0,_||K(g,4,this.length),r.read(this,g,!0,23,4)},s.prototype.readFloatBE=function(g,_){return g=g>>>0,_||K(g,4,this.length),r.read(this,g,!1,23,4)},s.prototype.readDoubleLE=function(g,_){return g=g>>>0,_||K(g,8,this.length),r.read(this,g,!0,52,8)},s.prototype.readDoubleBE=function(g,_){return g=g>>>0,_||K(g,8,this.length),r.read(this,g,!1,52,8)};function L(N,g,_,M,G,Q){if(!s.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>G||g<Q)throw new RangeError('"value" argument is out of bounds');if(_+M>N.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(g,_,M,G){if(g=+g,_=_>>>0,M=M>>>0,!G){var Q=Math.pow(2,8*M)-1;L(this,g,_,M,Q,0)}var $=1,ue=0;for(this[_]=g&255;++ue<M&&($*=256);)this[_+ue]=g/$&255;return _+M},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(g,_,M,G){if(g=+g,_=_>>>0,M=M>>>0,!G){var Q=Math.pow(2,8*M)-1;L(this,g,_,M,Q,0)}var $=M-1,ue=1;for(this[_+$]=g&255;--$>=0&&(ue*=256);)this[_+$]=g/ue&255;return _+M},s.prototype.writeUint8=s.prototype.writeUInt8=function(g,_,M){return g=+g,_=_>>>0,M||L(this,g,_,1,255,0),this[_]=g&255,_+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(g,_,M){return g=+g,_=_>>>0,M||L(this,g,_,2,65535,0),this[_]=g&255,this[_+1]=g>>>8,_+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(g,_,M){return g=+g,_=_>>>0,M||L(this,g,_,2,65535,0),this[_]=g>>>8,this[_+1]=g&255,_+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(g,_,M){return g=+g,_=_>>>0,M||L(this,g,_,4,4294967295,0),this[_+3]=g>>>24,this[_+2]=g>>>16,this[_+1]=g>>>8,this[_]=g&255,_+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(g,_,M){return g=+g,_=_>>>0,M||L(this,g,_,4,4294967295,0),this[_]=g>>>24,this[_+1]=g>>>16,this[_+2]=g>>>8,this[_+3]=g&255,_+4},s.prototype.writeIntLE=function(g,_,M,G){if(g=+g,_=_>>>0,!G){var Q=Math.pow(2,8*M-1);L(this,g,_,M,Q-1,-Q)}var $=0,ue=1,me=0;for(this[_]=g&255;++$<M&&(ue*=256);)g<0&&me===0&&this[_+$-1]!==0&&(me=1),this[_+$]=(g/ue>>0)-me&255;return _+M},s.prototype.writeIntBE=function(g,_,M,G){if(g=+g,_=_>>>0,!G){var Q=Math.pow(2,8*M-1);L(this,g,_,M,Q-1,-Q)}var $=M-1,ue=1,me=0;for(this[_+$]=g&255;--$>=0&&(ue*=256);)g<0&&me===0&&this[_+$+1]!==0&&(me=1),this[_+$]=(g/ue>>0)-me&255;return _+M},s.prototype.writeInt8=function(g,_,M){return g=+g,_=_>>>0,M||L(this,g,_,1,127,-128),g<0&&(g=255+g+1),this[_]=g&255,_+1},s.prototype.writeInt16LE=function(g,_,M){return g=+g,_=_>>>0,M||L(this,g,_,2,32767,-32768),this[_]=g&255,this[_+1]=g>>>8,_+2},s.prototype.writeInt16BE=function(g,_,M){return g=+g,_=_>>>0,M||L(this,g,_,2,32767,-32768),this[_]=g>>>8,this[_+1]=g&255,_+2},s.prototype.writeInt32LE=function(g,_,M){return g=+g,_=_>>>0,M||L(this,g,_,4,2147483647,-2147483648),this[_]=g&255,this[_+1]=g>>>8,this[_+2]=g>>>16,this[_+3]=g>>>24,_+4},s.prototype.writeInt32BE=function(g,_,M){return g=+g,_=_>>>0,M||L(this,g,_,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[_]=g>>>24,this[_+1]=g>>>16,this[_+2]=g>>>8,this[_+3]=g&255,_+4};function V(N,g,_,M,G,Q){if(_+M>N.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function Y(N,g,_,M,G){return g=+g,_=_>>>0,G||V(N,g,_,4),r.write(N,g,_,M,23,4),_+4}s.prototype.writeFloatLE=function(g,_,M){return Y(this,g,_,!0,M)},s.prototype.writeFloatBE=function(g,_,M){return Y(this,g,_,!1,M)};function re(N,g,_,M,G){return g=+g,_=_>>>0,G||V(N,g,_,8),r.write(N,g,_,M,52,8),_+8}s.prototype.writeDoubleLE=function(g,_,M){return re(this,g,_,!0,M)},s.prototype.writeDoubleBE=function(g,_,M){return re(this,g,_,!1,M)},s.prototype.copy=function(g,_,M,G){if(!s.isBuffer(g))throw new TypeError("argument should be a Buffer");if(M||(M=0),!G&&G!==0&&(G=this.length),_>=g.length&&(_=g.length),_||(_=0),G>0&&G<M&&(G=M),G===M||g.length===0||this.length===0)return 0;if(_<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=this.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("sourceEnd out of bounds");G>this.length&&(G=this.length),g.length-_<G-M&&(G=g.length-_+M);var Q=G-M;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(_,M,G):Uint8Array.prototype.set.call(g,this.subarray(M,G),_),Q},s.prototype.fill=function(g,_,M,G){if(typeof g=="string"){if(typeof _=="string"?(G=_,_=0,M=this.length):typeof M=="string"&&(G=M,M=this.length),G!==void 0&&typeof G!="string")throw new TypeError("encoding must be a string");if(typeof G=="string"&&!s.isEncoding(G))throw new TypeError("Unknown encoding: "+G);if(g.length===1){var Q=g.charCodeAt(0);(G==="utf8"&&Q<128||G==="latin1")&&(g=Q)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(_<0||this.length<_||this.length<M)throw new RangeError("Out of range index");if(M<=_)return this;_=_>>>0,M=M===void 0?this.length:M>>>0,g||(g=0);var $;if(typeof g=="number")for($=_;$<M;++$)this[$]=g;else{var ue=s.isBuffer(g)?g:s.from(g,G),me=ue.length;if(me===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for($=0;$<M-_;++$)this[$+_]=ue[$%me]}return this};var k=/[^+/0-9A-Za-z-_]/g;function h(N){if(N=N.split("=")[0],N=N.trim().replace(k,""),N.length<2)return"";for(;N.length%4!==0;)N=N+"=";return N}function O(N,g){g=g||1/0;for(var _,M=N.length,G=null,Q=[],$=0;$<M;++$){if(_=N.charCodeAt($),_>55295&&_<57344){if(!G){if(_>56319){(g-=3)>-1&&Q.push(239,191,189);continue}else if($+1===M){(g-=3)>-1&&Q.push(239,191,189);continue}G=_;continue}if(_<56320){(g-=3)>-1&&Q.push(239,191,189),G=_;continue}_=(G-55296<<10|_-56320)+65536}else G&&(g-=3)>-1&&Q.push(239,191,189);if(G=null,_<128){if((g-=1)<0)break;Q.push(_)}else if(_<2048){if((g-=2)<0)break;Q.push(_>>6|192,_&63|128)}else if(_<65536){if((g-=3)<0)break;Q.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((g-=4)<0)break;Q.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return Q}function j(N){for(var g=[],_=0;_<N.length;++_)g.push(N.charCodeAt(_)&255);return g}function U(N,g){for(var _,M,G,Q=[],$=0;$<N.length&&!((g-=2)<0);++$)_=N.charCodeAt($),M=_>>8,G=_%256,Q.push(G),Q.push(M);return Q}function F(N){return t.toByteArray(h(N))}function q(N,g,_,M){for(var G=0;G<M&&!(G+_>=g.length||G>=N.length);++G)g[G+_]=N[G];return G}function ne(N,g){return N instanceof g||N!=null&&N.constructor!=null&&N.constructor.name!=null&&N.constructor.name===g.name}function S(N){return N!==N}var ie=(function(){for(var N="0123456789abcdef",g=new Array(256),_=0;_<16;++_)for(var M=_*16,G=0;G<16;++G)g[M+G]=N[_]+N[G];return g})()})(Ad)),Ad}var Od={},Td={},Sd,jb;function NE(){return jb||(jb=1,Sd=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}),Sd}var xd,Rb;function Kg(){if(Rb)return xd;Rb=1;var e=NE();return xd=function(){return e()&&!!Symbol.toStringTag},xd}var Md,Lb;function IE(){return Lb||(Lb=1,Md=Object),Md}var Cd,Db;function KC(){return Db||(Db=1,Cd=Error),Cd}var kd,Bb;function XC(){return Bb||(Bb=1,kd=EvalError),kd}var Nd,Fb;function $C(){return Fb||(Fb=1,Nd=RangeError),Nd}var Id,qb;function VC(){return qb||(qb=1,Id=ReferenceError),Id}var Pd,Ub;function PE(){return Ub||(Ub=1,Pd=SyntaxError),Pd}var jd,Hb;function fs(){return Hb||(Hb=1,jd=TypeError),jd}var Rd,zb;function YC(){return zb||(zb=1,Rd=URIError),Rd}var Ld,Gb;function ZC(){return Gb||(Gb=1,Ld=Math.abs),Ld}var Dd,Wb;function JC(){return Wb||(Wb=1,Dd=Math.floor),Dd}var Bd,Kb;function QC(){return Kb||(Kb=1,Bd=Math.max),Bd}var Fd,Xb;function ek(){return Xb||(Xb=1,Fd=Math.min),Fd}var qd,$b;function tk(){return $b||($b=1,qd=Math.pow),qd}var Ud,Vb;function rk(){return Vb||(Vb=1,Ud=Math.round),Ud}var Hd,Yb;function nk(){return Yb||(Yb=1,Hd=Number.isNaN||function(t){return t!==t}),Hd}var zd,Zb;function ik(){if(Zb)return zd;Zb=1;var e=nk();return zd=function(r){return e(r)||r===0?r:r<0?-1:1},zd}var Gd,Jb;function ak(){return Jb||(Jb=1,Gd=Object.getOwnPropertyDescriptor),Gd}var Wd,Qb;function ms(){if(Qb)return Wd;Qb=1;var e=ak();if(e)try{e([],"length")}catch{e=null}return Wd=e,Wd}var Kd,ew;function Yl(){if(ew)return Kd;ew=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Kd=e,Kd}var Xd,tw;function ok(){if(tw)return Xd;tw=1;var e=typeof Symbol<"u"&&Symbol,t=NE();return Xd=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Xd}var $d,rw;function jE(){return rw||(rw=1,$d=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),$d}var Vd,nw;function RE(){if(nw)return Vd;nw=1;var e=IE();return Vd=e.getPrototypeOf||null,Vd}var Yd,iw;function sk(){if(iw)return Yd;iw=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(l,c){for(var d=[],f=0;f<l.length;f+=1)d[f]=l[f];for(var m=0;m<c.length;m+=1)d[m+l.length]=c[m];return d},a=function(l,c){for(var d=[],f=c,m=0;f<l.length;f+=1,m+=1)d[m]=l[f];return d},o=function(s,l){for(var c="",d=0;d<s.length;d+=1)c+=s[d],d+1<s.length&&(c+=l);return c};return Yd=function(l){var c=this;if(typeof c!="function"||t.apply(c)!==n)throw new TypeError(e+c);for(var d=a(arguments,1),f,m=function(){if(this instanceof f){var y=c.apply(this,i(d,arguments));return Object(y)===y?y:this}return c.apply(l,i(d,arguments))},p=r(0,c.length-d.length),b=[],v=0;v<p;v++)b[v]="$"+v;if(f=Function("binder","return function ("+o(b,",")+"){ return binder.apply(this,arguments); }")(m),c.prototype){var A=function(){};A.prototype=c.prototype,f.prototype=new A,A.prototype=null}return f},Yd}var Zd,aw;function hs(){if(aw)return Zd;aw=1;var e=sk();return Zd=Function.prototype.bind||e,Zd}var Jd,ow;function Xg(){return ow||(ow=1,Jd=Function.prototype.call),Jd}var Qd,sw;function LE(){return sw||(sw=1,Qd=Function.prototype.apply),Qd}var ef,lw;function lk(){return lw||(lw=1,ef=typeof Reflect<"u"&&Reflect&&Reflect.apply),ef}var tf,cw;function ck(){if(cw)return tf;cw=1;var e=hs(),t=LE(),r=Xg(),n=lk();return tf=n||e.call(r,t),tf}var rf,uw;function uk(){if(uw)return rf;uw=1;var e=hs(),t=fs(),r=Xg(),n=ck();return rf=function(a){if(a.length<1||typeof a[0]!="function")throw new t("a function is required");return n(e,r,a)},rf}var nf,dw;function dk(){if(dw)return nf;dw=1;var e=uk(),t=ms(),r;try{r=[].__proto__===Array.prototype}catch(o){if(!o||typeof o!="object"||!("code"in o)||o.code!=="ERR_PROTO_ACCESS")throw o}var n=!!r&&t&&t(Object.prototype,"__proto__"),i=Object,a=i.getPrototypeOf;return nf=n&&typeof n.get=="function"?e([n.get]):typeof a=="function"?(function(s){return a(s==null?s:i(s))}):!1,nf}var af,fw;function fk(){if(fw)return af;fw=1;var e=jE(),t=RE(),r=dk();return af=e?function(i){return e(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:r?function(i){return r(i)}:null,af}var of,mw;function mk(){if(mw)return of;mw=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=hs();return of=r.call(e,t),of}var sf,hw;function $g(){if(hw)return sf;hw=1;var e,t=IE(),r=KC(),n=XC(),i=$C(),a=VC(),o=PE(),s=fs(),l=YC(),c=ZC(),d=JC(),f=QC(),m=ek(),p=tk(),b=rk(),v=ik(),A=Function,y=function(j){try{return A('"use strict"; return ('+j+").constructor;")()}catch{}},T=ms(),E=Yl(),w=function(){throw new s},x=T?(function(){try{return arguments.callee,w}catch{try{return T(arguments,"callee").get}catch{return w}}})():w,D=ok()(),B=fk(),P=RE(),I=jE(),Z=LE(),oe=Xg(),R={},z=typeof Uint8Array>"u"||!B?e:B(Uint8Array),C={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":D&&B?B([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":D&&B?B(B([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!D||!B?e:B(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":T,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!D||!B?e:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D&&B?B(""[Symbol.iterator]()):e,"%Symbol%":D?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":x,"%TypedArray%":z,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":oe,"%Function.prototype.apply%":Z,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":P,"%Math.abs%":c,"%Math.floor%":d,"%Math.max%":f,"%Math.min%":m,"%Math.pow%":p,"%Math.round%":b,"%Math.sign%":v,"%Reflect.getPrototypeOf%":I};if(B)try{null.error}catch(j){var J=B(B(j));C["%Error.prototype%"]=J}var te=function j(U){var F;if(U==="%AsyncFunction%")F=y("async function () {}");else if(U==="%GeneratorFunction%")F=y("function* () {}");else if(U==="%AsyncGeneratorFunction%")F=y("async function* () {}");else if(U==="%AsyncGenerator%"){var q=j("%AsyncGeneratorFunction%");q&&(F=q.prototype)}else if(U==="%AsyncIteratorPrototype%"){var ne=j("%AsyncGenerator%");ne&&B&&(F=B(ne.prototype))}return C[U]=F,F},X={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},W=hs(),H=mk(),ae=W.call(oe,Array.prototype.concat),K=W.call(Z,Array.prototype.splice),L=W.call(oe,String.prototype.replace),V=W.call(oe,String.prototype.slice),Y=W.call(oe,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,h=function(U){var F=V(U,0,1),q=V(U,-1);if(F==="%"&&q!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(q==="%"&&F!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var ne=[];return L(U,re,function(S,ie,N,g){ne[ne.length]=N?L(g,k,"$1"):ie||S}),ne},O=function(U,F){var q=U,ne;if(H(X,q)&&(ne=X[q],q="%"+ne[0]+"%"),H(C,q)){var S=C[q];if(S===R&&(S=te(q)),typeof S>"u"&&!F)throw new s("intrinsic "+U+" exists, but is not available. Please file an issue!");return{alias:ne,name:q,value:S}}throw new o("intrinsic "+U+" does not exist!")};return sf=function(U,F){if(typeof U!="string"||U.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof F!="boolean")throw new s('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/,U)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var q=h(U),ne=q.length>0?q[0]:"",S=O("%"+ne+"%",F),ie=S.name,N=S.value,g=!1,_=S.alias;_&&(ne=_[0],K(q,ae([0,1],_)));for(var M=1,G=!0;M<q.length;M+=1){var Q=q[M],$=V(Q,0,1),ue=V(Q,-1);if(($==='"'||$==="'"||$==="`"||ue==='"'||ue==="'"||ue==="`")&&$!==ue)throw new o("property names with quotes must have matching quotes");if((Q==="constructor"||!G)&&(g=!0),ne+="."+Q,ie="%"+ne+"%",H(C,ie))N=C[ie];else if(N!=null){if(!(Q in N)){if(!F)throw new s("base intrinsic for "+U+" exists, but the property is not available.");return}if(T&&M+1>=q.length){var me=T(N,Q);G=!!me,G&&"get"in me&&!("originalValue"in me.get)?N=me.get:N=N[Q]}else G=H(N,Q),N=N[Q];G&&!g&&(C[ie]=N)}}return N},sf}var lf={exports:{}},cf,pw;function hk(){if(pw)return cf;pw=1;var e=Yl(),t=PE(),r=fs(),n=ms();return cf=function(a,o,s){if(!a||typeof a!="object"&&typeof a!="function")throw new r("`obj` must be an object or a function`");if(typeof o!="string"&&typeof o!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,m=!!n&&n(a,o);if(e)e(a,o,{configurable:d===null&&m?m.configurable:!d,enumerable:l===null&&m?m.enumerable:!l,value:s,writable:c===null&&m?m.writable:!c});else if(f||!l&&!c&&!d)a[o]=s;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},cf}var uf,gw;function pk(){if(gw)return uf;gw=1;var e=Yl(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},uf=t,uf}var df,yw;function gk(){if(yw)return df;yw=1;var e=$g(),t=hk(),r=pk()(),n=ms(),i=fs(),a=e("%Math.floor%");return df=function(s,l){if(typeof s!="function")throw new i("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||a(l)!==l)throw new i("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],d=!0,f=!0;if("length"in s&&n){var m=n(s,"length");m&&!m.configurable&&(d=!1),m&&!m.writable&&(f=!1)}return(d||f||!c)&&(r?t(s,"length",l,!0,!0):t(s,"length",l)),s},df}var _w;function DE(){return _w||(_w=1,(function(e){var t=hs(),r=$g(),n=gk(),i=fs(),a=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(o,a),l=Yl(),c=r("%Math.max%");e.exports=function(m){if(typeof m!="function")throw new i("a function is required");var p=s(t,o,arguments);return n(p,1+c(0,m.length-(arguments.length-1)),!0)};var d=function(){return s(t,a,arguments)};l?l(e.exports,"apply",{value:d}):e.exports.apply=d})(lf)),lf.exports}var ff,vw;function BE(){if(vw)return ff;vw=1;var e=$g(),t=DE(),r=t(e("String.prototype.indexOf"));return ff=function(i,a){var o=e(i,!!a);return typeof o=="function"&&r(i,".prototype.")>-1?t(o):o},ff}var mf,bw;function yk(){if(bw)return mf;bw=1;var e=Kg()(),t=BE(),r=t("Object.prototype.toString"),n=function(s){return e&&s&&typeof s=="object"&&Symbol.toStringTag in s?!1:r(s)==="[object Arguments]"},i=function(s){return n(s)?!0:s!==null&&typeof s=="object"&&typeof s.length=="number"&&s.length>=0&&r(s)!=="[object Array]"&&r(s.callee)==="[object Function]"},a=(function(){return n(arguments)})();return n.isLegacyArguments=i,mf=a?n:i,mf}var hf,ww;function _k(){if(ww)return hf;ww=1;var e=Object.prototype.toString,t=Function.prototype.toString,r=/^\s*(?:function)?\*/,n=Kg()(),i=Object.getPrototypeOf,a=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},o;return hf=function(l){if(typeof l!="function")return!1;if(r.test(t.call(l)))return!0;if(!n){var c=e.call(l);return c==="[object GeneratorFunction]"}if(!i)return!1;if(typeof o>"u"){var d=a();o=d?i(d):!1}return i(l)===o},hf}var pf,Ew;function vk(){if(Ew)return pf;Ew=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(T){T!==n&&(t=null)}else t=null;var i=/^\s*class\b/,a=function(E){try{var w=e.call(E);return i.test(w)}catch{return!1}},o=function(E){try{return a(E)?!1:(e.call(E),!0)}catch{return!1}},s=Object.prototype.toString,l="[object Object]",c="[object Function]",d="[object GeneratorFunction]",f="[object HTMLAllCollection]",m="[object HTML document.all class]",p="[object HTMLCollection]",b=typeof Symbol=="function"&&!!Symbol.toStringTag,v=!(0 in[,]),A=function(){return!1};if(typeof document=="object"){var y=document.all;s.call(y)===s.call(document.all)&&(A=function(E){if((v||!E)&&(typeof E>"u"||typeof E=="object"))try{var w=s.call(E);return(w===f||w===m||w===p||w===l)&&E("")==null}catch{}return!1})}return pf=t?function(E){if(A(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;try{t(E,null,r)}catch(w){if(w!==n)return!1}return!a(E)&&o(E)}:function(E){if(A(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;if(b)return o(E);if(a(E))return!1;var w=s.call(E);return w!==c&&w!==d&&!/^\[object HTML/.test(w)?!1:o(E)},pf}var gf,Aw;function bk(){if(Aw)return gf;Aw=1;var e=vk(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(l,c,d){for(var f=0,m=l.length;f<m;f++)r.call(l,f)&&(d==null?c(l[f],f,l):c.call(d,l[f],f,l))},i=function(l,c,d){for(var f=0,m=l.length;f<m;f++)d==null?c(l.charAt(f),f,l):c.call(d,l.charAt(f),f,l)},a=function(l,c,d){for(var f in l)r.call(l,f)&&(d==null?c(l[f],f,l):c.call(d,l[f],f,l))},o=function(l,c,d){if(!e(c))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=d),t.call(l)==="[object Array]"?n(l,c,f):typeof l=="string"?i(l,c,f):a(l,c,f)};return gf=o,gf}var yf,Ow;function wk(){return Ow||(Ow=1,yf=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),yf}var _f,Tw;function Ek(){if(Tw)return _f;Tw=1;var e=wk(),t=typeof globalThis>"u"?on:globalThis;return _f=function(){for(var n=[],i=0;i<e.length;i++)typeof t[e[i]]=="function"&&(n[n.length]=e[i]);return n},_f}var vf,Sw;function FE(){if(Sw)return vf;Sw=1;var e=bk(),t=Ek(),r=DE(),n=BE(),i=ms(),a=n("Object.prototype.toString"),o=Kg()(),s=typeof globalThis>"u"?on:globalThis,l=t(),c=n("String.prototype.slice"),d=Object.getPrototypeOf,f=n("Array.prototype.indexOf",!0)||function(A,y){for(var T=0;T<A.length;T+=1)if(A[T]===y)return T;return-1},m={__proto__:null};o&&i&&d?e(l,function(v){var A=new s[v];if(Symbol.toStringTag in A){var y=d(A),T=i(y,Symbol.toStringTag);if(!T){var E=d(y);T=i(E,Symbol.toStringTag)}m["$"+v]=r(T.get)}}):e(l,function(v){var A=new s[v],y=A.slice||A.set;y&&(m["$"+v]=r(y))});var p=function(A){var y=!1;return e(m,function(T,E){if(!y)try{"$"+T(A)===E&&(y=c(E,1))}catch{}}),y},b=function(A){var y=!1;return e(m,function(T,E){if(!y)try{T(A),y=c(E,1)}catch{}}),y};return vf=function(A){if(!A||typeof A!="object")return!1;if(!o){var y=c(a(A),8,-1);return f(l,y)>-1?y:y!=="Object"?!1:b(A)}return i?p(A):null},vf}var bf,xw;function Ak(){if(xw)return bf;xw=1;var e=FE();return bf=function(r){return!!e(r)},bf}var Mw;function Ok(){return Mw||(Mw=1,(function(e){var t=yk(),r=_k(),n=FE(),i=Ak();function a(M){return M.call.bind(M)}var o=typeof BigInt<"u",s=typeof Symbol<"u",l=a(Object.prototype.toString),c=a(Number.prototype.valueOf),d=a(String.prototype.valueOf),f=a(Boolean.prototype.valueOf);if(o)var m=a(BigInt.prototype.valueOf);if(s)var p=a(Symbol.prototype.valueOf);function b(M,G){if(typeof M!="object")return!1;try{return G(M),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=i;function v(M){return typeof Promise<"u"&&M instanceof Promise||M!==null&&typeof M=="object"&&typeof M.then=="function"&&typeof M.catch=="function"}e.isPromise=v;function A(M){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(M):i(M)||V(M)}e.isArrayBufferView=A;function y(M){return n(M)==="Uint8Array"}e.isUint8Array=y;function T(M){return n(M)==="Uint8ClampedArray"}e.isUint8ClampedArray=T;function E(M){return n(M)==="Uint16Array"}e.isUint16Array=E;function w(M){return n(M)==="Uint32Array"}e.isUint32Array=w;function x(M){return n(M)==="Int8Array"}e.isInt8Array=x;function D(M){return n(M)==="Int16Array"}e.isInt16Array=D;function B(M){return n(M)==="Int32Array"}e.isInt32Array=B;function P(M){return n(M)==="Float32Array"}e.isFloat32Array=P;function I(M){return n(M)==="Float64Array"}e.isFloat64Array=I;function Z(M){return n(M)==="BigInt64Array"}e.isBigInt64Array=Z;function oe(M){return n(M)==="BigUint64Array"}e.isBigUint64Array=oe;function R(M){return l(M)==="[object Map]"}R.working=typeof Map<"u"&&R(new Map);function z(M){return typeof Map>"u"?!1:R.working?R(M):M instanceof Map}e.isMap=z;function C(M){return l(M)==="[object Set]"}C.working=typeof Set<"u"&&C(new Set);function J(M){return typeof Set>"u"?!1:C.working?C(M):M instanceof Set}e.isSet=J;function te(M){return l(M)==="[object WeakMap]"}te.working=typeof WeakMap<"u"&&te(new WeakMap);function X(M){return typeof WeakMap>"u"?!1:te.working?te(M):M instanceof WeakMap}e.isWeakMap=X;function W(M){return l(M)==="[object WeakSet]"}W.working=typeof WeakSet<"u"&&W(new WeakSet);function H(M){return W(M)}e.isWeakSet=H;function ae(M){return l(M)==="[object ArrayBuffer]"}ae.working=typeof ArrayBuffer<"u"&&ae(new ArrayBuffer);function K(M){return typeof ArrayBuffer>"u"?!1:ae.working?ae(M):M instanceof ArrayBuffer}e.isArrayBuffer=K;function L(M){return l(M)==="[object DataView]"}L.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&L(new DataView(new ArrayBuffer(1),0,1));function V(M){return typeof DataView>"u"?!1:L.working?L(M):M instanceof DataView}e.isDataView=V;var Y=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function re(M){return l(M)==="[object SharedArrayBuffer]"}function k(M){return typeof Y>"u"?!1:(typeof re.working>"u"&&(re.working=re(new Y)),re.working?re(M):M instanceof Y)}e.isSharedArrayBuffer=k;function h(M){return l(M)==="[object AsyncFunction]"}e.isAsyncFunction=h;function O(M){return l(M)==="[object Map Iterator]"}e.isMapIterator=O;function j(M){return l(M)==="[object Set Iterator]"}e.isSetIterator=j;function U(M){return l(M)==="[object Generator]"}e.isGeneratorObject=U;function F(M){return l(M)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=F;function q(M){return b(M,c)}e.isNumberObject=q;function ne(M){return b(M,d)}e.isStringObject=ne;function S(M){return b(M,f)}e.isBooleanObject=S;function ie(M){return o&&b(M,m)}e.isBigIntObject=ie;function N(M){return s&&b(M,p)}e.isSymbolObject=N;function g(M){return q(M)||ne(M)||S(M)||ie(M)||N(M)}e.isBoxedPrimitive=g;function _(M){return typeof Uint8Array<"u"&&(K(M)||k(M))}e.isAnyArrayBuffer=_,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(M){Object.defineProperty(e,M,{enumerable:!1,value:function(){throw new Error(M+" is not supported in userland")}})})})(Td)),Td}var wf,Cw;function Tk(){return Cw||(Cw=1,wf=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),wf}var kw;function qE(){return kw||(kw=1,(function(e){var t=Object.getOwnPropertyDescriptors||function(V){for(var Y=Object.keys(V),re={},k=0;k<Y.length;k++)re[Y[k]]=Object.getOwnPropertyDescriptor(V,Y[k]);return re},r=/%[sdj%]/g;e.format=function(L){if(!x(L)){for(var V=[],Y=0;Y<arguments.length;Y++)V.push(o(arguments[Y]));return V.join(" ")}for(var Y=1,re=arguments,k=re.length,h=String(L).replace(r,function(j){if(j==="%%")return"%";if(Y>=k)return j;switch(j){case"%s":return String(re[Y++]);case"%d":return Number(re[Y++]);case"%j":try{return JSON.stringify(re[Y++])}catch{return"[Circular]"}default:return j}}),O=re[Y];Y<k;O=re[++Y])T(O)||!I(O)?h+=" "+O:h+=" "+o(O);return h},e.deprecate=function(L,V){if(typeof De<"u"&&De.noDeprecation===!0)return L;if(typeof De>"u")return function(){return e.deprecate(L,V).apply(this,arguments)};var Y=!1;function re(){if(!Y){if(De.throwDeprecation)throw new Error(V);De.traceDeprecation?console.trace(V):console.error(V),Y=!0}return L.apply(this,arguments)}return re};var n={},i=/^$/;if(De.env.NODE_DEBUG){var a=De.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+a+"$","i")}e.debuglog=function(L){if(L=L.toUpperCase(),!n[L])if(i.test(L)){var V=De.pid;n[L]=function(){var Y=e.format.apply(e,arguments);console.error("%s %d: %s",L,V,Y)}}else n[L]=function(){};return n[L]};function o(L,V){var Y={seen:[],stylize:l};return arguments.length>=3&&(Y.depth=arguments[2]),arguments.length>=4&&(Y.colors=arguments[3]),y(V)?Y.showHidden=V:V&&e._extend(Y,V),B(Y.showHidden)&&(Y.showHidden=!1),B(Y.depth)&&(Y.depth=2),B(Y.colors)&&(Y.colors=!1),B(Y.customInspect)&&(Y.customInspect=!0),Y.colors&&(Y.stylize=s),d(Y,L,Y.depth)}e.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(L,V){var Y=o.styles[V];return Y?"\x1B["+o.colors[Y][0]+"m"+L+"\x1B["+o.colors[Y][1]+"m":L}function l(L,V){return L}function c(L){var V={};return L.forEach(function(Y,re){V[Y]=!0}),V}function d(L,V,Y){if(L.customInspect&&V&&R(V.inspect)&&V.inspect!==e.inspect&&!(V.constructor&&V.constructor.prototype===V)){var re=V.inspect(Y,L);return x(re)||(re=d(L,re,Y)),re}var k=f(L,V);if(k)return k;var h=Object.keys(V),O=c(h);if(L.showHidden&&(h=Object.getOwnPropertyNames(V)),oe(V)&&(h.indexOf("message")>=0||h.indexOf("description")>=0))return m(V);if(h.length===0){if(R(V)){var j=V.name?": "+V.name:"";return L.stylize("[Function"+j+"]","special")}if(P(V))return L.stylize(RegExp.prototype.toString.call(V),"regexp");if(Z(V))return L.stylize(Date.prototype.toString.call(V),"date");if(oe(V))return m(V)}var U="",F=!1,q=["{","}"];if(A(V)&&(F=!0,q=["[","]"]),R(V)){var ne=V.name?": "+V.name:"";U=" [Function"+ne+"]"}if(P(V)&&(U=" "+RegExp.prototype.toString.call(V)),Z(V)&&(U=" "+Date.prototype.toUTCString.call(V)),oe(V)&&(U=" "+m(V)),h.length===0&&(!F||V.length==0))return q[0]+U+q[1];if(Y<0)return P(V)?L.stylize(RegExp.prototype.toString.call(V),"regexp"):L.stylize("[Object]","special");L.seen.push(V);var S;return F?S=p(L,V,Y,O,h):S=h.map(function(ie){return b(L,V,Y,O,ie,F)}),L.seen.pop(),v(S,U,q)}function f(L,V){if(B(V))return L.stylize("undefined","undefined");if(x(V)){var Y="'"+JSON.stringify(V).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return L.stylize(Y,"string")}if(w(V))return L.stylize(""+V,"number");if(y(V))return L.stylize(""+V,"boolean");if(T(V))return L.stylize("null","null")}function m(L){return"["+Error.prototype.toString.call(L)+"]"}function p(L,V,Y,re,k){for(var h=[],O=0,j=V.length;O<j;++O)W(V,String(O))?h.push(b(L,V,Y,re,String(O),!0)):h.push("");return k.forEach(function(U){U.match(/^\d+$/)||h.push(b(L,V,Y,re,U,!0))}),h}function b(L,V,Y,re,k,h){var O,j,U;if(U=Object.getOwnPropertyDescriptor(V,k)||{value:V[k]},U.get?U.set?j=L.stylize("[Getter/Setter]","special"):j=L.stylize("[Getter]","special"):U.set&&(j=L.stylize("[Setter]","special")),W(re,k)||(O="["+k+"]"),j||(L.seen.indexOf(U.value)<0?(T(Y)?j=d(L,U.value,null):j=d(L,U.value,Y-1),j.indexOf(`
|
|
30
|
+
`)>-1&&(h?j=j.split(`
|
|
31
|
+
`).map(function(F){return" "+F}).join(`
|
|
32
|
+
`).slice(2):j=`
|
|
33
|
+
`+j.split(`
|
|
34
|
+
`).map(function(F){return" "+F}).join(`
|
|
35
|
+
`))):j=L.stylize("[Circular]","special")),B(O)){if(h&&k.match(/^\d+$/))return j;O=JSON.stringify(""+k),O.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(O=O.slice(1,-1),O=L.stylize(O,"name")):(O=O.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),O=L.stylize(O,"string"))}return O+": "+j}function v(L,V,Y){var re=L.reduce(function(k,h){return h.indexOf(`
|
|
36
|
+
`)>=0,k+h.replace(/\u001b\[\d\d?m/g,"").length+1},0);return re>60?Y[0]+(V===""?"":V+`
|
|
37
|
+
`)+" "+L.join(`,
|
|
38
|
+
`)+" "+Y[1]:Y[0]+V+" "+L.join(", ")+" "+Y[1]}e.types=Ok();function A(L){return Array.isArray(L)}e.isArray=A;function y(L){return typeof L=="boolean"}e.isBoolean=y;function T(L){return L===null}e.isNull=T;function E(L){return L==null}e.isNullOrUndefined=E;function w(L){return typeof L=="number"}e.isNumber=w;function x(L){return typeof L=="string"}e.isString=x;function D(L){return typeof L=="symbol"}e.isSymbol=D;function B(L){return L===void 0}e.isUndefined=B;function P(L){return I(L)&&C(L)==="[object RegExp]"}e.isRegExp=P,e.types.isRegExp=P;function I(L){return typeof L=="object"&&L!==null}e.isObject=I;function Z(L){return I(L)&&C(L)==="[object Date]"}e.isDate=Z,e.types.isDate=Z;function oe(L){return I(L)&&(C(L)==="[object Error]"||L instanceof Error)}e.isError=oe,e.types.isNativeError=oe;function R(L){return typeof L=="function"}e.isFunction=R;function z(L){return L===null||typeof L=="boolean"||typeof L=="number"||typeof L=="string"||typeof L=="symbol"||typeof L>"u"}e.isPrimitive=z,e.isBuffer=Tk();function C(L){return Object.prototype.toString.call(L)}function J(L){return L<10?"0"+L.toString(10):L.toString(10)}var te=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function X(){var L=new Date,V=[J(L.getHours()),J(L.getMinutes()),J(L.getSeconds())].join(":");return[L.getDate(),te[L.getMonth()],V].join(" ")}e.log=function(){console.log("%s - %s",X(),e.format.apply(e,arguments))},e.inherits=mi(),e._extend=function(L,V){if(!V||!I(V))return L;for(var Y=Object.keys(V),re=Y.length;re--;)L[Y[re]]=V[Y[re]];return L};function W(L,V){return Object.prototype.hasOwnProperty.call(L,V)}var H=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(V){if(typeof V!="function")throw new TypeError('The "original" argument must be of type Function');if(H&&V[H]){var Y=V[H];if(typeof Y!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Y,H,{value:Y,enumerable:!1,writable:!1,configurable:!0}),Y}function Y(){for(var re,k,h=new Promise(function(U,F){re=U,k=F}),O=[],j=0;j<arguments.length;j++)O.push(arguments[j]);O.push(function(U,F){U?k(U):re(F)});try{V.apply(this,O)}catch(U){k(U)}return h}return Object.setPrototypeOf(Y,Object.getPrototypeOf(V)),H&&Object.defineProperty(Y,H,{value:Y,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Y,t(V))},e.promisify.custom=H;function ae(L,V){if(!L){var Y=new Error("Promise was rejected with a falsy value");Y.reason=L,L=Y}return V(L)}function K(L){if(typeof L!="function")throw new TypeError('The "original" argument must be of type Function');function V(){for(var Y=[],re=0;re<arguments.length;re++)Y.push(arguments[re]);var k=Y.pop();if(typeof k!="function")throw new TypeError("The last argument must be of type Function");var h=this,O=function(){return k.apply(h,arguments)};L.apply(this,Y).then(function(j){De.nextTick(O.bind(null,null,j))},function(j){De.nextTick(ae.bind(null,j,O))})}return Object.setPrototypeOf(V,Object.getPrototypeOf(L)),Object.defineProperties(V,t(L)),V}e.callbackify=K})(Od)),Od}var Ef,Nw;function Sk(){if(Nw)return Ef;Nw=1;function e(m,p){var b=Object.keys(m);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(m);p&&(v=v.filter(function(A){return Object.getOwnPropertyDescriptor(m,A).enumerable})),b.push.apply(b,v)}return b}function t(m){for(var p=1;p<arguments.length;p++){var b=arguments[p]!=null?arguments[p]:{};p%2?e(Object(b),!0).forEach(function(v){r(m,v,b[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(b)):e(Object(b)).forEach(function(v){Object.defineProperty(m,v,Object.getOwnPropertyDescriptor(b,v))})}return m}function r(m,p,b){return p in m?Object.defineProperty(m,p,{value:b,enumerable:!0,configurable:!0,writable:!0}):m[p]=b,m}function n(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function i(m,p){for(var b=0;b<p.length;b++){var v=p[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}function a(m,p,b){return p&&i(m.prototype,p),m}var o=Vl(),s=o.Buffer,l=qE(),c=l.inspect,d=c&&c.custom||"inspect";function f(m,p,b){s.prototype.copy.call(m,p,b)}return Ef=(function(){function m(){n(this,m),this.head=null,this.tail=null,this.length=0}return a(m,[{key:"push",value:function(b){var v={data:b,next:null};this.length>0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(b){var v={data:b,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var b=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,b}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(b){if(this.length===0)return"";for(var v=this.head,A=""+v.data;v=v.next;)A+=b+v.data;return A}},{key:"concat",value:function(b){if(this.length===0)return s.alloc(0);for(var v=s.allocUnsafe(b>>>0),A=this.head,y=0;A;)f(A.data,v,y),y+=A.data.length,A=A.next;return v}},{key:"consume",value:function(b,v){var A;return b<this.head.data.length?(A=this.head.data.slice(0,b),this.head.data=this.head.data.slice(b)):b===this.head.data.length?A=this.shift():A=v?this._getString(b):this._getBuffer(b),A}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(b){var v=this.head,A=1,y=v.data;for(b-=y.length;v=v.next;){var T=v.data,E=b>T.length?T.length:b;if(E===T.length?y+=T:y+=T.slice(0,b),b-=E,b===0){E===T.length?(++A,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=T.slice(E));break}++A}return this.length-=A,y}},{key:"_getBuffer",value:function(b){var v=s.allocUnsafe(b),A=this.head,y=1;for(A.data.copy(v),b-=A.data.length;A=A.next;){var T=A.data,E=b>T.length?T.length:b;if(T.copy(v,v.length-b,0,E),b-=E,b===0){E===T.length?(++y,A.next?this.head=A.next:this.head=this.tail=null):(this.head=A,A.data=T.slice(E));break}++y}return this.length-=y,v}},{key:d,value:function(b,v){return c(this,t({},v,{depth:0,customInspect:!1}))}}]),m})(),Ef}var Af,Iw;function UE(){if(Iw)return Af;Iw=1;function e(o,s){var l=this,c=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return c||d?(s?s(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,De.nextTick(i,this,o)):De.nextTick(i,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(f){!s&&f?l._writableState?l._writableState.errorEmitted?De.nextTick(r,l):(l._writableState.errorEmitted=!0,De.nextTick(t,l,f)):De.nextTick(t,l,f):s?(De.nextTick(r,l),s(f)):De.nextTick(r,l)}),this)}function t(o,s){i(o,s),r(o)}function r(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(o,s){o.emit("error",s)}function a(o,s){var l=o._readableState,c=o._writableState;l&&l.autoDestroy||c&&c.autoDestroy?o.destroy(s):o.emit("error",s)}return Af={destroy:e,undestroy:n,errorOrDestroy:a},Af}var Of={},Pw;function Ka(){if(Pw)return Of;Pw=1;function e(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var t={};function r(s,l,c){c||(c=Error);function d(m,p,b){return typeof l=="string"?l:l(m,p,b)}var f=(function(m){e(p,m);function p(b,v,A){return m.call(this,d(b,v,A))||this}return p})(c);f.prototype.name=c.name,f.prototype.code=s,t[s]=f}function n(s,l){if(Array.isArray(s)){var c=s.length;return s=s.map(function(d){return String(d)}),c>2?"one of ".concat(l," ").concat(s.slice(0,c-1).join(", "),", or ")+s[c-1]:c===2?"one of ".concat(l," ").concat(s[0]," or ").concat(s[1]):"of ".concat(l," ").concat(s[0])}else return"of ".concat(l," ").concat(String(s))}function i(s,l,c){return s.substr(0,l.length)===l}function a(s,l,c){return(c===void 0||c>s.length)&&(c=s.length),s.substring(c-l.length,c)===l}function o(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return r("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(s,l,c){var d;typeof l=="string"&&i(l,"not ")?(d="must not be",l=l.replace(/^not /,"")):d="must be";var f;if(a(s," argument"))f="The ".concat(s," ").concat(d," ").concat(n(l,"type"));else{var m=o(s,".")?"property":"argument";f='The "'.concat(s,'" ').concat(m," ").concat(d," ").concat(n(l,"type"))}return f+=". Received type ".concat(typeof c),f},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Of.codes=t,Of}var Tf,jw;function HE(){if(jw)return Tf;jw=1;var e=Ka().codes.ERR_INVALID_OPT_VALUE;function t(n,i,a){return n.highWaterMark!=null?n.highWaterMark:i?n[a]:null}function r(n,i,a,o){var s=t(i,o,a);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=o?a:"highWaterMark";throw new e(l,s)}return Math.floor(s)}return n.objectMode?16:16*1024}return Tf={getHighWaterMark:r},Tf}var Sf,Rw;function xk(){if(Rw)return Sf;Rw=1,Sf=e;function e(r,n){if(t("noDeprecation"))return r;var i=!1;function a(){if(!i){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),i=!0}return r.apply(this,arguments)}return a}function t(r){try{if(!on.localStorage)return!1}catch{return!1}var n=on.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return Sf}var xf,Lw;function zE(){if(Lw)return xf;Lw=1,xf=P;function e(k){var h=this;this.next=null,this.entry=null,this.finish=function(){re(h,k)}}var t;P.WritableState=D;var r={deprecate:xk()},n=kE(),i=Vl().Buffer,a=on.Uint8Array||function(){};function o(k){return i.from(k)}function s(k){return i.isBuffer(k)||k instanceof a}var l=UE(),c=HE(),d=c.getHighWaterMark,f=Ka().codes,m=f.ERR_INVALID_ARG_TYPE,p=f.ERR_METHOD_NOT_IMPLEMENTED,b=f.ERR_MULTIPLE_CALLBACK,v=f.ERR_STREAM_CANNOT_PIPE,A=f.ERR_STREAM_DESTROYED,y=f.ERR_STREAM_NULL_VALUES,T=f.ERR_STREAM_WRITE_AFTER_END,E=f.ERR_UNKNOWN_ENCODING,w=l.errorOrDestroy;mi()(P,n);function x(){}function D(k,h,O){t=t||Da(),k=k||{},typeof O!="boolean"&&(O=h instanceof t),this.objectMode=!!k.objectMode,O&&(this.objectMode=this.objectMode||!!k.writableObjectMode),this.highWaterMark=d(this,k,"writableHighWaterMark",O),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var j=k.decodeStrings===!1;this.decodeStrings=!j,this.defaultEncoding=k.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(U){te(h,U)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=k.emitClose!==!1,this.autoDestroy=!!k.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}D.prototype.getBuffer=function(){for(var h=this.bufferedRequest,O=[];h;)O.push(h),h=h.next;return O},(function(){try{Object.defineProperty(D.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var B;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(B=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(h){return B.call(this,h)?!0:this!==P?!1:h&&h._writableState instanceof D}})):B=function(h){return h instanceof this};function P(k){t=t||Da();var h=this instanceof t;if(!h&&!B.call(P,this))return new P(k);this._writableState=new D(k,this,h),this.writable=!0,k&&(typeof k.write=="function"&&(this._write=k.write),typeof k.writev=="function"&&(this._writev=k.writev),typeof k.destroy=="function"&&(this._destroy=k.destroy),typeof k.final=="function"&&(this._final=k.final)),n.call(this)}P.prototype.pipe=function(){w(this,new v)};function I(k,h){var O=new T;w(k,O),De.nextTick(h,O)}function Z(k,h,O,j){var U;return O===null?U=new y:typeof O!="string"&&!h.objectMode&&(U=new m("chunk",["string","Buffer"],O)),U?(w(k,U),De.nextTick(j,U),!1):!0}P.prototype.write=function(k,h,O){var j=this._writableState,U=!1,F=!j.objectMode&&s(k);return F&&!i.isBuffer(k)&&(k=o(k)),typeof h=="function"&&(O=h,h=null),F?h="buffer":h||(h=j.defaultEncoding),typeof O!="function"&&(O=x),j.ending?I(this,O):(F||Z(this,j,k,O))&&(j.pendingcb++,U=R(this,j,F,k,h,O)),U},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var k=this._writableState;k.corked&&(k.corked--,!k.writing&&!k.corked&&!k.bufferProcessing&&k.bufferedRequest&&H(this,k))},P.prototype.setDefaultEncoding=function(h){if(typeof h=="string"&&(h=h.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((h+"").toLowerCase())>-1))throw new E(h);return this._writableState.defaultEncoding=h,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function oe(k,h,O){return!k.objectMode&&k.decodeStrings!==!1&&typeof h=="string"&&(h=i.from(h,O)),h}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function R(k,h,O,j,U,F){if(!O){var q=oe(h,j,U);j!==q&&(O=!0,U="buffer",j=q)}var ne=h.objectMode?1:j.length;h.length+=ne;var S=h.length<h.highWaterMark;if(S||(h.needDrain=!0),h.writing||h.corked){var ie=h.lastBufferedRequest;h.lastBufferedRequest={chunk:j,encoding:U,isBuf:O,callback:F,next:null},ie?ie.next=h.lastBufferedRequest:h.bufferedRequest=h.lastBufferedRequest,h.bufferedRequestCount+=1}else z(k,h,!1,ne,j,U,F);return S}function z(k,h,O,j,U,F,q){h.writelen=j,h.writecb=q,h.writing=!0,h.sync=!0,h.destroyed?h.onwrite(new A("write")):O?k._writev(U,h.onwrite):k._write(U,F,h.onwrite),h.sync=!1}function C(k,h,O,j,U){--h.pendingcb,O?(De.nextTick(U,j),De.nextTick(V,k,h),k._writableState.errorEmitted=!0,w(k,j)):(U(j),k._writableState.errorEmitted=!0,w(k,j),V(k,h))}function J(k){k.writing=!1,k.writecb=null,k.length-=k.writelen,k.writelen=0}function te(k,h){var O=k._writableState,j=O.sync,U=O.writecb;if(typeof U!="function")throw new b;if(J(O),h)C(k,O,j,h,U);else{var F=ae(O)||k.destroyed;!F&&!O.corked&&!O.bufferProcessing&&O.bufferedRequest&&H(k,O),j?De.nextTick(X,k,O,F,U):X(k,O,F,U)}}function X(k,h,O,j){O||W(k,h),h.pendingcb--,j(),V(k,h)}function W(k,h){h.length===0&&h.needDrain&&(h.needDrain=!1,k.emit("drain"))}function H(k,h){h.bufferProcessing=!0;var O=h.bufferedRequest;if(k._writev&&O&&O.next){var j=h.bufferedRequestCount,U=new Array(j),F=h.corkedRequestsFree;F.entry=O;for(var q=0,ne=!0;O;)U[q]=O,O.isBuf||(ne=!1),O=O.next,q+=1;U.allBuffers=ne,z(k,h,!0,h.length,U,"",F.finish),h.pendingcb++,h.lastBufferedRequest=null,F.next?(h.corkedRequestsFree=F.next,F.next=null):h.corkedRequestsFree=new e(h),h.bufferedRequestCount=0}else{for(;O;){var S=O.chunk,ie=O.encoding,N=O.callback,g=h.objectMode?1:S.length;if(z(k,h,!1,g,S,ie,N),O=O.next,h.bufferedRequestCount--,h.writing)break}O===null&&(h.lastBufferedRequest=null)}h.bufferedRequest=O,h.bufferProcessing=!1}P.prototype._write=function(k,h,O){O(new p("_write()"))},P.prototype._writev=null,P.prototype.end=function(k,h,O){var j=this._writableState;return typeof k=="function"?(O=k,k=null,h=null):typeof h=="function"&&(O=h,h=null),k!=null&&this.write(k,h),j.corked&&(j.corked=1,this.uncork()),j.ending||Y(this,j,O),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ae(k){return k.ending&&k.length===0&&k.bufferedRequest===null&&!k.finished&&!k.writing}function K(k,h){k._final(function(O){h.pendingcb--,O&&w(k,O),h.prefinished=!0,k.emit("prefinish"),V(k,h)})}function L(k,h){!h.prefinished&&!h.finalCalled&&(typeof k._final=="function"&&!h.destroyed?(h.pendingcb++,h.finalCalled=!0,De.nextTick(K,k,h)):(h.prefinished=!0,k.emit("prefinish")))}function V(k,h){var O=ae(h);if(O&&(L(k,h),h.pendingcb===0&&(h.finished=!0,k.emit("finish"),h.autoDestroy))){var j=k._readableState;(!j||j.autoDestroy&&j.endEmitted)&&k.destroy()}return O}function Y(k,h,O){h.ending=!0,V(k,h),O&&(h.finished?De.nextTick(O):k.once("finish",O)),h.ended=!0,k.writable=!1}function re(k,h,O){var j=k.entry;for(k.entry=null;j;){var U=j.callback;h.pendingcb--,U(O),j=j.next}h.corkedRequestsFree.next=k}return Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(h){this._writableState&&(this._writableState.destroyed=h)}}),P.prototype.destroy=l.destroy,P.prototype._undestroy=l.undestroy,P.prototype._destroy=function(k,h){h(k)},xf}var Mf,Dw;function Da(){if(Dw)return Mf;Dw=1;var e=Object.keys||function(c){var d=[];for(var f in c)d.push(f);return d};Mf=o;var t=GE(),r=zE();mi()(o,t);for(var n=e(r.prototype),i=0;i<n.length;i++){var a=n[i];o.prototype[a]||(o.prototype[a]=r.prototype[a])}function o(c){if(!(this instanceof o))return new o(c);t.call(this,c),r.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||De.nextTick(l,this)}function l(c){c.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(d){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=d,this._writableState.destroyed=d)}}),Mf}var Cf={},vl={exports:{}},Bw;function Mk(){return Bw||(Bw=1,(function(e,t){var r=Vl(),n=r.Buffer;function i(o,s){for(var l in o)s[l]=o[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a);function a(o,s,l){return n(o,s,l)}i(n,a),a.from=function(o,s,l){if(typeof o=="number")throw new TypeError("Argument must not be a number");return n(o,s,l)},a.alloc=function(o,s,l){if(typeof o!="number")throw new TypeError("Argument must be a number");var c=n(o);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},a.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n(o)},a.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(o)}})(vl,vl.exports)),vl.exports}var Fw;function cm(){if(Fw)return Cf;Fw=1;var e=Mk().Buffer,t=e.isEncoding||function(y){switch(y=""+y,y&&y.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(y){if(!y)return"utf8";for(var T;;)switch(y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return y;default:if(T)return;y=(""+y).toLowerCase(),T=!0}}function n(y){var T=r(y);if(typeof T!="string"&&(e.isEncoding===t||!t(y)))throw new Error("Unknown encoding: "+y);return T||y}Cf.StringDecoder=i;function i(y){this.encoding=n(y);var T;switch(this.encoding){case"utf16le":this.text=f,this.end=m,T=4;break;case"utf8":this.fillLast=l,T=4;break;case"base64":this.text=p,this.end=b,T=3;break;default:this.write=v,this.end=A;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(T)}i.prototype.write=function(y){if(y.length===0)return"";var T,E;if(this.lastNeed){if(T=this.fillLast(y),T===void 0)return"";E=this.lastNeed,this.lastNeed=0}else E=0;return E<y.length?T?T+this.text(y,E):this.text(y,E):T||""},i.prototype.end=d,i.prototype.text=c,i.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length};function a(y){return y<=127?0:y>>5===6?2:y>>4===14?3:y>>3===30?4:y>>6===2?-1:-2}function o(y,T,E){var w=T.length-1;if(w<E)return 0;var x=a(T[w]);return x>=0?(x>0&&(y.lastNeed=x-1),x):--w<E||x===-2?0:(x=a(T[w]),x>=0?(x>0&&(y.lastNeed=x-2),x):--w<E||x===-2?0:(x=a(T[w]),x>=0?(x>0&&(x===2?x=0:y.lastNeed=x-3),x):0))}function s(y,T,E){if((T[0]&192)!==128)return y.lastNeed=0,"\uFFFD";if(y.lastNeed>1&&T.length>1){if((T[1]&192)!==128)return y.lastNeed=1,"\uFFFD";if(y.lastNeed>2&&T.length>2&&(T[2]&192)!==128)return y.lastNeed=2,"\uFFFD"}}function l(y){var T=this.lastTotal-this.lastNeed,E=s(this,y);if(E!==void 0)return E;if(this.lastNeed<=y.length)return y.copy(this.lastChar,T,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,T,0,y.length),this.lastNeed-=y.length}function c(y,T){var E=o(this,y,T);if(!this.lastNeed)return y.toString("utf8",T);this.lastTotal=E;var w=y.length-(E-this.lastNeed);return y.copy(this.lastChar,0,w),y.toString("utf8",T,w)}function d(y){var T=y&&y.length?this.write(y):"";return this.lastNeed?T+"\uFFFD":T}function f(y,T){if((y.length-T)%2===0){var E=y.toString("utf16le",T);if(E){var w=E.charCodeAt(E.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],E.slice(0,-1)}return E}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",T,y.length-1)}function m(y){var T=y&&y.length?this.write(y):"";if(this.lastNeed){var E=this.lastTotal-this.lastNeed;return T+this.lastChar.toString("utf16le",0,E)}return T}function p(y,T){var E=(y.length-T)%3;return E===0?y.toString("base64",T):(this.lastNeed=3-E,this.lastTotal=3,E===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",T,y.length-E))}function b(y){var T=y&&y.length?this.write(y):"";return this.lastNeed?T+this.lastChar.toString("base64",0,3-this.lastNeed):T}function v(y){return y.toString(this.encoding)}function A(y){return y&&y.length?this.write(y):""}return Cf}var kf,qw;function Vg(){if(qw)return kf;qw=1;var e=Ka().codes.ERR_STREAM_PREMATURE_CLOSE;function t(a){var o=!1;return function(){if(!o){o=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];a.apply(this,l)}}}function r(){}function n(a){return a.setHeader&&typeof a.abort=="function"}function i(a,o,s){if(typeof o=="function")return i(a,null,o);o||(o={}),s=t(s||r);var l=o.readable||o.readable!==!1&&a.readable,c=o.writable||o.writable!==!1&&a.writable,d=function(){a.writable||m()},f=a._writableState&&a._writableState.finished,m=function(){c=!1,f=!0,l||s.call(a)},p=a._readableState&&a._readableState.endEmitted,b=function(){l=!1,p=!0,c||s.call(a)},v=function(E){s.call(a,E)},A=function(){var E;if(l&&!p)return(!a._readableState||!a._readableState.ended)&&(E=new e),s.call(a,E);if(c&&!f)return(!a._writableState||!a._writableState.ended)&&(E=new e),s.call(a,E)},y=function(){a.req.on("finish",m)};return n(a)?(a.on("complete",m),a.on("abort",A),a.req?y():a.on("request",y)):c&&!a._writableState&&(a.on("end",d),a.on("close",d)),a.on("end",b),a.on("finish",m),o.error!==!1&&a.on("error",v),a.on("close",A),function(){a.removeListener("complete",m),a.removeListener("abort",A),a.removeListener("request",y),a.req&&a.req.removeListener("finish",m),a.removeListener("end",d),a.removeListener("close",d),a.removeListener("finish",m),a.removeListener("end",b),a.removeListener("error",v),a.removeListener("close",A)}}return kf=i,kf}var Nf,Uw;function Ck(){if(Uw)return Nf;Uw=1;var e;function t(y,T,E){return T in y?Object.defineProperty(y,T,{value:E,enumerable:!0,configurable:!0,writable:!0}):y[T]=E,y}var r=Vg(),n=Symbol("lastResolve"),i=Symbol("lastReject"),a=Symbol("error"),o=Symbol("ended"),s=Symbol("lastPromise"),l=Symbol("handlePromise"),c=Symbol("stream");function d(y,T){return{value:y,done:T}}function f(y){var T=y[n];if(T!==null){var E=y[c].read();E!==null&&(y[s]=null,y[n]=null,y[i]=null,T(d(E,!1)))}}function m(y){De.nextTick(f,y)}function p(y,T){return function(E,w){y.then(function(){if(T[o]){E(d(void 0,!0));return}T[l](E,w)},w)}}var b=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((e={get stream(){return this[c]},next:function(){var T=this,E=this[a];if(E!==null)return Promise.reject(E);if(this[o])return Promise.resolve(d(void 0,!0));if(this[c].destroyed)return new Promise(function(B,P){De.nextTick(function(){T[a]?P(T[a]):B(d(void 0,!0))})});var w=this[s],x;if(w)x=new Promise(p(w,this));else{var D=this[c].read();if(D!==null)return Promise.resolve(d(D,!1));x=new Promise(this[l])}return this[s]=x,x}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var T=this;return new Promise(function(E,w){T[c].destroy(null,function(x){if(x){w(x);return}E(d(void 0,!0))})})}),e),b),A=function(T){var E,w=Object.create(v,(E={},t(E,c,{value:T,writable:!0}),t(E,n,{value:null,writable:!0}),t(E,i,{value:null,writable:!0}),t(E,a,{value:null,writable:!0}),t(E,o,{value:T._readableState.endEmitted,writable:!0}),t(E,l,{value:function(D,B){var P=w[c].read();P?(w[s]=null,w[n]=null,w[i]=null,D(d(P,!1))):(w[n]=D,w[i]=B)},writable:!0}),E));return w[s]=null,r(T,function(x){if(x&&x.code!=="ERR_STREAM_PREMATURE_CLOSE"){var D=w[i];D!==null&&(w[s]=null,w[n]=null,w[i]=null,D(x)),w[a]=x;return}var B=w[n];B!==null&&(w[s]=null,w[n]=null,w[i]=null,B(d(void 0,!0))),w[o]=!0}),T.on("readable",m.bind(null,w)),w};return Nf=A,Nf}var If,Hw;function kk(){return Hw||(Hw=1,If=function(){throw new Error("Readable.from is not available in the browser")}),If}var Pf,zw;function GE(){if(zw)return Pf;zw=1,Pf=I;var e;I.ReadableState=P,Wg().EventEmitter;var t=function(q,ne){return q.listeners(ne).length},r=kE(),n=Vl().Buffer,i=on.Uint8Array||function(){};function a(F){return n.from(F)}function o(F){return n.isBuffer(F)||F instanceof i}var s=qE(),l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=Sk(),d=UE(),f=HE(),m=f.getHighWaterMark,p=Ka().codes,b=p.ERR_INVALID_ARG_TYPE,v=p.ERR_STREAM_PUSH_AFTER_EOF,A=p.ERR_METHOD_NOT_IMPLEMENTED,y=p.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,T,E,w;mi()(I,r);var x=d.errorOrDestroy,D=["error","close","destroy","pause","resume"];function B(F,q,ne){if(typeof F.prependListener=="function")return F.prependListener(q,ne);!F._events||!F._events[q]?F.on(q,ne):Array.isArray(F._events[q])?F._events[q].unshift(ne):F._events[q]=[ne,F._events[q]]}function P(F,q,ne){e=e||Da(),F=F||{},typeof ne!="boolean"&&(ne=q instanceof e),this.objectMode=!!F.objectMode,ne&&(this.objectMode=this.objectMode||!!F.readableObjectMode),this.highWaterMark=m(this,F,"readableHighWaterMark",ne),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=F.emitClose!==!1,this.autoDestroy=!!F.autoDestroy,this.destroyed=!1,this.defaultEncoding=F.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,F.encoding&&(T||(T=cm().StringDecoder),this.decoder=new T(F.encoding),this.encoding=F.encoding)}function I(F){if(e=e||Da(),!(this instanceof I))return new I(F);var q=this instanceof e;this._readableState=new P(F,this,q),this.readable=!0,F&&(typeof F.read=="function"&&(this._read=F.read),typeof F.destroy=="function"&&(this._destroy=F.destroy)),r.call(this)}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(q){this._readableState&&(this._readableState.destroyed=q)}}),I.prototype.destroy=d.destroy,I.prototype._undestroy=d.undestroy,I.prototype._destroy=function(F,q){q(F)},I.prototype.push=function(F,q){var ne=this._readableState,S;return ne.objectMode?S=!0:typeof F=="string"&&(q=q||ne.defaultEncoding,q!==ne.encoding&&(F=n.from(F,q),q=""),S=!0),Z(this,F,q,!1,S)},I.prototype.unshift=function(F){return Z(this,F,null,!0,!1)};function Z(F,q,ne,S,ie){l("readableAddChunk",q);var N=F._readableState;if(q===null)N.reading=!1,te(F,N);else{var g;if(ie||(g=R(N,q)),g)x(F,g);else if(N.objectMode||q&&q.length>0)if(typeof q!="string"&&!N.objectMode&&Object.getPrototypeOf(q)!==n.prototype&&(q=a(q)),S)N.endEmitted?x(F,new y):oe(F,N,q,!0);else if(N.ended)x(F,new v);else{if(N.destroyed)return!1;N.reading=!1,N.decoder&&!ne?(q=N.decoder.write(q),N.objectMode||q.length!==0?oe(F,N,q,!1):H(F,N)):oe(F,N,q,!1)}else S||(N.reading=!1,H(F,N))}return!N.ended&&(N.length<N.highWaterMark||N.length===0)}function oe(F,q,ne,S){q.flowing&&q.length===0&&!q.sync?(q.awaitDrain=0,F.emit("data",ne)):(q.length+=q.objectMode?1:ne.length,S?q.buffer.unshift(ne):q.buffer.push(ne),q.needReadable&&X(F)),H(F,q)}function R(F,q){var ne;return!o(q)&&typeof q!="string"&&q!==void 0&&!F.objectMode&&(ne=new b("chunk",["string","Buffer","Uint8Array"],q)),ne}I.prototype.isPaused=function(){return this._readableState.flowing===!1},I.prototype.setEncoding=function(F){T||(T=cm().StringDecoder);var q=new T(F);this._readableState.decoder=q,this._readableState.encoding=this._readableState.decoder.encoding;for(var ne=this._readableState.buffer.head,S="";ne!==null;)S+=q.write(ne.data),ne=ne.next;return this._readableState.buffer.clear(),S!==""&&this._readableState.buffer.push(S),this._readableState.length=S.length,this};var z=1073741824;function C(F){return F>=z?F=z:(F--,F|=F>>>1,F|=F>>>2,F|=F>>>4,F|=F>>>8,F|=F>>>16,F++),F}function J(F,q){return F<=0||q.length===0&&q.ended?0:q.objectMode?1:F!==F?q.flowing&&q.length?q.buffer.head.data.length:q.length:(F>q.highWaterMark&&(q.highWaterMark=C(F)),F<=q.length?F:q.ended?q.length:(q.needReadable=!0,0))}I.prototype.read=function(F){l("read",F),F=parseInt(F,10);var q=this._readableState,ne=F;if(F!==0&&(q.emittedReadable=!1),F===0&&q.needReadable&&((q.highWaterMark!==0?q.length>=q.highWaterMark:q.length>0)||q.ended))return l("read: emitReadable",q.length,q.ended),q.length===0&&q.ended?O(this):X(this),null;if(F=J(F,q),F===0&&q.ended)return q.length===0&&O(this),null;var S=q.needReadable;l("need readable",S),(q.length===0||q.length-F<q.highWaterMark)&&(S=!0,l("length less than watermark",S)),q.ended||q.reading?(S=!1,l("reading or ended",S)):S&&(l("do read"),q.reading=!0,q.sync=!0,q.length===0&&(q.needReadable=!0),this._read(q.highWaterMark),q.sync=!1,q.reading||(F=J(ne,q)));var ie;return F>0?ie=h(F,q):ie=null,ie===null?(q.needReadable=q.length<=q.highWaterMark,F=0):(q.length-=F,q.awaitDrain=0),q.length===0&&(q.ended||(q.needReadable=!0),ne!==F&&q.ended&&O(this)),ie!==null&&this.emit("data",ie),ie};function te(F,q){if(l("onEofChunk"),!q.ended){if(q.decoder){var ne=q.decoder.end();ne&&ne.length&&(q.buffer.push(ne),q.length+=q.objectMode?1:ne.length)}q.ended=!0,q.sync?X(F):(q.needReadable=!1,q.emittedReadable||(q.emittedReadable=!0,W(F)))}}function X(F){var q=F._readableState;l("emitReadable",q.needReadable,q.emittedReadable),q.needReadable=!1,q.emittedReadable||(l("emitReadable",q.flowing),q.emittedReadable=!0,De.nextTick(W,F))}function W(F){var q=F._readableState;l("emitReadable_",q.destroyed,q.length,q.ended),!q.destroyed&&(q.length||q.ended)&&(F.emit("readable"),q.emittedReadable=!1),q.needReadable=!q.flowing&&!q.ended&&q.length<=q.highWaterMark,k(F)}function H(F,q){q.readingMore||(q.readingMore=!0,De.nextTick(ae,F,q))}function ae(F,q){for(;!q.reading&&!q.ended&&(q.length<q.highWaterMark||q.flowing&&q.length===0);){var ne=q.length;if(l("maybeReadMore read 0"),F.read(0),ne===q.length)break}q.readingMore=!1}I.prototype._read=function(F){x(this,new A("_read()"))},I.prototype.pipe=function(F,q){var ne=this,S=this._readableState;switch(S.pipesCount){case 0:S.pipes=F;break;case 1:S.pipes=[S.pipes,F];break;default:S.pipes.push(F);break}S.pipesCount+=1,l("pipe count=%d opts=%j",S.pipesCount,q);var ie=(!q||q.end!==!1)&&F!==De.stdout&&F!==De.stderr,N=ie?_:ye;S.endEmitted?De.nextTick(N):ne.once("end",N),F.on("unpipe",g);function g(we,Me){l("onunpipe"),we===ne&&Me&&Me.hasUnpiped===!1&&(Me.hasUnpiped=!0,Q())}function _(){l("onend"),F.end()}var M=K(ne);F.on("drain",M);var G=!1;function Q(){l("cleanup"),F.removeListener("close",me),F.removeListener("finish",de),F.removeListener("drain",M),F.removeListener("error",ue),F.removeListener("unpipe",g),ne.removeListener("end",_),ne.removeListener("end",ye),ne.removeListener("data",$),G=!0,S.awaitDrain&&(!F._writableState||F._writableState.needDrain)&&M()}ne.on("data",$);function $(we){l("ondata");var Me=F.write(we);l("dest.write",Me),Me===!1&&((S.pipesCount===1&&S.pipes===F||S.pipesCount>1&&U(S.pipes,F)!==-1)&&!G&&(l("false write response, pause",S.awaitDrain),S.awaitDrain++),ne.pause())}function ue(we){l("onerror",we),ye(),F.removeListener("error",ue),t(F,"error")===0&&x(F,we)}B(F,"error",ue);function me(){F.removeListener("finish",de),ye()}F.once("close",me);function de(){l("onfinish"),F.removeListener("close",me),ye()}F.once("finish",de);function ye(){l("unpipe"),ne.unpipe(F)}return F.emit("pipe",ne),S.flowing||(l("pipe resume"),ne.resume()),F};function K(F){return function(){var ne=F._readableState;l("pipeOnDrain",ne.awaitDrain),ne.awaitDrain&&ne.awaitDrain--,ne.awaitDrain===0&&t(F,"data")&&(ne.flowing=!0,k(F))}}I.prototype.unpipe=function(F){var q=this._readableState,ne={hasUnpiped:!1};if(q.pipesCount===0)return this;if(q.pipesCount===1)return F&&F!==q.pipes?this:(F||(F=q.pipes),q.pipes=null,q.pipesCount=0,q.flowing=!1,F&&F.emit("unpipe",this,ne),this);if(!F){var S=q.pipes,ie=q.pipesCount;q.pipes=null,q.pipesCount=0,q.flowing=!1;for(var N=0;N<ie;N++)S[N].emit("unpipe",this,{hasUnpiped:!1});return this}var g=U(q.pipes,F);return g===-1?this:(q.pipes.splice(g,1),q.pipesCount-=1,q.pipesCount===1&&(q.pipes=q.pipes[0]),F.emit("unpipe",this,ne),this)},I.prototype.on=function(F,q){var ne=r.prototype.on.call(this,F,q),S=this._readableState;return F==="data"?(S.readableListening=this.listenerCount("readable")>0,S.flowing!==!1&&this.resume()):F==="readable"&&!S.endEmitted&&!S.readableListening&&(S.readableListening=S.needReadable=!0,S.flowing=!1,S.emittedReadable=!1,l("on readable",S.length,S.reading),S.length?X(this):S.reading||De.nextTick(V,this)),ne},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(F,q){var ne=r.prototype.removeListener.call(this,F,q);return F==="readable"&&De.nextTick(L,this),ne},I.prototype.removeAllListeners=function(F){var q=r.prototype.removeAllListeners.apply(this,arguments);return(F==="readable"||F===void 0)&&De.nextTick(L,this),q};function L(F){var q=F._readableState;q.readableListening=F.listenerCount("readable")>0,q.resumeScheduled&&!q.paused?q.flowing=!0:F.listenerCount("data")>0&&F.resume()}function V(F){l("readable nexttick read 0"),F.read(0)}I.prototype.resume=function(){var F=this._readableState;return F.flowing||(l("resume"),F.flowing=!F.readableListening,Y(this,F)),F.paused=!1,this};function Y(F,q){q.resumeScheduled||(q.resumeScheduled=!0,De.nextTick(re,F,q))}function re(F,q){l("resume",q.reading),q.reading||F.read(0),q.resumeScheduled=!1,F.emit("resume"),k(F),q.flowing&&!q.reading&&F.read(0)}I.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function k(F){var q=F._readableState;for(l("flow",q.flowing);q.flowing&&F.read()!==null;);}I.prototype.wrap=function(F){var q=this,ne=this._readableState,S=!1;F.on("end",function(){if(l("wrapped end"),ne.decoder&&!ne.ended){var g=ne.decoder.end();g&&g.length&&q.push(g)}q.push(null)}),F.on("data",function(g){if(l("wrapped data"),ne.decoder&&(g=ne.decoder.write(g)),!(ne.objectMode&&g==null)&&!(!ne.objectMode&&(!g||!g.length))){var _=q.push(g);_||(S=!0,F.pause())}});for(var ie in F)this[ie]===void 0&&typeof F[ie]=="function"&&(this[ie]=(function(_){return function(){return F[_].apply(F,arguments)}})(ie));for(var N=0;N<D.length;N++)F.on(D[N],this.emit.bind(this,D[N]));return this._read=function(g){l("wrapped _read",g),S&&(S=!1,F.resume())},this},typeof Symbol=="function"&&(I.prototype[Symbol.asyncIterator]=function(){return E===void 0&&(E=Ck()),E(this)}),Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(I.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(I.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(q){this._readableState&&(this._readableState.flowing=q)}}),I._fromList=h,Object.defineProperty(I.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function h(F,q){if(q.length===0)return null;var ne;return q.objectMode?ne=q.buffer.shift():!F||F>=q.length?(q.decoder?ne=q.buffer.join(""):q.buffer.length===1?ne=q.buffer.first():ne=q.buffer.concat(q.length),q.buffer.clear()):ne=q.buffer.consume(F,q.decoder),ne}function O(F){var q=F._readableState;l("endReadable",q.endEmitted),q.endEmitted||(q.ended=!0,De.nextTick(j,q,F))}function j(F,q){if(l("endReadableNT",F.endEmitted,F.length),!F.endEmitted&&F.length===0&&(F.endEmitted=!0,q.readable=!1,q.emit("end"),F.autoDestroy)){var ne=q._writableState;(!ne||ne.autoDestroy&&ne.finished)&&q.destroy()}}typeof Symbol=="function"&&(I.from=function(F,q){return w===void 0&&(w=kk()),w(I,F,q)});function U(F,q){for(var ne=0,S=F.length;ne<S;ne++)if(F[ne]===q)return ne;return-1}return Pf}var jf,Gw;function WE(){if(Gw)return jf;Gw=1,jf=s;var e=Ka().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=e.ERR_TRANSFORM_WITH_LENGTH_0,a=Da();mi()(s,a);function o(d,f){var m=this._transformState;m.transforming=!1;var p=m.writecb;if(p===null)return this.emit("error",new r);m.writechunk=null,m.writecb=null,f!=null&&this.push(f),p(d);var b=this._readableState;b.reading=!1,(b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}function s(d){if(!(this instanceof s))return new s(d);a.call(this,d),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",l)}function l(){var d=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,m){c(d,f,m)}):c(this,null,null)}s.prototype.push=function(d,f){return this._transformState.needTransform=!1,a.prototype.push.call(this,d,f)},s.prototype._transform=function(d,f,m){m(new t("_transform()"))},s.prototype._write=function(d,f,m){var p=this._transformState;if(p.writecb=m,p.writechunk=d,p.writeencoding=f,!p.transforming){var b=this._readableState;(p.needTransform||b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}},s.prototype._read=function(d){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},s.prototype._destroy=function(d,f){a.prototype._destroy.call(this,d,function(m){f(m)})};function c(d,f,m){if(f)return d.emit("error",f);if(m!=null&&d.push(m),d._writableState.length)throw new i;if(d._transformState.transforming)throw new n;return d.push(null)}return jf}var Rf,Ww;function Nk(){if(Ww)return Rf;Ww=1,Rf=t;var e=WE();mi()(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,i){i(null,r)},Rf}var Lf,Kw;function Ik(){if(Kw)return Lf;Kw=1;var e;function t(m){var p=!1;return function(){p||(p=!0,m.apply(void 0,arguments))}}var r=Ka().codes,n=r.ERR_MISSING_ARGS,i=r.ERR_STREAM_DESTROYED;function a(m){if(m)throw m}function o(m){return m.setHeader&&typeof m.abort=="function"}function s(m,p,b,v){v=t(v);var A=!1;m.on("close",function(){A=!0}),e===void 0&&(e=Vg()),e(m,{readable:p,writable:b},function(T){if(T)return v(T);A=!0,v()});var y=!1;return function(T){if(!A&&!y){if(y=!0,o(m))return m.abort();if(typeof m.destroy=="function")return m.destroy();v(T||new i("pipe"))}}}function l(m){m()}function c(m,p){return m.pipe(p)}function d(m){return!m.length||typeof m[m.length-1]!="function"?a:m.pop()}function f(){for(var m=arguments.length,p=new Array(m),b=0;b<m;b++)p[b]=arguments[b];var v=d(p);if(Array.isArray(p[0])&&(p=p[0]),p.length<2)throw new n("streams");var A,y=p.map(function(T,E){var w=E<p.length-1,x=E>0;return s(T,w,x,function(D){A||(A=D),D&&y.forEach(l),!w&&(y.forEach(l),v(A))})});return p.reduce(c)}return Lf=f,Lf}var Df,Xw;function Yg(){if(Xw)return Df;Xw=1,Df=r;var e=Wg().EventEmitter,t=mi();t(r,e),r.Readable=GE(),r.Writable=zE(),r.Duplex=Da(),r.Transform=WE(),r.PassThrough=Nk(),r.finished=Vg(),r.pipeline=Ik(),r.Stream=r;function r(){e.call(this)}return r.prototype.pipe=function(n,i){var a=this;function o(p){n.writable&&n.write(p)===!1&&a.pause&&a.pause()}a.on("data",o);function s(){a.readable&&a.resume&&a.resume()}n.on("drain",s),!n._isStdio&&(!i||i.end!==!1)&&(a.on("end",c),a.on("close",d));var l=!1;function c(){l||(l=!0,n.end())}function d(){l||(l=!0,typeof n.destroy=="function"&&n.destroy())}function f(p){if(m(),e.listenerCount(this,"error")===0)throw p}a.on("error",f),n.on("error",f);function m(){a.removeListener("data",o),n.removeListener("drain",s),a.removeListener("end",c),a.removeListener("close",d),a.removeListener("error",f),n.removeListener("error",f),a.removeListener("end",m),a.removeListener("close",m),n.removeListener("close",m)}return a.on("end",m),a.on("close",m),n.on("close",m),n.emit("pipe",a),n},Df}var $w;function Pk(){return $w||($w=1,(function(e){(function(t){t.parser=function(h,O){return new n(h,O)},t.SAXParser=n,t.SAXStream=d,t.createStream=c,t.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(h,O){if(!(this instanceof n))return new n(h,O);var j=this;a(j),j.q=j.c="",j.bufferCheckPosition=t.MAX_BUFFER_LENGTH,j.opt=O||{},j.opt.lowercase=j.opt.lowercase||j.opt.lowercasetags,j.looseCase=j.opt.lowercase?"toLowerCase":"toUpperCase",j.tags=[],j.closed=j.closedRoot=j.sawRoot=!1,j.tag=j.error=null,j.strict=!!h,j.noscript=!!(h||j.opt.noscript),j.state=I.BEGIN,j.strictEntities=j.opt.strictEntities,j.ENTITIES=j.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),j.attribList=[],j.opt.xmlns&&(j.ns=Object.create(v)),j.trackPosition=j.opt.position!==!1,j.trackPosition&&(j.position=j.line=j.column=0),oe(j,"onready")}Object.create||(Object.create=function(h){function O(){}O.prototype=h;var j=new O;return j}),Object.keys||(Object.keys=function(h){var O=[];for(var j in h)h.hasOwnProperty(j)&&O.push(j);return O});function i(h){for(var O=Math.max(t.MAX_BUFFER_LENGTH,10),j=0,U=0,F=r.length;U<F;U++){var q=h[r[U]].length;if(q>O)switch(r[U]){case"textNode":z(h);break;case"cdata":R(h,"oncdata",h.cdata),h.cdata="";break;case"script":R(h,"onscript",h.script),h.script="";break;default:J(h,"Max buffer length exceeded: "+r[U])}j=Math.max(j,q)}var ne=t.MAX_BUFFER_LENGTH-j;h.bufferCheckPosition=ne+h.position}function a(h){for(var O=0,j=r.length;O<j;O++)h[r[O]]=""}function o(h){z(h),h.cdata!==""&&(R(h,"oncdata",h.cdata),h.cdata=""),h.script!==""&&(R(h,"onscript",h.script),h.script="")}n.prototype={end:function(){te(this)},write:k,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){o(this)}};var s;try{s=Yg().Stream}catch{s=function(){}}var l=t.EVENTS.filter(function(h){return h!=="error"&&h!=="end"});function c(h,O){return new d(h,O)}function d(h,O){if(!(this instanceof d))return new d(h,O);s.apply(this),this._parser=new n(h,O),this.writable=!0,this.readable=!0;var j=this;this._parser.onend=function(){j.emit("end")},this._parser.onerror=function(U){j.emit("error",U),j._parser.error=null},this._decoder=null,l.forEach(function(U){Object.defineProperty(j,"on"+U,{get:function(){return j._parser["on"+U]},set:function(F){if(!F)return j.removeAllListeners(U),j._parser["on"+U]=F,F;j.on(U,F)},enumerable:!0,configurable:!1})})}d.prototype=Object.create(s.prototype,{constructor:{value:d}}),d.prototype.write=function(h){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(h)){if(!this._decoder){var O=cm().StringDecoder;this._decoder=new O("utf8")}h=this._decoder.write(h)}return this._parser.write(h.toString()),this.emit("data",h),!0},d.prototype.end=function(h){return h&&h.length&&this.write(h),this._parser.end(),!0},d.prototype.on=function(h,O){var j=this;return!j._parser["on"+h]&&l.indexOf(h)!==-1&&(j._parser["on"+h]=function(){var U=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);U.splice(0,0,h),j.emit.apply(j,U)}),s.prototype.on.call(j,h,O)};var f="[CDATA[",m="DOCTYPE",p="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",v={xml:p,xmlns:b},A=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,T=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,E=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function w(h){return h===" "||h===`
|
|
39
|
+
`||h==="\r"||h===" "}function x(h){return h==='"'||h==="'"}function D(h){return h===">"||w(h)}function B(h,O){return h.test(O)}function P(h,O){return!B(h,O)}var I=0;t.STATE={BEGIN:I++,BEGIN_WHITESPACE:I++,TEXT:I++,TEXT_ENTITY:I++,OPEN_WAKA:I++,SGML_DECL:I++,SGML_DECL_QUOTED:I++,DOCTYPE:I++,DOCTYPE_QUOTED:I++,DOCTYPE_DTD:I++,DOCTYPE_DTD_QUOTED:I++,COMMENT_STARTING:I++,COMMENT:I++,COMMENT_ENDING:I++,COMMENT_ENDED:I++,CDATA:I++,CDATA_ENDING:I++,CDATA_ENDING_2:I++,PROC_INST:I++,PROC_INST_BODY:I++,PROC_INST_ENDING:I++,OPEN_TAG:I++,OPEN_TAG_SLASH:I++,ATTRIB:I++,ATTRIB_NAME:I++,ATTRIB_NAME_SAW_WHITE:I++,ATTRIB_VALUE:I++,ATTRIB_VALUE_QUOTED:I++,ATTRIB_VALUE_CLOSED:I++,ATTRIB_VALUE_UNQUOTED:I++,ATTRIB_VALUE_ENTITY_Q:I++,ATTRIB_VALUE_ENTITY_U:I++,CLOSE_TAG:I++,CLOSE_TAG_SAW_WHITE:I++,SCRIPT:I++,SCRIPT_ENDING:I++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(h){var O=t.ENTITIES[h],j=typeof O=="number"?String.fromCharCode(O):O;t.ENTITIES[h]=j});for(var Z in t.STATE)t.STATE[t.STATE[Z]]=Z;I=t.STATE;function oe(h,O,j){h[O]&&h[O](j)}function R(h,O,j){h.textNode&&z(h),oe(h,O,j)}function z(h){h.textNode=C(h.opt,h.textNode),h.textNode&&oe(h,"ontext",h.textNode),h.textNode=""}function C(h,O){return h.trim&&(O=O.trim()),h.normalize&&(O=O.replace(/\s+/g," ")),O}function J(h,O){return z(h),h.trackPosition&&(O+=`
|
|
40
|
+
Line: `+h.line+`
|
|
41
|
+
Column: `+h.column+`
|
|
42
|
+
Char: `+h.c),O=new Error(O),h.error=O,oe(h,"onerror",O),h}function te(h){return h.sawRoot&&!h.closedRoot&&X(h,"Unclosed root tag"),h.state!==I.BEGIN&&h.state!==I.BEGIN_WHITESPACE&&h.state!==I.TEXT&&J(h,"Unexpected end"),z(h),h.c="",h.closed=!0,oe(h,"onend"),n.call(h,h.strict,h.opt),h}function X(h,O){if(typeof h!="object"||!(h instanceof n))throw new Error("bad call to strictFail");h.strict&&J(h,O)}function W(h){h.strict||(h.tagName=h.tagName[h.looseCase]());var O=h.tags[h.tags.length-1]||h,j=h.tag={name:h.tagName,attributes:{}};h.opt.xmlns&&(j.ns=O.ns),h.attribList.length=0,R(h,"onopentagstart",j)}function H(h,O){var j=h.indexOf(":"),U=j<0?["",h]:h.split(":"),F=U[0],q=U[1];return O&&h==="xmlns"&&(F="xmlns",q=""),{prefix:F,local:q}}function ae(h){if(h.strict||(h.attribName=h.attribName[h.looseCase]()),h.attribList.indexOf(h.attribName)!==-1||h.tag.attributes.hasOwnProperty(h.attribName)){h.attribName=h.attribValue="";return}if(h.opt.xmlns){var O=H(h.attribName,!0),j=O.prefix,U=O.local;if(j==="xmlns")if(U==="xml"&&h.attribValue!==p)X(h,"xml: prefix must be bound to "+p+`
|
|
43
|
+
Actual: `+h.attribValue);else if(U==="xmlns"&&h.attribValue!==b)X(h,"xmlns: prefix must be bound to "+b+`
|
|
44
|
+
Actual: `+h.attribValue);else{var F=h.tag,q=h.tags[h.tags.length-1]||h;F.ns===q.ns&&(F.ns=Object.create(q.ns)),F.ns[U]=h.attribValue}h.attribList.push([h.attribName,h.attribValue])}else h.tag.attributes[h.attribName]=h.attribValue,R(h,"onattribute",{name:h.attribName,value:h.attribValue});h.attribName=h.attribValue=""}function K(h,O){if(h.opt.xmlns){var j=h.tag,U=H(h.tagName);j.prefix=U.prefix,j.local=U.local,j.uri=j.ns[U.prefix]||"",j.prefix&&!j.uri&&(X(h,"Unbound namespace prefix: "+JSON.stringify(h.tagName)),j.uri=U.prefix);var F=h.tags[h.tags.length-1]||h;j.ns&&F.ns!==j.ns&&Object.keys(j.ns).forEach(function($){R(h,"onopennamespace",{prefix:$,uri:j.ns[$]})});for(var q=0,ne=h.attribList.length;q<ne;q++){var S=h.attribList[q],ie=S[0],N=S[1],g=H(ie,!0),_=g.prefix,M=g.local,G=_===""?"":j.ns[_]||"",Q={name:ie,value:N,prefix:_,local:M,uri:G};_&&_!=="xmlns"&&!G&&(X(h,"Unbound namespace prefix: "+JSON.stringify(_)),Q.uri=_),h.tag.attributes[ie]=Q,R(h,"onattribute",Q)}h.attribList.length=0}h.tag.isSelfClosing=!!O,h.sawRoot=!0,h.tags.push(h.tag),R(h,"onopentag",h.tag),O||(!h.noscript&&h.tagName.toLowerCase()==="script"?h.state=I.SCRIPT:h.state=I.TEXT,h.tag=null,h.tagName=""),h.attribName=h.attribValue="",h.attribList.length=0}function L(h){if(!h.tagName){X(h,"Weird empty close tag."),h.textNode+="</>",h.state=I.TEXT;return}if(h.script){if(h.tagName!=="script"){h.script+="</"+h.tagName+">",h.tagName="",h.state=I.SCRIPT;return}R(h,"onscript",h.script),h.script=""}var O=h.tags.length,j=h.tagName;h.strict||(j=j[h.looseCase]());for(var U=j;O--;){var F=h.tags[O];if(F.name!==U)X(h,"Unexpected close tag");else break}if(O<0){X(h,"Unmatched closing tag: "+h.tagName),h.textNode+="</"+h.tagName+">",h.state=I.TEXT;return}h.tagName=j;for(var q=h.tags.length;q-- >O;){var ne=h.tag=h.tags.pop();h.tagName=h.tag.name,R(h,"onclosetag",h.tagName);var S={};for(var ie in ne.ns)S[ie]=ne.ns[ie];var N=h.tags[h.tags.length-1]||h;h.opt.xmlns&&ne.ns!==N.ns&&Object.keys(ne.ns).forEach(function(g){var _=ne.ns[g];R(h,"onclosenamespace",{prefix:g,uri:_})})}O===0&&(h.closedRoot=!0),h.tagName=h.attribValue=h.attribName="",h.attribList.length=0,h.state=I.TEXT}function V(h){var O=h.entity,j=O.toLowerCase(),U,F="";return h.ENTITIES[O]?h.ENTITIES[O]:h.ENTITIES[j]?h.ENTITIES[j]:(O=j,O.charAt(0)==="#"&&(O.charAt(1)==="x"?(O=O.slice(2),U=parseInt(O,16),F=U.toString(16)):(O=O.slice(1),U=parseInt(O,10),F=U.toString(10))),O=O.replace(/^0+/,""),isNaN(U)||F.toLowerCase()!==O?(X(h,"Invalid character entity"),"&"+h.entity+";"):String.fromCodePoint(U))}function Y(h,O){O==="<"?(h.state=I.OPEN_WAKA,h.startTagPosition=h.position):w(O)||(X(h,"Non-whitespace before first tag."),h.textNode=O,h.state=I.TEXT)}function re(h,O){var j="";return O<h.length&&(j=h.charAt(O)),j}function k(h){var O=this;if(this.error)throw this.error;if(O.closed)return J(O,"Cannot write after close. Assign an onready handler.");if(h===null)return te(O);typeof h=="object"&&(h=h.toString());for(var j=0,U="";U=re(h,j++),O.c=U,!!U;)switch(O.trackPosition&&(O.position++,U===`
|
|
45
|
+
`?(O.line++,O.column=0):O.column++),O.state){case I.BEGIN:if(O.state=I.BEGIN_WHITESPACE,U==="\uFEFF")continue;Y(O,U);continue;case I.BEGIN_WHITESPACE:Y(O,U);continue;case I.TEXT:if(O.sawRoot&&!O.closedRoot){for(var F=j-1;U&&U!=="<"&&U!=="&";)U=re(h,j++),U&&O.trackPosition&&(O.position++,U===`
|
|
46
|
+
`?(O.line++,O.column=0):O.column++);O.textNode+=h.substring(F,j-1)}U==="<"&&!(O.sawRoot&&O.closedRoot&&!O.strict)?(O.state=I.OPEN_WAKA,O.startTagPosition=O.position):(!w(U)&&(!O.sawRoot||O.closedRoot)&&X(O,"Text data outside of root node."),U==="&"?O.state=I.TEXT_ENTITY:O.textNode+=U);continue;case I.SCRIPT:U==="<"?O.state=I.SCRIPT_ENDING:O.script+=U;continue;case I.SCRIPT_ENDING:U==="/"?O.state=I.CLOSE_TAG:(O.script+="<"+U,O.state=I.SCRIPT);continue;case I.OPEN_WAKA:if(U==="!")O.state=I.SGML_DECL,O.sgmlDecl="";else if(!w(U))if(B(A,U))O.state=I.OPEN_TAG,O.tagName=U;else if(U==="/")O.state=I.CLOSE_TAG,O.tagName="";else if(U==="?")O.state=I.PROC_INST,O.procInstName=O.procInstBody="";else{if(X(O,"Unencoded <"),O.startTagPosition+1<O.position){var q=O.position-O.startTagPosition;U=new Array(q).join(" ")+U}O.textNode+="<"+U,O.state=I.TEXT}continue;case I.SGML_DECL:(O.sgmlDecl+U).toUpperCase()===f?(R(O,"onopencdata"),O.state=I.CDATA,O.sgmlDecl="",O.cdata=""):O.sgmlDecl+U==="--"?(O.state=I.COMMENT,O.comment="",O.sgmlDecl=""):(O.sgmlDecl+U).toUpperCase()===m?(O.state=I.DOCTYPE,(O.doctype||O.sawRoot)&&X(O,"Inappropriately located doctype declaration"),O.doctype="",O.sgmlDecl=""):U===">"?(R(O,"onsgmldeclaration",O.sgmlDecl),O.sgmlDecl="",O.state=I.TEXT):(x(U)&&(O.state=I.SGML_DECL_QUOTED),O.sgmlDecl+=U);continue;case I.SGML_DECL_QUOTED:U===O.q&&(O.state=I.SGML_DECL,O.q=""),O.sgmlDecl+=U;continue;case I.DOCTYPE:U===">"?(O.state=I.TEXT,R(O,"ondoctype",O.doctype),O.doctype=!0):(O.doctype+=U,U==="["?O.state=I.DOCTYPE_DTD:x(U)&&(O.state=I.DOCTYPE_QUOTED,O.q=U));continue;case I.DOCTYPE_QUOTED:O.doctype+=U,U===O.q&&(O.q="",O.state=I.DOCTYPE);continue;case I.DOCTYPE_DTD:O.doctype+=U,U==="]"?O.state=I.DOCTYPE:x(U)&&(O.state=I.DOCTYPE_DTD_QUOTED,O.q=U);continue;case I.DOCTYPE_DTD_QUOTED:O.doctype+=U,U===O.q&&(O.state=I.DOCTYPE_DTD,O.q="");continue;case I.COMMENT:U==="-"?O.state=I.COMMENT_ENDING:O.comment+=U;continue;case I.COMMENT_ENDING:U==="-"?(O.state=I.COMMENT_ENDED,O.comment=C(O.opt,O.comment),O.comment&&R(O,"oncomment",O.comment),O.comment=""):(O.comment+="-"+U,O.state=I.COMMENT);continue;case I.COMMENT_ENDED:U!==">"?(X(O,"Malformed comment"),O.comment+="--"+U,O.state=I.COMMENT):O.state=I.TEXT;continue;case I.CDATA:U==="]"?O.state=I.CDATA_ENDING:O.cdata+=U;continue;case I.CDATA_ENDING:U==="]"?O.state=I.CDATA_ENDING_2:(O.cdata+="]"+U,O.state=I.CDATA);continue;case I.CDATA_ENDING_2:U===">"?(O.cdata&&R(O,"oncdata",O.cdata),R(O,"onclosecdata"),O.cdata="",O.state=I.TEXT):U==="]"?O.cdata+="]":(O.cdata+="]]"+U,O.state=I.CDATA);continue;case I.PROC_INST:U==="?"?O.state=I.PROC_INST_ENDING:w(U)?O.state=I.PROC_INST_BODY:O.procInstName+=U;continue;case I.PROC_INST_BODY:if(!O.procInstBody&&w(U))continue;U==="?"?O.state=I.PROC_INST_ENDING:O.procInstBody+=U;continue;case I.PROC_INST_ENDING:U===">"?(R(O,"onprocessinginstruction",{name:O.procInstName,body:O.procInstBody}),O.procInstName=O.procInstBody="",O.state=I.TEXT):(O.procInstBody+="?"+U,O.state=I.PROC_INST_BODY);continue;case I.OPEN_TAG:B(y,U)?O.tagName+=U:(W(O),U===">"?K(O):U==="/"?O.state=I.OPEN_TAG_SLASH:(w(U)||X(O,"Invalid character in tag name"),O.state=I.ATTRIB));continue;case I.OPEN_TAG_SLASH:U===">"?(K(O,!0),L(O)):(X(O,"Forward-slash in opening tag not followed by >"),O.state=I.ATTRIB);continue;case I.ATTRIB:if(w(U))continue;U===">"?K(O):U==="/"?O.state=I.OPEN_TAG_SLASH:B(A,U)?(O.attribName=U,O.attribValue="",O.state=I.ATTRIB_NAME):X(O,"Invalid attribute name");continue;case I.ATTRIB_NAME:U==="="?O.state=I.ATTRIB_VALUE:U===">"?(X(O,"Attribute without value"),O.attribValue=O.attribName,ae(O),K(O)):w(U)?O.state=I.ATTRIB_NAME_SAW_WHITE:B(y,U)?O.attribName+=U:X(O,"Invalid attribute name");continue;case I.ATTRIB_NAME_SAW_WHITE:if(U==="=")O.state=I.ATTRIB_VALUE;else{if(w(U))continue;X(O,"Attribute without value"),O.tag.attributes[O.attribName]="",O.attribValue="",R(O,"onattribute",{name:O.attribName,value:""}),O.attribName="",U===">"?K(O):B(A,U)?(O.attribName=U,O.state=I.ATTRIB_NAME):(X(O,"Invalid attribute name"),O.state=I.ATTRIB)}continue;case I.ATTRIB_VALUE:if(w(U))continue;x(U)?(O.q=U,O.state=I.ATTRIB_VALUE_QUOTED):(X(O,"Unquoted attribute value"),O.state=I.ATTRIB_VALUE_UNQUOTED,O.attribValue=U);continue;case I.ATTRIB_VALUE_QUOTED:if(U!==O.q){U==="&"?O.state=I.ATTRIB_VALUE_ENTITY_Q:O.attribValue+=U;continue}ae(O),O.q="",O.state=I.ATTRIB_VALUE_CLOSED;continue;case I.ATTRIB_VALUE_CLOSED:w(U)?O.state=I.ATTRIB:U===">"?K(O):U==="/"?O.state=I.OPEN_TAG_SLASH:B(A,U)?(X(O,"No whitespace between attributes"),O.attribName=U,O.attribValue="",O.state=I.ATTRIB_NAME):X(O,"Invalid attribute name");continue;case I.ATTRIB_VALUE_UNQUOTED:if(!D(U)){U==="&"?O.state=I.ATTRIB_VALUE_ENTITY_U:O.attribValue+=U;continue}ae(O),U===">"?K(O):O.state=I.ATTRIB;continue;case I.CLOSE_TAG:if(O.tagName)U===">"?L(O):B(y,U)?O.tagName+=U:O.script?(O.script+="</"+O.tagName,O.tagName="",O.state=I.SCRIPT):(w(U)||X(O,"Invalid tagname in closing tag"),O.state=I.CLOSE_TAG_SAW_WHITE);else{if(w(U))continue;P(A,U)?O.script?(O.script+="</"+U,O.state=I.SCRIPT):X(O,"Invalid tagname in closing tag."):O.tagName=U}continue;case I.CLOSE_TAG_SAW_WHITE:if(w(U))continue;U===">"?L(O):X(O,"Invalid characters in closing tag");continue;case I.TEXT_ENTITY:case I.ATTRIB_VALUE_ENTITY_Q:case I.ATTRIB_VALUE_ENTITY_U:var ne,S;switch(O.state){case I.TEXT_ENTITY:ne=I.TEXT,S="textNode";break;case I.ATTRIB_VALUE_ENTITY_Q:ne=I.ATTRIB_VALUE_QUOTED,S="attribValue";break;case I.ATTRIB_VALUE_ENTITY_U:ne=I.ATTRIB_VALUE_UNQUOTED,S="attribValue";break}U===";"?(O[S]+=V(O),O.entity="",O.state=ne):B(O.entity.length?E:T,U)?O.entity+=U:(X(O,"Invalid character in entity name"),O[S]+="&"+O.entity+U,O.entity="",O.state=ne);continue;default:throw new Error(O,"Unknown state: "+O.state)}return O.position>=O.bufferCheckPosition&&i(O),O}String.fromCodePoint||(function(){var h=String.fromCharCode,O=Math.floor,j=function(){var U=16384,F=[],q,ne,S=-1,ie=arguments.length;if(!ie)return"";for(var N="";++S<ie;){var g=Number(arguments[S]);if(!isFinite(g)||g<0||g>1114111||O(g)!==g)throw RangeError("Invalid code point: "+g);g<=65535?F.push(g):(g-=65536,q=(g>>10)+55296,ne=g%1024+56320,F.push(q,ne)),(S+1===ie||F.length>U)&&(N+=h.apply(null,F),F.length=0)}return N};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:j,configurable:!0,writable:!0}):String.fromCodePoint=j})()})(e)})(wd)),wd}var Bf,Vw;function Zg(){return Vw||(Vw=1,Bf={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}),Bf}var Ff,Yw;function Jg(){if(Yw)return Ff;Yw=1;var e=Zg().isArray;return Ff={copyOptions:function(t){var r,n={};for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n},ensureFlagExists:function(t,r){(!(t in r)||typeof r[t]!="boolean")&&(r[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!e(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,r){(!(t+"Key"in r)||typeof r[t+"Key"]!="string")&&(r[t+"Key"]=r.compact?"_"+t:t)},checkFnExists:function(t,r){return t+"Fn"in r}},Ff}var qf,Zw;function KE(){if(Zw)return qf;Zw=1;var e=Pk(),t=Jg(),r=Zg().isArray,n,i;function a(y){return n=t.copyOptions(y),t.ensureFlagExists("ignoreDeclaration",n),t.ensureFlagExists("ignoreInstruction",n),t.ensureFlagExists("ignoreAttributes",n),t.ensureFlagExists("ignoreText",n),t.ensureFlagExists("ignoreComment",n),t.ensureFlagExists("ignoreCdata",n),t.ensureFlagExists("ignoreDoctype",n),t.ensureFlagExists("compact",n),t.ensureFlagExists("alwaysChildren",n),t.ensureFlagExists("addParent",n),t.ensureFlagExists("trim",n),t.ensureFlagExists("nativeType",n),t.ensureFlagExists("nativeTypeAttributes",n),t.ensureFlagExists("sanitize",n),t.ensureFlagExists("instructionHasAttributes",n),t.ensureFlagExists("captureSpacesBetweenElements",n),t.ensureAlwaysArrayExists(n),t.ensureKeyExists("declaration",n),t.ensureKeyExists("instruction",n),t.ensureKeyExists("attributes",n),t.ensureKeyExists("text",n),t.ensureKeyExists("comment",n),t.ensureKeyExists("cdata",n),t.ensureKeyExists("doctype",n),t.ensureKeyExists("type",n),t.ensureKeyExists("name",n),t.ensureKeyExists("elements",n),t.ensureKeyExists("parent",n),t.checkFnExists("doctype",n),t.checkFnExists("instruction",n),t.checkFnExists("cdata",n),t.checkFnExists("comment",n),t.checkFnExists("text",n),t.checkFnExists("instructionName",n),t.checkFnExists("elementName",n),t.checkFnExists("attributeName",n),t.checkFnExists("attributeValue",n),t.checkFnExists("attributes",n),n}function o(y){var T=Number(y);if(!isNaN(T))return T;var E=y.toLowerCase();return E==="true"?!0:E==="false"?!1:y}function s(y,T){var E;if(n.compact){if(!i[n[y+"Key"]]&&(r(n.alwaysArray)?n.alwaysArray.indexOf(n[y+"Key"])!==-1:n.alwaysArray)&&(i[n[y+"Key"]]=[]),i[n[y+"Key"]]&&!r(i[n[y+"Key"]])&&(i[n[y+"Key"]]=[i[n[y+"Key"]]]),y+"Fn"in n&&typeof T=="string"&&(T=n[y+"Fn"](T,i)),y==="instruction"&&("instructionFn"in n||"instructionNameFn"in n)){for(E in T)if(T.hasOwnProperty(E))if("instructionFn"in n)T[E]=n.instructionFn(T[E],E,i);else{var w=T[E];delete T[E],T[n.instructionNameFn(E,w,i)]=w}}r(i[n[y+"Key"]])?i[n[y+"Key"]].push(T):i[n[y+"Key"]]=T}else{i[n.elementsKey]||(i[n.elementsKey]=[]);var x={};if(x[n.typeKey]=y,y==="instruction"){for(E in T)if(T.hasOwnProperty(E))break;x[n.nameKey]="instructionNameFn"in n?n.instructionNameFn(E,T,i):E,n.instructionHasAttributes?(x[n.attributesKey]=T[E][n.attributesKey],"instructionFn"in n&&(x[n.attributesKey]=n.instructionFn(x[n.attributesKey],E,i))):("instructionFn"in n&&(T[E]=n.instructionFn(T[E],E,i)),x[n.instructionKey]=T[E])}else y+"Fn"in n&&(T=n[y+"Fn"](T,i)),x[n[y+"Key"]]=T;n.addParent&&(x[n.parentKey]=i),i[n.elementsKey].push(x)}}function l(y){if("attributesFn"in n&&y&&(y=n.attributesFn(y,i)),(n.trim||"attributeValueFn"in n||"attributeNameFn"in n||n.nativeTypeAttributes)&&y){var T;for(T in y)if(y.hasOwnProperty(T)&&(n.trim&&(y[T]=y[T].trim()),n.nativeTypeAttributes&&(y[T]=o(y[T])),"attributeValueFn"in n&&(y[T]=n.attributeValueFn(y[T],T,i)),"attributeNameFn"in n)){var E=y[T];delete y[T],y[n.attributeNameFn(T,y[T],i)]=E}}return y}function c(y){var T={};if(y.body&&(y.name.toLowerCase()==="xml"||n.instructionHasAttributes)){for(var E=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,w;(w=E.exec(y.body))!==null;)T[w[1]]=w[2]||w[3]||w[4];T=l(T)}if(y.name.toLowerCase()==="xml"){if(n.ignoreDeclaration)return;i[n.declarationKey]={},Object.keys(T).length&&(i[n.declarationKey][n.attributesKey]=T),n.addParent&&(i[n.declarationKey][n.parentKey]=i)}else{if(n.ignoreInstruction)return;n.trim&&(y.body=y.body.trim());var x={};n.instructionHasAttributes&&Object.keys(T).length?(x[y.name]={},x[y.name][n.attributesKey]=T):x[y.name]=y.body,s("instruction",x)}}function d(y,T){var E;if(typeof y=="object"&&(T=y.attributes,y=y.name),T=l(T),"elementNameFn"in n&&(y=n.elementNameFn(y,i)),n.compact){if(E={},!n.ignoreAttributes&&T&&Object.keys(T).length){E[n.attributesKey]={};var w;for(w in T)T.hasOwnProperty(w)&&(E[n.attributesKey][w]=T[w])}!(y in i)&&(r(n.alwaysArray)?n.alwaysArray.indexOf(y)!==-1:n.alwaysArray)&&(i[y]=[]),i[y]&&!r(i[y])&&(i[y]=[i[y]]),r(i[y])?i[y].push(E):i[y]=E}else i[n.elementsKey]||(i[n.elementsKey]=[]),E={},E[n.typeKey]="element",E[n.nameKey]=y,!n.ignoreAttributes&&T&&Object.keys(T).length&&(E[n.attributesKey]=T),n.alwaysChildren&&(E[n.elementsKey]=[]),i[n.elementsKey].push(E);E[n.parentKey]=i,i=E}function f(y){n.ignoreText||!y.trim()&&!n.captureSpacesBetweenElements||(n.trim&&(y=y.trim()),n.nativeType&&(y=o(y)),n.sanitize&&(y=y.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),s("text",y))}function m(y){n.ignoreComment||(n.trim&&(y=y.trim()),s("comment",y))}function p(y){var T=i[n.parentKey];n.addParent||delete i[n.parentKey],i=T}function b(y){n.ignoreCdata||(n.trim&&(y=y.trim()),s("cdata",y))}function v(y){n.ignoreDoctype||(y=y.replace(/^ /,""),n.trim&&(y=y.trim()),s("doctype",y))}function A(y){y.note=y}return qf=function(y,T){var E=e.parser(!0,{}),w={};if(i=w,n=a(T),E.opt={strictEntities:!0},E.onopentag=d,E.ontext=f,E.oncomment=m,E.onclosetag=p,E.onerror=A,E.oncdata=b,E.ondoctype=v,E.onprocessinginstruction=c,E.write(y).close(),w[n.elementsKey]){var x=w[n.elementsKey];delete w[n.elementsKey],w[n.elementsKey]=x,delete w.text}return w},qf}var Uf,Jw;function jk(){if(Jw)return Uf;Jw=1;var e=Jg(),t=KE();function r(n){var i=e.copyOptions(n);return e.ensureSpacesExists(i),i}return Uf=function(n,i){var a,o,s,l;return a=r(i),o=t(n,a),l="compact"in a&&a.compact?"_parent":"parent","addParent"in a&&a.addParent?s=JSON.stringify(o,function(c,d){return c===l?"_":d},a.spaces):s=JSON.stringify(o,null,a.spaces),s.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Uf}var Hf,Qw;function XE(){if(Qw)return Hf;Qw=1;var e=Jg(),t=Zg().isArray,r,n;function i(E){var w=e.copyOptions(E);return e.ensureFlagExists("ignoreDeclaration",w),e.ensureFlagExists("ignoreInstruction",w),e.ensureFlagExists("ignoreAttributes",w),e.ensureFlagExists("ignoreText",w),e.ensureFlagExists("ignoreComment",w),e.ensureFlagExists("ignoreCdata",w),e.ensureFlagExists("ignoreDoctype",w),e.ensureFlagExists("compact",w),e.ensureFlagExists("indentText",w),e.ensureFlagExists("indentCdata",w),e.ensureFlagExists("indentAttributes",w),e.ensureFlagExists("indentInstruction",w),e.ensureFlagExists("fullTagEmptyElement",w),e.ensureFlagExists("noQuotesForNativeAttributes",w),e.ensureSpacesExists(w),typeof w.spaces=="number"&&(w.spaces=Array(w.spaces+1).join(" ")),e.ensureKeyExists("declaration",w),e.ensureKeyExists("instruction",w),e.ensureKeyExists("attributes",w),e.ensureKeyExists("text",w),e.ensureKeyExists("comment",w),e.ensureKeyExists("cdata",w),e.ensureKeyExists("doctype",w),e.ensureKeyExists("type",w),e.ensureKeyExists("name",w),e.ensureKeyExists("elements",w),e.checkFnExists("doctype",w),e.checkFnExists("instruction",w),e.checkFnExists("cdata",w),e.checkFnExists("comment",w),e.checkFnExists("text",w),e.checkFnExists("instructionName",w),e.checkFnExists("elementName",w),e.checkFnExists("attributeName",w),e.checkFnExists("attributeValue",w),e.checkFnExists("attributes",w),e.checkFnExists("fullTagEmptyElement",w),w}function a(E,w,x){return(!x&&E.spaces?`
|
|
47
|
+
`:"")+Array(w+1).join(E.spaces)}function o(E,w,x){if(w.ignoreAttributes)return"";"attributesFn"in w&&(E=w.attributesFn(E,n,r));var D,B,P,I,Z=[];for(D in E)E.hasOwnProperty(D)&&E[D]!==null&&E[D]!==void 0&&(I=w.noQuotesForNativeAttributes&&typeof E[D]!="string"?"":'"',B=""+E[D],B=B.replace(/"/g,"""),P="attributeNameFn"in w?w.attributeNameFn(D,B,n,r):D,Z.push(w.spaces&&w.indentAttributes?a(w,x+1,!1):" "),Z.push(P+"="+I+("attributeValueFn"in w?w.attributeValueFn(B,D,n,r):B)+I));return E&&Object.keys(E).length&&w.spaces&&w.indentAttributes&&Z.push(a(w,x,!1)),Z.join("")}function s(E,w,x){return r=E,n="xml",w.ignoreDeclaration?"":"<?xml"+o(E[w.attributesKey],w,x)+"?>"}function l(E,w,x){if(w.ignoreInstruction)return"";var D;for(D in E)if(E.hasOwnProperty(D))break;var B="instructionNameFn"in w?w.instructionNameFn(D,E[D],n,r):D;if(typeof E[D]=="object")return r=E,n=B,"<?"+B+o(E[D][w.attributesKey],w,x)+"?>";var P=E[D]?E[D]:"";return"instructionFn"in w&&(P=w.instructionFn(P,D,n,r)),"<?"+B+(P?" "+P:"")+"?>"}function c(E,w){return w.ignoreComment?"":"<!--"+("commentFn"in w?w.commentFn(E,n,r):E)+"-->"}function d(E,w){return w.ignoreCdata?"":"<![CDATA["+("cdataFn"in w?w.cdataFn(E,n,r):E.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function f(E,w){return w.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in w?w.doctypeFn(E,n,r):E)+">"}function m(E,w){return w.ignoreText?"":(E=""+E,E=E.replace(/&/g,"&"),E=E.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in w?w.textFn(E,n,r):E)}function p(E,w){var x;if(E.elements&&E.elements.length)for(x=0;x<E.elements.length;++x)switch(E.elements[x][w.typeKey]){case"text":if(w.indentText)return!0;break;case"cdata":if(w.indentCdata)return!0;break;case"instruction":if(w.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function b(E,w,x){r=E,n=E.name;var D=[],B="elementNameFn"in w?w.elementNameFn(E.name,E):E.name;D.push("<"+B),E[w.attributesKey]&&D.push(o(E[w.attributesKey],w,x));var P=E[w.elementsKey]&&E[w.elementsKey].length||E[w.attributesKey]&&E[w.attributesKey]["xml:space"]==="preserve";return P||("fullTagEmptyElementFn"in w?P=w.fullTagEmptyElementFn(E.name,E):P=w.fullTagEmptyElement),P?(D.push(">"),E[w.elementsKey]&&E[w.elementsKey].length&&(D.push(v(E[w.elementsKey],w,x+1)),r=E,n=E.name),D.push(w.spaces&&p(E,w)?`
|
|
48
|
+
`+Array(x+1).join(w.spaces):""),D.push("</"+B+">")):D.push("/>"),D.join("")}function v(E,w,x,D){return E.reduce(function(B,P){var I=a(w,x,D&&!B);switch(P.type){case"element":return B+I+b(P,w,x);case"comment":return B+I+c(P[w.commentKey],w);case"doctype":return B+I+f(P[w.doctypeKey],w);case"cdata":return B+(w.indentCdata?I:"")+d(P[w.cdataKey],w);case"text":return B+(w.indentText?I:"")+m(P[w.textKey],w);case"instruction":var Z={};return Z[P[w.nameKey]]=P[w.attributesKey]?P:P[w.instructionKey],B+(w.indentInstruction?I:"")+l(Z,w,x)}},"")}function A(E,w,x){var D;for(D in E)if(E.hasOwnProperty(D))switch(D){case w.parentKey:case w.attributesKey:break;case w.textKey:if(w.indentText||x)return!0;break;case w.cdataKey:if(w.indentCdata||x)return!0;break;case w.instructionKey:if(w.indentInstruction||x)return!0;break;case w.doctypeKey:case w.commentKey:return!0;default:return!0}return!1}function y(E,w,x,D,B){r=E,n=w;var P="elementNameFn"in x?x.elementNameFn(w,E):w;if(typeof E>"u"||E===null||E==="")return"fullTagEmptyElementFn"in x&&x.fullTagEmptyElementFn(w,E)||x.fullTagEmptyElement?"<"+P+"></"+P+">":"<"+P+"/>";var I=[];if(w){if(I.push("<"+P),typeof E!="object")return I.push(">"+m(E,x)+"</"+P+">"),I.join("");E[x.attributesKey]&&I.push(o(E[x.attributesKey],x,D));var Z=A(E,x,!0)||E[x.attributesKey]&&E[x.attributesKey]["xml:space"]==="preserve";if(Z||("fullTagEmptyElementFn"in x?Z=x.fullTagEmptyElementFn(w,E):Z=x.fullTagEmptyElement),Z)I.push(">");else return I.push("/>"),I.join("")}return I.push(T(E,x,D+1,!1)),r=E,n=w,w&&I.push((B?a(x,D,!1):"")+"</"+P+">"),I.join("")}function T(E,w,x,D){var B,P,I,Z=[];for(P in E)if(E.hasOwnProperty(P))for(I=t(E[P])?E[P]:[E[P]],B=0;B<I.length;++B){switch(P){case w.declarationKey:Z.push(s(I[B],w,x));break;case w.instructionKey:Z.push((w.indentInstruction?a(w,x,D):"")+l(I[B],w,x));break;case w.attributesKey:case w.parentKey:break;case w.textKey:Z.push((w.indentText?a(w,x,D):"")+m(I[B],w));break;case w.cdataKey:Z.push((w.indentCdata?a(w,x,D):"")+d(I[B],w));break;case w.doctypeKey:Z.push(a(w,x,D)+f(I[B],w));break;case w.commentKey:Z.push(a(w,x,D)+c(I[B],w));break;default:Z.push(a(w,x,D)+y(I[B],P,w,x,A(I[B],w)))}D=D&&!Z.length}return Z.join("")}return Hf=function(E,w){w=i(w);var x=[];return r=E,n="_root_",w.compact?x.push(T(E,w,0,!0)):(E[w.declarationKey]&&x.push(s(E[w.declarationKey],w,0)),E[w.elementsKey]&&E[w.elementsKey].length&&x.push(v(E[w.elementsKey],w,0,!x.length))),x.join("")},Hf}var zf,eE;function Rk(){if(eE)return zf;eE=1;var e=XE();return zf=function(t,r){t instanceof Buffer&&(t=t.toString());var n=null;if(typeof t=="string")try{n=JSON.parse(t)}catch{throw new Error("The JSON structure is invalid")}else n=t;return e(n,r)},zf}var Gf,tE;function Lk(){if(tE)return Gf;tE=1;var e=KE(),t=jk(),r=XE(),n=Rk();return Gf={xml2js:e,xml2json:t,js2xml:r,json2xml:n},Gf}var $E=Lk(),ps=e=>{switch(e.type){case void 0:case"element":let t=new dm(e.name,e.attributes),r=e.elements||[];for(let n of r){let i=ps(n);i!==void 0&&t.push(i)}return t;case"text":return e.text;default:return}},um=class extends ve{},dm=class extends se{static fromXmlString(t){let r=$E.xml2js(t,{compact:!1});return ps(r)}constructor(t,r){super(t),r&&this.root.push(new um(r))}push(t){this.root.push(t)}},fm=class extends se{constructor(t){super(""),this._attr=t}prepForXml(t){return{_attr:this._attr}}};var Sl=class extends se{constructor(t,r){super(t),r&&(this.root=r.root)}},qt=e=>{if(isNaN(e))throw new Error(`Invalid value '${e}' specified. Must be an integer.`);return Math.floor(e)},Zl=e=>{let t=qt(e);if(t<0)throw new Error(`Invalid value '${e}' specified. Must be a positive integer.`);return t},VE=(e,t)=>{let r=t*2;if(e.length!==r||isNaN(+`0x${e}`))throw new Error(`Invalid hex value '${e}'. Expected ${r} digit hex value`);return e};var rE=e=>VE(e,1),Qg=e=>{let t=e.slice(-2),r=e.substring(0,e.length-2);return`${Number(r)}${t}`},YE=e=>{let t=Qg(e);if(parseFloat(t)<0)throw new Error(`Invalid value '${t}' specified. Expected a positive number.`);return t},Ba=e=>{if(e==="auto")return e;let t=e.charAt(0)==="#"?e.substring(1):e;return VE(t,3)},Fn=e=>typeof e=="string"?Qg(e):qt(e),Dk=e=>typeof e=="string"?YE(e):Zl(e);var Nt=e=>typeof e=="string"?YE(e):Zl(e),Bk=e=>{let t=e.substring(0,e.length-1);return`${Number(t)}%`},ZE=e=>typeof e=="number"?qt(e):e.slice(-1)==="%"?Bk(e):Qg(e),Fk=Zl,qk=Zl,Uk=e=>e.toISOString(),he=class extends se{constructor(t,r=!0){super(t),r!==!0&&this.root.push(new dt({val:r}))}},rs=class extends se{constructor(t,r){super(t),this.root.push(new dt({val:Dk(r)}))}};var sn=class extends se{constructor(t,r){super(t),this.root.push(new dt({val:r}))}},Jo=(e,t)=>new Xe({name:e,attributes:{value:{key:"w:val",value:t}}}),da=class extends se{constructor(t,r){super(t),this.root.push(new dt({val:r}))}},mm=class extends se{constructor(t,r){super(t),this.root.push(new dt({val:r}))}},Dn=class extends se{constructor(t,r){super(t),this.root.push(r)}},Xe=class extends se{constructor({name:t,attributes:r,children:n}){super(t),r&&this.root.push(new Ur(r)),n&&this.root.push(...n)}},Oe={START:"start",CENTER:"center",END:"end",BOTH:"both",MEDIUM_KASHIDA:"mediumKashida",DISTRIBUTE:"distribute",NUM_TAB:"numTab",HIGH_KASHIDA:"highKashida",LOW_KASHIDA:"lowKashida",THAI_DISTRIBUTE:"thaiDistribute",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"},hm=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{val:"w:val"})}},xl=class extends se{constructor(t){super("w:jc"),this.root.push(new hm({val:t}))}},Ve=class extends se{constructor(t,{color:r,size:n,space:i,style:a}){super(t),this.root.push(new pm({style:a,color:r===void 0?void 0:Ba(r),size:n===void 0?void 0:Fk(n),space:i===void 0?void 0:qk(i)}))}},pm=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}},We={SINGLE:"single",DASH_DOT_STROKED:"dashDotStroked",DASHED:"dashed",DASH_SMALL_GAP:"dashSmallGap",DOT_DASH:"dotDash",DOT_DOT_DASH:"dotDotDash",DOTTED:"dotted",DOUBLE:"double",DOUBLE_WAVE:"doubleWave",INSET:"inset",NIL:"nil",NONE:"none",OUTSET:"outset",THICK:"thick",THICK_THIN_LARGE_GAP:"thickThinLargeGap",THICK_THIN_MEDIUM_GAP:"thickThinMediumGap",THICK_THIN_SMALL_GAP:"thickThinSmallGap",THIN_THICK_LARGE_GAP:"thinThickLargeGap",THIN_THICK_MEDIUM_GAP:"thinThickMediumGap",THIN_THICK_SMALL_GAP:"thinThickSmallGap",THIN_THICK_THIN_LARGE_GAP:"thinThickThinLargeGap",THIN_THICK_THIN_MEDIUM_GAP:"thinThickThinMediumGap",THIN_THICK_THIN_SMALL_GAP:"thinThickThinSmallGap",THREE_D_EMBOSS:"threeDEmboss",THREE_D_ENGRAVE:"threeDEngrave",TRIPLE:"triple",WAVE:"wave"},gm=class extends qr{constructor(t){super("w:pBdr"),t.top&&this.root.push(new Ve("w:top",t.top)),t.bottom&&this.root.push(new Ve("w:bottom",t.bottom)),t.left&&this.root.push(new Ve("w:left",t.left)),t.right&&this.root.push(new Ve("w:right",t.right))}},ym=class extends se{constructor(){super("w:pBdr");let t=new Ve("w:bottom",{color:"auto",space:1,style:We.SINGLE,size:6});this.root.push(t)}},_m=class extends se{constructor({start:t,end:r,left:n,right:i,hanging:a,firstLine:o}){super("w:ind"),this.root.push(new Ur({start:{key:"w:start",value:t===void 0?void 0:Fn(t)},end:{key:"w:end",value:r===void 0?void 0:Fn(r)},left:{key:"w:left",value:n===void 0?void 0:Fn(n)},right:{key:"w:right",value:i===void 0?void 0:Fn(i)},hanging:{key:"w:hanging",value:a===void 0?void 0:Nt(a)},firstLine:{key:"w:firstLine",value:o===void 0?void 0:Nt(o)}}))}},Hk=class extends se{constructor(){super("w:br")}},ey={BEGIN:"begin",END:"end",SEPARATE:"separate"},ss=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}},la=class extends se{constructor(t){super("w:fldChar"),this.root.push(new ss({type:ey.BEGIN,dirty:t}))}},ca=class extends se{constructor(t){super("w:fldChar"),this.root.push(new ss({type:ey.SEPARATE,dirty:t}))}},ua=class extends se{constructor(t){super("w:fldChar"),this.root.push(new ss({type:ey.END,dirty:t}))}};var fa={DEFAULT:"default",PRESERVE:"preserve"},Hn=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{space:"xml:space"})}},vm=class extends se{constructor(){super("w:instrText"),this.root.push(new Hn({space:fa.PRESERVE})),this.root.push("PAGE")}},bm=class extends se{constructor(){super("w:instrText"),this.root.push(new Hn({space:fa.PRESERVE})),this.root.push("NUMPAGES")}},wm=class extends se{constructor(){super("w:instrText"),this.root.push(new Hn({space:fa.PRESERVE})),this.root.push("SECTIONPAGES")}},Em=class extends se{constructor(){super("w:instrText"),this.root.push(new Hn({space:fa.PRESERVE})),this.root.push("SECTION")}},Am=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}},Fa=class extends se{constructor({fill:t,color:r,type:n}){super("w:shd"),this.root.push(new Am({fill:t===void 0?void 0:Ba(t),color:r===void 0?void 0:Ba(r),type:n}))}};var Om=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}},zk={DOT:"dot"},Tm=class extends se{constructor(t){super("w:em"),this.root.push(new dt({val:t}))}},Sm=class extends Tm{constructor(t=zk.DOT){super(t)}};var xm=class extends se{constructor(t){super("w:spacing"),this.root.push(new dt({val:Fn(t)}))}},Mm=class extends se{constructor(t){super("w:color"),this.root.push(new dt({val:Ba(t)}))}},Cm=class extends se{constructor(t){super("w:highlight"),this.root.push(new dt({val:t}))}},km=class extends se{constructor(t){super("w:highlightCs"),this.root.push(new dt({val:t}))}},Gk=e=>new Xe({name:"w:lang",attributes:{value:{key:"w:val",value:e.value},eastAsia:{key:"w:eastAsia",value:e.eastAsia},bidirectional:{key:"w:bidi",value:e.bidirectional}}}),Ml=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}},ns=class extends se{constructor(t,r){if(super("w:rFonts"),typeof t=="string"){let n=t;this.root.push(new Ml({ascii:n,cs:n,eastAsia:n,hAnsi:n,hint:r}))}else{let n=t;this.root.push(new Ml(n))}}},JE=class extends se{constructor(t){super("w:vertAlign"),this.root.push(new dt({val:t}))}},Nm=class extends JE{constructor(){super("superscript")}},Im=class extends JE{constructor(){super("subscript")}},QE={SINGLE:"single",WORDS:"words",DOUBLE:"double",THICK:"thick",DOTTED:"dotted",DOTTEDHEAVY:"dottedHeavy",DASH:"dash",DASHEDHEAVY:"dashedHeavy",DASHLONG:"dashLong",DASHLONGHEAVY:"dashLongHeavy",DOTDASH:"dotDash",DASHDOTHEAVY:"dashDotHeavy",DOTDOTDASH:"dotDotDash",DASHDOTDOTHEAVY:"dashDotDotHeavy",WAVE:"wave",WAVYHEAVY:"wavyHeavy",WAVYDOUBLE:"wavyDouble",NONE:"none"},Pm=class extends se{constructor(t=QE.SINGLE,r){super("w:u"),this.root.push(new dt({val:t,color:r===void 0?void 0:Ba(r)}))}};var zn=class extends qr{constructor(t){var r,n;if(super("w:rPr"),!t)return;t.style&&this.push(new sn("w:rStyle",t.style)),t.font&&(typeof t.font=="string"?this.push(new ns(t.font)):"name"in t.font?this.push(new ns(t.font.name,t.font.hint)):this.push(new ns(t.font))),t.bold!==void 0&&this.push(new he("w:b",t.bold)),(t.boldComplexScript===void 0&&t.bold!==void 0||t.boldComplexScript)&&this.push(new he("w:bCs",(r=t.boldComplexScript)!=null?r:t.bold)),t.italics!==void 0&&this.push(new he("w:i",t.italics)),(t.italicsComplexScript===void 0&&t.italics!==void 0||t.italicsComplexScript)&&this.push(new he("w:iCs",(n=t.italicsComplexScript)!=null?n:t.italics)),t.smallCaps!==void 0?this.push(new he("w:smallCaps",t.smallCaps)):t.allCaps!==void 0&&this.push(new he("w:caps",t.allCaps)),t.strike!==void 0&&this.push(new he("w:strike",t.strike)),t.doubleStrike!==void 0&&this.push(new he("w:dstrike",t.doubleStrike)),t.emboss!==void 0&&this.push(new he("w:emboss",t.emboss)),t.imprint!==void 0&&this.push(new he("w:imprint",t.imprint)),t.noProof!==void 0&&this.push(new he("w:noProof",t.noProof)),t.snapToGrid!==void 0&&this.push(new he("w:snapToGrid",t.snapToGrid)),t.vanish&&this.push(new he("w:vanish",t.vanish)),t.color&&this.push(new Mm(t.color)),t.characterSpacing&&this.push(new xm(t.characterSpacing)),t.scale!==void 0&&this.push(new da("w:w",t.scale)),t.kern&&this.push(new rs("w:kern",t.kern)),t.position&&this.push(new sn("w:position",t.position)),t.size!==void 0&&this.push(new rs("w:sz",t.size));let i=t.sizeComplexScript===void 0||t.sizeComplexScript===!0?t.size:t.sizeComplexScript;i&&this.push(new rs("w:szCs",i)),t.highlight&&this.push(new Cm(t.highlight));let a=t.highlightComplexScript===void 0||t.highlightComplexScript===!0?t.highlight:t.highlightComplexScript;a&&this.push(new km(a)),t.underline&&this.push(new Pm(t.underline.type,t.underline.color)),t.effect&&this.push(new sn("w:effect",t.effect)),t.border&&this.push(new Ve("w:bdr",t.border)),t.shading&&this.push(new Fa(t.shading)),t.subScript&&this.push(new Im),t.superScript&&this.push(new Nm),t.rightToLeft!==void 0&&this.push(new he("w:rtl",t.rightToLeft)),t.emphasisMark&&this.push(new Sm(t.emphasisMark.type)),t.language&&this.push(Gk(t.language)),t.specVanish&&this.push(new he("w:specVanish",t.vanish)),t.math&&this.push(new he("w:oMath",t.math)),t.revision&&this.push(new jm(t.revision))}push(t){this.root.push(t)}},jm=class extends se{constructor(t){super("w:rPrChange"),this.root.push(new Om({id:t.id,author:t.author,date:t.date})),this.addChildElement(new zn(t))}},Cl=class extends se{constructor(t){var r;super("w:t"),typeof t=="string"?(this.root.push(new Hn({space:fa.PRESERVE})),this.root.push(t)):(this.root.push(new Hn({space:(r=t.space)!=null?r:fa.DEFAULT})),this.root.push(t.text))}},bl={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"},Gn=class extends se{constructor(t){if(super("w:r"),ce(this,"properties"),this.properties=new zn(t),this.root.push(this.properties),t.break)for(let r=0;r<t.break;r++)this.root.push(new Hk);if(t.children)for(let r of t.children){if(typeof r=="string"){switch(r){case bl.CURRENT:this.root.push(new la),this.root.push(new vm),this.root.push(new ca),this.root.push(new ua);break;case bl.TOTAL_PAGES:this.root.push(new la),this.root.push(new bm),this.root.push(new ca),this.root.push(new ua);break;case bl.TOTAL_PAGES_IN_SECTION:this.root.push(new la),this.root.push(new wm),this.root.push(new ca),this.root.push(new ua);break;case bl.CURRENT_SECTION:this.root.push(new la),this.root.push(new Em),this.root.push(new ca),this.root.push(new ua);break;default:this.root.push(new Cl(r));break}continue}this.root.push(r)}else t.text!==void 0&&this.root.push(new Cl(t.text))}},Ue=class extends Gn{constructor(t){super(typeof t=="string"?{text:t}:t)}};var Wf={},Ze={},Kf,nE;function gs(){if(nE)return Kf;nE=1,Kf=e;function e(t,r){if(!t)throw new Error(r||"Assertion failed")}return e.equal=function(r,n,i){if(r!=n)throw new Error(i||"Assertion failed: "+r+" != "+n)},Kf}var iE;function cn(){if(iE)return Ze;iE=1;var e=gs(),t=mi();Ze.inherits=t;function r(R,z){return(R.charCodeAt(z)&64512)!==55296||z<0||z+1>=R.length?!1:(R.charCodeAt(z+1)&64512)===56320}function n(R,z){if(Array.isArray(R))return R.slice();if(!R)return[];var C=[];if(typeof R=="string")if(z){if(z==="hex")for(R=R.replace(/[^a-z0-9]+/ig,""),R.length%2!==0&&(R="0"+R),te=0;te<R.length;te+=2)C.push(parseInt(R[te]+R[te+1],16))}else for(var J=0,te=0;te<R.length;te++){var X=R.charCodeAt(te);X<128?C[J++]=X:X<2048?(C[J++]=X>>6|192,C[J++]=X&63|128):r(R,te)?(X=65536+((X&1023)<<10)+(R.charCodeAt(++te)&1023),C[J++]=X>>18|240,C[J++]=X>>12&63|128,C[J++]=X>>6&63|128,C[J++]=X&63|128):(C[J++]=X>>12|224,C[J++]=X>>6&63|128,C[J++]=X&63|128)}else for(te=0;te<R.length;te++)C[te]=R[te]|0;return C}Ze.toArray=n;function i(R){for(var z="",C=0;C<R.length;C++)z+=s(R[C].toString(16));return z}Ze.toHex=i;function a(R){var z=R>>>24|R>>>8&65280|R<<8&16711680|(R&255)<<24;return z>>>0}Ze.htonl=a;function o(R,z){for(var C="",J=0;J<R.length;J++){var te=R[J];z==="little"&&(te=a(te)),C+=l(te.toString(16))}return C}Ze.toHex32=o;function s(R){return R.length===1?"0"+R:R}Ze.zero2=s;function l(R){return R.length===7?"0"+R:R.length===6?"00"+R:R.length===5?"000"+R:R.length===4?"0000"+R:R.length===3?"00000"+R:R.length===2?"000000"+R:R.length===1?"0000000"+R:R}Ze.zero8=l;function c(R,z,C,J){var te=C-z;e(te%4===0);for(var X=new Array(te/4),W=0,H=z;W<X.length;W++,H+=4){var ae;J==="big"?ae=R[H]<<24|R[H+1]<<16|R[H+2]<<8|R[H+3]:ae=R[H+3]<<24|R[H+2]<<16|R[H+1]<<8|R[H],X[W]=ae>>>0}return X}Ze.join32=c;function d(R,z){for(var C=new Array(R.length*4),J=0,te=0;J<R.length;J++,te+=4){var X=R[J];z==="big"?(C[te]=X>>>24,C[te+1]=X>>>16&255,C[te+2]=X>>>8&255,C[te+3]=X&255):(C[te+3]=X>>>24,C[te+2]=X>>>16&255,C[te+1]=X>>>8&255,C[te]=X&255)}return C}Ze.split32=d;function f(R,z){return R>>>z|R<<32-z}Ze.rotr32=f;function m(R,z){return R<<z|R>>>32-z}Ze.rotl32=m;function p(R,z){return R+z>>>0}Ze.sum32=p;function b(R,z,C){return R+z+C>>>0}Ze.sum32_3=b;function v(R,z,C,J){return R+z+C+J>>>0}Ze.sum32_4=v;function A(R,z,C,J,te){return R+z+C+J+te>>>0}Ze.sum32_5=A;function y(R,z,C,J){var te=R[z],X=R[z+1],W=J+X>>>0,H=(W<J?1:0)+C+te;R[z]=H>>>0,R[z+1]=W}Ze.sum64=y;function T(R,z,C,J){var te=z+J>>>0,X=(te<z?1:0)+R+C;return X>>>0}Ze.sum64_hi=T;function E(R,z,C,J){var te=z+J;return te>>>0}Ze.sum64_lo=E;function w(R,z,C,J,te,X,W,H){var ae=0,K=z;K=K+J>>>0,ae+=K<z?1:0,K=K+X>>>0,ae+=K<X?1:0,K=K+H>>>0,ae+=K<H?1:0;var L=R+C+te+W+ae;return L>>>0}Ze.sum64_4_hi=w;function x(R,z,C,J,te,X,W,H){var ae=z+J+X+H;return ae>>>0}Ze.sum64_4_lo=x;function D(R,z,C,J,te,X,W,H,ae,K){var L=0,V=z;V=V+J>>>0,L+=V<z?1:0,V=V+X>>>0,L+=V<X?1:0,V=V+H>>>0,L+=V<H?1:0,V=V+K>>>0,L+=V<K?1:0;var Y=R+C+te+W+ae+L;return Y>>>0}Ze.sum64_5_hi=D;function B(R,z,C,J,te,X,W,H,ae,K){var L=z+J+X+H+K;return L>>>0}Ze.sum64_5_lo=B;function P(R,z,C){var J=z<<32-C|R>>>C;return J>>>0}Ze.rotr64_hi=P;function I(R,z,C){var J=R<<32-C|z>>>C;return J>>>0}Ze.rotr64_lo=I;function Z(R,z,C){return R>>>C}Ze.shr64_hi=Z;function oe(R,z,C){var J=R<<32-C|z>>>C;return J>>>0}return Ze.shr64_lo=oe,Ze}var Xf={},aE;function ys(){if(aE)return Xf;aE=1;var e=cn(),t=gs();function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return Xf.BlockHash=r,r.prototype.update=function(i,a){if(i=e.toArray(i,a),this.pending?this.pending=this.pending.concat(i):this.pending=i,this.pendingTotal+=i.length,this.pending.length>=this._delta8){i=this.pending;var o=i.length%this._delta8;this.pending=i.slice(i.length-o,i.length),this.pending.length===0&&(this.pending=null),i=e.join32(i,0,i.length-o,this.endian);for(var s=0;s<i.length;s+=this._delta32)this._update(i,s,s+this._delta32)}return this},r.prototype.digest=function(i){return this.update(this._pad()),t(this.pending===null),this._digest(i)},r.prototype._pad=function(){var i=this.pendingTotal,a=this._delta8,o=a-(i+this.padLength)%a,s=new Array(o+this.padLength);s[0]=128;for(var l=1;l<o;l++)s[l]=0;if(i<<=3,this.endian==="big"){for(var c=8;c<this.padLength;c++)s[l++]=0;s[l++]=0,s[l++]=0,s[l++]=0,s[l++]=0,s[l++]=i>>>24&255,s[l++]=i>>>16&255,s[l++]=i>>>8&255,s[l++]=i&255}else for(s[l++]=i&255,s[l++]=i>>>8&255,s[l++]=i>>>16&255,s[l++]=i>>>24&255,s[l++]=0,s[l++]=0,s[l++]=0,s[l++]=0,c=8;c<this.padLength;c++)s[l++]=0;return s},Xf}var aa={},rn={},oE;function e0(){if(oE)return rn;oE=1;var e=cn(),t=e.rotr32;function r(d,f,m,p){if(d===0)return n(f,m,p);if(d===1||d===3)return a(f,m,p);if(d===2)return i(f,m,p)}rn.ft_1=r;function n(d,f,m){return d&f^~d&m}rn.ch32=n;function i(d,f,m){return d&f^d&m^f&m}rn.maj32=i;function a(d,f,m){return d^f^m}rn.p32=a;function o(d){return t(d,2)^t(d,13)^t(d,22)}rn.s0_256=o;function s(d){return t(d,6)^t(d,11)^t(d,25)}rn.s1_256=s;function l(d){return t(d,7)^t(d,18)^d>>>3}rn.g0_256=l;function c(d){return t(d,17)^t(d,19)^d>>>10}return rn.g1_256=c,rn}var $f,sE;function Wk(){if(sE)return $f;sE=1;var e=cn(),t=ys(),r=e0(),n=e.rotl32,i=e.sum32,a=e.sum32_5,o=r.ft_1,s=t.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function c(){if(!(this instanceof c))return new c;s.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return e.inherits(c,s),$f=c,c.blockSize=512,c.outSize=160,c.hmacStrength=80,c.padLength=64,c.prototype._update=function(f,m){for(var p=this.W,b=0;b<16;b++)p[b]=f[m+b];for(;b<p.length;b++)p[b]=n(p[b-3]^p[b-8]^p[b-14]^p[b-16],1);var v=this.h[0],A=this.h[1],y=this.h[2],T=this.h[3],E=this.h[4];for(b=0;b<p.length;b++){var w=~~(b/20),x=a(n(v,5),o(w,A,y,T),E,p[b],l[w]);E=T,T=y,y=n(A,30),A=v,v=x}this.h[0]=i(this.h[0],v),this.h[1]=i(this.h[1],A),this.h[2]=i(this.h[2],y),this.h[3]=i(this.h[3],T),this.h[4]=i(this.h[4],E)},c.prototype._digest=function(f){return f==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")},$f}var Vf,lE;function t0(){if(lE)return Vf;lE=1;var e=cn(),t=ys(),r=e0(),n=gs(),i=e.sum32,a=e.sum32_4,o=e.sum32_5,s=r.ch32,l=r.maj32,c=r.s0_256,d=r.s1_256,f=r.g0_256,m=r.g1_256,p=t.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;p.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}return e.inherits(v,p),Vf=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(y,T){for(var E=this.W,w=0;w<16;w++)E[w]=y[T+w];for(;w<E.length;w++)E[w]=a(m(E[w-2]),E[w-7],f(E[w-15]),E[w-16]);var x=this.h[0],D=this.h[1],B=this.h[2],P=this.h[3],I=this.h[4],Z=this.h[5],oe=this.h[6],R=this.h[7];for(n(this.k.length===E.length),w=0;w<E.length;w++){var z=o(R,d(I),s(I,Z,oe),this.k[w],E[w]),C=i(c(x),l(x,D,B));R=oe,oe=Z,Z=I,I=i(P,z),P=B,B=D,D=x,x=i(z,C)}this.h[0]=i(this.h[0],x),this.h[1]=i(this.h[1],D),this.h[2]=i(this.h[2],B),this.h[3]=i(this.h[3],P),this.h[4]=i(this.h[4],I),this.h[5]=i(this.h[5],Z),this.h[6]=i(this.h[6],oe),this.h[7]=i(this.h[7],R)},v.prototype._digest=function(y){return y==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")},Vf}var Yf,cE;function Kk(){if(cE)return Yf;cE=1;var e=cn(),t=t0();function r(){if(!(this instanceof r))return new r;t.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return e.inherits(r,t),Yf=r,r.blockSize=512,r.outSize=224,r.hmacStrength=192,r.padLength=64,r.prototype._digest=function(i){return i==="hex"?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")},Yf}var Zf,uE;function r0(){if(uE)return Zf;uE=1;var e=cn(),t=ys(),r=gs(),n=e.rotr64_hi,i=e.rotr64_lo,a=e.shr64_hi,o=e.shr64_lo,s=e.sum64,l=e.sum64_hi,c=e.sum64_lo,d=e.sum64_4_hi,f=e.sum64_4_lo,m=e.sum64_5_hi,p=e.sum64_5_lo,b=t.BlockHash,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function A(){if(!(this instanceof A))return new A;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=new Array(160)}e.inherits(A,b),Zf=A,A.blockSize=1024,A.outSize=512,A.hmacStrength=192,A.padLength=128,A.prototype._prepareBlock=function(C,J){for(var te=this.W,X=0;X<32;X++)te[X]=C[J+X];for(;X<te.length;X+=2){var W=oe(te[X-4],te[X-3]),H=R(te[X-4],te[X-3]),ae=te[X-14],K=te[X-13],L=I(te[X-30],te[X-29]),V=Z(te[X-30],te[X-29]),Y=te[X-32],re=te[X-31];te[X]=d(W,H,ae,K,L,V,Y,re),te[X+1]=f(W,H,ae,K,L,V,Y,re)}},A.prototype._update=function(C,J){this._prepareBlock(C,J);var te=this.W,X=this.h[0],W=this.h[1],H=this.h[2],ae=this.h[3],K=this.h[4],L=this.h[5],V=this.h[6],Y=this.h[7],re=this.h[8],k=this.h[9],h=this.h[10],O=this.h[11],j=this.h[12],U=this.h[13],F=this.h[14],q=this.h[15];r(this.k.length===te.length);for(var ne=0;ne<te.length;ne+=2){var S=F,ie=q,N=B(re,k),g=P(re,k),_=y(re,k,h,O,j),M=T(re,k,h,O,j,U),G=this.k[ne],Q=this.k[ne+1],$=te[ne],ue=te[ne+1],me=m(S,ie,N,g,_,M,G,Q,$,ue),de=p(S,ie,N,g,_,M,G,Q,$,ue);S=x(X,W),ie=D(X,W),N=E(X,W,H,ae,K),g=w(X,W,H,ae,K,L);var ye=l(S,ie,N,g),we=c(S,ie,N,g);F=j,q=U,j=h,U=O,h=re,O=k,re=l(V,Y,me,de),k=c(Y,Y,me,de),V=K,Y=L,K=H,L=ae,H=X,ae=W,X=l(me,de,ye,we),W=c(me,de,ye,we)}s(this.h,0,X,W),s(this.h,2,H,ae),s(this.h,4,K,L),s(this.h,6,V,Y),s(this.h,8,re,k),s(this.h,10,h,O),s(this.h,12,j,U),s(this.h,14,F,q)},A.prototype._digest=function(C){return C==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")};function y(z,C,J,te,X){var W=z&J^~z&X;return W<0&&(W+=4294967296),W}function T(z,C,J,te,X,W){var H=C&te^~C&W;return H<0&&(H+=4294967296),H}function E(z,C,J,te,X){var W=z&J^z&X^J&X;return W<0&&(W+=4294967296),W}function w(z,C,J,te,X,W){var H=C&te^C&W^te&W;return H<0&&(H+=4294967296),H}function x(z,C){var J=n(z,C,28),te=n(C,z,2),X=n(C,z,7),W=J^te^X;return W<0&&(W+=4294967296),W}function D(z,C){var J=i(z,C,28),te=i(C,z,2),X=i(C,z,7),W=J^te^X;return W<0&&(W+=4294967296),W}function B(z,C){var J=n(z,C,14),te=n(z,C,18),X=n(C,z,9),W=J^te^X;return W<0&&(W+=4294967296),W}function P(z,C){var J=i(z,C,14),te=i(z,C,18),X=i(C,z,9),W=J^te^X;return W<0&&(W+=4294967296),W}function I(z,C){var J=n(z,C,1),te=n(z,C,8),X=a(z,C,7),W=J^te^X;return W<0&&(W+=4294967296),W}function Z(z,C){var J=i(z,C,1),te=i(z,C,8),X=o(z,C,7),W=J^te^X;return W<0&&(W+=4294967296),W}function oe(z,C){var J=n(z,C,19),te=n(C,z,29),X=a(z,C,6),W=J^te^X;return W<0&&(W+=4294967296),W}function R(z,C){var J=i(z,C,19),te=i(C,z,29),X=o(z,C,6),W=J^te^X;return W<0&&(W+=4294967296),W}return Zf}var Jf,dE;function Xk(){if(dE)return Jf;dE=1;var e=cn(),t=r0();function r(){if(!(this instanceof r))return new r;t.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return e.inherits(r,t),Jf=r,r.blockSize=1024,r.outSize=384,r.hmacStrength=192,r.padLength=128,r.prototype._digest=function(i){return i==="hex"?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")},Jf}var fE;function $k(){return fE||(fE=1,aa.sha1=Wk(),aa.sha224=Kk(),aa.sha256=t0(),aa.sha384=Xk(),aa.sha512=r0()),aa}var Qf={},mE;function Vk(){if(mE)return Qf;mE=1;var e=cn(),t=ys(),r=e.rotl32,n=e.sum32,i=e.sum32_3,a=e.sum32_4,o=t.BlockHash;function s(){if(!(this instanceof s))return new s;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}e.inherits(s,o),Qf.ripemd160=s,s.blockSize=512,s.outSize=160,s.hmacStrength=192,s.padLength=64,s.prototype._update=function(A,y){for(var T=this.h[0],E=this.h[1],w=this.h[2],x=this.h[3],D=this.h[4],B=T,P=E,I=w,Z=x,oe=D,R=0;R<80;R++){var z=n(r(a(T,l(R,E,w,x),A[f[R]+y],c(R)),p[R]),D);T=D,D=x,x=r(w,10),w=E,E=z,z=n(r(a(B,l(79-R,P,I,Z),A[m[R]+y],d(R)),b[R]),oe),B=oe,oe=Z,Z=r(I,10),I=P,P=z}z=i(this.h[1],w,Z),this.h[1]=i(this.h[2],x,oe),this.h[2]=i(this.h[3],D,B),this.h[3]=i(this.h[4],T,P),this.h[4]=i(this.h[0],E,I),this.h[0]=z},s.prototype._digest=function(A){return A==="hex"?e.toHex32(this.h,"little"):e.split32(this.h,"little")};function l(v,A,y,T){return v<=15?A^y^T:v<=31?A&y|~A&T:v<=47?(A|~y)^T:v<=63?A&T|y&~T:A^(y|~T)}function c(v){return v<=15?0:v<=31?1518500249:v<=47?1859775393:v<=63?2400959708:2840853838}function d(v){return v<=15?1352829926:v<=31?1548603684:v<=47?1836072691:v<=63?2053994217:0}var f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],p=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],b=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return Qf}var em,hE;function Yk(){if(hE)return em;hE=1;var e=cn(),t=gs();function r(n,i,a){if(!(this instanceof r))return new r(n,i,a);this.Hash=n,this.blockSize=n.blockSize/8,this.outSize=n.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(i,a))}return em=r,r.prototype._init=function(i){i.length>this.blockSize&&(i=new this.Hash().update(i).digest()),t(i.length<=this.blockSize);for(var a=i.length;a<this.blockSize;a++)i.push(0);for(a=0;a<i.length;a++)i[a]^=54;for(this.inner=new this.Hash().update(i),a=0;a<i.length;a++)i[a]^=106;this.outer=new this.Hash().update(i)},r.prototype.update=function(i,a){return this.inner.update(i,a),this},r.prototype.digest=function(i){return this.outer.update(this.inner.digest()),this.outer.digest(i)},em}var pE;function Zk(){return pE||(pE=1,(function(e){var t=e;t.utils=cn(),t.common=ys(),t.sha=$k(),t.ripemd=Vk(),t.hmac=Yk(),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})(Wf)),Wf}var Jk=Zk(),Qk=Gg(Jk),eN="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",tN=(e,t=21)=>(r=t)=>{let n="",i=r|0;for(;i--;)n+=e[Math.random()*e.length|0];return n},rN=(e=21)=>{let t="",r=e|0;for(;r--;)t+=eN[Math.random()*64|0];return t};var at=e=>Math.floor(e*72*20),Jl=(e=0)=>{let t=e;return()=>++t},nN=()=>Jl(),iN=()=>Jl(1),aN=()=>Jl(),oN=()=>Jl(),sN=()=>rN().toLowerCase(),gE=e=>Qk.sha1().update(e instanceof ArrayBuffer?new Uint8Array(e):e).digest("hex"),Qo=e=>tN("1234567890abcdef",e)(),lN=()=>`${Qo(8)}-${Qo(4)}-${Qo(4)}-${Qo(4)}-${Qo(12)}`,cN={CHARACTER:"character",COLUMN:"column",INSIDE_MARGIN:"insideMargin",LEFT_MARGIN:"leftMargin",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",RIGHT_MARGIN:"rightMargin"},uN={BOTTOM_MARGIN:"bottomMargin",INSIDE_MARGIN:"insideMargin",LINE:"line",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",PARAGRAPH:"paragraph",TOP_MARGIN:"topMargin"},dN=()=>new Xe({name:"wp:simplePos",attributes:{x:{key:"x",value:0},y:{key:"y",value:0}}}),n0=e=>new Xe({name:"wp:align",children:[e]}),i0=e=>new Xe({name:"wp:posOffset",children:[e.toString()]}),fN=({relative:e,align:t,offset:r})=>new Xe({name:"wp:positionH",attributes:{relativeFrom:{key:"relativeFrom",value:e??cN.PAGE}},children:[(()=>{if(t)return n0(t);if(r!==void 0)return i0(r);throw new Error("There is no configuration provided for floating position (Align or offset)")})()]}),mN=({relative:e,align:t,offset:r})=>new Xe({name:"wp:positionV",attributes:{relativeFrom:{key:"relativeFrom",value:e??uN.PAGE}},children:[(()=>{if(t)return n0(t);if(r!==void 0)return i0(r);throw new Error("There is no configuration provided for floating position (Align or offset)")})()]}),Rm=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{uri:"uri"})}},hN=e=>new Xe({name:"asvg:svgBlip",attributes:{asvg:{key:"xmlns:asvg",value:"http://schemas.microsoft.com/office/drawing/2016/SVG/main"},embed:{key:"r:embed",value:`rId{${e.fileName}}`}}}),pN=e=>new Xe({name:"a:ext",attributes:{uri:{key:"uri",value:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}"}},children:[hN(e)]}),gN=e=>new Xe({name:"a:extLst",children:[pN(e)]}),yN=e=>new Xe({name:"a:blip",attributes:{embed:{key:"r:embed",value:`rId{${e.type==="svg"?e.fallback.fileName:e.fileName}}`},cstate:{key:"cstate",value:"none"}},children:e.type==="svg"?[gN(e)]:[]}),Lm=class extends se{constructor(){super("a:srcRect")}},Dm=class extends se{constructor(){super("a:fillRect")}},Bm=class extends se{constructor(){super("a:stretch"),this.root.push(new Dm)}},Fm=class extends se{constructor(t){super("pic:blipFill"),this.root.push(yN(t)),this.root.push(new Lm),this.root.push(new Bm)}},qm=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}},Um=class extends se{constructor(){super("a:picLocks"),this.root.push(new qm({noChangeAspect:1,noChangeArrowheads:1}))}},Hm=class extends se{constructor(){super("pic:cNvPicPr"),this.root.push(new Um)}},a0=(e,t)=>new Xe({name:"a:hlinkClick",attributes:Un(Re({},t?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{id:{key:"r:id",value:`rId${e}`}})}),zm=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}},Gm=class extends se{constructor(){super("pic:cNvPr"),this.root.push(new zm({id:0,name:"",descr:""}))}prepForXml(t){for(let r=t.stack.length-1;r>=0;r--){let n=t.stack[r];if(n instanceof cs){this.root.push(a0(n.linkId,!1));break}}return super.prepForXml(t)}},Wm=class extends se{constructor(){super("pic:nvPicPr"),this.root.push(new Gm),this.root.push(new Hm)}},Km=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{xmlns:"xmlns:pic"})}},Xm=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{cx:"cx",cy:"cy"})}},$m=class extends se{constructor(t,r){super("a:ext"),ce(this,"attributes"),this.attributes=new Xm({cx:t,cy:r}),this.root.push(this.attributes)}},Vm=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{x:"x",y:"y"})}},Ym=class extends se{constructor(){super("a:off"),this.root.push(new Vm({x:0,y:0}))}},Zm=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}},Jm=class extends se{constructor(t){var r,n;super("a:xfrm"),ce(this,"extents"),this.root.push(new Zm({flipVertical:(r=t.flip)==null?void 0:r.vertical,flipHorizontal:(n=t.flip)==null?void 0:n.horizontal,rotation:t.rotation})),this.extents=new $m(t.emus.x,t.emus.y),this.root.push(new Ym),this.root.push(this.extents)}},o0=()=>new Xe({name:"a:noFill"}),_N=e=>new Xe({name:"a:srgbClr",attributes:{value:{key:"val",value:e.value}}}),vN=e=>new Xe({name:"a:schemeClr",attributes:{value:{key:"val",value:e.value}}}),yE=e=>new Xe({name:"a:solidFill",children:[e.type==="rgb"?_N(e):vN(e)]}),bN=e=>new Xe({name:"a:ln",attributes:{width:{key:"w",value:e.width},cap:{key:"cap",value:e.cap},compoundLine:{key:"cmpd",value:e.compoundLine},align:{key:"algn",value:e.align}},children:[e.type==="noFill"?o0():e.solidFillType==="rgb"?yE({type:"rgb",value:e.value}):yE({type:"scheme",value:e.value})]}),Qm=class extends se{constructor(){super("a:avLst")}},eh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{prst:"prst"})}},th=class extends se{constructor(){super("a:prstGeom"),this.root.push(new eh({prst:"rect"})),this.root.push(new Qm)}},rh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{bwMode:"bwMode"})}},nh=class extends se{constructor({outline:t,transform:r}){super("pic:spPr"),ce(this,"form"),this.root.push(new rh({bwMode:"auto"})),this.form=new Jm(r),this.root.push(this.form),this.root.push(new th),t&&(this.root.push(o0()),this.root.push(bN(t)))}},ih=class extends se{constructor({mediaData:t,transform:r,outline:n}){super("pic:pic"),this.root.push(new Km({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new Wm),this.root.push(new Fm(t)),this.root.push(new nh({transform:r,outline:n}))}},ah=class extends se{constructor({mediaData:t,transform:r,outline:n}){super("a:graphicData"),ce(this,"pic"),this.root.push(new Rm({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new ih({mediaData:t,transform:r,outline:n}),this.root.push(this.pic)}},oh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{a:"xmlns:a"})}},kl=class extends se{constructor({mediaData:t,transform:r,outline:n}){super("a:graphic"),ce(this,"data"),this.root.push(new oh({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new ah({mediaData:t,transform:r,outline:n}),this.root.push(this.data)}},wl={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3},wN={BOTH_SIDES:"bothSides",LEFT:"left",RIGHT:"right",LARGEST:"largest"},Nl=class extends se{constructor(){super("wp:wrapNone")}},sh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"})}},lh=class extends se{constructor(t,r={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare"),this.root.push(new sh({wrapText:t.side||wN.BOTH_SIDES,distT:r.top,distB:r.bottom,distL:r.left,distR:r.right}))}},ch=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{distT:"distT",distB:"distB"})}},uh=class extends se{constructor(t={top:0,bottom:0}){super("wp:wrapTight"),this.root.push(new ch({distT:t.top,distB:t.bottom}))}},dh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{distT:"distT",distB:"distB"})}},fh=class extends se{constructor(t={top:0,bottom:0}){super("wp:wrapTopAndBottom"),this.root.push(new dh({distT:t.top,distB:t.bottom}))}},Il=class extends se{constructor({name:t,description:r,title:n}={name:"",description:"",title:""}){super("wp:docPr"),ce(this,"docPropertiesUniqueNumericId",aN());let i={id:{key:"id",value:this.docPropertiesUniqueNumericId()},name:{key:"name",value:t}};r!=null&&(i.description={key:"descr",value:r}),n!=null&&(i.title={key:"title",value:n}),this.root.push(new Ur(i))}prepForXml(t){for(let r=t.stack.length-1;r>=0;r--){let n=t.stack[r];if(n instanceof cs){this.root.push(a0(n.linkId,!0));break}}return super.prepForXml(t)}},s0=({top:e,right:t,bottom:r,left:n})=>new Xe({name:"wp:effectExtent",attributes:{top:{key:"t",value:e},right:{key:"r",value:t},bottom:{key:"b",value:r},left:{key:"l",value:n}}}),l0=({x:e,y:t})=>new Xe({name:"wp:extent",attributes:{x:{key:"cx",value:e},y:{key:"cy",value:t}}}),mh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}},hh=class extends se{constructor(){super("a:graphicFrameLocks"),this.root.push(new mh({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}},c0=()=>new Xe({name:"wp:cNvGraphicFramePr",children:[new hh]}),ph=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}},gh=class extends se{constructor({mediaData:t,transform:r,drawingOptions:n}){super("wp:anchor");let i=Re({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},n.floating);if(this.root.push(new ph({distT:i.margins&&i.margins.top||0,distB:i.margins&&i.margins.bottom||0,distL:i.margins&&i.margins.left||0,distR:i.margins&&i.margins.right||0,simplePos:"0",allowOverlap:i.allowOverlap===!0?"1":"0",behindDoc:i.behindDocument===!0?"1":"0",locked:i.lockAnchor===!0?"1":"0",layoutInCell:i.layoutInCell===!0?"1":"0",relativeHeight:i.zIndex?i.zIndex:r.emus.y})),this.root.push(dN()),this.root.push(fN(i.horizontalPosition)),this.root.push(mN(i.verticalPosition)),this.root.push(l0({x:r.emus.x,y:r.emus.y})),this.root.push(s0({top:0,right:0,bottom:0,left:0})),n.floating!==void 0&&n.floating.wrap!==void 0)switch(n.floating.wrap.type){case wl.SQUARE:this.root.push(new lh(n.floating.wrap,n.floating.margins));break;case wl.TIGHT:this.root.push(new uh(n.floating.margins));break;case wl.TOP_AND_BOTTOM:this.root.push(new fh(n.floating.margins));break;case wl.NONE:default:this.root.push(new Nl)}else this.root.push(new Nl);this.root.push(new Il(n.docProperties)),this.root.push(c0()),this.root.push(new kl({mediaData:t,transform:r,outline:n.outline}))}},EN=({mediaData:e,transform:t,docProperties:r,outline:n})=>{var i,a,o,s;return new Xe({name:"wp:inline",attributes:{distanceTop:{key:"distT",value:0},distanceBottom:{key:"distB",value:0},distanceLeft:{key:"distL",value:0},distanceRight:{key:"distR",value:0}},children:[l0({x:t.emus.x,y:t.emus.y}),s0(n?{top:((i=n.width)!=null?i:9525)*2,right:((a=n.width)!=null?a:9525)*2,bottom:((o=n.width)!=null?o:9525)*2,left:((s=n.width)!=null?s:9525)*2}:{top:0,right:0,bottom:0,left:0}),new Il(r),c0(),new kl({mediaData:e,transform:t,outline:n})]})},yh=class extends se{constructor(t,r={}){super("w:drawing"),r.floating?this.root.push(new gh({mediaData:t,transform:t.transformation,drawingOptions:r})):this.root.push(EN({mediaData:t,transform:t.transformation,docProperties:r.docProperties,outline:r.outline}))}},AN=e=>{if(typeof atob=="function"){let t=";base64,",r=e.indexOf(t),n=r===-1?0:r+t.length;return new Uint8Array(atob(e.substring(n)).split("").map(i=>i.charCodeAt(0)))}else{let t=vd("buffer");return new t.Buffer(e,"base64")}},ON=e=>typeof e=="string"?AN(e):e,tm=(e,t)=>({data:ON(e.data),fileName:t,transformation:{pixels:{x:Math.round(e.transformation.width),y:Math.round(e.transformation.height)},emus:{x:Math.round(e.transformation.width*9525),y:Math.round(e.transformation.height*9525)},flip:e.transformation.flip,rotation:e.transformation.rotation?e.transformation.rotation*6e4:void 0}}),Wn=class extends Gn{constructor(t){super({}),ce(this,"imageData");let n=`${gE(t.data)}.${t.type}`;this.imageData=t.type==="svg"?Un(Re({type:t.type},tm(t,n)),{fallback:Re({type:t.fallback.type},tm(Un(Re({},t.fallback),{transformation:t.transformation}),`${gE(t.fallback.data)}.${t.fallback.type}`))}):Re({type:t.type},tm(t,n));let i=new yh(this.imageData,{floating:t.floating,docProperties:t.altText,outline:t.outline});this.root.push(i)}prepForXml(t){return t.file.Media.addImage(this.imageData.fileName,this.imageData),this.imageData.type==="svg"&&t.file.Media.addImage(this.imageData.fallback.fileName,this.imageData.fallback),super.prepForXml(t)}};var _h=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{xmlns:"xmlns"})}},vh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}},TN={EXTERNAL:"External"},bh=class extends se{constructor(t,r,n,i){super("Relationship"),this.root.push(new vh({id:t,type:r,target:n,targetMode:i}))}},Kn=class extends se{constructor(){super("Relationships"),this.root.push(new _h({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(t,r,n,i){let a=new bh(`rId${t}`,r,n,i);return this.root.push(a),a}get RelationshipCount(){return this.root.length-1}},wh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}};var Eh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}};var Ah=class extends se{constructor({id:t,initials:r,author:n,date:i=new Date,children:a}){super("w:comment"),this.root.push(new wh({id:t,initials:r,author:n,date:i.toISOString()}));for(let o of a)this.root.push(o)}},Oh=class extends se{constructor({children:t}){super("w:comments"),ce(this,"relationships"),this.root.push(new Eh({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(let r of t)this.root.push(new Ah(r));this.relationships=new Kn}get Relationships(){return this.relationships}};var Th=class extends se{constructor(){super("w:pageBreakBefore")}},Sh={AT_LEAST:"atLeast",EXACTLY:"exactly",EXACT:"exact",AUTO:"auto"},xh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule",beforeAutoSpacing:"w:beforeAutospacing",afterAutoSpacing:"w:afterAutospacing"})}},Mh=class extends se{constructor(t){super("w:spacing"),this.root.push(new xh(t))}},hi={HEADING_1:"Heading1",HEADING_2:"Heading2",HEADING_3:"Heading3",HEADING_4:"Heading4",HEADING_5:"Heading5",HEADING_6:"Heading6",TITLE:"Title"},El=class extends se{constructor(t){super("w:pStyle"),this.root.push(new dt({val:t}))}},Ch=class extends se{constructor(t){super("w:tabs");for(let r of t)this.root.push(new Nh(r))}},_E={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"};var kh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}},Nh=class extends se{constructor({type:t,position:r,leader:n}){super("w:tab"),this.root.push(new kh({val:t,pos:r,leader:n}))}},is=class extends se{constructor(t,r){super("w:numPr"),this.root.push(new Ih(r)),this.root.push(new Ph(t))}},Ih=class extends se{constructor(t){if(super("w:ilvl"),t>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new dt({val:t}))}},Ph=class extends se{constructor(t){super("w:numId"),this.root.push(new dt({val:typeof t=="string"?`{${t}}`:t}))}},ls=class extends se{constructor(){super(...arguments),ce(this,"fileChild",Symbol())}},jh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}};var cs=class extends se{constructor(t,r,n){super("w:hyperlink"),ce(this,"linkId"),this.linkId=r;let i={history:1,anchor:n||void 0,id:n?void 0:`rId${this.linkId}`},a=new jh(i);this.root.push(a),t.forEach(o=>{this.root.push(o)})}};var qa=class extends se{constructor(t){super("w:externalHyperlink"),this.options=t}},Rh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{id:"w:id",name:"w:name"})}},Lh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{id:"w:id"})}},Dh=class{constructor(t){ce(this,"bookmarkUniqueNumericId",oN()),ce(this,"start"),ce(this,"children"),ce(this,"end");let r=this.bookmarkUniqueNumericId();this.start=new Bh(t.id,r),this.children=t.children,this.end=new Fh(r)}},Bh=class extends se{constructor(t,r){super("w:bookmarkStart");let n=new Rh({name:t,id:r});this.root.push(n)}},Fh=class extends se{constructor(t){super("w:bookmarkEnd");let r=new Lh({id:t});this.root.push(r)}},qh=class extends se{constructor(t){super("w:outlineLvl"),this.level=t,this.root.push(new dt({val:t}))}};var SN={TOP:"top",CENTER:"center",BOTTOM:"bottom"},xN=Un(Re({},SN),{BOTH:"both"}),u0=xN,Uh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{verticalAlign:"w:val"})}},Pl=class extends se{constructor(t){super("w:vAlign"),this.root.push(new Uh({verticalAlign:t}))}},Hh=class extends se{constructor({space:t,count:r,separate:n,equalWidth:i,children:a}){super("w:cols"),this.root.push(new Ur({space:{key:"w:space",value:t===void 0?void 0:Nt(t)},count:{key:"w:num",value:r===void 0?void 0:qt(r)},separate:{key:"w:sep",value:n},equalWidth:{key:"w:equalWidth",value:i}})),!i&&a&&a.forEach(o=>this.addChildElement(o))}};var MN=({type:e,linePitch:t,charSpace:r})=>new Xe({name:"w:docGrid",attributes:{type:{key:"w:type",value:e},linePitch:{key:"w:linePitch",value:qt(t)},charSpace:{key:"w:charSpace",value:r?qt(r):void 0}}}),Ra={DEFAULT:"default",FIRST:"first",EVEN:"even"},zh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{type:"w:type",id:"r:id"})}},vE={HEADER:"w:headerReference",FOOTER:"w:footerReference"},as=class extends se{constructor(t,r){super(t),this.root.push(new zh({type:r.type||Ra.DEFAULT,id:`rId${r.id}`}))}};var CN=({countBy:e,start:t,restart:r,distance:n})=>new Xe({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:e===void 0?void 0:qt(e)},start:{key:"w:start",value:t===void 0?void 0:qt(t)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:n===void 0?void 0:Nt(n)}}});var jl=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}},Gh=class extends qr{constructor(t){if(super("w:pgBorders"),!t)return this;t.pageBorders?this.root.push(new jl({display:t.pageBorders.display,offsetFrom:t.pageBorders.offsetFrom,zOrder:t.pageBorders.zOrder})):this.root.push(new jl({})),t.pageBorderTop&&this.root.push(new Ve("w:top",t.pageBorderTop)),t.pageBorderLeft&&this.root.push(new Ve("w:left",t.pageBorderLeft)),t.pageBorderBottom&&this.root.push(new Ve("w:bottom",t.pageBorderBottom)),t.pageBorderRight&&this.root.push(new Ve("w:right",t.pageBorderRight))}},Wh=class extends se{constructor(t,r,n,i,a,o,s){super("w:pgMar"),this.root.push(new Ur({top:{key:"w:top",value:Fn(t)},right:{key:"w:right",value:Nt(r)},bottom:{key:"w:bottom",value:Fn(n)},left:{key:"w:left",value:Nt(i)},header:{key:"w:header",value:Nt(a)},footer:{key:"w:footer",value:Nt(o)},gutter:{key:"w:gutter",value:Nt(s)}}))}};var Kh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}},Xh=class extends se{constructor({start:t,formatType:r,separator:n}){super("w:pgNumType"),this.root.push(new Kh({start:t===void 0?void 0:qt(t),formatType:r,separator:n}))}},$h={PORTRAIT:"portrait",LANDSCAPE:"landscape"},kN=({width:e,height:t,orientation:r,code:n})=>{let i=Nt(e),a=Nt(t);return new Xe({name:"w:pgSz",attributes:{width:{key:"w:w",value:r===$h.LANDSCAPE?a:i},height:{key:"w:h",value:r===$h.LANDSCAPE?i:a},orientation:{key:"w:orient",value:r},code:{key:"w:code",value:n}}})};var Vh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{val:"w:val"})}},Yh=class extends se{constructor(t){super("w:textDirection"),this.root.push(new Vh({val:t}))}};var Zh=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{val:"w:val"})}},Jh=class extends se{constructor(t){super("w:type"),this.root.push(new Zh({val:t}))}},oa={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},rm={WIDTH:11906,HEIGHT:16838,ORIENTATION:$h.PORTRAIT},Qh=class extends se{constructor({page:{size:{width:t=rm.WIDTH,height:r=rm.HEIGHT,orientation:n=rm.ORIENTATION}={},margin:{top:i=oa.TOP,right:a=oa.RIGHT,bottom:o=oa.BOTTOM,left:s=oa.LEFT,header:l=oa.HEADER,footer:c=oa.FOOTER,gutter:d=oa.GUTTER}={},pageNumbers:f={},borders:m,textDirection:p}={},grid:{linePitch:b=360,charSpace:v,type:A}={},headerWrapperGroup:y={},footerWrapperGroup:T={},lineNumbers:E,titlePage:w,verticalAlign:x,column:D,type:B}={}){super("w:sectPr"),this.addHeaderFooterGroup(vE.HEADER,y),this.addHeaderFooterGroup(vE.FOOTER,T),B&&this.root.push(new Jh(B)),this.root.push(kN({width:t,height:r,orientation:n})),this.root.push(new Wh(i,a,o,s,l,c,d)),m&&this.root.push(new Gh(m)),E&&this.root.push(CN(E)),this.root.push(new Xh(f)),D&&this.root.push(new Hh(D)),x&&this.root.push(new Pl(x)),w!==void 0&&this.root.push(new he("w:titlePg",w)),p&&this.root.push(new Yh(p)),this.root.push(MN({linePitch:b,charSpace:v,type:A}))}addHeaderFooterGroup(t,r){r.default&&this.root.push(new as(t,{type:Ra.DEFAULT,id:r.default.View.ReferenceId})),r.first&&this.root.push(new as(t,{type:Ra.FIRST,id:r.first.View.ReferenceId})),r.even&&this.root.push(new as(t,{type:Ra.EVEN,id:r.even.View.ReferenceId}))}},ep=class extends se{constructor(){super("w:body"),ce(this,"sections",[])}addSection(t){let r=this.sections.pop();this.root.push(this.createSectionParagraph(r)),this.sections.push(new Qh(t))}prepForXml(t){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(t)}push(t){this.root.push(t)}createSectionParagraph(t){let r=new Le({}),n=new di({});return n.push(t),r.addChildElement(n),r}};var bE={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ua=class extends ve{constructor(t,r){super(Re({Ignorable:r},Object.fromEntries(t.map(n=>[n,bE[n]])))),ce(this,"xmlKeys",Re({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(bE).map(n=>[n,`xmlns:${n}`]))))}},tp=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}},rp=class extends se{constructor(t){super("w:background"),this.root.push(new tp({color:t.color===void 0?void 0:Ba(t.color),themeColor:t.themeColor,themeShade:t.themeShade===void 0?void 0:rE(t.themeShade),themeTint:t.themeTint===void 0?void 0:rE(t.themeTint)}))}},np=class extends se{constructor(t){super("w:document"),ce(this,"body"),this.root.push(new Ua(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps","cx","cx1","cx2","cx3","cx4","cx5","cx6","cx7","cx8","aink","am3d","w16cex","w16cid","w16","w16sdtdh","w16se"],"w14 w15 wp14")),this.body=new ep,t.background&&this.root.push(new rp(t.background)),this.root.push(this.body)}add(t){return this.body.push(t),this}get Body(){return this.body}},Rl=class{constructor(t){ce(this,"document"),ce(this,"relationships"),this.document=new np(t),this.relationships=new Kn}get View(){return this.document}get Relationships(){return this.relationships}},ip=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{val:"w:val"})}},ap=class extends se{constructor(){super("w:wordWrap"),this.root.push(new ip({val:0}))}};var NN=e=>{var t,r;return new Xe({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:e.anchorLock},dropCap:{key:"w:dropCap",value:e.dropCap},width:{key:"w:w",value:e.width},height:{key:"w:h",value:e.height},x:{key:"w:x",value:e.position?e.position.x:void 0},y:{key:"w:y",value:e.position?e.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:e.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:e.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(t=e.space)==null?void 0:t.horizontal},spaceVertical:{key:"w:vSpace",value:(r=e.space)==null?void 0:r.vertical},rule:{key:"w:hRule",value:e.rule},alignmentX:{key:"w:xAlign",value:e.alignment?e.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:e.alignment?e.alignment.y:void 0},lines:{key:"w:lines",value:e.lines},wrap:{key:"w:wrap",value:e.wrap}}})},di=class extends qr{constructor(t){var r,n;if(super("w:pPr"),ce(this,"numberingReferences",[]),!t)return this;t.heading&&this.push(new El(t.heading)),t.bullet&&this.push(new El("ListParagraph")),t.numbering&&!t.style&&!t.heading&&(t.numbering.custom||this.push(new El("ListParagraph"))),t.style&&this.push(new El(t.style)),t.keepNext!==void 0&&this.push(new he("w:keepNext",t.keepNext)),t.keepLines!==void 0&&this.push(new he("w:keepLines",t.keepLines)),t.pageBreakBefore&&this.push(new Th),t.frame&&this.push(NN(t.frame)),t.widowControl!==void 0&&this.push(new he("w:widowControl",t.widowControl)),t.bullet&&this.push(new is(1,t.bullet.level)),t.numbering?(this.numberingReferences.push({reference:t.numbering.reference,instance:(r=t.numbering.instance)!=null?r:0}),this.push(new is(`${t.numbering.reference}-${(n=t.numbering.instance)!=null?n:0}`,t.numbering.level))):t.numbering===!1&&this.push(new is(0,0)),t.border&&this.push(new gm(t.border)),t.thematicBreak&&this.push(new ym),t.shading&&this.push(new Fa(t.shading)),t.wordWrap&&this.push(new ap),t.overflowPunctuation&&this.push(new he("w:overflowPunct",t.overflowPunctuation));let i=[...t.rightTabStop!==void 0?[{type:_E.RIGHT,position:t.rightTabStop}]:[],...t.tabStops?t.tabStops:[],...t.leftTabStop!==void 0?[{type:_E.LEFT,position:t.leftTabStop}]:[]];i.length>0&&this.push(new Ch(i)),t.bidirectional!==void 0&&this.push(new he("w:bidi",t.bidirectional)),t.spacing&&this.push(new Mh(t.spacing)),t.indent&&this.push(new _m(t.indent)),t.contextualSpacing!==void 0&&this.push(new he("w:contextualSpacing",t.contextualSpacing)),t.alignment&&this.push(new xl(t.alignment)),t.outlineLevel!==void 0&&this.push(new qh(t.outlineLevel)),t.suppressLineNumbers!==void 0&&this.push(new he("w:suppressLineNumbers",t.suppressLineNumbers)),t.autoSpaceEastAsianText!==void 0&&this.push(new he("w:autoSpaceDN",t.autoSpaceEastAsianText)),t.run&&this.push(new zn(t.run))}push(t){this.root.push(t)}prepForXml(t){if(t.viewWrapper instanceof Rl)for(let r of this.numberingReferences)t.file.Numbering.createConcreteNumberingInstance(r.reference,r.instance);return super.prepForXml(t)}},Le=class extends ls{constructor(t){if(super("w:p"),ce(this,"properties"),typeof t=="string")return this.properties=new di({}),this.root.push(this.properties),this.root.push(new Ue(t)),this;if(this.properties=new di(t),this.root.push(this.properties),t.text&&this.root.push(new Ue(t.text)),t.children)for(let r of t.children){if(r instanceof Dh){this.root.push(r.start);for(let n of r.children)this.root.push(n);this.root.push(r.end);continue}this.root.push(r)}}prepForXml(t){for(let r of this.root)if(r instanceof qa){let n=this.root.indexOf(r),i=new cs(r.options.children,sN());t.viewWrapper.Relationships.createRelationship(i.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.options.link,TN.EXTERNAL),this.root[n]=i}return super.prepForXml(t)}addRunToFront(t){return this.root.splice(1,0,t),this}};var op=class extends se{constructor(t){super("w:tblGrid");for(let r of t)this.root.push(new sp(r))}},sp=class extends se{constructor(t){super("w:gridCol"),t!==void 0&&this.root.push(new Ur({width:{key:"w:w",value:Nt(t)}}))}},d0={TABLE:"w:tblCellMar",TABLE_CELL:"w:tcMar"},Ll=class extends qr{constructor(t,{marginUnitType:r=Xn.DXA,top:n,left:i,bottom:a,right:o}){super(t),n!==void 0&&this.root.push(new qn("w:top",{type:r,size:n})),i!==void 0&&this.root.push(new qn("w:left",{type:r,size:i})),a!==void 0&&this.root.push(new qn("w:bottom",{type:r,size:a})),o!==void 0&&this.root.push(new qn("w:right",{type:r,size:o}))}},Xn={AUTO:"auto",DXA:"dxa",NIL:"nil",PERCENTAGE:"pct"},qn=class extends se{constructor(t,{type:r=Xn.AUTO,size:n}){super(t);let i=n;r===Xn.PERCENTAGE&&typeof n=="number"&&(i=`${n}%`),this.root.push(new Ur({type:{key:"w:type",value:r},size:{key:"w:w",value:ZE(i)}}))}},lp=class extends qr{constructor(t){super("w:tcBorders"),t.top&&this.root.push(new Ve("w:top",t.top)),t.start&&this.root.push(new Ve("w:start",t.start)),t.left&&this.root.push(new Ve("w:left",t.left)),t.bottom&&this.root.push(new Ve("w:bottom",t.bottom)),t.end&&this.root.push(new Ve("w:end",t.end)),t.right&&this.root.push(new Ve("w:right",t.right))}},cp=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{val:"w:val"})}},up=class extends se{constructor(t){super("w:gridSpan"),this.root.push(new cp({val:qt(t)}))}},f0={CONTINUE:"continue",RESTART:"restart"},dp=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{val:"w:val"})}},Dl=class extends se{constructor(t){super("w:vMerge"),this.root.push(new dp({val:t}))}};var fp=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{val:"w:val"})}},mp=class extends se{constructor(t){super("w:textDirection"),this.root.push(new fp({val:t}))}},hp=class extends qr{constructor(t){super("w:tcPr"),t.width&&this.root.push(new qn("w:tcW",t.width)),t.columnSpan&&this.root.push(new up(t.columnSpan)),t.verticalMerge?this.root.push(new Dl(t.verticalMerge)):t.rowSpan&&t.rowSpan>1&&this.root.push(new Dl(f0.RESTART)),t.borders&&this.root.push(new lp(t.borders)),t.shading&&this.root.push(new Fa(t.shading)),t.margins&&this.root.push(new Ll(d0.TABLE_CELL,t.margins)),t.textDirection&&this.root.push(new mp(t.textDirection)),t.verticalAlign&&this.root.push(new Pl(t.verticalAlign))}},fi=class extends se{constructor(t){super("w:tc"),this.options=t,this.root.push(new hp(t));for(let r of t.children)this.root.push(r)}prepForXml(t){return this.root[this.root.length-1]instanceof Le||this.root.push(new Le({})),super.prepForXml(t)}},Na={style:We.NONE,size:0,color:"auto"},Ia={style:We.SINGLE,size:4,color:"auto"},Bl=class extends se{constructor(t){super("w:tblBorders"),t.top?this.root.push(new Ve("w:top",t.top)):this.root.push(new Ve("w:top",Ia)),t.left?this.root.push(new Ve("w:left",t.left)):this.root.push(new Ve("w:left",Ia)),t.bottom?this.root.push(new Ve("w:bottom",t.bottom)):this.root.push(new Ve("w:bottom",Ia)),t.right?this.root.push(new Ve("w:right",t.right)):this.root.push(new Ve("w:right",Ia)),t.insideHorizontal?this.root.push(new Ve("w:insideH",t.insideHorizontal)):this.root.push(new Ve("w:insideH",Ia)),t.insideVertical?this.root.push(new Ve("w:insideV",t.insideVertical)):this.root.push(new Ve("w:insideV",Ia))}};ce(Bl,"NONE",{top:Na,bottom:Na,left:Na,right:Na,insideHorizontal:Na,insideVertical:Na});var pp=class extends se{constructor({horizontalAnchor:t,verticalAnchor:r,absoluteHorizontalPosition:n,relativeHorizontalPosition:i,absoluteVerticalPosition:a,relativeVerticalPosition:o,bottomFromText:s,topFromText:l,leftFromText:c,rightFromText:d,overlap:f}){super("w:tblpPr"),this.root.push(new Ur({leftFromText:{key:"w:leftFromText",value:c===void 0?void 0:Nt(c)},rightFromText:{key:"w:rightFromText",value:d===void 0?void 0:Nt(d)},topFromText:{key:"w:topFromText",value:l===void 0?void 0:Nt(l)},bottomFromText:{key:"w:bottomFromText",value:s===void 0?void 0:Nt(s)},absoluteHorizontalPosition:{key:"w:tblpX",value:n===void 0?void 0:Fn(n)},absoluteVerticalPosition:{key:"w:tblpY",value:a===void 0?void 0:Fn(a)},horizontalAnchor:{key:"w:horzAnchor",value:t===void 0?void 0:t},relativeHorizontalPosition:{key:"w:tblpXSpec",value:i},relativeVerticalPosition:{key:"w:tblpYSpec",value:o},verticalAnchor:{key:"w:vertAnchor",value:r}})),f&&this.root.push(new mm("w:tblOverlap",f))}},Ql={AUTOFIT:"autofit",FIXED:"fixed"},gp=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{type:"w:type"})}},yp=class extends se{constructor(t){super("w:tblLayout"),this.root.push(new gp({type:t}))}},IN={DXA:"dxa"},Fl=class extends se{constructor({type:t=IN.DXA,value:r}){super("w:tblCellSpacing"),this.root.push(new Ur({type:{key:"w:type",value:t},value:{key:"w:w",value:ZE(r)}}))}},_p=class extends qr{constructor(t){super("w:tblPr"),t.style&&this.root.push(new sn("w:tblStyle",t.style)),t.float&&this.root.push(new pp(t.float)),t.visuallyRightToLeft!==void 0&&this.root.push(new he("w:bidiVisual",t.visuallyRightToLeft)),t.width&&this.root.push(new qn("w:tblW",t.width)),t.alignment&&this.root.push(new xl(t.alignment)),t.indent&&this.root.push(new qn("w:tblInd",t.indent)),t.borders&&this.root.push(new Bl(t.borders)),t.shading&&this.root.push(new Fa(t.shading)),t.layout&&this.root.push(new yp(t.layout)),t.cellMargin&&this.root.push(new Ll(d0.TABLE,t.cellMargin)),t.cellSpacing&&this.root.push(new Fl(t.cellSpacing))}},Ha=class extends ls{constructor({rows:t,width:r,columnWidths:n=Array(Math.max(...t.map(p=>p.CellCount))).fill(100),margins:i,indent:a,float:o,layout:s,style:l,borders:c,alignment:d,visuallyRightToLeft:f,cellSpacing:m}){super("w:tbl"),this.root.push(new _p({borders:c??{},width:r??{size:100},indent:a,float:o,layout:s,style:l,alignment:d,cellMargin:i,visuallyRightToLeft:f,cellSpacing:m})),this.root.push(new op(n));for(let p of t)this.root.push(p);t.forEach((p,b)=>{if(b===t.length-1)return;let v=0;p.cells.forEach(A=>{if(A.options.rowSpan&&A.options.rowSpan>1){let y=new fi({rowSpan:A.options.rowSpan-1,columnSpan:A.options.columnSpan,borders:A.options.borders,children:[],verticalMerge:f0.CONTINUE});t[b+1].addCellToColumnIndex(y,v)}v+=A.options.columnSpan||1})})}};var vp=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{value:"w:val",rule:"w:hRule"})}},bp=class extends se{constructor(t,r){super("w:trHeight"),this.root.push(new vp({value:Nt(t),rule:r}))}},wp=class extends qr{constructor(t){super("w:trPr"),t.cantSplit!==void 0&&this.root.push(new he("w:cantSplit",t.cantSplit)),t.tableHeader!==void 0&&this.root.push(new he("w:tblHeader",t.tableHeader)),t.height&&this.root.push(new bp(t.height.value,t.height.rule)),t.cellSpacing&&this.root.push(new Fl(t.cellSpacing))}},za=class extends se{constructor(t){super("w:tr"),this.options=t,this.root.push(new wp(t));for(let r of t.children)this.root.push(r)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(t=>t instanceof fi)}addCellToIndex(t,r){this.root.splice(r+1,0,t)}addCellToColumnIndex(t,r){let n=this.columnIndexToRootIndex(r,!0);this.addCellToIndex(t,n-1)}rootIndexToColumnIndex(t){if(t<1||t>=this.root.length)throw new Error(`cell 'rootIndex' should between 1 to ${this.root.length-1}`);let r=0;for(let n=1;n<t;n++){let i=this.root[n];r+=i.options.columnSpan||1}return r}columnIndexToRootIndex(t,r=!1){if(t<0)throw new Error("cell 'columnIndex' should not less than zero");let n=0,i=1;for(;n<=t;){if(i>=this.root.length){if(r)return this.root.length;throw new Error(`cell 'columnIndex' should not great than ${n-1}`)}let a=this.root[i];i+=1,n+=a&&a.options.columnSpan||1}return i-1}},Ep=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},Ap=class extends se{constructor(){super("Properties"),this.root.push(new Ep({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}},Op=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{xmlns:"xmlns"})}},Tp=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}},Fr=class extends se{constructor(t,r){super("Default"),this.root.push(new Tp({contentType:t,extension:r}))}},Sp=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}},Qt=class extends se{constructor(t,r){super("Override"),this.root.push(new Sp({contentType:t,partName:r}))}},xp=class extends se{constructor(){super("Types"),this.root.push(new Op({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new Fr("image/png","png")),this.root.push(new Fr("image/jpeg","jpeg")),this.root.push(new Fr("image/jpeg","jpg")),this.root.push(new Fr("image/bmp","bmp")),this.root.push(new Fr("image/gif","gif")),this.root.push(new Fr("image/svg+xml","svg")),this.root.push(new Fr("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new Fr("application/xml","xml")),this.root.push(new Fr("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new Qt("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new Qt("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new Qt("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new Qt("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new Qt("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new Qt("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new Qt("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new Qt("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new Qt("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new Qt("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(t){this.root.push(new Qt("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${t}.xml`))}addHeader(t){this.root.push(new Qt("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${t}.xml`))}},Mp=class extends se{constructor(t){super("cp:coreProperties"),this.root.push(new Ua(["cp","dc","dcterms","dcmitype","xsi"])),t.title&&this.root.push(new Dn("dc:title",t.title)),t.subject&&this.root.push(new Dn("dc:subject",t.subject)),t.creator&&this.root.push(new Dn("dc:creator",t.creator)),t.keywords&&this.root.push(new Dn("cp:keywords",t.keywords)),t.description&&this.root.push(new Dn("dc:description",t.description)),t.lastModifiedBy&&this.root.push(new Dn("cp:lastModifiedBy",t.lastModifiedBy)),t.revision&&this.root.push(new Dn("cp:revision",String(t.revision))),this.root.push(new ql("dcterms:created")),this.root.push(new ql("dcterms:modified"))}},Cp=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{type:"xsi:type"})}},ql=class extends se{constructor(t){super(t),this.root.push(new Cp({type:"dcterms:W3CDTF"})),this.root.push(Uk(new Date))}},kp=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},Np=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}},Ip=class extends se{constructor(t,r){super("property"),this.root.push(new Np({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t.toString(),name:r.name})),this.root.push(new Pp(r.value))}},Pp=class extends se{constructor(t){super("vt:lpwstr"),this.root.push(t)}},jp=class extends se{constructor(t){super("Properties"),ce(this,"nextId"),ce(this,"properties",[]),this.root.push(new kp({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(let r of t)this.addCustomProperty(r)}prepForXml(t){return this.properties.forEach(r=>this.root.push(r)),super.prepForXml(t)}addCustomProperty(t){this.properties.push(new Ip(this.nextId++,t))}};var Al=({id:e,fontKey:t,subsetted:r},n)=>new Xe({name:n,attributes:Re({id:{key:"r:id",value:e}},t?{fontKey:{key:"w:fontKey",value:`{${t}}`}}:{}),children:[...r?[new he("w:subsetted",r)]:[]]}),PN=({name:e,altName:t,panose1:r,charset:n,family:i,notTrueType:a,pitch:o,sig:s,embedRegular:l,embedBold:c,embedItalic:d,embedBoldItalic:f})=>new Xe({name:"w:font",attributes:{name:{key:"w:name",value:e}},children:[...t?[Jo("w:altName",t)]:[],...r?[Jo("w:panose1",r)]:[],...n?[Jo("w:charset",n)]:[],Jo("w:family",i),...a?[new he("w:notTrueType",a)]:[],Jo("w:pitch",o),...s?[new Xe({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:s.usb0},usb1:{key:"w:usb1",value:s.usb1},usb2:{key:"w:usb2",value:s.usb2},usb3:{key:"w:usb3",value:s.usb3},csb0:{key:"w:csb0",value:s.csb0},csb1:{key:"w:csb1",value:s.csb1}}})]:[],...l?[Al(l,"w:embedRegular")]:[],...c?[Al(c,"w:embedBold")]:[],...d?[Al(d,"w:embedItalic")]:[],...f?[Al(f,"w:embedBoldItalic")]:[]]}),jN=({name:e,index:t,fontKey:r,characterSet:n})=>PN({name:e,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:n,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${t}`}}),RN=e=>new Xe({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:e.map((t,r)=>jN({name:t.name,index:r+1,fontKey:t.fontKey}))}),Rp=class{constructor(t){ce(this,"fontTable"),ce(this,"relationships"),ce(this,"fontOptionsWithKey",[]),this.options=t,this.fontOptionsWithKey=t.map(r=>Un(Re({},r),{fontKey:lN()})),this.fontTable=RN(this.fontOptionsWithKey),this.relationships=new Kn;for(let r=0;r<t.length;r++)this.relationships.createRelationship(r+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/${t[r].name}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}},Lp=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}},LN=class extends Sl{constructor(t,r){super("w:ftr",r),ce(this,"refId"),this.refId=t,r||this.root.push(new Lp({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(t){this.root.push(t)}},Dp=class{constructor(t,r,n){ce(this,"footer"),ce(this,"relationships"),this.media=t,this.footer=new LN(r,n),this.relationships=new Kn}add(t){this.footer.add(t)}addChildElement(t){this.footer.addChildElement(t)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}},Bp=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{type:"w:type",id:"w:id"})}},Fp=class extends se{constructor(){super("w:footnoteRef")}},qp=class extends Gn{constructor(){super({style:"FootnoteReference"}),this.root.push(new Fp)}},wE={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"},os=class extends se{constructor(t){super("w:footnote"),this.root.push(new Bp({type:t.type,id:t.id}));for(let r=0;r<t.children.length;r++){let n=t.children[r];r===0&&n.addRunToFront(new qp),this.root.push(n)}}},Up=class extends se{constructor(){super("w:continuationSeparator")}},Hp=class extends Gn{constructor(){super({}),this.root.push(new Up)}},zp=class extends se{constructor(){super("w:separator")}},Gp=class extends Gn{constructor(){super({}),this.root.push(new zp)}},Wp=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},Kp=class extends se{constructor(){super("w:footnotes"),this.root.push(new Wp({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));let t=new os({id:-1,type:wE.SEPERATOR,children:[new Le({spacing:{after:0,line:240,lineRule:Sh.AUTO},children:[new Gp]})]});this.root.push(t);let r=new os({id:0,type:wE.CONTINUATION_SEPERATOR,children:[new Le({spacing:{after:0,line:240,lineRule:Sh.AUTO},children:[new Hp]})]});this.root.push(r)}createFootNote(t,r){let n=new os({id:t,children:r});this.root.push(n)}},Xp=class{constructor(){ce(this,"footnotess"),ce(this,"relationships"),this.footnotess=new Kp,this.relationships=new Kn}get View(){return this.footnotess}get Relationships(){return this.relationships}},$p=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}},DN=class extends Sl{constructor(t,r){super("w:hdr",r),ce(this,"refId"),this.refId=t,r||this.root.push(new $p({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(t){this.root.push(t)}},Vp=class{constructor(t,r,n){ce(this,"header"),ce(this,"relationships"),this.media=t,this.header=new DN(r,n),this.relationships=new Kn}add(t){return this.header.add(t),this}addChildElement(t){this.header.addChildElement(t)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}},Yp=class{constructor(){ce(this,"map"),this.map=new Map}addImage(t,r){this.map.set(t,r)}get Array(){return Array.from(this.map.values())}};var Et={DECIMAL:"decimal",UPPER_ROMAN:"upperRoman",LOWER_ROMAN:"lowerRoman",UPPER_LETTER:"upperLetter",LOWER_LETTER:"lowerLetter",ORDINAL:"ordinal",CARDINAL_TEXT:"cardinalText",ORDINAL_TEXT:"ordinalText",HEX:"hex",CHICAGO:"chicago",IDEOGRAPH__DIGITAL:"ideographDigital",JAPANESE_COUNTING:"japaneseCounting",AIUEO:"aiueo",IROHA:"iroha",DECIMAL_FULL_WIDTH:"decimalFullWidth",DECIMAL_HALF_WIDTH:"decimalHalfWidth",JAPANESE_LEGAL:"japaneseLegal",JAPANESE_DIGITAL_TEN_THOUSAND:"japaneseDigitalTenThousand",DECIMAL_ENCLOSED_CIRCLE:"decimalEnclosedCircle",DECIMAL_FULL_WIDTH2:"decimalFullWidth2",AIUEO_FULL_WIDTH:"aiueoFullWidth",IROHA_FULL_WIDTH:"irohaFullWidth",DECIMAL_ZERO:"decimalZero",BULLET:"bullet",GANADA:"ganada",CHOSUNG:"chosung",DECIMAL_ENCLOSED_FULLSTOP:"decimalEnclosedFullstop",DECIMAL_ENCLOSED_PARENTHESES:"decimalEnclosedParen",DECIMAL_ENCLOSED_CIRCLE_CHINESE:"decimalEnclosedCircleChinese",IDEOGRAPH_ENCLOSED_CIRCLE:"ideographEnclosedCircle",IDEOGRAPH_TRADITIONAL:"ideographTraditional",IDEOGRAPH_ZODIAC:"ideographZodiac",IDEOGRAPH_ZODIAC_TRADITIONAL:"ideographZodiacTraditional",TAIWANESE_COUNTING:"taiwaneseCounting",IDEOGRAPH_LEGAL_TRADITIONAL:"ideographLegalTraditional",TAIWANESE_COUNTING_THOUSAND:"taiwaneseCountingThousand",TAIWANESE_DIGITAL:"taiwaneseDigital",CHINESE_COUNTING:"chineseCounting",CHINESE_LEGAL_SIMPLIFIED:"chineseLegalSimplified",CHINESE_COUNTING_THOUSAND:"chineseCountingThousand",KOREAN_DIGITAL:"koreanDigital",KOREAN_COUNTING:"koreanCounting",KOREAN_LEGAL:"koreanLegal",KOREAN_DIGITAL2:"koreanDigital2",VIETNAMESE_COUNTING:"vietnameseCounting",RUSSIAN_LOWER:"russianLower",RUSSIAN_UPPER:"russianUpper",NONE:"none",NUMBER_IN_DASH:"numberInDash",HEBREW1:"hebrew1",HEBREW2:"hebrew2",ARABIC_ALPHA:"arabicAlpha",ARABIC_ABJAD:"arabicAbjad",HINDI_VOWELS:"hindiVowels",HINDI_CONSONANTS:"hindiConsonants",HINDI_NUMBERS:"hindiNumbers",HINDI_COUNTING:"hindiCounting",THAI_LETTERS:"thaiLetters",THAI_NUMBERS:"thaiNumbers",THAI_COUNTING:"thaiCounting",BAHT_TEXT:"bahtText",DOLLAR_TEXT:"dollarText",CUSTOM:"custom"},Zp=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}},Jp=class extends se{constructor(t){super("w:numFmt"),this.root.push(new dt({val:t}))}},Qp=class extends se{constructor(t){super("w:lvlText"),this.root.push(new dt({val:t}))}},eg=class extends se{constructor(t){super("w:lvlJc"),this.root.push(new dt({val:t}))}};var tg=class extends se{constructor(t){super("w:suff"),this.root.push(new dt({val:t}))}},rg=class extends se{constructor(){super("w:isLgl")}},ng=class extends se{constructor({level:t,format:r,text:n,alignment:i=Oe.START,start:a=1,style:o,suffix:s,isLegalNumberingStyle:l}){if(super("w:lvl"),ce(this,"paragraphProperties"),ce(this,"runProperties"),this.root.push(new da("w:start",qt(a))),r&&this.root.push(new Jp(r)),s&&this.root.push(new tg(s)),l&&this.root.push(new rg),n&&this.root.push(new Qp(n)),this.root.push(new eg(i)),this.paragraphProperties=new di(o&&o.paragraph),this.runProperties=new zn(o&&o.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),t>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Zp({ilvl:qt(t),tentative:1}))}},ig=class extends ng{};var ag=class extends se{constructor(t){super("w:multiLevelType"),this.root.push(new dt({val:t}))}},og=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}},Ul=class extends se{constructor(t,r){super("w:abstractNum"),ce(this,"id"),this.root.push(new og({abstractNumId:qt(t),restartNumberingAfterBreak:0})),this.root.push(new ag("hybridMultilevel")),this.id=t;for(let n of r)this.root.push(new ig(n))}},sg=class extends se{constructor(t){super("w:abstractNumId"),this.root.push(new dt({val:t}))}},lg=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{numId:"w:numId"})}},Hl=class extends se{constructor(t){if(super("w:num"),ce(this,"numId"),ce(this,"reference"),ce(this,"instance"),this.numId=t.numId,this.reference=t.reference,this.instance=t.instance,this.root.push(new lg({numId:qt(t.numId)})),this.root.push(new sg(qt(t.abstractNumId))),t.overrideLevels&&t.overrideLevels.length)for(let r of t.overrideLevels)this.root.push(new ug(r.num,r.start))}},cg=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{ilvl:"w:ilvl"})}},ug=class extends se{constructor(t,r){super("w:lvlOverride"),this.root.push(new cg({ilvl:t})),r!==void 0&&this.root.push(new fg(r))}},dg=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{val:"w:val"})}},fg=class extends se{constructor(t){super("w:startOverride"),this.root.push(new dg({val:t}))}},mg=class extends se{constructor(t){super("w:numbering"),ce(this,"abstractNumberingMap",new Map),ce(this,"concreteNumberingMap",new Map),ce(this,"referenceConfigMap",new Map),ce(this,"abstractNumUniqueNumericId",nN()),ce(this,"concreteNumUniqueNumericId",iN()),this.root.push(new Ua(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps"],"w14 w15 wp14"));let r=new Ul(this.abstractNumUniqueNumericId(),[{level:0,format:Et.BULLET,text:"\u25CF",alignment:Oe.LEFT,style:{paragraph:{indent:{left:at(.5),hanging:at(.25)}}}},{level:1,format:Et.BULLET,text:"\u25CB",alignment:Oe.LEFT,style:{paragraph:{indent:{left:at(1),hanging:at(.25)}}}},{level:2,format:Et.BULLET,text:"\u25A0",alignment:Oe.LEFT,style:{paragraph:{indent:{left:2160,hanging:at(.25)}}}},{level:3,format:Et.BULLET,text:"\u25CF",alignment:Oe.LEFT,style:{paragraph:{indent:{left:2880,hanging:at(.25)}}}},{level:4,format:Et.BULLET,text:"\u25CB",alignment:Oe.LEFT,style:{paragraph:{indent:{left:3600,hanging:at(.25)}}}},{level:5,format:Et.BULLET,text:"\u25A0",alignment:Oe.LEFT,style:{paragraph:{indent:{left:4320,hanging:at(.25)}}}},{level:6,format:Et.BULLET,text:"\u25CF",alignment:Oe.LEFT,style:{paragraph:{indent:{left:5040,hanging:at(.25)}}}},{level:7,format:Et.BULLET,text:"\u25CF",alignment:Oe.LEFT,style:{paragraph:{indent:{left:5760,hanging:at(.25)}}}},{level:8,format:Et.BULLET,text:"\u25CF",alignment:Oe.LEFT,style:{paragraph:{indent:{left:6480,hanging:at(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new Hl({numId:1,abstractNumId:r.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",r);for(let n of t.config)this.abstractNumberingMap.set(n.reference,new Ul(this.abstractNumUniqueNumericId(),n.levels)),this.referenceConfigMap.set(n.reference,n.levels)}prepForXml(t){for(let r of this.abstractNumberingMap.values())this.root.push(r);for(let r of this.concreteNumberingMap.values())this.root.push(r);return super.prepForXml(t)}createConcreteNumberingInstance(t,r){let n=this.abstractNumberingMap.get(t);if(!n)return;let i=`${t}-${r}`;if(this.concreteNumberingMap.has(i))return;let a=this.referenceConfigMap.get(t),o=a&&a[0].start,s={numId:this.concreteNumUniqueNumericId(),abstractNumId:n.id,reference:t,instance:r,overrideLevels:[o&&Number.isInteger(o)?{num:0,start:o}:{num:0,start:1}]};this.concreteNumberingMap.set(i,new Hl(s))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}},hg=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}},pg=class extends se{constructor(t){super("w:compatSetting"),this.root.push(new hg({version:t,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}},gg=class extends se{constructor(t){super("w:compat"),t.version&&this.root.push(new pg(t.version)),t.useSingleBorderforContiguousCells&&this.root.push(new he("w:useSingleBorderforContiguousCells",t.useSingleBorderforContiguousCells)),t.wordPerfectJustification&&this.root.push(new he("w:wpJustification",t.wordPerfectJustification)),t.noTabStopForHangingIndent&&this.root.push(new he("w:noTabHangInd",t.noTabStopForHangingIndent)),t.noLeading&&this.root.push(new he("w:noLeading",t.noLeading)),t.spaceForUnderline&&this.root.push(new he("w:spaceForUL",t.spaceForUnderline)),t.noColumnBalance&&this.root.push(new he("w:noColumnBalance",t.noColumnBalance)),t.balanceSingleByteDoubleByteWidth&&this.root.push(new he("w:balanceSingleByteDoubleByteWidth",t.balanceSingleByteDoubleByteWidth)),t.noExtraLineSpacing&&this.root.push(new he("w:noExtraLineSpacing",t.noExtraLineSpacing)),t.doNotLeaveBackslashAlone&&this.root.push(new he("w:doNotLeaveBackslashAlone",t.doNotLeaveBackslashAlone)),t.underlineTrailingSpaces&&this.root.push(new he("w:ulTrailSpace",t.underlineTrailingSpaces)),t.doNotExpandShiftReturn&&this.root.push(new he("w:doNotExpandShiftReturn",t.doNotExpandShiftReturn)),t.spacingInWholePoints&&this.root.push(new he("w:spacingInWholePoints",t.spacingInWholePoints)),t.lineWrapLikeWord6&&this.root.push(new he("w:lineWrapLikeWord6",t.lineWrapLikeWord6)),t.printBodyTextBeforeHeader&&this.root.push(new he("w:printBodyTextBeforeHeader",t.printBodyTextBeforeHeader)),t.printColorsBlack&&this.root.push(new he("w:printColBlack",t.printColorsBlack)),t.spaceWidth&&this.root.push(new he("w:wpSpaceWidth",t.spaceWidth)),t.showBreaksInFrames&&this.root.push(new he("w:showBreaksInFrames",t.showBreaksInFrames)),t.subFontBySize&&this.root.push(new he("w:subFontBySize",t.subFontBySize)),t.suppressBottomSpacing&&this.root.push(new he("w:suppressBottomSpacing",t.suppressBottomSpacing)),t.suppressTopSpacing&&this.root.push(new he("w:suppressTopSpacing",t.suppressTopSpacing)),t.suppressSpacingAtTopOfPage&&this.root.push(new he("w:suppressSpacingAtTopOfPage",t.suppressSpacingAtTopOfPage)),t.suppressTopSpacingWP&&this.root.push(new he("w:suppressTopSpacingWP",t.suppressTopSpacingWP)),t.suppressSpBfAfterPgBrk&&this.root.push(new he("w:suppressSpBfAfterPgBrk",t.suppressSpBfAfterPgBrk)),t.swapBordersFacingPages&&this.root.push(new he("w:swapBordersFacingPages",t.swapBordersFacingPages)),t.convertMailMergeEsc&&this.root.push(new he("w:convMailMergeEsc",t.convertMailMergeEsc)),t.truncateFontHeightsLikeWP6&&this.root.push(new he("w:truncateFontHeightsLikeWP6",t.truncateFontHeightsLikeWP6)),t.macWordSmallCaps&&this.root.push(new he("w:mwSmallCaps",t.macWordSmallCaps)),t.usePrinterMetrics&&this.root.push(new he("w:usePrinterMetrics",t.usePrinterMetrics)),t.doNotSuppressParagraphBorders&&this.root.push(new he("w:doNotSuppressParagraphBorders",t.doNotSuppressParagraphBorders)),t.wrapTrailSpaces&&this.root.push(new he("w:wrapTrailSpaces",t.wrapTrailSpaces)),t.footnoteLayoutLikeWW8&&this.root.push(new he("w:footnoteLayoutLikeWW8",t.footnoteLayoutLikeWW8)),t.shapeLayoutLikeWW8&&this.root.push(new he("w:shapeLayoutLikeWW8",t.shapeLayoutLikeWW8)),t.alignTablesRowByRow&&this.root.push(new he("w:alignTablesRowByRow",t.alignTablesRowByRow)),t.forgetLastTabAlignment&&this.root.push(new he("w:forgetLastTabAlignment",t.forgetLastTabAlignment)),t.adjustLineHeightInTable&&this.root.push(new he("w:adjustLineHeightInTable",t.adjustLineHeightInTable)),t.autoSpaceLikeWord95&&this.root.push(new he("w:autoSpaceLikeWord95",t.autoSpaceLikeWord95)),t.noSpaceRaiseLower&&this.root.push(new he("w:noSpaceRaiseLower",t.noSpaceRaiseLower)),t.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new he("w:doNotUseHTMLParagraphAutoSpacing",t.doNotUseHTMLParagraphAutoSpacing)),t.layoutRawTableWidth&&this.root.push(new he("w:layoutRawTableWidth",t.layoutRawTableWidth)),t.layoutTableRowsApart&&this.root.push(new he("w:layoutTableRowsApart",t.layoutTableRowsApart)),t.useWord97LineBreakRules&&this.root.push(new he("w:useWord97LineBreakRules",t.useWord97LineBreakRules)),t.doNotBreakWrappedTables&&this.root.push(new he("w:doNotBreakWrappedTables",t.doNotBreakWrappedTables)),t.doNotSnapToGridInCell&&this.root.push(new he("w:doNotSnapToGridInCell",t.doNotSnapToGridInCell)),t.selectFieldWithFirstOrLastCharacter&&this.root.push(new he("w:selectFldWithFirstOrLastChar",t.selectFieldWithFirstOrLastCharacter)),t.applyBreakingRules&&this.root.push(new he("w:applyBreakingRules",t.applyBreakingRules)),t.doNotWrapTextWithPunctuation&&this.root.push(new he("w:doNotWrapTextWithPunct",t.doNotWrapTextWithPunctuation)),t.doNotUseEastAsianBreakRules&&this.root.push(new he("w:doNotUseEastAsianBreakRules",t.doNotUseEastAsianBreakRules)),t.useWord2002TableStyleRules&&this.root.push(new he("w:useWord2002TableStyleRules",t.useWord2002TableStyleRules)),t.growAutofit&&this.root.push(new he("w:growAutofit",t.growAutofit)),t.useFELayout&&this.root.push(new he("w:useFELayout",t.useFELayout)),t.useNormalStyleForList&&this.root.push(new he("w:useNormalStyleForList",t.useNormalStyleForList)),t.doNotUseIndentAsNumberingTabStop&&this.root.push(new he("w:doNotUseIndentAsNumberingTabStop",t.doNotUseIndentAsNumberingTabStop)),t.useAlternateEastAsianLineBreakRules&&this.root.push(new he("w:useAltKinsokuLineBreakRules",t.useAlternateEastAsianLineBreakRules)),t.allowSpaceOfSameStyleInTable&&this.root.push(new he("w:allowSpaceOfSameStyleInTable",t.allowSpaceOfSameStyleInTable)),t.doNotSuppressIndentation&&this.root.push(new he("w:doNotSuppressIndentation",t.doNotSuppressIndentation)),t.doNotAutofitConstrainedTables&&this.root.push(new he("w:doNotAutofitConstrainedTables",t.doNotAutofitConstrainedTables)),t.autofitToFirstFixedWidthCell&&this.root.push(new he("w:autofitToFirstFixedWidthCell",t.autofitToFirstFixedWidthCell)),t.underlineTabInNumberingList&&this.root.push(new he("w:underlineTabInNumList",t.underlineTabInNumberingList)),t.displayHangulFixedWidth&&this.root.push(new he("w:displayHangulFixedWidth",t.displayHangulFixedWidth)),t.splitPgBreakAndParaMark&&this.root.push(new he("w:splitPgBreakAndParaMark",t.splitPgBreakAndParaMark)),t.doNotVerticallyAlignCellWithSp&&this.root.push(new he("w:doNotVertAlignCellWithSp",t.doNotVerticallyAlignCellWithSp)),t.doNotBreakConstrainedForcedTable&&this.root.push(new he("w:doNotBreakConstrainedForcedTable",t.doNotBreakConstrainedForcedTable)),t.ignoreVerticalAlignmentInTextboxes&&this.root.push(new he("w:doNotVertAlignInTxbx",t.ignoreVerticalAlignmentInTextboxes)),t.useAnsiKerningPairs&&this.root.push(new he("w:useAnsiKerningPairs",t.useAnsiKerningPairs)),t.cachedColumnBalance&&this.root.push(new he("w:cachedColBalance",t.cachedColumnBalance))}},yg=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},_g=class extends se{constructor(t){var r,n,i,a,o,s,l,c;super("w:settings"),this.root.push(new yg({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new he("w:displayBackgroundShape",!0)),t.trackRevisions!==void 0&&this.root.push(new he("w:trackRevisions",t.trackRevisions)),t.evenAndOddHeaders!==void 0&&this.root.push(new he("w:evenAndOddHeaders",t.evenAndOddHeaders)),t.updateFields!==void 0&&this.root.push(new he("w:updateFields",t.updateFields)),t.defaultTabStop!==void 0&&this.root.push(new da("w:defaultTabStop",t.defaultTabStop)),((r=t.hyphenation)==null?void 0:r.autoHyphenation)!==void 0&&this.root.push(new he("w:autoHyphenation",t.hyphenation.autoHyphenation)),((n=t.hyphenation)==null?void 0:n.hyphenationZone)!==void 0&&this.root.push(new da("w:hyphenationZone",t.hyphenation.hyphenationZone)),((i=t.hyphenation)==null?void 0:i.consecutiveHyphenLimit)!==void 0&&this.root.push(new da("w:consecutiveHyphenLimit",t.hyphenation.consecutiveHyphenLimit)),((a=t.hyphenation)==null?void 0:a.doNotHyphenateCaps)!==void 0&&this.root.push(new he("w:doNotHyphenateCaps",t.hyphenation.doNotHyphenateCaps)),this.root.push(new gg(Un(Re({},(o=t.compatibility)!=null?o:{}),{version:(c=(l=(s=t.compatibility)==null?void 0:s.version)!=null?l:t.compatibilityModeVersion)!=null?c:15})))}},zl=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{val:"w:val"})}},vg=class extends se{constructor(t){super("w:name"),this.root.push(new zl({val:t}))}},bg=class extends se{constructor(t){super("w:uiPriority"),this.root.push(new zl({val:qt(t)}))}},wg=class extends ve{constructor(){super(...arguments),ce(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}},Gl=class extends se{constructor(t,r){super("w:style"),this.root.push(new wg(t)),r.name&&this.root.push(new vg(r.name)),r.basedOn&&this.root.push(new sn("w:basedOn",r.basedOn)),r.next&&this.root.push(new sn("w:next",r.next)),r.link&&this.root.push(new sn("w:link",r.link)),r.uiPriority!==void 0&&this.root.push(new bg(r.uiPriority)),r.semiHidden!==void 0&&this.root.push(new he("w:semiHidden",r.semiHidden)),r.unhideWhenUsed!==void 0&&this.root.push(new he("w:unhideWhenUsed",r.unhideWhenUsed)),r.quickFormat!==void 0&&this.root.push(new he("w:qFormat",r.quickFormat))}},Ga=class extends Gl{constructor(t){super({type:"paragraph",styleId:t.id},t),ce(this,"paragraphProperties"),ce(this,"runProperties"),this.paragraphProperties=new di(t.paragraph),this.runProperties=new zn(t.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}},Wa=class extends Gl{constructor(t){super({type:"character",styleId:t.id},Re({uiPriority:99,unhideWhenUsed:!0},t)),ce(this,"runProperties"),this.runProperties=new zn(t.run),this.root.push(this.runProperties)}},ln=class extends Ga{constructor(t){super(Re({basedOn:"Normal",next:"Normal",quickFormat:!0},t))}},Eg=class extends ln{constructor(t){super(Re({id:"Title",name:"Title"},t))}},Ag=class extends ln{constructor(t){super(Re({id:"Heading1",name:"Heading 1"},t))}},Og=class extends ln{constructor(t){super(Re({id:"Heading2",name:"Heading 2"},t))}},Tg=class extends ln{constructor(t){super(Re({id:"Heading3",name:"Heading 3"},t))}},Sg=class extends ln{constructor(t){super(Re({id:"Heading4",name:"Heading 4"},t))}},xg=class extends ln{constructor(t){super(Re({id:"Heading5",name:"Heading 5"},t))}},Mg=class extends ln{constructor(t){super(Re({id:"Heading6",name:"Heading 6"},t))}},Cg=class extends ln{constructor(t){super(Re({id:"Strong",name:"Strong"},t))}},kg=class extends Ga{constructor(t){super(Re({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},t))}},Ng=class extends Ga{constructor(t){super(Re({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:Sh.AUTO}},run:{size:20}},t))}},Ig=class extends Wa{constructor(t){super(Re({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},t))}},Pg=class extends Wa{constructor(t){super(Re({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},t))}},jg=class extends Wa{constructor(t){super(Re({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:QE.SINGLE}}},t))}},us=class extends se{constructor(t){if(super("w:styles"),t.initialStyles&&this.root.push(t.initialStyles),t.importedStyles)for(let r of t.importedStyles)this.root.push(r);if(t.paragraphStyles)for(let r of t.paragraphStyles)this.root.push(new Ga(r));if(t.characterStyles)for(let r of t.characterStyles)this.root.push(new Wa(r))}},Rg=class extends se{constructor(t){super("w:pPrDefault"),this.root.push(new di(t))}},Lg=class extends se{constructor(t){super("w:rPrDefault"),this.root.push(new zn(t))}},Dg=class extends se{constructor(t){super("w:docDefaults"),ce(this,"runPropertiesDefaults"),ce(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new Lg(t.run),this.paragraphPropertiesDefaults=new Rg(t.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}},Bg=class{newInstance(t){let r=$E.xml2js(t,{compact:!1}),n;for(let o of r.elements||[])o.name==="w:styles"&&(n=o);if(n===void 0)throw new Error("can not find styles element");let i=n.elements||[];return new us({initialStyles:new fm(n.attributes),importedStyles:i.map(o=>ps(o))})}},Wl=class{newInstance(t={}){var r;return{initialStyles:new Ua(["mc","r","w","w14","w15"],"w14 w15"),importedStyles:[new Dg((r=t.document)!=null?r:{}),new Eg(Re({run:{size:56}},t.title)),new Ag(Re({run:{color:"2E74B5",size:32}},t.heading1)),new Og(Re({run:{color:"2E74B5",size:26}},t.heading2)),new Tg(Re({run:{color:"1F4D78",size:24}},t.heading3)),new Sg(Re({run:{color:"2E74B5",italics:!0}},t.heading4)),new xg(Re({run:{color:"2E74B5"}},t.heading5)),new Mg(Re({run:{color:"1F4D78"}},t.heading6)),new Cg(Re({run:{bold:!0}},t.strong)),new kg(t.listParagraph||{}),new jg(t.hyperlink||{}),new Ig(t.footnoteReference||{}),new Ng(t.footnoteText||{}),new Pg(t.footnoteTextChar||{})]}}},Kl=class{constructor(t){ce(this,"currentRelationshipId",1),ce(this,"documentWrapper"),ce(this,"headers",[]),ce(this,"footers",[]),ce(this,"coreProperties"),ce(this,"numbering"),ce(this,"media"),ce(this,"fileRelationships"),ce(this,"footnotesWrapper"),ce(this,"settings"),ce(this,"contentTypes"),ce(this,"customProperties"),ce(this,"appProperties"),ce(this,"styles"),ce(this,"comments"),ce(this,"fontWrapper");var r,n,i,a,o,s,l,c,d,f,m,p;if(this.coreProperties=new Mp(Un(Re({},t),{creator:(r=t.creator)!=null?r:"Un-named",revision:(n=t.revision)!=null?n:1,lastModifiedBy:(i=t.lastModifiedBy)!=null?i:"Un-named"})),this.numbering=new mg(t.numbering?t.numbering:{config:[]}),this.comments=new Oh((a=t.comments)!=null?a:{children:[]}),this.fileRelationships=new Kn,this.customProperties=new jp((o=t.customProperties)!=null?o:[]),this.appProperties=new Ap,this.footnotesWrapper=new Xp,this.contentTypes=new xp,this.documentWrapper=new Rl({background:t.background}),this.settings=new _g({compatibilityModeVersion:t.compatabilityModeVersion,compatibility:t.compatibility,evenAndOddHeaders:!!t.evenAndOddHeaderAndFooters,trackRevisions:(s=t.features)==null?void 0:s.trackRevisions,updateFields:(l=t.features)==null?void 0:l.updateFields,defaultTabStop:t.defaultTabStop,hyphenation:{autoHyphenation:(c=t.hyphenation)==null?void 0:c.autoHyphenation,hyphenationZone:(d=t.hyphenation)==null?void 0:d.hyphenationZone,consecutiveHyphenLimit:(f=t.hyphenation)==null?void 0:f.consecutiveHyphenLimit,doNotHyphenateCaps:(m=t.hyphenation)==null?void 0:m.doNotHyphenateCaps}}),this.media=new Yp,t.externalStyles!==void 0){let b=new Bg;this.styles=b.newInstance(t.externalStyles)}else if(t.styles){let v=new Wl().newInstance(t.styles.default);this.styles=new us(Re(Re({},v),t.styles))}else{let b=new Wl;this.styles=new us(b.newInstance())}this.addDefaultRelationships();for(let b of t.sections)this.addSection(b);if(t.footnotes)for(let b in t.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(b),t.footnotes[b].children);this.fontWrapper=new Rp((p=t.fonts)!=null?p:[])}addSection({headers:t={},footers:r={},children:n,properties:i}){this.documentWrapper.View.Body.addSection(Un(Re({},i),{headerWrapperGroup:{default:t.default?this.createHeader(t.default):void 0,first:t.first?this.createHeader(t.first):void 0,even:t.even?this.createHeader(t.even):void 0},footerWrapperGroup:{default:r.default?this.createFooter(r.default):void 0,first:r.first?this.createFooter(r.first):void 0,even:r.even?this.createFooter(r.even):void 0}}));for(let a of n)this.documentWrapper.View.add(a)}createHeader(t){let r=new Vp(this.media,this.currentRelationshipId++);for(let n of t.options.children)r.add(n);return this.addHeaderToDocument(r),r}createFooter(t){let r=new Dp(this.media,this.currentRelationshipId++);for(let n of t.options.children)r.add(n);return this.addFooterToDocument(r),r}addHeaderToDocument(t,r=Ra.DEFAULT){this.headers.push({header:t,type:r}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(t,r=Ra.DEFAULT){this.footers.push({footer:t,type:r}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(t=>t.header)}get Footers(){return this.footers.map(t=>t.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}},Fg=class extends se{constructor(t={}){super("w:instrText"),ce(this,"properties"),this.properties=t,this.root.push(new Hn({space:fa.PRESERVE}));let r="TOC";if(this.properties.captionLabel&&(r=`${r} \\a "${this.properties.captionLabel}"`),this.properties.entriesFromBookmark&&(r=`${r} \\b "${this.properties.entriesFromBookmark}"`),this.properties.captionLabelIncludingNumbers&&(r=`${r} \\c "${this.properties.captionLabelIncludingNumbers}"`),this.properties.sequenceAndPageNumbersSeparator&&(r=`${r} \\d "${this.properties.sequenceAndPageNumbersSeparator}"`),this.properties.tcFieldIdentifier&&(r=`${r} \\f "${this.properties.tcFieldIdentifier}"`),this.properties.hyperlink&&(r=`${r} \\h`),this.properties.tcFieldLevelRange&&(r=`${r} \\l "${this.properties.tcFieldLevelRange}"`),this.properties.pageNumbersEntryLevelsRange&&(r=`${r} \\n "${this.properties.pageNumbersEntryLevelsRange}"`),this.properties.headingStyleRange&&(r=`${r} \\o "${this.properties.headingStyleRange}"`),this.properties.entryAndPageNumberSeparator&&(r=`${r} \\p "${this.properties.entryAndPageNumberSeparator}"`),this.properties.seqFieldIdentifierForPrefix&&(r=`${r} \\s "${this.properties.seqFieldIdentifierForPrefix}"`),this.properties.stylesWithLevels&&this.properties.stylesWithLevels.length){let n=this.properties.stylesWithLevels.map(i=>`${i.styleName},${i.level}`).join(",");r=`${r} \\t "${n}"`}this.properties.useAppliedParagraphOutlineLevel&&(r=`${r} \\u`),this.properties.preserveTabInEntries&&(r=`${r} \\w`),this.properties.preserveNewLineInEntries&&(r=`${r} \\x`),this.properties.hideTabAndPageNumbersInWebView&&(r=`${r} \\z`),this.root.push(r)}},qg=class extends se{constructor(){super("w:sdtContent")}},Ug=class extends se{constructor(t){super("w:sdtPr"),t&&this.root.push(new sn("w:alias",t))}},Xl=class extends ls{constructor(t="Table of Contents",r){super("w:sdt"),this.root.push(new Ug(t));let n=new qg,i=new Le({children:[new Gn({children:[new la(!0),new Fg(r),new ca]})]});n.addChildElement(i);let a=new Le({children:[new Gn({children:[new ua]})]});n.addChildElement(a),this.root.push(n)}};var BN=Yg();function Ol(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var nm={exports:{}},EE;function FN(){return EE||(EE=1,(function(e,t){(function(r){e.exports=r()})(function(){return(function r(n,i,a){function o(c,d){if(!i[c]){if(!n[c]){var f=typeof Ol=="function"&&Ol;if(!d&&f)return f(c,!0);if(s)return s(c,!0);var m=new Error("Cannot find module '"+c+"'");throw m.code="MODULE_NOT_FOUND",m}var p=i[c]={exports:{}};n[c][0].call(p.exports,function(b){var v=n[c][1][b];return o(v||b)},p,p.exports,r,n,i,a)}return i[c].exports}for(var s=typeof Ol=="function"&&Ol,l=0;l<a.length;l++)o(a[l]);return o})({1:[function(r,n,i){var a=r("./utils"),o=r("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(l){for(var c,d,f,m,p,b,v,A=[],y=0,T=l.length,E=T,w=a.getTypeOf(l)!=="string";y<l.length;)E=T-y,f=w?(c=l[y++],d=y<T?l[y++]:0,y<T?l[y++]:0):(c=l.charCodeAt(y++),d=y<T?l.charCodeAt(y++):0,y<T?l.charCodeAt(y++):0),m=c>>2,p=(3&c)<<4|d>>4,b=1<E?(15&d)<<2|f>>6:64,v=2<E?63&f:64,A.push(s.charAt(m)+s.charAt(p)+s.charAt(b)+s.charAt(v));return A.join("")},i.decode=function(l){var c,d,f,m,p,b,v=0,A=0,y="data:";if(l.substr(0,y.length)===y)throw new Error("Invalid base64 input, it looks like a data url.");var T,E=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===s.charAt(64)&&E--,l.charAt(l.length-2)===s.charAt(64)&&E--,E%1!=0)throw new Error("Invalid base64 input, bad content length.");for(T=o.uint8array?new Uint8Array(0|E):new Array(0|E);v<l.length;)c=s.indexOf(l.charAt(v++))<<2|(m=s.indexOf(l.charAt(v++)))>>4,d=(15&m)<<4|(p=s.indexOf(l.charAt(v++)))>>2,f=(3&p)<<6|(b=s.indexOf(l.charAt(v++))),T[A++]=c,p!==64&&(T[A++]=d),b!==64&&(T[A++]=f);return T}},{"./support":30,"./utils":32}],2:[function(r,n,i){var a=r("./external"),o=r("./stream/DataWorker"),s=r("./stream/Crc32Probe"),l=r("./stream/DataLengthProbe");function c(d,f,m,p,b){this.compressedSize=d,this.uncompressedSize=f,this.crc32=m,this.compression=p,this.compressedContent=b}c.prototype={getContentWorker:function(){var d=new o(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),f=this;return d.on("end",function(){if(this.streamInfo.data_length!==f.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),d},getCompressedWorker:function(){return new o(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(d,f,m){return d.pipe(new s).pipe(new l("uncompressedSize")).pipe(f.compressWorker(m)).pipe(new l("compressedSize")).withStreamInfo("compression",f)},n.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,n,i){var a=r("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}},i.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,n,i){var a=r("./utils"),o=(function(){for(var s,l=[],c=0;c<256;c++){s=c;for(var d=0;d<8;d++)s=1&s?3988292384^s>>>1:s>>>1;l[c]=s}return l})();n.exports=function(s,l){return s!==void 0&&s.length?a.getTypeOf(s)!=="string"?(function(c,d,f,m){var p=o,b=m+f;c^=-1;for(var v=m;v<b;v++)c=c>>>8^p[255&(c^d[v])];return-1^c})(0|l,s,s.length,0):(function(c,d,f,m){var p=o,b=m+f;c^=-1;for(var v=m;v<b;v++)c=c>>>8^p[255&(c^d.charCodeAt(v))];return-1^c})(0|l,s,s.length,0):0}},{"./utils":32}],5:[function(r,n,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(r,n,i){var a=null;a=typeof Promise<"u"?Promise:r("lie"),n.exports={Promise:a}},{lie:37}],7:[function(r,n,i){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=r("pako"),s=r("./utils"),l=r("./stream/GenericWorker"),c=a?"uint8array":"array";function d(f,m){l.call(this,"FlateWorker/"+f),this._pako=null,this._pakoAction=f,this._pakoOptions=m,this.meta={}}i.magic="\b\0",s.inherits(d,l),d.prototype.processChunk=function(f){this.meta=f.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(c,f.data),!1)},d.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},d.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},d.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var f=this;this._pako.onData=function(m){f.push({data:m,meta:f.meta})}},i.compressWorker=function(f){return new d("Deflate",f)},i.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,n,i){function a(p,b){var v,A="";for(v=0;v<b;v++)A+=String.fromCharCode(255&p),p>>>=8;return A}function o(p,b,v,A,y,T){var E,w,x=p.file,D=p.compression,B=T!==c.utf8encode,P=s.transformTo("string",T(x.name)),I=s.transformTo("string",c.utf8encode(x.name)),Z=x.comment,oe=s.transformTo("string",T(Z)),R=s.transformTo("string",c.utf8encode(Z)),z=I.length!==x.name.length,C=R.length!==Z.length,J="",te="",X="",W=x.dir,H=x.date,ae={crc32:0,compressedSize:0,uncompressedSize:0};b&&!v||(ae.crc32=p.crc32,ae.compressedSize=p.compressedSize,ae.uncompressedSize=p.uncompressedSize);var K=0;b&&(K|=8),B||!z&&!C||(K|=2048);var L=0,V=0;W&&(L|=16),y==="UNIX"?(V=798,L|=(function(re,k){var h=re;return re||(h=k?16893:33204),(65535&h)<<16})(x.unixPermissions,W)):(V=20,L|=(function(re){return 63&(re||0)})(x.dosPermissions)),E=H.getUTCHours(),E<<=6,E|=H.getUTCMinutes(),E<<=5,E|=H.getUTCSeconds()/2,w=H.getUTCFullYear()-1980,w<<=4,w|=H.getUTCMonth()+1,w<<=5,w|=H.getUTCDate(),z&&(te=a(1,1)+a(d(P),4)+I,J+="up"+a(te.length,2)+te),C&&(X=a(1,1)+a(d(oe),4)+R,J+="uc"+a(X.length,2)+X);var Y="";return Y+=`
|
|
49
|
+
\0`,Y+=a(K,2),Y+=D.magic,Y+=a(E,2),Y+=a(w,2),Y+=a(ae.crc32,4),Y+=a(ae.compressedSize,4),Y+=a(ae.uncompressedSize,4),Y+=a(P.length,2),Y+=a(J.length,2),{fileRecord:f.LOCAL_FILE_HEADER+Y+P+J,dirRecord:f.CENTRAL_FILE_HEADER+a(V,2)+Y+a(oe.length,2)+"\0\0\0\0"+a(L,4)+a(A,4)+P+J+oe}}var s=r("../utils"),l=r("../stream/GenericWorker"),c=r("../utf8"),d=r("../crc32"),f=r("../signature");function m(p,b,v,A){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=v,this.encodeFileName=A,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(m,l),m.prototype.push=function(p){var b=p.meta.percent||0,v=this.entriesCount,A=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,l.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:v?(b+100*(v-A-1))/v:100}}))},m.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var b=this.streamFiles&&!p.file.dir;if(b){var v=o(p,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:v.fileRecord,meta:{percent:0}})}else this.accumulate=!0},m.prototype.closedSource=function(p){this.accumulate=!1;var b=this.streamFiles&&!p.file.dir,v=o(p,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(v.dirRecord),b)this.push({data:(function(A){return f.DATA_DESCRIPTOR+a(A.crc32,4)+a(A.compressedSize,4)+a(A.uncompressedSize,4)})(p),meta:{percent:100}});else for(this.push({data:v.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},m.prototype.flush=function(){for(var p=this.bytesWritten,b=0;b<this.dirRecords.length;b++)this.push({data:this.dirRecords[b],meta:{percent:100}});var v=this.bytesWritten-p,A=(function(y,T,E,w,x){var D=s.transformTo("string",x(w));return f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+a(y,2)+a(y,2)+a(T,4)+a(E,4)+a(D.length,2)+D})(this.dirRecords.length,v,p,this.zipComment,this.encodeFileName);this.push({data:A,meta:{percent:100}})},m.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},m.prototype.registerPrevious=function(p){this._sources.push(p);var b=this;return p.on("data",function(v){b.processChunk(v)}),p.on("end",function(){b.closedSource(b.previous.streamInfo),b._sources.length?b.prepareNextSource():b.end()}),p.on("error",function(v){b.error(v)}),this},m.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},m.prototype.error=function(p){var b=this._sources;if(!l.prototype.error.call(this,p))return!1;for(var v=0;v<b.length;v++)try{b[v].error(p)}catch{}return!0},m.prototype.lock=function(){l.prototype.lock.call(this);for(var p=this._sources,b=0;b<p.length;b++)p[b].lock()},n.exports=m},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,n,i){var a=r("../compressions"),o=r("./ZipFileWorker");i.generateWorker=function(s,l,c){var d=new o(l.streamFiles,c,l.platform,l.encodeFileName),f=0;try{s.forEach(function(m,p){f++;var b=(function(T,E){var w=T||E,x=a[w];if(!x)throw new Error(w+" is not a valid compression method !");return x})(p.options.compression,l.compression),v=p.options.compressionOptions||l.compressionOptions||{},A=p.dir,y=p.date;p._compressWorker(b,v).withStreamInfo("file",{name:m,dir:A,date:y,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(d)}),d.entriesCount=f}catch(m){d.error(m)}return d}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,n,i){function a(){if(!(this instanceof a))return new a;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new a;for(var s in this)typeof this[s]!="function"&&(o[s]=this[s]);return o}}(a.prototype=r("./object")).loadAsync=r("./load"),a.support=r("./support"),a.defaults=r("./defaults"),a.version="3.10.1",a.loadAsync=function(o,s){return new a().loadAsync(o,s)},a.external=r("./external"),n.exports=a},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,n,i){var a=r("./utils"),o=r("./external"),s=r("./utf8"),l=r("./zipEntries"),c=r("./stream/Crc32Probe"),d=r("./nodejsUtils");function f(m){return new o.Promise(function(p,b){var v=m.decompressed.getContentWorker().pipe(new c);v.on("error",function(A){b(A)}).on("end",function(){v.streamInfo.crc32!==m.decompressed.crc32?b(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}n.exports=function(m,p){var b=this;return p=a.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),d.isNode&&d.isStream(m)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):a.prepareContent("the loaded zip file",m,!0,p.optimizedBinaryString,p.base64).then(function(v){var A=new l(p);return A.load(v),A}).then(function(v){var A=[o.Promise.resolve(v)],y=v.files;if(p.checkCRC32)for(var T=0;T<y.length;T++)A.push(f(y[T]));return o.Promise.all(A)}).then(function(v){for(var A=v.shift(),y=A.files,T=0;T<y.length;T++){var E=y[T],w=E.fileNameStr,x=a.resolve(E.fileNameStr);b.file(x,E.decompressed,{binary:!0,optimizedBinaryString:!0,date:E.date,dir:E.dir,comment:E.fileCommentStr.length?E.fileCommentStr:null,unixPermissions:E.unixPermissions,dosPermissions:E.dosPermissions,createFolders:p.createFolders}),E.dir||(b.file(x).unsafeOriginalName=w)}return A.zipComment.length&&(b.comment=A.zipComment),b})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,n,i){var a=r("../utils"),o=r("../stream/GenericWorker");function s(l,c){o.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(c)}a.inherits(s,o),s.prototype._bindStream=function(l){var c=this;(this._stream=l).pause(),l.on("data",function(d){c.push({data:d,meta:{percent:0}})}).on("error",function(d){c.isPaused?this.generatedError=d:c.error(d)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},s.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},n.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,n,i){var a=r("readable-stream").Readable;function o(s,l,c){a.call(this,l),this._helper=s;var d=this;s.on("data",function(f,m){d.push(f)||d._helper.pause(),c&&c(m)}).on("error",function(f){d.emit("error",f)}).on("end",function(){d.push(null)})}r("../utils").inherits(o,a),o.prototype._read=function(){this._helper.resume()},n.exports=o},{"../utils":32,"readable-stream":16}],14:[function(r,n,i){n.exports={isNode:typeof Buffer<"u",newBufferFrom:function(a,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(a,o);if(typeof a=="number")throw new Error('The "data" argument must not be a number');return new Buffer(a,o)},allocBuffer:function(a){if(Buffer.alloc)return Buffer.alloc(a);var o=new Buffer(a);return o.fill(0),o},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&typeof a.on=="function"&&typeof a.pause=="function"&&typeof a.resume=="function"}}},{}],15:[function(r,n,i){function a(x,D,B){var P,I=s.getTypeOf(D),Z=s.extend(B||{},d);Z.date=Z.date||new Date,Z.compression!==null&&(Z.compression=Z.compression.toUpperCase()),typeof Z.unixPermissions=="string"&&(Z.unixPermissions=parseInt(Z.unixPermissions,8)),Z.unixPermissions&&16384&Z.unixPermissions&&(Z.dir=!0),Z.dosPermissions&&16&Z.dosPermissions&&(Z.dir=!0),Z.dir&&(x=y(x)),Z.createFolders&&(P=A(x))&&T.call(this,P,!0);var oe=I==="string"&&Z.binary===!1&&Z.base64===!1;B&&B.binary!==void 0||(Z.binary=!oe),(D instanceof f&&D.uncompressedSize===0||Z.dir||!D||D.length===0)&&(Z.base64=!1,Z.binary=!0,D="",Z.compression="STORE",I="string");var R=null;R=D instanceof f||D instanceof l?D:b.isNode&&b.isStream(D)?new v(x,D):s.prepareContent(x,D,Z.binary,Z.optimizedBinaryString,Z.base64);var z=new m(x,R,Z);this.files[x]=z}var o=r("./utf8"),s=r("./utils"),l=r("./stream/GenericWorker"),c=r("./stream/StreamHelper"),d=r("./defaults"),f=r("./compressedObject"),m=r("./zipObject"),p=r("./generate"),b=r("./nodejsUtils"),v=r("./nodejs/NodejsStreamInputAdapter"),A=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var D=x.lastIndexOf("/");return 0<D?x.substring(0,D):""},y=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},T=function(x,D){return D=D!==void 0?D:d.createFolders,x=y(x),this.files[x]||a.call(this,x,null,{dir:!0,createFolders:D}),this.files[x]};function E(x){return Object.prototype.toString.call(x)==="[object RegExp]"}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(x){var D,B,P;for(D in this.files)P=this.files[D],(B=D.slice(this.root.length,D.length))&&D.slice(0,this.root.length)===this.root&&x(B,P)},filter:function(x){var D=[];return this.forEach(function(B,P){x(B,P)&&D.push(P)}),D},file:function(x,D,B){if(arguments.length!==1)return x=this.root+x,a.call(this,x,D,B),this;if(E(x)){var P=x;return this.filter(function(Z,oe){return!oe.dir&&P.test(Z)})}var I=this.files[this.root+x];return I&&!I.dir?I:null},folder:function(x){if(!x)return this;if(E(x))return this.filter(function(I,Z){return Z.dir&&x.test(I)});var D=this.root+x,B=T.call(this,D),P=this.clone();return P.root=B.name,P},remove:function(x){x=this.root+x;var D=this.files[x];if(D||(x.slice(-1)!=="/"&&(x+="/"),D=this.files[x]),D&&!D.dir)delete this.files[x];else for(var B=this.filter(function(I,Z){return Z.name.slice(0,x.length)===x}),P=0;P<B.length;P++)delete this.files[B[P].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(x){var D,B={};try{if((B=s.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=B.type.toLowerCase(),B.compression=B.compression.toUpperCase(),B.type==="binarystring"&&(B.type="string"),!B.type)throw new Error("No output type specified.");s.checkSupport(B.type),B.platform!=="darwin"&&B.platform!=="freebsd"&&B.platform!=="linux"&&B.platform!=="sunos"||(B.platform="UNIX"),B.platform==="win32"&&(B.platform="DOS");var P=B.comment||this.comment||"";D=p.generateWorker(this,B,P)}catch(I){(D=new l("error")).error(I)}return new c(D,B.type||"string",B.mimeType)},generateAsync:function(x,D){return this.generateInternalStream(x).accumulate(D)},generateNodeStream:function(x,D){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(D)}};n.exports=w},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,n,i){n.exports=r("stream")},{stream:void 0}],17:[function(r,n,i){var a=r("./DataReader");function o(s){a.call(this,s);for(var l=0;l<this.data.length;l++)s[l]=255&s[l]}r("../utils").inherits(o,a),o.prototype.byteAt=function(s){return this.data[this.zero+s]},o.prototype.lastIndexOfSignature=function(s){for(var l=s.charCodeAt(0),c=s.charCodeAt(1),d=s.charCodeAt(2),f=s.charCodeAt(3),m=this.length-4;0<=m;--m)if(this.data[m]===l&&this.data[m+1]===c&&this.data[m+2]===d&&this.data[m+3]===f)return m-this.zero;return-1},o.prototype.readAndCheckSignature=function(s){var l=s.charCodeAt(0),c=s.charCodeAt(1),d=s.charCodeAt(2),f=s.charCodeAt(3),m=this.readData(4);return l===m[0]&&c===m[1]&&d===m[2]&&f===m[3]},o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=o},{"../utils":32,"./DataReader":18}],18:[function(r,n,i){var a=r("../utils");function o(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var l,c=0;for(this.checkOffset(s),l=this.index+s-1;l>=this.index;l--)c=(c<<8)+this.byteAt(l);return this.index+=s,c},readString:function(s){return a.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},n.exports=o},{"../utils":32}],19:[function(r,n,i){var a=r("./Uint8ArrayReader");function o(s){a.call(this,s)}r("../utils").inherits(o,a),o.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,n,i){var a=r("./DataReader");function o(s){a.call(this,s)}r("../utils").inherits(o,a),o.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},o.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},o.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},o.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=o},{"../utils":32,"./DataReader":18}],21:[function(r,n,i){var a=r("./ArrayReader");function o(s){a.call(this,s)}r("../utils").inherits(o,a),o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(r,n,i){var a=r("../utils"),o=r("../support"),s=r("./ArrayReader"),l=r("./StringReader"),c=r("./NodeBufferReader"),d=r("./Uint8ArrayReader");n.exports=function(f){var m=a.getTypeOf(f);return a.checkSupport(m),m!=="string"||o.uint8array?m==="nodebuffer"?new c(f):o.uint8array?new d(a.transformTo("uint8array",f)):new s(a.transformTo("array",f)):new l(f)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,n,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,n,i){var a=r("./GenericWorker"),o=r("../utils");function s(l){a.call(this,"ConvertWorker to "+l),this.destType=l}o.inherits(s,a),s.prototype.processChunk=function(l){this.push({data:o.transformTo(this.destType,l.data),meta:l.meta})},n.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(r,n,i){var a=r("./GenericWorker"),o=r("../crc32");function s(){a.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(s,a),s.prototype.processChunk=function(l){this.streamInfo.crc32=o(l.data,this.streamInfo.crc32||0),this.push(l)},n.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,n,i){var a=r("../utils"),o=r("./GenericWorker");function s(l){o.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}a.inherits(s,o),s.prototype.processChunk=function(l){if(l){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+l.data.length}o.prototype.processChunk.call(this,l)},n.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(r,n,i){var a=r("../utils"),o=r("./GenericWorker");function s(l){o.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(d){c.dataIsReady=!0,c.data=d,c.max=d&&d.length||0,c.type=a.getTypeOf(d),c.isPaused||c._tickAndRepeat()},function(d){c.error(d)})}a.inherits(s,o),s.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,a.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(a.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,c);break;case"uint8array":l=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":l=this.data.slice(this.index,c)}return this.index=c,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(r,n,i){function a(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}a.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,s){return this._listeners[o].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,s){if(this._listeners[o])for(var l=0;l<this._listeners[o].length;l++)this._listeners[o][l].call(this,s)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var s=this;return o.on("data",function(l){s.processChunk(l)}),o.on("end",function(){s.end()}),o.on("error",function(l){s.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,s){return this.extraStreamInfo[o]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},n.exports=a},{}],29:[function(r,n,i){var a=r("../utils"),o=r("./ConvertWorker"),s=r("./GenericWorker"),l=r("../base64"),c=r("../support"),d=r("../external"),f=null;if(c.nodestream)try{f=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function m(b,v){return new d.Promise(function(A,y){var T=[],E=b._internalType,w=b._outputType,x=b._mimeType;b.on("data",function(D,B){T.push(D),v&&v(B)}).on("error",function(D){T=[],y(D)}).on("end",function(){try{var D=(function(B,P,I){switch(B){case"blob":return a.newBlob(a.transformTo("arraybuffer",P),I);case"base64":return l.encode(P);default:return a.transformTo(B,P)}})(w,(function(B,P){var I,Z=0,oe=null,R=0;for(I=0;I<P.length;I++)R+=P[I].length;switch(B){case"string":return P.join("");case"array":return Array.prototype.concat.apply([],P);case"uint8array":for(oe=new Uint8Array(R),I=0;I<P.length;I++)oe.set(P[I],Z),Z+=P[I].length;return oe;case"nodebuffer":return Buffer.concat(P);default:throw new Error("concat : unsupported type '"+B+"'")}})(E,T),x);A(D)}catch(B){y(B)}T=[]}).resume()})}function p(b,v,A){var y=v;switch(v){case"blob":case"arraybuffer":y="uint8array";break;case"base64":y="string"}try{this._internalType=y,this._outputType=v,this._mimeType=A,a.checkSupport(y),this._worker=b.pipe(new o(y)),b.lock()}catch(T){this._worker=new s("error"),this._worker.error(T)}}p.prototype={accumulate:function(b){return m(this,b)},on:function(b,v){var A=this;return b==="data"?this._worker.on(b,function(y){v.call(A,y.data,y.meta)}):this._worker.on(b,function(){a.delay(v,arguments,A)}),this},resume:function(){return a.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(b){if(a.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new f(this,{objectMode:this._outputType!=="nodebuffer"},b)}},n.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,n,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var a=new ArrayBuffer(0);try{i.blob=new Blob([a],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(a),i.blob=o.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!r("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(r,n,i){for(var a=r("./utils"),o=r("./support"),s=r("./nodejsUtils"),l=r("./stream/GenericWorker"),c=new Array(256),d=0;d<256;d++)c[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;c[254]=c[254]=1;function f(){l.call(this,"utf-8 decode"),this.leftOver=null}function m(){l.call(this,"utf-8 encode")}i.utf8encode=function(p){return o.nodebuffer?s.newBufferFrom(p,"utf-8"):(function(b){var v,A,y,T,E,w=b.length,x=0;for(T=0;T<w;T++)(64512&(A=b.charCodeAt(T)))==55296&&T+1<w&&(64512&(y=b.charCodeAt(T+1)))==56320&&(A=65536+(A-55296<<10)+(y-56320),T++),x+=A<128?1:A<2048?2:A<65536?3:4;for(v=o.uint8array?new Uint8Array(x):new Array(x),T=E=0;E<x;T++)(64512&(A=b.charCodeAt(T)))==55296&&T+1<w&&(64512&(y=b.charCodeAt(T+1)))==56320&&(A=65536+(A-55296<<10)+(y-56320),T++),A<128?v[E++]=A:(A<2048?v[E++]=192|A>>>6:(A<65536?v[E++]=224|A>>>12:(v[E++]=240|A>>>18,v[E++]=128|A>>>12&63),v[E++]=128|A>>>6&63),v[E++]=128|63&A);return v})(p)},i.utf8decode=function(p){return o.nodebuffer?a.transformTo("nodebuffer",p).toString("utf-8"):(function(b){var v,A,y,T,E=b.length,w=new Array(2*E);for(v=A=0;v<E;)if((y=b[v++])<128)w[A++]=y;else if(4<(T=c[y]))w[A++]=65533,v+=T-1;else{for(y&=T===2?31:T===3?15:7;1<T&&v<E;)y=y<<6|63&b[v++],T--;1<T?w[A++]=65533:y<65536?w[A++]=y:(y-=65536,w[A++]=55296|y>>10&1023,w[A++]=56320|1023&y)}return w.length!==A&&(w.subarray?w=w.subarray(0,A):w.length=A),a.applyFromCharCode(w)})(p=a.transformTo(o.uint8array?"uint8array":"array",p))},a.inherits(f,l),f.prototype.processChunk=function(p){var b=a.transformTo(o.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var v=b;(b=new Uint8Array(v.length+this.leftOver.length)).set(this.leftOver,0),b.set(v,this.leftOver.length)}else b=this.leftOver.concat(b);this.leftOver=null}var A=(function(T,E){var w;for((E=E||T.length)>T.length&&(E=T.length),w=E-1;0<=w&&(192&T[w])==128;)w--;return w<0||w===0?E:w+c[T[w]]>E?w:E})(b),y=b;A!==b.length&&(o.uint8array?(y=b.subarray(0,A),this.leftOver=b.subarray(A,b.length)):(y=b.slice(0,A),this.leftOver=b.slice(A,b.length))),this.push({data:i.utf8decode(y),meta:p.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=f,a.inherits(m,l),m.prototype.processChunk=function(p){this.push({data:i.utf8encode(p.data),meta:p.meta})},i.Utf8EncodeWorker=m},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,n,i){var a=r("./support"),o=r("./base64"),s=r("./nodejsUtils"),l=r("./external");function c(v){return v}function d(v,A){for(var y=0;y<v.length;++y)A[y]=255&v.charCodeAt(y);return A}r("setimmediate"),i.newBlob=function(v,A){i.checkSupport("blob");try{return new Blob([v],{type:A})}catch{try{var y=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return y.append(v),y.getBlob(A)}catch{throw new Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(v,A,y){var T=[],E=0,w=v.length;if(w<=y)return String.fromCharCode.apply(null,v);for(;E<w;)A==="array"||A==="nodebuffer"?T.push(String.fromCharCode.apply(null,v.slice(E,Math.min(E+y,w)))):T.push(String.fromCharCode.apply(null,v.subarray(E,Math.min(E+y,w)))),E+=y;return T.join("")},stringifyByChar:function(v){for(var A="",y=0;y<v.length;y++)A+=String.fromCharCode(v[y]);return A},applyCanBeUsed:{uint8array:(function(){try{return a.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return a.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}})()}};function m(v){var A=65536,y=i.getTypeOf(v),T=!0;if(y==="uint8array"?T=f.applyCanBeUsed.uint8array:y==="nodebuffer"&&(T=f.applyCanBeUsed.nodebuffer),T)for(;1<A;)try{return f.stringifyByChunk(v,y,A)}catch{A=Math.floor(A/2)}return f.stringifyByChar(v)}function p(v,A){for(var y=0;y<v.length;y++)A[y]=v[y];return A}i.applyFromCharCode=m;var b={};b.string={string:c,array:function(v){return d(v,new Array(v.length))},arraybuffer:function(v){return b.string.uint8array(v).buffer},uint8array:function(v){return d(v,new Uint8Array(v.length))},nodebuffer:function(v){return d(v,s.allocBuffer(v.length))}},b.array={string:m,array:c,arraybuffer:function(v){return new Uint8Array(v).buffer},uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return s.newBufferFrom(v)}},b.arraybuffer={string:function(v){return m(new Uint8Array(v))},array:function(v){return p(new Uint8Array(v),new Array(v.byteLength))},arraybuffer:c,uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return s.newBufferFrom(new Uint8Array(v))}},b.uint8array={string:m,array:function(v){return p(v,new Array(v.length))},arraybuffer:function(v){return v.buffer},uint8array:c,nodebuffer:function(v){return s.newBufferFrom(v)}},b.nodebuffer={string:m,array:function(v){return p(v,new Array(v.length))},arraybuffer:function(v){return b.nodebuffer.uint8array(v).buffer},uint8array:function(v){return p(v,new Uint8Array(v.length))},nodebuffer:c},i.transformTo=function(v,A){if(A=A||"",!v)return A;i.checkSupport(v);var y=i.getTypeOf(A);return b[y][v](A)},i.resolve=function(v){for(var A=v.split("/"),y=[],T=0;T<A.length;T++){var E=A[T];E==="."||E===""&&T!==0&&T!==A.length-1||(E===".."?y.pop():y.push(E))}return y.join("/")},i.getTypeOf=function(v){return typeof v=="string"?"string":Object.prototype.toString.call(v)==="[object Array]"?"array":a.nodebuffer&&s.isBuffer(v)?"nodebuffer":a.uint8array&&v instanceof Uint8Array?"uint8array":a.arraybuffer&&v instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(v){if(!a[v.toLowerCase()])throw new Error(v+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(v){var A,y,T="";for(y=0;y<(v||"").length;y++)T+="\\x"+((A=v.charCodeAt(y))<16?"0":"")+A.toString(16).toUpperCase();return T},i.delay=function(v,A,y){setImmediate(function(){v.apply(y||null,A||[])})},i.inherits=function(v,A){function y(){}y.prototype=A.prototype,v.prototype=new y},i.extend=function(){var v,A,y={};for(v=0;v<arguments.length;v++)for(A in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],A)&&y[A]===void 0&&(y[A]=arguments[v][A]);return y},i.prepareContent=function(v,A,y,T,E){return l.Promise.resolve(A).then(function(w){return a.blob&&(w instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(w))!==-1)&&typeof FileReader<"u"?new l.Promise(function(x,D){var B=new FileReader;B.onload=function(P){x(P.target.result)},B.onerror=function(P){D(P.target.error)},B.readAsArrayBuffer(w)}):w}).then(function(w){var x=i.getTypeOf(w);return x?(x==="arraybuffer"?w=i.transformTo("uint8array",w):x==="string"&&(E?w=o.decode(w):y&&T!==!0&&(w=(function(D){return d(D,a.uint8array?new Uint8Array(D.length):new Array(D.length))})(w))),w):l.Promise.reject(new Error("Can't read the data of '"+v+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,n,i){var a=r("./reader/readerFor"),o=r("./utils"),s=r("./signature"),l=r("./zipEntry"),c=r("./support");function d(f){this.files=[],this.loadOptions=f}d.prototype={checkSignature:function(f){if(!this.reader.readAndCheckSignature(f)){this.reader.index-=4;var m=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(m)+", expected "+o.pretty(f)+")")}},isSignature:function(f,m){var p=this.reader.index;this.reader.setIndex(f);var b=this.reader.readString(4)===m;return this.reader.setIndex(p),b},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var f=this.reader.readData(this.zipCommentLength),m=c.uint8array?"uint8array":"array",p=o.transformTo(m,f);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var f,m,p,b=this.zip64EndOfCentralSize-44;0<b;)f=this.reader.readInt(2),m=this.reader.readInt(4),p=this.reader.readData(m),this.zip64ExtensibleData[f]={id:f,length:m,value:p}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var f,m;for(f=0;f<this.files.length;f++)m=this.files[f],this.reader.setIndex(m.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),m.readLocalPart(this.reader),m.handleUTF8(),m.processAttributes()},readCentralDir:function(){var f;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(f=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(f);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var f=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(f<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(f);var m=f;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(f=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(f),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var b=m-p;if(0<b)this.isSignature(m,s.CENTRAL_FILE_HEADER)||(this.reader.zero=b);else if(b<0)throw new Error("Corrupted zip: missing "+Math.abs(b)+" bytes.")},prepareReader:function(f){this.reader=a(f)},load:function(f){this.prepareReader(f),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},n.exports=d},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,n,i){var a=r("./reader/readerFor"),o=r("./utils"),s=r("./compressedObject"),l=r("./crc32"),c=r("./utf8"),d=r("./compressions"),f=r("./support");function m(p,b){this.options=p,this.loadOptions=b}m.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var b,v;if(p.skip(22),this.fileNameLength=p.readInt(2),v=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(v),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((b=(function(A){for(var y in d)if(Object.prototype.hasOwnProperty.call(d,y)&&d[y].magic===A)return d[y];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,b,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var b=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(b),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=a(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var b,v,A,y=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<y;)b=p.readInt(2),v=p.readInt(2),A=p.readData(v),this.extraFields[b]={id:b,length:v,value:A};p.setIndex(y)},handleUTF8:function(){var p=f.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var b=this.findExtraFieldUnicodePath();if(b!==null)this.fileNameStr=b;else{var v=o.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(v)}var A=this.findExtraFieldUnicodeComment();if(A!==null)this.fileCommentStr=A;else{var y=o.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(y)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var b=a(p.value);return b.readInt(1)!==1||l(this.fileName)!==b.readInt(4)?null:c.utf8decode(b.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var b=a(p.value);return b.readInt(1)!==1||l(this.fileComment)!==b.readInt(4)?null:c.utf8decode(b.readData(p.length-5))}return null}},n.exports=m},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,n,i){function a(b,v,A){this.name=b,this.dir=A.dir,this.date=A.date,this.comment=A.comment,this.unixPermissions=A.unixPermissions,this.dosPermissions=A.dosPermissions,this._data=v,this._dataBinary=A.binary,this.options={compression:A.compression,compressionOptions:A.compressionOptions}}var o=r("./stream/StreamHelper"),s=r("./stream/DataWorker"),l=r("./utf8"),c=r("./compressedObject"),d=r("./stream/GenericWorker");a.prototype={internalStream:function(b){var v=null,A="string";try{if(!b)throw new Error("No output type specified.");var y=(A=b.toLowerCase())==="string"||A==="text";A!=="binarystring"&&A!=="text"||(A="string"),v=this._decompressWorker();var T=!this._dataBinary;T&&!y&&(v=v.pipe(new l.Utf8EncodeWorker)),!T&&y&&(v=v.pipe(new l.Utf8DecodeWorker))}catch(E){(v=new d("error")).error(E)}return new o(v,A,"")},async:function(b,v){return this.internalStream(b).accumulate(v)},nodeStream:function(b,v){return this.internalStream(b||"nodebuffer").toNodejsStream(v)},_compressWorker:function(b,v){if(this._data instanceof c&&this._data.compression.magic===b.magic)return this._data.getCompressedWorker();var A=this._decompressWorker();return this._dataBinary||(A=A.pipe(new l.Utf8EncodeWorker)),c.createWorkerFrom(A,b,v)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof d?this._data:new s(this._data)}};for(var f=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],m=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<f.length;p++)a.prototype[f[p]]=m;n.exports=a},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,n,i){(function(a){var o,s,l=a.MutationObserver||a.WebKitMutationObserver;if(l){var c=0,d=new l(b),f=a.document.createTextNode("");d.observe(f,{characterData:!0}),o=function(){f.data=c=++c%2}}else if(a.setImmediate||a.MessageChannel===void 0)o="document"in a&&"onreadystatechange"in a.document.createElement("script")?function(){var v=a.document.createElement("script");v.onreadystatechange=function(){b(),v.onreadystatechange=null,v.parentNode.removeChild(v),v=null},a.document.documentElement.appendChild(v)}:function(){setTimeout(b,0)};else{var m=new a.MessageChannel;m.port1.onmessage=b,o=function(){m.port2.postMessage(0)}}var p=[];function b(){var v,A;s=!0;for(var y=p.length;y;){for(A=p,p=[],v=-1;++v<y;)A[v]();y=p.length}s=!1}n.exports=function(v){p.push(v)!==1||s||o()}}).call(this,typeof on<"u"?on:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,n,i){var a=r("immediate");function o(){}var s={},l=["REJECTED"],c=["FULFILLED"],d=["PENDING"];function f(y){if(typeof y!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,y!==o&&v(this,y)}function m(y,T,E){this.promise=y,typeof T=="function"&&(this.onFulfilled=T,this.callFulfilled=this.otherCallFulfilled),typeof E=="function"&&(this.onRejected=E,this.callRejected=this.otherCallRejected)}function p(y,T,E){a(function(){var w;try{w=T(E)}catch(x){return s.reject(y,x)}w===y?s.reject(y,new TypeError("Cannot resolve promise with itself")):s.resolve(y,w)})}function b(y){var T=y&&y.then;if(y&&(typeof y=="object"||typeof y=="function")&&typeof T=="function")return function(){T.apply(y,arguments)}}function v(y,T){var E=!1;function w(B){E||(E=!0,s.reject(y,B))}function x(B){E||(E=!0,s.resolve(y,B))}var D=A(function(){T(x,w)});D.status==="error"&&w(D.value)}function A(y,T){var E={};try{E.value=y(T),E.status="success"}catch(w){E.status="error",E.value=w}return E}(n.exports=f).prototype.finally=function(y){if(typeof y!="function")return this;var T=this.constructor;return this.then(function(E){return T.resolve(y()).then(function(){return E})},function(E){return T.resolve(y()).then(function(){throw E})})},f.prototype.catch=function(y){return this.then(null,y)},f.prototype.then=function(y,T){if(typeof y!="function"&&this.state===c||typeof T!="function"&&this.state===l)return this;var E=new this.constructor(o);return this.state!==d?p(E,this.state===c?y:T,this.outcome):this.queue.push(new m(E,y,T)),E},m.prototype.callFulfilled=function(y){s.resolve(this.promise,y)},m.prototype.otherCallFulfilled=function(y){p(this.promise,this.onFulfilled,y)},m.prototype.callRejected=function(y){s.reject(this.promise,y)},m.prototype.otherCallRejected=function(y){p(this.promise,this.onRejected,y)},s.resolve=function(y,T){var E=A(b,T);if(E.status==="error")return s.reject(y,E.value);var w=E.value;if(w)v(y,w);else{y.state=c,y.outcome=T;for(var x=-1,D=y.queue.length;++x<D;)y.queue[x].callFulfilled(T)}return y},s.reject=function(y,T){y.state=l,y.outcome=T;for(var E=-1,w=y.queue.length;++E<w;)y.queue[E].callRejected(T);return y},f.resolve=function(y){return y instanceof this?y:s.resolve(new this(o),y)},f.reject=function(y){var T=new this(o);return s.reject(T,y)},f.all=function(y){var T=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=y.length,w=!1;if(!E)return this.resolve([]);for(var x=new Array(E),D=0,B=-1,P=new this(o);++B<E;)I(y[B],B);return P;function I(Z,oe){T.resolve(Z).then(function(R){x[oe]=R,++D!==E||w||(w=!0,s.resolve(P,x))},function(R){w||(w=!0,s.reject(P,R))})}},f.race=function(y){var T=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=y.length,w=!1;if(!E)return this.resolve([]);for(var x=-1,D=new this(o);++x<E;)B=y[x],T.resolve(B).then(function(P){w||(w=!0,s.resolve(D,P))},function(P){w||(w=!0,s.reject(D,P))});var B;return D}},{immediate:36}],38:[function(r,n,i){var a={};(0,r("./lib/utils/common").assign)(a,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),n.exports=a},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,n,i){var a=r("./zlib/deflate"),o=r("./utils/common"),s=r("./utils/strings"),l=r("./zlib/messages"),c=r("./zlib/zstream"),d=Object.prototype.toString,f=0,m=-1,p=0,b=8;function v(y){if(!(this instanceof v))return new v(y);this.options=o.assign({level:m,method:b,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},y||{});var T=this.options;T.raw&&0<T.windowBits?T.windowBits=-T.windowBits:T.gzip&&0<T.windowBits&&T.windowBits<16&&(T.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var E=a.deflateInit2(this.strm,T.level,T.method,T.windowBits,T.memLevel,T.strategy);if(E!==f)throw new Error(l[E]);if(T.header&&a.deflateSetHeader(this.strm,T.header),T.dictionary){var w;if(w=typeof T.dictionary=="string"?s.string2buf(T.dictionary):d.call(T.dictionary)==="[object ArrayBuffer]"?new Uint8Array(T.dictionary):T.dictionary,(E=a.deflateSetDictionary(this.strm,w))!==f)throw new Error(l[E]);this._dict_set=!0}}function A(y,T){var E=new v(T);if(E.push(y,!0),E.err)throw E.msg||l[E.err];return E.result}v.prototype.push=function(y,T){var E,w,x=this.strm,D=this.options.chunkSize;if(this.ended)return!1;w=T===~~T?T:T===!0?4:0,typeof y=="string"?x.input=s.string2buf(y):d.call(y)==="[object ArrayBuffer]"?x.input=new Uint8Array(y):x.input=y,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new o.Buf8(D),x.next_out=0,x.avail_out=D),(E=a.deflate(x,w))!==1&&E!==f)return this.onEnd(E),!(this.ended=!0);x.avail_out!==0&&(x.avail_in!==0||w!==4&&w!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(o.shrinkBuf(x.output,x.next_out))):this.onData(o.shrinkBuf(x.output,x.next_out)))}while((0<x.avail_in||x.avail_out===0)&&E!==1);return w===4?(E=a.deflateEnd(this.strm),this.onEnd(E),this.ended=!0,E===f):w!==2||(this.onEnd(f),!(x.avail_out=0))},v.prototype.onData=function(y){this.chunks.push(y)},v.prototype.onEnd=function(y){y===f&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},i.Deflate=v,i.deflate=A,i.deflateRaw=function(y,T){return(T=T||{}).raw=!0,A(y,T)},i.gzip=function(y,T){return(T=T||{}).gzip=!0,A(y,T)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,n,i){var a=r("./zlib/inflate"),o=r("./utils/common"),s=r("./utils/strings"),l=r("./zlib/constants"),c=r("./zlib/messages"),d=r("./zlib/zstream"),f=r("./zlib/gzheader"),m=Object.prototype.toString;function p(v){if(!(this instanceof p))return new p(v);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},v||{});var A=this.options;A.raw&&0<=A.windowBits&&A.windowBits<16&&(A.windowBits=-A.windowBits,A.windowBits===0&&(A.windowBits=-15)),!(0<=A.windowBits&&A.windowBits<16)||v&&v.windowBits||(A.windowBits+=32),15<A.windowBits&&A.windowBits<48&&(15&A.windowBits)==0&&(A.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var y=a.inflateInit2(this.strm,A.windowBits);if(y!==l.Z_OK)throw new Error(c[y]);this.header=new f,a.inflateGetHeader(this.strm,this.header)}function b(v,A){var y=new p(A);if(y.push(v,!0),y.err)throw y.msg||c[y.err];return y.result}p.prototype.push=function(v,A){var y,T,E,w,x,D,B=this.strm,P=this.options.chunkSize,I=this.options.dictionary,Z=!1;if(this.ended)return!1;T=A===~~A?A:A===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof v=="string"?B.input=s.binstring2buf(v):m.call(v)==="[object ArrayBuffer]"?B.input=new Uint8Array(v):B.input=v,B.next_in=0,B.avail_in=B.input.length;do{if(B.avail_out===0&&(B.output=new o.Buf8(P),B.next_out=0,B.avail_out=P),(y=a.inflate(B,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&I&&(D=typeof I=="string"?s.string2buf(I):m.call(I)==="[object ArrayBuffer]"?new Uint8Array(I):I,y=a.inflateSetDictionary(this.strm,D)),y===l.Z_BUF_ERROR&&Z===!0&&(y=l.Z_OK,Z=!1),y!==l.Z_STREAM_END&&y!==l.Z_OK)return this.onEnd(y),!(this.ended=!0);B.next_out&&(B.avail_out!==0&&y!==l.Z_STREAM_END&&(B.avail_in!==0||T!==l.Z_FINISH&&T!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(E=s.utf8border(B.output,B.next_out),w=B.next_out-E,x=s.buf2string(B.output,E),B.next_out=w,B.avail_out=P-w,w&&o.arraySet(B.output,B.output,E,w,0),this.onData(x)):this.onData(o.shrinkBuf(B.output,B.next_out)))),B.avail_in===0&&B.avail_out===0&&(Z=!0)}while((0<B.avail_in||B.avail_out===0)&&y!==l.Z_STREAM_END);return y===l.Z_STREAM_END&&(T=l.Z_FINISH),T===l.Z_FINISH?(y=a.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===l.Z_OK):T!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(B.avail_out=0))},p.prototype.onData=function(v){this.chunks.push(v)},p.prototype.onEnd=function(v){v===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},i.Inflate=p,i.inflate=b,i.inflateRaw=function(v,A){return(A=A||{}).raw=!0,b(v,A)},i.ungzip=b},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,n,i){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(l){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var d=c.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var f in d)d.hasOwnProperty(f)&&(l[f]=d[f])}}return l},i.shrinkBuf=function(l,c){return l.length===c?l:l.subarray?l.subarray(0,c):(l.length=c,l)};var o={arraySet:function(l,c,d,f,m){if(c.subarray&&l.subarray)l.set(c.subarray(d,d+f),m);else for(var p=0;p<f;p++)l[m+p]=c[d+p]},flattenChunks:function(l){var c,d,f,m,p,b;for(c=f=0,d=l.length;c<d;c++)f+=l[c].length;for(b=new Uint8Array(f),c=m=0,d=l.length;c<d;c++)p=l[c],b.set(p,m),m+=p.length;return b}},s={arraySet:function(l,c,d,f,m){for(var p=0;p<f;p++)l[m+p]=c[d+p]},flattenChunks:function(l){return[].concat.apply([],l)}};i.setTyped=function(l){l?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,o)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,s))},i.setTyped(a)},{}],42:[function(r,n,i){var a=r("./common"),o=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var l=new a.Buf8(256),c=0;c<256;c++)l[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function d(f,m){if(m<65537&&(f.subarray&&s||!f.subarray&&o))return String.fromCharCode.apply(null,a.shrinkBuf(f,m));for(var p="",b=0;b<m;b++)p+=String.fromCharCode(f[b]);return p}l[254]=l[254]=1,i.string2buf=function(f){var m,p,b,v,A,y=f.length,T=0;for(v=0;v<y;v++)(64512&(p=f.charCodeAt(v)))==55296&&v+1<y&&(64512&(b=f.charCodeAt(v+1)))==56320&&(p=65536+(p-55296<<10)+(b-56320),v++),T+=p<128?1:p<2048?2:p<65536?3:4;for(m=new a.Buf8(T),v=A=0;A<T;v++)(64512&(p=f.charCodeAt(v)))==55296&&v+1<y&&(64512&(b=f.charCodeAt(v+1)))==56320&&(p=65536+(p-55296<<10)+(b-56320),v++),p<128?m[A++]=p:(p<2048?m[A++]=192|p>>>6:(p<65536?m[A++]=224|p>>>12:(m[A++]=240|p>>>18,m[A++]=128|p>>>12&63),m[A++]=128|p>>>6&63),m[A++]=128|63&p);return m},i.buf2binstring=function(f){return d(f,f.length)},i.binstring2buf=function(f){for(var m=new a.Buf8(f.length),p=0,b=m.length;p<b;p++)m[p]=f.charCodeAt(p);return m},i.buf2string=function(f,m){var p,b,v,A,y=m||f.length,T=new Array(2*y);for(p=b=0;p<y;)if((v=f[p++])<128)T[b++]=v;else if(4<(A=l[v]))T[b++]=65533,p+=A-1;else{for(v&=A===2?31:A===3?15:7;1<A&&p<y;)v=v<<6|63&f[p++],A--;1<A?T[b++]=65533:v<65536?T[b++]=v:(v-=65536,T[b++]=55296|v>>10&1023,T[b++]=56320|1023&v)}return d(T,b)},i.utf8border=function(f,m){var p;for((m=m||f.length)>f.length&&(m=f.length),p=m-1;0<=p&&(192&f[p])==128;)p--;return p<0||p===0?m:p+l[f[p]]>m?p:m}},{"./common":41}],43:[function(r,n,i){n.exports=function(a,o,s,l){for(var c=65535&a|0,d=a>>>16&65535|0,f=0;s!==0;){for(s-=f=2e3<s?2e3:s;d=d+(c=c+o[l++]|0)|0,--f;);c%=65521,d%=65521}return c|d<<16|0}},{}],44:[function(r,n,i){n.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,n,i){var a=(function(){for(var o,s=[],l=0;l<256;l++){o=l;for(var c=0;c<8;c++)o=1&o?3988292384^o>>>1:o>>>1;s[l]=o}return s})();n.exports=function(o,s,l,c){var d=a,f=c+l;o^=-1;for(var m=c;m<f;m++)o=o>>>8^d[255&(o^s[m])];return-1^o}},{}],46:[function(r,n,i){var a,o=r("../utils/common"),s=r("./trees"),l=r("./adler32"),c=r("./crc32"),d=r("./messages"),f=0,m=4,p=0,b=-2,v=-1,A=4,y=2,T=8,E=9,w=286,x=30,D=19,B=2*w+1,P=15,I=3,Z=258,oe=Z+I+1,R=42,z=113,C=1,J=2,te=3,X=4;function W(S,ie){return S.msg=d[ie],ie}function H(S){return(S<<1)-(4<S?9:0)}function ae(S){for(var ie=S.length;0<=--ie;)S[ie]=0}function K(S){var ie=S.state,N=ie.pending;N>S.avail_out&&(N=S.avail_out),N!==0&&(o.arraySet(S.output,ie.pending_buf,ie.pending_out,N,S.next_out),S.next_out+=N,ie.pending_out+=N,S.total_out+=N,S.avail_out-=N,ie.pending-=N,ie.pending===0&&(ie.pending_out=0))}function L(S,ie){s._tr_flush_block(S,0<=S.block_start?S.block_start:-1,S.strstart-S.block_start,ie),S.block_start=S.strstart,K(S.strm)}function V(S,ie){S.pending_buf[S.pending++]=ie}function Y(S,ie){S.pending_buf[S.pending++]=ie>>>8&255,S.pending_buf[S.pending++]=255&ie}function re(S,ie){var N,g,_=S.max_chain_length,M=S.strstart,G=S.prev_length,Q=S.nice_match,$=S.strstart>S.w_size-oe?S.strstart-(S.w_size-oe):0,ue=S.window,me=S.w_mask,de=S.prev,ye=S.strstart+Z,we=ue[M+G-1],Me=ue[M+G];S.prev_length>=S.good_match&&(_>>=2),Q>S.lookahead&&(Q=S.lookahead);do if(ue[(N=ie)+G]===Me&&ue[N+G-1]===we&&ue[N]===ue[M]&&ue[++N]===ue[M+1]){M+=2,N++;do;while(ue[++M]===ue[++N]&&ue[++M]===ue[++N]&&ue[++M]===ue[++N]&&ue[++M]===ue[++N]&&ue[++M]===ue[++N]&&ue[++M]===ue[++N]&&ue[++M]===ue[++N]&&ue[++M]===ue[++N]&&M<ye);if(g=Z-(ye-M),M=ye-Z,G<g){if(S.match_start=ie,Q<=(G=g))break;we=ue[M+G-1],Me=ue[M+G]}}while((ie=de[ie&me])>$&&--_!=0);return G<=S.lookahead?G:S.lookahead}function k(S){var ie,N,g,_,M,G,Q,$,ue,me,de=S.w_size;do{if(_=S.window_size-S.lookahead-S.strstart,S.strstart>=de+(de-oe)){for(o.arraySet(S.window,S.window,de,de,0),S.match_start-=de,S.strstart-=de,S.block_start-=de,ie=N=S.hash_size;g=S.head[--ie],S.head[ie]=de<=g?g-de:0,--N;);for(ie=N=de;g=S.prev[--ie],S.prev[ie]=de<=g?g-de:0,--N;);_+=de}if(S.strm.avail_in===0)break;if(G=S.strm,Q=S.window,$=S.strstart+S.lookahead,ue=_,me=void 0,me=G.avail_in,ue<me&&(me=ue),N=me===0?0:(G.avail_in-=me,o.arraySet(Q,G.input,G.next_in,me,$),G.state.wrap===1?G.adler=l(G.adler,Q,me,$):G.state.wrap===2&&(G.adler=c(G.adler,Q,me,$)),G.next_in+=me,G.total_in+=me,me),S.lookahead+=N,S.lookahead+S.insert>=I)for(M=S.strstart-S.insert,S.ins_h=S.window[M],S.ins_h=(S.ins_h<<S.hash_shift^S.window[M+1])&S.hash_mask;S.insert&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[M+I-1])&S.hash_mask,S.prev[M&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=M,M++,S.insert--,!(S.lookahead+S.insert<I)););}while(S.lookahead<oe&&S.strm.avail_in!==0)}function h(S,ie){for(var N,g;;){if(S.lookahead<oe){if(k(S),S.lookahead<oe&&ie===f)return C;if(S.lookahead===0)break}if(N=0,S.lookahead>=I&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+I-1])&S.hash_mask,N=S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart),N!==0&&S.strstart-N<=S.w_size-oe&&(S.match_length=re(S,N)),S.match_length>=I)if(g=s._tr_tally(S,S.strstart-S.match_start,S.match_length-I),S.lookahead-=S.match_length,S.match_length<=S.max_lazy_match&&S.lookahead>=I){for(S.match_length--;S.strstart++,S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+I-1])&S.hash_mask,N=S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart,--S.match_length!=0;);S.strstart++}else S.strstart+=S.match_length,S.match_length=0,S.ins_h=S.window[S.strstart],S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+1])&S.hash_mask;else g=s._tr_tally(S,0,S.window[S.strstart]),S.lookahead--,S.strstart++;if(g&&(L(S,!1),S.strm.avail_out===0))return C}return S.insert=S.strstart<I-1?S.strstart:I-1,ie===m?(L(S,!0),S.strm.avail_out===0?te:X):S.last_lit&&(L(S,!1),S.strm.avail_out===0)?C:J}function O(S,ie){for(var N,g,_;;){if(S.lookahead<oe){if(k(S),S.lookahead<oe&&ie===f)return C;if(S.lookahead===0)break}if(N=0,S.lookahead>=I&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+I-1])&S.hash_mask,N=S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart),S.prev_length=S.match_length,S.prev_match=S.match_start,S.match_length=I-1,N!==0&&S.prev_length<S.max_lazy_match&&S.strstart-N<=S.w_size-oe&&(S.match_length=re(S,N),S.match_length<=5&&(S.strategy===1||S.match_length===I&&4096<S.strstart-S.match_start)&&(S.match_length=I-1)),S.prev_length>=I&&S.match_length<=S.prev_length){for(_=S.strstart+S.lookahead-I,g=s._tr_tally(S,S.strstart-1-S.prev_match,S.prev_length-I),S.lookahead-=S.prev_length-1,S.prev_length-=2;++S.strstart<=_&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+I-1])&S.hash_mask,N=S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart),--S.prev_length!=0;);if(S.match_available=0,S.match_length=I-1,S.strstart++,g&&(L(S,!1),S.strm.avail_out===0))return C}else if(S.match_available){if((g=s._tr_tally(S,0,S.window[S.strstart-1]))&&L(S,!1),S.strstart++,S.lookahead--,S.strm.avail_out===0)return C}else S.match_available=1,S.strstart++,S.lookahead--}return S.match_available&&(g=s._tr_tally(S,0,S.window[S.strstart-1]),S.match_available=0),S.insert=S.strstart<I-1?S.strstart:I-1,ie===m?(L(S,!0),S.strm.avail_out===0?te:X):S.last_lit&&(L(S,!1),S.strm.avail_out===0)?C:J}function j(S,ie,N,g,_){this.good_length=S,this.max_lazy=ie,this.nice_length=N,this.max_chain=g,this.func=_}function U(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=T,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*B),this.dyn_dtree=new o.Buf16(2*(2*x+1)),this.bl_tree=new o.Buf16(2*(2*D+1)),ae(this.dyn_ltree),ae(this.dyn_dtree),ae(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(P+1),this.heap=new o.Buf16(2*w+1),ae(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*w+1),ae(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function F(S){var ie;return S&&S.state?(S.total_in=S.total_out=0,S.data_type=y,(ie=S.state).pending=0,ie.pending_out=0,ie.wrap<0&&(ie.wrap=-ie.wrap),ie.status=ie.wrap?R:z,S.adler=ie.wrap===2?0:1,ie.last_flush=f,s._tr_init(ie),p):W(S,b)}function q(S){var ie=F(S);return ie===p&&(function(N){N.window_size=2*N.w_size,ae(N.head),N.max_lazy_match=a[N.level].max_lazy,N.good_match=a[N.level].good_length,N.nice_match=a[N.level].nice_length,N.max_chain_length=a[N.level].max_chain,N.strstart=0,N.block_start=0,N.lookahead=0,N.insert=0,N.match_length=N.prev_length=I-1,N.match_available=0,N.ins_h=0})(S.state),ie}function ne(S,ie,N,g,_,M){if(!S)return b;var G=1;if(ie===v&&(ie=6),g<0?(G=0,g=-g):15<g&&(G=2,g-=16),_<1||E<_||N!==T||g<8||15<g||ie<0||9<ie||M<0||A<M)return W(S,b);g===8&&(g=9);var Q=new U;return(S.state=Q).strm=S,Q.wrap=G,Q.gzhead=null,Q.w_bits=g,Q.w_size=1<<Q.w_bits,Q.w_mask=Q.w_size-1,Q.hash_bits=_+7,Q.hash_size=1<<Q.hash_bits,Q.hash_mask=Q.hash_size-1,Q.hash_shift=~~((Q.hash_bits+I-1)/I),Q.window=new o.Buf8(2*Q.w_size),Q.head=new o.Buf16(Q.hash_size),Q.prev=new o.Buf16(Q.w_size),Q.lit_bufsize=1<<_+6,Q.pending_buf_size=4*Q.lit_bufsize,Q.pending_buf=new o.Buf8(Q.pending_buf_size),Q.d_buf=1*Q.lit_bufsize,Q.l_buf=3*Q.lit_bufsize,Q.level=ie,Q.strategy=M,Q.method=N,q(S)}a=[new j(0,0,0,0,function(S,ie){var N=65535;for(N>S.pending_buf_size-5&&(N=S.pending_buf_size-5);;){if(S.lookahead<=1){if(k(S),S.lookahead===0&&ie===f)return C;if(S.lookahead===0)break}S.strstart+=S.lookahead,S.lookahead=0;var g=S.block_start+N;if((S.strstart===0||S.strstart>=g)&&(S.lookahead=S.strstart-g,S.strstart=g,L(S,!1),S.strm.avail_out===0)||S.strstart-S.block_start>=S.w_size-oe&&(L(S,!1),S.strm.avail_out===0))return C}return S.insert=0,ie===m?(L(S,!0),S.strm.avail_out===0?te:X):(S.strstart>S.block_start&&(L(S,!1),S.strm.avail_out),C)}),new j(4,4,8,4,h),new j(4,5,16,8,h),new j(4,6,32,32,h),new j(4,4,16,16,O),new j(8,16,32,32,O),new j(8,16,128,128,O),new j(8,32,128,256,O),new j(32,128,258,1024,O),new j(32,258,258,4096,O)],i.deflateInit=function(S,ie){return ne(S,ie,T,15,8,0)},i.deflateInit2=ne,i.deflateReset=q,i.deflateResetKeep=F,i.deflateSetHeader=function(S,ie){return S&&S.state?S.state.wrap!==2?b:(S.state.gzhead=ie,p):b},i.deflate=function(S,ie){var N,g,_,M;if(!S||!S.state||5<ie||ie<0)return S?W(S,b):b;if(g=S.state,!S.output||!S.input&&S.avail_in!==0||g.status===666&&ie!==m)return W(S,S.avail_out===0?-5:b);if(g.strm=S,N=g.last_flush,g.last_flush=ie,g.status===R)if(g.wrap===2)S.adler=0,V(g,31),V(g,139),V(g,8),g.gzhead?(V(g,(g.gzhead.text?1:0)+(g.gzhead.hcrc?2:0)+(g.gzhead.extra?4:0)+(g.gzhead.name?8:0)+(g.gzhead.comment?16:0)),V(g,255&g.gzhead.time),V(g,g.gzhead.time>>8&255),V(g,g.gzhead.time>>16&255),V(g,g.gzhead.time>>24&255),V(g,g.level===9?2:2<=g.strategy||g.level<2?4:0),V(g,255&g.gzhead.os),g.gzhead.extra&&g.gzhead.extra.length&&(V(g,255&g.gzhead.extra.length),V(g,g.gzhead.extra.length>>8&255)),g.gzhead.hcrc&&(S.adler=c(S.adler,g.pending_buf,g.pending,0)),g.gzindex=0,g.status=69):(V(g,0),V(g,0),V(g,0),V(g,0),V(g,0),V(g,g.level===9?2:2<=g.strategy||g.level<2?4:0),V(g,3),g.status=z);else{var G=T+(g.w_bits-8<<4)<<8;G|=(2<=g.strategy||g.level<2?0:g.level<6?1:g.level===6?2:3)<<6,g.strstart!==0&&(G|=32),G+=31-G%31,g.status=z,Y(g,G),g.strstart!==0&&(Y(g,S.adler>>>16),Y(g,65535&S.adler)),S.adler=1}if(g.status===69)if(g.gzhead.extra){for(_=g.pending;g.gzindex<(65535&g.gzhead.extra.length)&&(g.pending!==g.pending_buf_size||(g.gzhead.hcrc&&g.pending>_&&(S.adler=c(S.adler,g.pending_buf,g.pending-_,_)),K(S),_=g.pending,g.pending!==g.pending_buf_size));)V(g,255&g.gzhead.extra[g.gzindex]),g.gzindex++;g.gzhead.hcrc&&g.pending>_&&(S.adler=c(S.adler,g.pending_buf,g.pending-_,_)),g.gzindex===g.gzhead.extra.length&&(g.gzindex=0,g.status=73)}else g.status=73;if(g.status===73)if(g.gzhead.name){_=g.pending;do{if(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>_&&(S.adler=c(S.adler,g.pending_buf,g.pending-_,_)),K(S),_=g.pending,g.pending===g.pending_buf_size)){M=1;break}M=g.gzindex<g.gzhead.name.length?255&g.gzhead.name.charCodeAt(g.gzindex++):0,V(g,M)}while(M!==0);g.gzhead.hcrc&&g.pending>_&&(S.adler=c(S.adler,g.pending_buf,g.pending-_,_)),M===0&&(g.gzindex=0,g.status=91)}else g.status=91;if(g.status===91)if(g.gzhead.comment){_=g.pending;do{if(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>_&&(S.adler=c(S.adler,g.pending_buf,g.pending-_,_)),K(S),_=g.pending,g.pending===g.pending_buf_size)){M=1;break}M=g.gzindex<g.gzhead.comment.length?255&g.gzhead.comment.charCodeAt(g.gzindex++):0,V(g,M)}while(M!==0);g.gzhead.hcrc&&g.pending>_&&(S.adler=c(S.adler,g.pending_buf,g.pending-_,_)),M===0&&(g.status=103)}else g.status=103;if(g.status===103&&(g.gzhead.hcrc?(g.pending+2>g.pending_buf_size&&K(S),g.pending+2<=g.pending_buf_size&&(V(g,255&S.adler),V(g,S.adler>>8&255),S.adler=0,g.status=z)):g.status=z),g.pending!==0){if(K(S),S.avail_out===0)return g.last_flush=-1,p}else if(S.avail_in===0&&H(ie)<=H(N)&&ie!==m)return W(S,-5);if(g.status===666&&S.avail_in!==0)return W(S,-5);if(S.avail_in!==0||g.lookahead!==0||ie!==f&&g.status!==666){var Q=g.strategy===2?(function($,ue){for(var me;;){if($.lookahead===0&&(k($),$.lookahead===0)){if(ue===f)return C;break}if($.match_length=0,me=s._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++,me&&(L($,!1),$.strm.avail_out===0))return C}return $.insert=0,ue===m?(L($,!0),$.strm.avail_out===0?te:X):$.last_lit&&(L($,!1),$.strm.avail_out===0)?C:J})(g,ie):g.strategy===3?(function($,ue){for(var me,de,ye,we,Me=$.window;;){if($.lookahead<=Z){if(k($),$.lookahead<=Z&&ue===f)return C;if($.lookahead===0)break}if($.match_length=0,$.lookahead>=I&&0<$.strstart&&(de=Me[ye=$.strstart-1])===Me[++ye]&&de===Me[++ye]&&de===Me[++ye]){we=$.strstart+Z;do;while(de===Me[++ye]&&de===Me[++ye]&&de===Me[++ye]&&de===Me[++ye]&&de===Me[++ye]&&de===Me[++ye]&&de===Me[++ye]&&de===Me[++ye]&&ye<we);$.match_length=Z-(we-ye),$.match_length>$.lookahead&&($.match_length=$.lookahead)}if($.match_length>=I?(me=s._tr_tally($,1,$.match_length-I),$.lookahead-=$.match_length,$.strstart+=$.match_length,$.match_length=0):(me=s._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++),me&&(L($,!1),$.strm.avail_out===0))return C}return $.insert=0,ue===m?(L($,!0),$.strm.avail_out===0?te:X):$.last_lit&&(L($,!1),$.strm.avail_out===0)?C:J})(g,ie):a[g.level].func(g,ie);if(Q!==te&&Q!==X||(g.status=666),Q===C||Q===te)return S.avail_out===0&&(g.last_flush=-1),p;if(Q===J&&(ie===1?s._tr_align(g):ie!==5&&(s._tr_stored_block(g,0,0,!1),ie===3&&(ae(g.head),g.lookahead===0&&(g.strstart=0,g.block_start=0,g.insert=0))),K(S),S.avail_out===0))return g.last_flush=-1,p}return ie!==m?p:g.wrap<=0?1:(g.wrap===2?(V(g,255&S.adler),V(g,S.adler>>8&255),V(g,S.adler>>16&255),V(g,S.adler>>24&255),V(g,255&S.total_in),V(g,S.total_in>>8&255),V(g,S.total_in>>16&255),V(g,S.total_in>>24&255)):(Y(g,S.adler>>>16),Y(g,65535&S.adler)),K(S),0<g.wrap&&(g.wrap=-g.wrap),g.pending!==0?p:1)},i.deflateEnd=function(S){var ie;return S&&S.state?(ie=S.state.status)!==R&&ie!==69&&ie!==73&&ie!==91&&ie!==103&&ie!==z&&ie!==666?W(S,b):(S.state=null,ie===z?W(S,-3):p):b},i.deflateSetDictionary=function(S,ie){var N,g,_,M,G,Q,$,ue,me=ie.length;if(!S||!S.state||(M=(N=S.state).wrap)===2||M===1&&N.status!==R||N.lookahead)return b;for(M===1&&(S.adler=l(S.adler,ie,me,0)),N.wrap=0,me>=N.w_size&&(M===0&&(ae(N.head),N.strstart=0,N.block_start=0,N.insert=0),ue=new o.Buf8(N.w_size),o.arraySet(ue,ie,me-N.w_size,N.w_size,0),ie=ue,me=N.w_size),G=S.avail_in,Q=S.next_in,$=S.input,S.avail_in=me,S.next_in=0,S.input=ie,k(N);N.lookahead>=I;){for(g=N.strstart,_=N.lookahead-(I-1);N.ins_h=(N.ins_h<<N.hash_shift^N.window[g+I-1])&N.hash_mask,N.prev[g&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=g,g++,--_;);N.strstart=g,N.lookahead=I-1,k(N)}return N.strstart+=N.lookahead,N.block_start=N.strstart,N.insert=N.lookahead,N.lookahead=0,N.match_length=N.prev_length=I-1,N.match_available=0,S.next_in=Q,S.input=$,S.avail_in=G,N.wrap=M,p},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,n,i){n.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,n,i){n.exports=function(a,o){var s,l,c,d,f,m,p,b,v,A,y,T,E,w,x,D,B,P,I,Z,oe,R,z,C,J;s=a.state,l=a.next_in,C=a.input,c=l+(a.avail_in-5),d=a.next_out,J=a.output,f=d-(o-a.avail_out),m=d+(a.avail_out-257),p=s.dmax,b=s.wsize,v=s.whave,A=s.wnext,y=s.window,T=s.hold,E=s.bits,w=s.lencode,x=s.distcode,D=(1<<s.lenbits)-1,B=(1<<s.distbits)-1;e:do{E<15&&(T+=C[l++]<<E,E+=8,T+=C[l++]<<E,E+=8),P=w[T&D];t:for(;;){if(T>>>=I=P>>>24,E-=I,(I=P>>>16&255)===0)J[d++]=65535&P;else{if(!(16&I)){if((64&I)==0){P=w[(65535&P)+(T&(1<<I)-1)];continue t}if(32&I){s.mode=12;break e}a.msg="invalid literal/length code",s.mode=30;break e}Z=65535&P,(I&=15)&&(E<I&&(T+=C[l++]<<E,E+=8),Z+=T&(1<<I)-1,T>>>=I,E-=I),E<15&&(T+=C[l++]<<E,E+=8,T+=C[l++]<<E,E+=8),P=x[T&B];r:for(;;){if(T>>>=I=P>>>24,E-=I,!(16&(I=P>>>16&255))){if((64&I)==0){P=x[(65535&P)+(T&(1<<I)-1)];continue r}a.msg="invalid distance code",s.mode=30;break e}if(oe=65535&P,E<(I&=15)&&(T+=C[l++]<<E,(E+=8)<I&&(T+=C[l++]<<E,E+=8)),p<(oe+=T&(1<<I)-1)){a.msg="invalid distance too far back",s.mode=30;break e}if(T>>>=I,E-=I,(I=d-f)<oe){if(v<(I=oe-I)&&s.sane){a.msg="invalid distance too far back",s.mode=30;break e}if(z=y,(R=0)===A){if(R+=b-I,I<Z){for(Z-=I;J[d++]=y[R++],--I;);R=d-oe,z=J}}else if(A<I){if(R+=b+A-I,(I-=A)<Z){for(Z-=I;J[d++]=y[R++],--I;);if(R=0,A<Z){for(Z-=I=A;J[d++]=y[R++],--I;);R=d-oe,z=J}}}else if(R+=A-I,I<Z){for(Z-=I;J[d++]=y[R++],--I;);R=d-oe,z=J}for(;2<Z;)J[d++]=z[R++],J[d++]=z[R++],J[d++]=z[R++],Z-=3;Z&&(J[d++]=z[R++],1<Z&&(J[d++]=z[R++]))}else{for(R=d-oe;J[d++]=J[R++],J[d++]=J[R++],J[d++]=J[R++],2<(Z-=3););Z&&(J[d++]=J[R++],1<Z&&(J[d++]=J[R++]))}break}}break}}while(l<c&&d<m);l-=Z=E>>3,T&=(1<<(E-=Z<<3))-1,a.next_in=l,a.next_out=d,a.avail_in=l<c?c-l+5:5-(l-c),a.avail_out=d<m?m-d+257:257-(d-m),s.hold=T,s.bits=E}},{}],49:[function(r,n,i){var a=r("../utils/common"),o=r("./adler32"),s=r("./crc32"),l=r("./inffast"),c=r("./inftrees"),d=1,f=2,m=0,p=-2,b=1,v=852,A=592;function y(R){return(R>>>24&255)+(R>>>8&65280)+((65280&R)<<8)+((255&R)<<24)}function T(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new a.Buf16(320),this.work=new a.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function E(R){var z;return R&&R.state?(z=R.state,R.total_in=R.total_out=z.total=0,R.msg="",z.wrap&&(R.adler=1&z.wrap),z.mode=b,z.last=0,z.havedict=0,z.dmax=32768,z.head=null,z.hold=0,z.bits=0,z.lencode=z.lendyn=new a.Buf32(v),z.distcode=z.distdyn=new a.Buf32(A),z.sane=1,z.back=-1,m):p}function w(R){var z;return R&&R.state?((z=R.state).wsize=0,z.whave=0,z.wnext=0,E(R)):p}function x(R,z){var C,J;return R&&R.state?(J=R.state,z<0?(C=0,z=-z):(C=1+(z>>4),z<48&&(z&=15)),z&&(z<8||15<z)?p:(J.window!==null&&J.wbits!==z&&(J.window=null),J.wrap=C,J.wbits=z,w(R))):p}function D(R,z){var C,J;return R?(J=new T,(R.state=J).window=null,(C=x(R,z))!==m&&(R.state=null),C):p}var B,P,I=!0;function Z(R){if(I){var z;for(B=new a.Buf32(512),P=new a.Buf32(32),z=0;z<144;)R.lens[z++]=8;for(;z<256;)R.lens[z++]=9;for(;z<280;)R.lens[z++]=7;for(;z<288;)R.lens[z++]=8;for(c(d,R.lens,0,288,B,0,R.work,{bits:9}),z=0;z<32;)R.lens[z++]=5;c(f,R.lens,0,32,P,0,R.work,{bits:5}),I=!1}R.lencode=B,R.lenbits=9,R.distcode=P,R.distbits=5}function oe(R,z,C,J){var te,X=R.state;return X.window===null&&(X.wsize=1<<X.wbits,X.wnext=0,X.whave=0,X.window=new a.Buf8(X.wsize)),J>=X.wsize?(a.arraySet(X.window,z,C-X.wsize,X.wsize,0),X.wnext=0,X.whave=X.wsize):(J<(te=X.wsize-X.wnext)&&(te=J),a.arraySet(X.window,z,C-J,te,X.wnext),(J-=te)?(a.arraySet(X.window,z,C-J,J,0),X.wnext=J,X.whave=X.wsize):(X.wnext+=te,X.wnext===X.wsize&&(X.wnext=0),X.whave<X.wsize&&(X.whave+=te))),0}i.inflateReset=w,i.inflateReset2=x,i.inflateResetKeep=E,i.inflateInit=function(R){return D(R,15)},i.inflateInit2=D,i.inflate=function(R,z){var C,J,te,X,W,H,ae,K,L,V,Y,re,k,h,O,j,U,F,q,ne,S,ie,N,g,_=0,M=new a.Buf8(4),G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!R||!R.state||!R.output||!R.input&&R.avail_in!==0)return p;(C=R.state).mode===12&&(C.mode=13),W=R.next_out,te=R.output,ae=R.avail_out,X=R.next_in,J=R.input,H=R.avail_in,K=C.hold,L=C.bits,V=H,Y=ae,ie=m;e:for(;;)switch(C.mode){case b:if(C.wrap===0){C.mode=13;break}for(;L<16;){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}if(2&C.wrap&&K===35615){M[C.check=0]=255&K,M[1]=K>>>8&255,C.check=s(C.check,M,2,0),L=K=0,C.mode=2;break}if(C.flags=0,C.head&&(C.head.done=!1),!(1&C.wrap)||(((255&K)<<8)+(K>>8))%31){R.msg="incorrect header check",C.mode=30;break}if((15&K)!=8){R.msg="unknown compression method",C.mode=30;break}if(L-=4,S=8+(15&(K>>>=4)),C.wbits===0)C.wbits=S;else if(S>C.wbits){R.msg="invalid window size",C.mode=30;break}C.dmax=1<<S,R.adler=C.check=1,C.mode=512&K?10:12,L=K=0;break;case 2:for(;L<16;){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}if(C.flags=K,(255&C.flags)!=8){R.msg="unknown compression method",C.mode=30;break}if(57344&C.flags){R.msg="unknown header flags set",C.mode=30;break}C.head&&(C.head.text=K>>8&1),512&C.flags&&(M[0]=255&K,M[1]=K>>>8&255,C.check=s(C.check,M,2,0)),L=K=0,C.mode=3;case 3:for(;L<32;){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}C.head&&(C.head.time=K),512&C.flags&&(M[0]=255&K,M[1]=K>>>8&255,M[2]=K>>>16&255,M[3]=K>>>24&255,C.check=s(C.check,M,4,0)),L=K=0,C.mode=4;case 4:for(;L<16;){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}C.head&&(C.head.xflags=255&K,C.head.os=K>>8),512&C.flags&&(M[0]=255&K,M[1]=K>>>8&255,C.check=s(C.check,M,2,0)),L=K=0,C.mode=5;case 5:if(1024&C.flags){for(;L<16;){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}C.length=K,C.head&&(C.head.extra_len=K),512&C.flags&&(M[0]=255&K,M[1]=K>>>8&255,C.check=s(C.check,M,2,0)),L=K=0}else C.head&&(C.head.extra=null);C.mode=6;case 6:if(1024&C.flags&&(H<(re=C.length)&&(re=H),re&&(C.head&&(S=C.head.extra_len-C.length,C.head.extra||(C.head.extra=new Array(C.head.extra_len)),a.arraySet(C.head.extra,J,X,re,S)),512&C.flags&&(C.check=s(C.check,J,re,X)),H-=re,X+=re,C.length-=re),C.length))break e;C.length=0,C.mode=7;case 7:if(2048&C.flags){if(H===0)break e;for(re=0;S=J[X+re++],C.head&&S&&C.length<65536&&(C.head.name+=String.fromCharCode(S)),S&&re<H;);if(512&C.flags&&(C.check=s(C.check,J,re,X)),H-=re,X+=re,S)break e}else C.head&&(C.head.name=null);C.length=0,C.mode=8;case 8:if(4096&C.flags){if(H===0)break e;for(re=0;S=J[X+re++],C.head&&S&&C.length<65536&&(C.head.comment+=String.fromCharCode(S)),S&&re<H;);if(512&C.flags&&(C.check=s(C.check,J,re,X)),H-=re,X+=re,S)break e}else C.head&&(C.head.comment=null);C.mode=9;case 9:if(512&C.flags){for(;L<16;){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}if(K!==(65535&C.check)){R.msg="header crc mismatch",C.mode=30;break}L=K=0}C.head&&(C.head.hcrc=C.flags>>9&1,C.head.done=!0),R.adler=C.check=0,C.mode=12;break;case 10:for(;L<32;){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}R.adler=C.check=y(K),L=K=0,C.mode=11;case 11:if(C.havedict===0)return R.next_out=W,R.avail_out=ae,R.next_in=X,R.avail_in=H,C.hold=K,C.bits=L,2;R.adler=C.check=1,C.mode=12;case 12:if(z===5||z===6)break e;case 13:if(C.last){K>>>=7&L,L-=7&L,C.mode=27;break}for(;L<3;){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}switch(C.last=1&K,L-=1,3&(K>>>=1)){case 0:C.mode=14;break;case 1:if(Z(C),C.mode=20,z!==6)break;K>>>=2,L-=2;break e;case 2:C.mode=17;break;case 3:R.msg="invalid block type",C.mode=30}K>>>=2,L-=2;break;case 14:for(K>>>=7&L,L-=7&L;L<32;){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}if((65535&K)!=(K>>>16^65535)){R.msg="invalid stored block lengths",C.mode=30;break}if(C.length=65535&K,L=K=0,C.mode=15,z===6)break e;case 15:C.mode=16;case 16:if(re=C.length){if(H<re&&(re=H),ae<re&&(re=ae),re===0)break e;a.arraySet(te,J,X,re,W),H-=re,X+=re,ae-=re,W+=re,C.length-=re;break}C.mode=12;break;case 17:for(;L<14;){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}if(C.nlen=257+(31&K),K>>>=5,L-=5,C.ndist=1+(31&K),K>>>=5,L-=5,C.ncode=4+(15&K),K>>>=4,L-=4,286<C.nlen||30<C.ndist){R.msg="too many length or distance symbols",C.mode=30;break}C.have=0,C.mode=18;case 18:for(;C.have<C.ncode;){for(;L<3;){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}C.lens[G[C.have++]]=7&K,K>>>=3,L-=3}for(;C.have<19;)C.lens[G[C.have++]]=0;if(C.lencode=C.lendyn,C.lenbits=7,N={bits:C.lenbits},ie=c(0,C.lens,0,19,C.lencode,0,C.work,N),C.lenbits=N.bits,ie){R.msg="invalid code lengths set",C.mode=30;break}C.have=0,C.mode=19;case 19:for(;C.have<C.nlen+C.ndist;){for(;j=(_=C.lencode[K&(1<<C.lenbits)-1])>>>16&255,U=65535&_,!((O=_>>>24)<=L);){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}if(U<16)K>>>=O,L-=O,C.lens[C.have++]=U;else{if(U===16){for(g=O+2;L<g;){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}if(K>>>=O,L-=O,C.have===0){R.msg="invalid bit length repeat",C.mode=30;break}S=C.lens[C.have-1],re=3+(3&K),K>>>=2,L-=2}else if(U===17){for(g=O+3;L<g;){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}L-=O,S=0,re=3+(7&(K>>>=O)),K>>>=3,L-=3}else{for(g=O+7;L<g;){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}L-=O,S=0,re=11+(127&(K>>>=O)),K>>>=7,L-=7}if(C.have+re>C.nlen+C.ndist){R.msg="invalid bit length repeat",C.mode=30;break}for(;re--;)C.lens[C.have++]=S}}if(C.mode===30)break;if(C.lens[256]===0){R.msg="invalid code -- missing end-of-block",C.mode=30;break}if(C.lenbits=9,N={bits:C.lenbits},ie=c(d,C.lens,0,C.nlen,C.lencode,0,C.work,N),C.lenbits=N.bits,ie){R.msg="invalid literal/lengths set",C.mode=30;break}if(C.distbits=6,C.distcode=C.distdyn,N={bits:C.distbits},ie=c(f,C.lens,C.nlen,C.ndist,C.distcode,0,C.work,N),C.distbits=N.bits,ie){R.msg="invalid distances set",C.mode=30;break}if(C.mode=20,z===6)break e;case 20:C.mode=21;case 21:if(6<=H&&258<=ae){R.next_out=W,R.avail_out=ae,R.next_in=X,R.avail_in=H,C.hold=K,C.bits=L,l(R,Y),W=R.next_out,te=R.output,ae=R.avail_out,X=R.next_in,J=R.input,H=R.avail_in,K=C.hold,L=C.bits,C.mode===12&&(C.back=-1);break}for(C.back=0;j=(_=C.lencode[K&(1<<C.lenbits)-1])>>>16&255,U=65535&_,!((O=_>>>24)<=L);){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}if(j&&(240&j)==0){for(F=O,q=j,ne=U;j=(_=C.lencode[ne+((K&(1<<F+q)-1)>>F)])>>>16&255,U=65535&_,!(F+(O=_>>>24)<=L);){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}K>>>=F,L-=F,C.back+=F}if(K>>>=O,L-=O,C.back+=O,C.length=U,j===0){C.mode=26;break}if(32&j){C.back=-1,C.mode=12;break}if(64&j){R.msg="invalid literal/length code",C.mode=30;break}C.extra=15&j,C.mode=22;case 22:if(C.extra){for(g=C.extra;L<g;){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}C.length+=K&(1<<C.extra)-1,K>>>=C.extra,L-=C.extra,C.back+=C.extra}C.was=C.length,C.mode=23;case 23:for(;j=(_=C.distcode[K&(1<<C.distbits)-1])>>>16&255,U=65535&_,!((O=_>>>24)<=L);){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}if((240&j)==0){for(F=O,q=j,ne=U;j=(_=C.distcode[ne+((K&(1<<F+q)-1)>>F)])>>>16&255,U=65535&_,!(F+(O=_>>>24)<=L);){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}K>>>=F,L-=F,C.back+=F}if(K>>>=O,L-=O,C.back+=O,64&j){R.msg="invalid distance code",C.mode=30;break}C.offset=U,C.extra=15&j,C.mode=24;case 24:if(C.extra){for(g=C.extra;L<g;){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}C.offset+=K&(1<<C.extra)-1,K>>>=C.extra,L-=C.extra,C.back+=C.extra}if(C.offset>C.dmax){R.msg="invalid distance too far back",C.mode=30;break}C.mode=25;case 25:if(ae===0)break e;if(re=Y-ae,C.offset>re){if((re=C.offset-re)>C.whave&&C.sane){R.msg="invalid distance too far back",C.mode=30;break}k=re>C.wnext?(re-=C.wnext,C.wsize-re):C.wnext-re,re>C.length&&(re=C.length),h=C.window}else h=te,k=W-C.offset,re=C.length;for(ae<re&&(re=ae),ae-=re,C.length-=re;te[W++]=h[k++],--re;);C.length===0&&(C.mode=21);break;case 26:if(ae===0)break e;te[W++]=C.length,ae--,C.mode=21;break;case 27:if(C.wrap){for(;L<32;){if(H===0)break e;H--,K|=J[X++]<<L,L+=8}if(Y-=ae,R.total_out+=Y,C.total+=Y,Y&&(R.adler=C.check=C.flags?s(C.check,te,Y,W-Y):o(C.check,te,Y,W-Y)),Y=ae,(C.flags?K:y(K))!==C.check){R.msg="incorrect data check",C.mode=30;break}L=K=0}C.mode=28;case 28:if(C.wrap&&C.flags){for(;L<32;){if(H===0)break e;H--,K+=J[X++]<<L,L+=8}if(K!==(4294967295&C.total)){R.msg="incorrect length check",C.mode=30;break}L=K=0}C.mode=29;case 29:ie=1;break e;case 30:ie=-3;break e;case 31:return-4;case 32:default:return p}return R.next_out=W,R.avail_out=ae,R.next_in=X,R.avail_in=H,C.hold=K,C.bits=L,(C.wsize||Y!==R.avail_out&&C.mode<30&&(C.mode<27||z!==4))&&oe(R,R.output,R.next_out,Y-R.avail_out)?(C.mode=31,-4):(V-=R.avail_in,Y-=R.avail_out,R.total_in+=V,R.total_out+=Y,C.total+=Y,C.wrap&&Y&&(R.adler=C.check=C.flags?s(C.check,te,Y,R.next_out-Y):o(C.check,te,Y,R.next_out-Y)),R.data_type=C.bits+(C.last?64:0)+(C.mode===12?128:0)+(C.mode===20||C.mode===15?256:0),(V==0&&Y===0||z===4)&&ie===m&&(ie=-5),ie)},i.inflateEnd=function(R){if(!R||!R.state)return p;var z=R.state;return z.window&&(z.window=null),R.state=null,m},i.inflateGetHeader=function(R,z){var C;return R&&R.state?(2&(C=R.state).wrap)==0?p:((C.head=z).done=!1,m):p},i.inflateSetDictionary=function(R,z){var C,J=z.length;return R&&R.state?(C=R.state).wrap!==0&&C.mode!==11?p:C.mode===11&&o(1,z,J,0)!==C.check?-3:oe(R,z,J,J)?(C.mode=31,-4):(C.havedict=1,m):p},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,n,i){var a=r("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];n.exports=function(d,f,m,p,b,v,A,y){var T,E,w,x,D,B,P,I,Z,oe=y.bits,R=0,z=0,C=0,J=0,te=0,X=0,W=0,H=0,ae=0,K=0,L=null,V=0,Y=new a.Buf16(16),re=new a.Buf16(16),k=null,h=0;for(R=0;R<=15;R++)Y[R]=0;for(z=0;z<p;z++)Y[f[m+z]]++;for(te=oe,J=15;1<=J&&Y[J]===0;J--);if(J<te&&(te=J),J===0)return b[v++]=20971520,b[v++]=20971520,y.bits=1,0;for(C=1;C<J&&Y[C]===0;C++);for(te<C&&(te=C),R=H=1;R<=15;R++)if(H<<=1,(H-=Y[R])<0)return-1;if(0<H&&(d===0||J!==1))return-1;for(re[1]=0,R=1;R<15;R++)re[R+1]=re[R]+Y[R];for(z=0;z<p;z++)f[m+z]!==0&&(A[re[f[m+z]]++]=z);if(B=d===0?(L=k=A,19):d===1?(L=o,V-=257,k=s,h-=257,256):(L=l,k=c,-1),R=C,D=v,W=z=K=0,w=-1,x=(ae=1<<(X=te))-1,d===1&&852<ae||d===2&&592<ae)return 1;for(;;){for(P=R-W,Z=A[z]<B?(I=0,A[z]):A[z]>B?(I=k[h+A[z]],L[V+A[z]]):(I=96,0),T=1<<R-W,C=E=1<<X;b[D+(K>>W)+(E-=T)]=P<<24|I<<16|Z|0,E!==0;);for(T=1<<R-1;K&T;)T>>=1;if(T!==0?(K&=T-1,K+=T):K=0,z++,--Y[R]==0){if(R===J)break;R=f[m+A[z]]}if(te<R&&(K&x)!==w){for(W===0&&(W=te),D+=C,H=1<<(X=R-W);X+W<J&&!((H-=Y[X+W])<=0);)X++,H<<=1;if(ae+=1<<X,d===1&&852<ae||d===2&&592<ae)return 1;b[w=K&x]=te<<24|X<<16|D-v|0}}return K!==0&&(b[D+K]=R-W<<24|64<<16|0),y.bits=te,0}},{"../utils/common":41}],51:[function(r,n,i){n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,n,i){var a=r("../utils/common"),o=0,s=1;function l(_){for(var M=_.length;0<=--M;)_[M]=0}var c=0,d=29,f=256,m=f+1+d,p=30,b=19,v=2*m+1,A=15,y=16,T=7,E=256,w=16,x=17,D=18,B=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],P=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],oe=new Array(2*(m+2));l(oe);var R=new Array(2*p);l(R);var z=new Array(512);l(z);var C=new Array(256);l(C);var J=new Array(d);l(J);var te,X,W,H=new Array(p);function ae(_,M,G,Q,$){this.static_tree=_,this.extra_bits=M,this.extra_base=G,this.elems=Q,this.max_length=$,this.has_stree=_&&_.length}function K(_,M){this.dyn_tree=_,this.max_code=0,this.stat_desc=M}function L(_){return _<256?z[_]:z[256+(_>>>7)]}function V(_,M){_.pending_buf[_.pending++]=255&M,_.pending_buf[_.pending++]=M>>>8&255}function Y(_,M,G){_.bi_valid>y-G?(_.bi_buf|=M<<_.bi_valid&65535,V(_,_.bi_buf),_.bi_buf=M>>y-_.bi_valid,_.bi_valid+=G-y):(_.bi_buf|=M<<_.bi_valid&65535,_.bi_valid+=G)}function re(_,M,G){Y(_,G[2*M],G[2*M+1])}function k(_,M){for(var G=0;G|=1&_,_>>>=1,G<<=1,0<--M;);return G>>>1}function h(_,M,G){var Q,$,ue=new Array(A+1),me=0;for(Q=1;Q<=A;Q++)ue[Q]=me=me+G[Q-1]<<1;for($=0;$<=M;$++){var de=_[2*$+1];de!==0&&(_[2*$]=k(ue[de]++,de))}}function O(_){var M;for(M=0;M<m;M++)_.dyn_ltree[2*M]=0;for(M=0;M<p;M++)_.dyn_dtree[2*M]=0;for(M=0;M<b;M++)_.bl_tree[2*M]=0;_.dyn_ltree[2*E]=1,_.opt_len=_.static_len=0,_.last_lit=_.matches=0}function j(_){8<_.bi_valid?V(_,_.bi_buf):0<_.bi_valid&&(_.pending_buf[_.pending++]=_.bi_buf),_.bi_buf=0,_.bi_valid=0}function U(_,M,G,Q){var $=2*M,ue=2*G;return _[$]<_[ue]||_[$]===_[ue]&&Q[M]<=Q[G]}function F(_,M,G){for(var Q=_.heap[G],$=G<<1;$<=_.heap_len&&($<_.heap_len&&U(M,_.heap[$+1],_.heap[$],_.depth)&&$++,!U(M,Q,_.heap[$],_.depth));)_.heap[G]=_.heap[$],G=$,$<<=1;_.heap[G]=Q}function q(_,M,G){var Q,$,ue,me,de=0;if(_.last_lit!==0)for(;Q=_.pending_buf[_.d_buf+2*de]<<8|_.pending_buf[_.d_buf+2*de+1],$=_.pending_buf[_.l_buf+de],de++,Q===0?re(_,$,M):(re(_,(ue=C[$])+f+1,M),(me=B[ue])!==0&&Y(_,$-=J[ue],me),re(_,ue=L(--Q),G),(me=P[ue])!==0&&Y(_,Q-=H[ue],me)),de<_.last_lit;);re(_,E,M)}function ne(_,M){var G,Q,$,ue=M.dyn_tree,me=M.stat_desc.static_tree,de=M.stat_desc.has_stree,ye=M.stat_desc.elems,we=-1;for(_.heap_len=0,_.heap_max=v,G=0;G<ye;G++)ue[2*G]!==0?(_.heap[++_.heap_len]=we=G,_.depth[G]=0):ue[2*G+1]=0;for(;_.heap_len<2;)ue[2*($=_.heap[++_.heap_len]=we<2?++we:0)]=1,_.depth[$]=0,_.opt_len--,de&&(_.static_len-=me[2*$+1]);for(M.max_code=we,G=_.heap_len>>1;1<=G;G--)F(_,ue,G);for($=ye;G=_.heap[1],_.heap[1]=_.heap[_.heap_len--],F(_,ue,1),Q=_.heap[1],_.heap[--_.heap_max]=G,_.heap[--_.heap_max]=Q,ue[2*$]=ue[2*G]+ue[2*Q],_.depth[$]=(_.depth[G]>=_.depth[Q]?_.depth[G]:_.depth[Q])+1,ue[2*G+1]=ue[2*Q+1]=$,_.heap[1]=$++,F(_,ue,1),2<=_.heap_len;);_.heap[--_.heap_max]=_.heap[1],(function(Me,Vt){var ui,tn,Vo,pt,ml,_d,Rn=Vt.dyn_tree,bb=Vt.max_code,CC=Vt.stat_desc.static_tree,kC=Vt.stat_desc.has_stree,NC=Vt.stat_desc.extra_bits,wb=Vt.stat_desc.extra_base,Yo=Vt.stat_desc.max_length,hl=0;for(pt=0;pt<=A;pt++)Me.bl_count[pt]=0;for(Rn[2*Me.heap[Me.heap_max]+1]=0,ui=Me.heap_max+1;ui<v;ui++)Yo<(pt=Rn[2*Rn[2*(tn=Me.heap[ui])+1]+1]+1)&&(pt=Yo,hl++),Rn[2*tn+1]=pt,bb<tn||(Me.bl_count[pt]++,ml=0,wb<=tn&&(ml=NC[tn-wb]),_d=Rn[2*tn],Me.opt_len+=_d*(pt+ml),kC&&(Me.static_len+=_d*(CC[2*tn+1]+ml)));if(hl!==0){do{for(pt=Yo-1;Me.bl_count[pt]===0;)pt--;Me.bl_count[pt]--,Me.bl_count[pt+1]+=2,Me.bl_count[Yo]--,hl-=2}while(0<hl);for(pt=Yo;pt!==0;pt--)for(tn=Me.bl_count[pt];tn!==0;)bb<(Vo=Me.heap[--ui])||(Rn[2*Vo+1]!==pt&&(Me.opt_len+=(pt-Rn[2*Vo+1])*Rn[2*Vo],Rn[2*Vo+1]=pt),tn--)}})(_,M),h(ue,we,_.bl_count)}function S(_,M,G){var Q,$,ue=-1,me=M[1],de=0,ye=7,we=4;for(me===0&&(ye=138,we=3),M[2*(G+1)+1]=65535,Q=0;Q<=G;Q++)$=me,me=M[2*(Q+1)+1],++de<ye&&$===me||(de<we?_.bl_tree[2*$]+=de:$!==0?($!==ue&&_.bl_tree[2*$]++,_.bl_tree[2*w]++):de<=10?_.bl_tree[2*x]++:_.bl_tree[2*D]++,ue=$,we=(de=0)===me?(ye=138,3):$===me?(ye=6,3):(ye=7,4))}function ie(_,M,G){var Q,$,ue=-1,me=M[1],de=0,ye=7,we=4;for(me===0&&(ye=138,we=3),Q=0;Q<=G;Q++)if($=me,me=M[2*(Q+1)+1],!(++de<ye&&$===me)){if(de<we)for(;re(_,$,_.bl_tree),--de!=0;);else $!==0?($!==ue&&(re(_,$,_.bl_tree),de--),re(_,w,_.bl_tree),Y(_,de-3,2)):de<=10?(re(_,x,_.bl_tree),Y(_,de-3,3)):(re(_,D,_.bl_tree),Y(_,de-11,7));ue=$,we=(de=0)===me?(ye=138,3):$===me?(ye=6,3):(ye=7,4)}}l(H);var N=!1;function g(_,M,G,Q){Y(_,(c<<1)+(Q?1:0),3),(function($,ue,me,de){j($),V($,me),V($,~me),a.arraySet($.pending_buf,$.window,ue,me,$.pending),$.pending+=me})(_,M,G)}i._tr_init=function(_){N||((function(){var M,G,Q,$,ue,me=new Array(A+1);for($=Q=0;$<d-1;$++)for(J[$]=Q,M=0;M<1<<B[$];M++)C[Q++]=$;for(C[Q-1]=$,$=ue=0;$<16;$++)for(H[$]=ue,M=0;M<1<<P[$];M++)z[ue++]=$;for(ue>>=7;$<p;$++)for(H[$]=ue<<7,M=0;M<1<<P[$]-7;M++)z[256+ue++]=$;for(G=0;G<=A;G++)me[G]=0;for(M=0;M<=143;)oe[2*M+1]=8,M++,me[8]++;for(;M<=255;)oe[2*M+1]=9,M++,me[9]++;for(;M<=279;)oe[2*M+1]=7,M++,me[7]++;for(;M<=287;)oe[2*M+1]=8,M++,me[8]++;for(h(oe,m+1,me),M=0;M<p;M++)R[2*M+1]=5,R[2*M]=k(M,5);te=new ae(oe,B,f+1,m,A),X=new ae(R,P,0,p,A),W=new ae(new Array(0),I,0,b,T)})(),N=!0),_.l_desc=new K(_.dyn_ltree,te),_.d_desc=new K(_.dyn_dtree,X),_.bl_desc=new K(_.bl_tree,W),_.bi_buf=0,_.bi_valid=0,O(_)},i._tr_stored_block=g,i._tr_flush_block=function(_,M,G,Q){var $,ue,me=0;0<_.level?(_.strm.data_type===2&&(_.strm.data_type=(function(de){var ye,we=4093624447;for(ye=0;ye<=31;ye++,we>>>=1)if(1&we&&de.dyn_ltree[2*ye]!==0)return o;if(de.dyn_ltree[18]!==0||de.dyn_ltree[20]!==0||de.dyn_ltree[26]!==0)return s;for(ye=32;ye<f;ye++)if(de.dyn_ltree[2*ye]!==0)return s;return o})(_)),ne(_,_.l_desc),ne(_,_.d_desc),me=(function(de){var ye;for(S(de,de.dyn_ltree,de.l_desc.max_code),S(de,de.dyn_dtree,de.d_desc.max_code),ne(de,de.bl_desc),ye=b-1;3<=ye&&de.bl_tree[2*Z[ye]+1]===0;ye--);return de.opt_len+=3*(ye+1)+5+5+4,ye})(_),$=_.opt_len+3+7>>>3,(ue=_.static_len+3+7>>>3)<=$&&($=ue)):$=ue=G+5,G+4<=$&&M!==-1?g(_,M,G,Q):_.strategy===4||ue===$?(Y(_,2+(Q?1:0),3),q(_,oe,R)):(Y(_,4+(Q?1:0),3),(function(de,ye,we,Me){var Vt;for(Y(de,ye-257,5),Y(de,we-1,5),Y(de,Me-4,4),Vt=0;Vt<Me;Vt++)Y(de,de.bl_tree[2*Z[Vt]+1],3);ie(de,de.dyn_ltree,ye-1),ie(de,de.dyn_dtree,we-1)})(_,_.l_desc.max_code+1,_.d_desc.max_code+1,me+1),q(_,_.dyn_ltree,_.dyn_dtree)),O(_),Q&&j(_)},i._tr_tally=function(_,M,G){return _.pending_buf[_.d_buf+2*_.last_lit]=M>>>8&255,_.pending_buf[_.d_buf+2*_.last_lit+1]=255&M,_.pending_buf[_.l_buf+_.last_lit]=255&G,_.last_lit++,M===0?_.dyn_ltree[2*G]++:(_.matches++,M--,_.dyn_ltree[2*(C[G]+f+1)]++,_.dyn_dtree[2*L(M)]++),_.last_lit===_.lit_bufsize-1},i._tr_align=function(_){Y(_,2,3),re(_,E,oe),(function(M){M.bi_valid===16?(V(M,M.bi_buf),M.bi_buf=0,M.bi_valid=0):8<=M.bi_valid&&(M.pending_buf[M.pending++]=255&M.bi_buf,M.bi_buf>>=8,M.bi_valid-=8)})(_)}},{"../utils/common":41}],53:[function(r,n,i){n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,n,i){(function(a){(function(o,s){if(!o.setImmediate){var l,c,d,f,m=1,p={},b=!1,v=o.document,A=Object.getPrototypeOf&&Object.getPrototypeOf(o);A=A&&A.setTimeout?A:o,l={}.toString.call(o.process)==="[object process]"?function(w){De.nextTick(function(){T(w)})}:(function(){if(o.postMessage&&!o.importScripts){var w=!0,x=o.onmessage;return o.onmessage=function(){w=!1},o.postMessage("","*"),o.onmessage=x,w}})()?(f="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",E,!1):o.attachEvent("onmessage",E),function(w){o.postMessage(f+w,"*")}):o.MessageChannel?((d=new MessageChannel).port1.onmessage=function(w){T(w.data)},function(w){d.port2.postMessage(w)}):v&&"onreadystatechange"in v.createElement("script")?(c=v.documentElement,function(w){var x=v.createElement("script");x.onreadystatechange=function(){T(w),x.onreadystatechange=null,c.removeChild(x),x=null},c.appendChild(x)}):function(w){setTimeout(T,0,w)},A.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var x=new Array(arguments.length-1),D=0;D<x.length;D++)x[D]=arguments[D+1];var B={callback:w,args:x};return p[m]=B,l(m),m++},A.clearImmediate=y}function y(w){delete p[w]}function T(w){if(b)setTimeout(T,0,w);else{var x=p[w];if(x){b=!0;try{(function(D){var B=D.callback,P=D.args;switch(P.length){case 0:B();break;case 1:B(P[0]);break;case 2:B(P[0],P[1]);break;case 3:B(P[0],P[1],P[2]);break;default:B.apply(s,P)}})(x)}finally{y(w),b=!1}}}}function E(w){w.source===o&&typeof w.data=="string"&&w.data.indexOf(f)===0&&T(+w.data.slice(f.length))}})(typeof self>"u"?a===void 0?this:a:self)}).call(this,typeof on<"u"?on:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(nm)),nm.exports}var qN=FN(),UN=Gg(qN),es={exports:{}},im,AE;function HN(){if(AE)return im;AE=1;var e={"&":"&",'"':""","'":"'","<":"<",">":">"};function t(r){return r&&r.replace?r.replace(/([&"<>'])/g,function(n,i){return e[i]}):r}return im=t,im}var OE;function zN(){if(OE)return es.exports;OE=1;var e=HN(),t=Yg().Stream,r=" ";function n(c,d){typeof d!="object"&&(d={indent:d});var f=d.stream?new t:null,m="",p=!1,b=d.indent?d.indent===!0?r:d.indent:"",v=!0;function A(x){v?De.nextTick(x):x()}function y(x,D){if(D!==void 0&&(m+=D),x&&!p&&(f=f||new t,p=!0),x&&p){var B=m;A(function(){f.emit("data",B)}),m=""}}function T(x,D){s(y,o(x,b,b?1:0),D)}function E(){if(f){var x=m;A(function(){f.emit("data",x),f.emit("end"),f.readable=!1,f.emit("close")})}}function w(x){var D=x.encoding||"UTF-8",B={version:"1.0",encoding:D};x.standalone&&(B.standalone=x.standalone),T({"?xml":{_attr:B}}),m=m.replace("/>","?>")}return A(function(){v=!1}),d.declaration&&w(d.declaration),c&&c.forEach?c.forEach(function(x,D){var B;D+1===c.length&&(B=E),T(x,B)}):T(c,E),f?(f.readable=!0,f):m}function i(){var c=Array.prototype.slice.call(arguments),d={_elem:o(c)};return d.push=function(f){if(!this.append)throw new Error("not assigned to a parent!");var m=this,p=this._elem.indent;s(this.append,o(f,p,this._elem.icount+(p?1:0)),function(){m.append(!0)})},d.close=function(f){f!==void 0&&this.push(f),this.end&&this.end()},d}function a(c,d){return new Array(d||0).join(c||"")}function o(c,d,f){f=f||0;var m=a(d,f),p,b=c,v=!1;if(typeof c=="object"){var A=Object.keys(c);if(p=A[0],b=c[p],b&&b._elem)return b._elem.name=p,b._elem.icount=f,b._elem.indent=d,b._elem.indents=m,b._elem.interrupt=b,b._elem}var y=[],T=[],E;function w(x){var D=Object.keys(x);D.forEach(function(B){y.push(l(B,x[B]))})}switch(typeof b){case"object":if(b===null)break;b._attr&&w(b._attr),b._cdata&&T.push(("<![CDATA["+b._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),b.forEach&&(E=!1,T.push(""),b.forEach(function(x){if(typeof x=="object"){var D=Object.keys(x)[0];D=="_attr"?w(x._attr):T.push(o(x,d,f+1))}else T.pop(),E=!0,T.push(e(x))}),E||T.push(""));break;default:T.push(e(b))}return{name:p,interrupt:v,attributes:y,content:T,icount:f,indents:m,indent:d}}function s(c,d,f){if(typeof d!="object")return c(!1,d);var m=d.interrupt?1:d.content.length;function p(){for(;d.content.length;){var v=d.content.shift();if(v!==void 0){if(b(v))return;s(c,v)}}c(!1,(m>1?d.indents:"")+(d.name?"</"+d.name+">":"")+(d.indent&&!f?`
|
|
50
|
+
`:"")),f&&f()}function b(v){return v.interrupt?(v.interrupt.append=c,v.interrupt.end=p,v.interrupt=!1,c(!0),!0):!1}if(c(!1,d.indents+(d.name?"<"+d.name:"")+(d.attributes.length?" "+d.attributes.join(" "):"")+(m?d.name?">":"":d.name?"/>":"")+(d.indent&&m>1?`
|
|
51
|
+
`:"")),!m)return c(!1,d.indent?`
|
|
52
|
+
`:"");b(d)||p()}function l(c,d){return c+'="'+e(d)+'"'}return es.exports=n,es.exports.element=es.exports.Element=i,es.exports}var GN=zN(),ht=Gg(GN),ts=0,am=32,WN=32,KN=(e,t)=>{let r=t.replace(/-/g,"");if(r.length!==WN)throw new Error(`Error: Cannot extract GUID from font filename: ${t}`);let i=r.replace(/(..)/g,"$1 ").trim().split(" ").map(l=>parseInt(l,16));i.reverse();let o=e.slice(ts,am).map((l,c)=>l^i[c%i.length]),s=new Uint8Array(ts+o.length+Math.max(0,e.length-am));return s.set(e.slice(0,ts)),s.set(o,ts),s.set(e.slice(am),ts+o.length),s},ds=class{format(t,r={stack:[]}){let n=t.prepForXml(r);if(n)return n;throw Error("XMLComponent did not format correctly")}},$l=class{replace(t,r,n){let i=t;return r.forEach((a,o)=>{i=i.replace(new RegExp(`{${a.fileName}}`,"g"),(n+o).toString())}),i}getMediaData(t,r){return r.Array.filter(n=>t.search(`{${n.fileName}}`)>0)}},Hg=class{replace(t,r){let n=t;for(let i of r)n=n.replace(new RegExp(`{${i.reference}-${i.instance}}`,"g"),i.numId.toString());return n}},zg=class{constructor(){ce(this,"formatter"),ce(this,"imageReplacer"),ce(this,"numberingReplacer"),this.formatter=new ds,this.imageReplacer=new $l,this.numberingReplacer=new Hg}compile(t,r,n=[]){let i=new UN,a=this.xmlifyFile(t,r),o=new Map(Object.entries(a));for(let[,s]of o)if(Array.isArray(s))for(let l of s)i.file(l.path,l.data);else i.file(s.path,s.data);for(let s of n)i.file(s.path,s.data);for(let s of t.Media.Array)s.type!=="svg"?i.file(`word/media/${s.fileName}`,s.data):(i.file(`word/media/${s.fileName}`,s.data),i.file(`word/media/${s.fallback.fileName}`,s.fallback.data));for(let{data:s,name:l,fontKey:c}of t.FontTable.fontOptionsWithKey){let[d]=l.split(".");i.file(`word/fonts/${d}.odttf`,KN(s,c))}return i}xmlifyFile(t,r){let n=t.Document.Relationships.RelationshipCount+1,i=ht(this.formatter.format(t.Document.View,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),a=t.Comments.Relationships.RelationshipCount+1,o=ht(this.formatter.format(t.Comments,{viewWrapper:{View:t.Comments,Relationships:t.Comments.Relationships},file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),s=this.imageReplacer.getMediaData(i,t.Media),l=this.imageReplacer.getMediaData(o,t.Media);return{Relationships:{data:(s.forEach((c,d)=>{t.Document.Relationships.createRelationship(n+d,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${c.fileName}`)}),t.Document.Relationships.createRelationship(t.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),ht(this.formatter.format(t.Document.Relationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{let c=this.imageReplacer.replace(i,s,n);return this.numberingReplacer.replace(c,t.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{let c=ht(this.formatter.format(t.Styles,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(c,t.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:ht(this.formatter.format(t.CoreProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:ht(this.formatter.format(t.Numbering,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:ht(this.formatter.format(t.FileRelationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:t.Headers.map((c,d)=>{let f=ht(this.formatter.format(c.View,{viewWrapper:c,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(f,t.Media).forEach((p,b)=>{c.Relationships.createRelationship(b,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${p.fileName}`)}),{data:ht(this.formatter.format(c.Relationships,{viewWrapper:c,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${d+1}.xml.rels`}}),FooterRelationships:t.Footers.map((c,d)=>{let f=ht(this.formatter.format(c.View,{viewWrapper:c,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(f,t.Media).forEach((p,b)=>{c.Relationships.createRelationship(b,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${p.fileName}`)}),{data:ht(this.formatter.format(c.Relationships,{viewWrapper:c,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${d+1}.xml.rels`}}),Headers:t.Headers.map((c,d)=>{let f=ht(this.formatter.format(c.View,{viewWrapper:c,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),m=this.imageReplacer.getMediaData(f,t.Media),p=this.imageReplacer.replace(f,m,0);return{data:this.numberingReplacer.replace(p,t.Numbering.ConcreteNumbering),path:`word/header${d+1}.xml`}}),Footers:t.Footers.map((c,d)=>{let f=ht(this.formatter.format(c.View,{viewWrapper:c,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),m=this.imageReplacer.getMediaData(f,t.Media),p=this.imageReplacer.replace(f,m,0);return{data:this.numberingReplacer.replace(p,t.Numbering.ConcreteNumbering),path:`word/footer${d+1}.xml`}}),ContentTypes:{data:ht(this.formatter.format(t.ContentTypes,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:ht(this.formatter.format(t.CustomProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:ht(this.formatter.format(t.AppProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:ht(this.formatter.format(t.FootNotes.View,{viewWrapper:t.FootNotes,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:ht(this.formatter.format(t.FootNotes.Relationships,{viewWrapper:t.FootNotes,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:ht(this.formatter.format(t.Settings,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:(()=>{let c=this.imageReplacer.replace(o,l,a);return this.numberingReplacer.replace(c,t.Numbering.ConcreteNumbering)})(),path:"word/comments.xml"},CommentsRelationships:{data:(l.forEach((c,d)=>{t.Comments.Relationships.createRelationship(a+d,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${c.fileName}`)}),ht(this.formatter.format(t.Comments.Relationships,{viewWrapper:{View:t.Comments,Relationships:t.Comments.Relationships},file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}})),path:"word/_rels/comments.xml.rels"},FontTable:{data:ht(this.formatter.format(t.FontTable.View,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:ht(this.formatter.format(t.FontTable.Relationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}},XN={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},TE=e=>e===!0?XN.WITH_2_BLANKS:e===!1?void 0:e,m0=class Pa{static pack(t,r,n){return BC(this,arguments,function*(i,a,o,s=[]){return this.compiler.compile(i,TE(o),s).generateAsync({type:a,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toString(t,r,n=[]){return Pa.pack(t,"string",r,n)}static toBuffer(t,r,n=[]){return Pa.pack(t,"nodebuffer",r,n)}static toBase64String(t,r,n=[]){return Pa.pack(t,"base64",r,n)}static toBlob(t,r,n=[]){return Pa.pack(t,"blob",r,n)}static toArrayBuffer(t,r,n=[]){return Pa.pack(t,"arraybuffer",r,n)}static toStream(t,r,n=[]){let i=new BN.Stream;return this.compiler.compile(t,TE(r),n).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(o=>{i.emit("data",o),i.emit("end")}),i}};ce(m0,"compiler",new zg);var h0=m0,H8=new ds;var z8=new ds;var G8=new $l,W8=new Uint8Array([255,254]),K8=new Uint8Array([254,255]);var m2=Ln(nc(),1),h2=Ln(MA(),1),p2=Ln(MS(),1),g2=Ln(KS(),1),y2=Ln(Tx(),1),_2=Ln(kx(),1),v2=Ln(Ya(),1);var M4=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(e=>e.charCodeAt(0))),ci={EM_SPACE:"\u2003",THIN_SPACE:"\u2009",MEDIUM_SPACE:"\u2005",THICK_SPACE:"\u2004",ZERO_WIDTH_SPACE:"\u200B"};function Wo(e){return e&&e.replace(/&#x([0-9A-Fa-f]+);/g,(t,r)=>String.fromCodePoint(parseInt(r,16))).replace(/&#(\d+);/g,(t,r)=>String.fromCodePoint(parseInt(r,10))).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}var Nx={veryverythinmathspace:.056,verythinmathspace:.111,thinmathspace:.167,mediummathspace:.222,thickmathspace:.278,verythickmathspace:.333,veryverythickmathspace:.389};function rb(e){if(!e)return"";let t=0;if(Nx[e]!==void 0)t=Nx[e];else{let r=e.match(/^(-?[\d.]+)(em|pt|px)?$/);if(r){t=parseFloat(r[1]);let n=r[2]||"em";n==="pt"?t=t/10:n==="px"&&(t=t/16)}}return t>=1.8?ci.EM_SPACE+ci.EM_SPACE:t>=.8?ci.EM_SPACE:t>=.25?ci.THICK_SPACE:t>=.19?ci.MEDIUM_SPACE:t>0?ci.THIN_SPACE:""}var tb,C4=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]]),k4=(tb=String.fromCodePoint)!==null&&tb!==void 0?tb:e=>{let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function N4(e){let t;return e>=55296&&e<=57343||e>1114111?65533:(t=C4.get(e))!==null&&t!==void 0?t:e}var Ct;(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"})(Ct||(Ct={}));var I4=32,ia;(e=>{e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ia||(ia={}));function nb(e){return e>=Ct.ZERO&&e<=Ct.NINE}function P4(e){return e>=Ct.UPPER_A&&e<=Ct.UPPER_F||e>=Ct.LOWER_A&&e<=Ct.LOWER_F}function j4(e){return e>=Ct.UPPER_A&&e<=Ct.UPPER_Z||e>=Ct.LOWER_A&&e<=Ct.LOWER_Z||nb(e)}function R4(e){return e===Ct.EQUALS||j4(e)}var Mt;(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"})(Mt||(Mt={}));var na;(e=>{e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(na||(na={}));var ib=class{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=Mt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=na.Strict}startEntity(t){this.decodeMode=t,this.state=Mt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case Mt.EntityStart:return t.charCodeAt(r)===Ct.NUM?(this.state=Mt.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=Mt.NamedEntity,this.stateNamedEntity(t,r));case Mt.NumericStart:return this.stateNumericStart(t,r);case Mt.NumericDecimal:return this.stateNumericDecimal(t,r);case Mt.NumericHex:return this.stateNumericHex(t,r);case Mt.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|I4)===Ct.LOWER_X?(this.state=Mt.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=Mt.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,i){if(r!==n){let a=n-r;this.result=this.result*i**a+Number.parseInt(t.substr(r,a),i),this.consumed+=a}}stateNumericHex(t,r){let n=r;for(;r<t.length;){let i=t.charCodeAt(r);if(nb(i)||P4(i))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){let n=r;for(;r<t.length;){let i=t.charCodeAt(r);if(nb(i))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){let n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ct.SEMI)this.consumed+=1;else if(this.decodeMode===na.Strict)return 0;return this.emitCodePoint(N4(this.result),this.consumed),this.errors&&(t!==Ct.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){let{decodeTree:n}=this,i=n[this.treeIndex],a=(i&ia.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){let o=t.charCodeAt(r);if(this.treeIndex=D4(n,i,this.treeIndex+Math.max(1,a),o),this.treeIndex<0)return this.result===0||this.decodeMode===na.Attribute&&(a===0||R4(o))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],a=(i&ia.VALUE_LENGTH)>>14,a!==0){if(o===Ct.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==na.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){let t,{result:r,decodeTree:n}=this,i=(n[r]&ia.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){let{decodeTree:i}=this;return this.emitCodePoint(r===1?i[t]&~ia.VALUE_LENGTH:i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n}end(){let t;switch(this.state){case Mt.NamedEntity:return this.result!==0&&(this.decodeMode!==na.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Mt.NumericDecimal:return this.emitNumericEntity(0,2);case Mt.NumericHex:return this.emitNumericEntity(0,3);case Mt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Mt.EntityStart:return 0}}};function L4(e){let t="",r=new ib(e,n=>t+=k4(n));return function(i,a){let o=0,s=0;for(;(s=i.indexOf("&",s))>=0;){t+=i.slice(o,s),r.startEntity(a);let c=r.write(i,s+1);if(c<0){o=s+r.end();break}o=s+c,s=c===0?o+1:o}let l=t+i.slice(o);return t="",l}}function D4(e,t,r,n){let i=(t&ia.BRANCH_LENGTH)>>7,a=t&ia.JUMP_TABLE;if(i===0)return a!==0&&n===a?r:-1;if(a){let l=n-a;return l<0||l>=i?-1:e[r+l]-1}let o=r,s=o+i-1;for(;o<=s;){let l=o+s>>>1,c=e[l];if(c<n)o=l+1;else if(c>n)s=l-1;else return e[l+i]}return-1}var B4=L4(M4);function Ix(e){return B4(e,na.Strict)}var F4=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function Px(e){let t={type:"tag",name:"",voidElement:!1,attribs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],e.charAt(e.length-2)==="/"&&(t.voidElement=!0),t.name.startsWith("!--"))){let a=e.indexOf("-->");return{type:"comment",comment:a!==-1?e.slice(4,a):""}}let n=new RegExp(F4),i=null;for(;i=n.exec(e),i!==null;)if(i[0].trim())if(i[1]){let a=i[1].trim(),o=[a,""];a.indexOf("=")>-1&&(o=a.split("=")),t.attribs[o[0]]=o[1],n.lastIndex--}else i[2]&&(t.attribs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}var q4=/<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,U4=/^\s*$/,jx=["mtext","mi","mn","mo","ms"],H4=Object.create(null);function z4(e,t){t||(t={}),t.components||(t.components=H4);let r=[],n=[],i,a=-1;return e.replace(q4,(o,s)=>{let l=o.charAt(1)!=="/",c=o.startsWith("<!--"),d=s+o.length,f=e.charAt(d),m;if(c){let p=Px(o);return a<0?(r.push(p),r):(m=n[a],m.children.push(p),r)}if(l){if(a++,i=Px(o),i.type==="tag"&&t.components[i.name]&&(i.type="component"),jx.includes(i.name)&&!i.voidElement&&f&&f!=="<"){let p=e.slice(d,e.indexOf("<",d)).trim();i.children.push({type:"text",data:t.disableDecode?p:Ix(p)})}a===0&&r.push(i),m=n[a-1],m&&m.children.push(i),n[a]=i}if((!l||i.voidElement)&&(a>-1&&(i.voidElement||i.name===o.slice(2,-1))&&(a--,i=a===-1?r:n[a]),a>-1&&jx.includes[n[a].name]&&f!=="<"&&f)){m=n[a].children;let p=e.indexOf("<",d),b=e.slice(d,p===-1?void 0:p);U4.test(b)&&(b=" "),(p>-1&&a+m.length>=0||b!==" ")&&m.push({type:"text",data:t.disableDecode?b:Ix(b)})}}),r}function G4(e){let t=[];for(let r in e)t.push(`${r}="${e[r]}"`);return t.length?` ${t.join(" ")}`:""}function Dx(e,t){switch(t.type){case"text":return e+t.data;case"tag":{let r=t.voidElement||!t.children.length&&t.attribs["xml:space"]!=="preserve";return e+=`<${t.name}${t.attribs?G4(t.attribs):""}${r?"/>":">"}`,r?e:`${e+t.children.reduce(Dx,"")}</${t.name}>`}case"comment":return e+=`<!--${t.comment}-->`,e}}function W4(e){return e.reduce((t,r)=>t+Dx("",r),"")}function In(e,t=!0){let r="";if(e.type==="text"){let n=e.data.replace(/[\u2062]|[\u200B]/g,"");t&&(n=n.trim()),r+=n}else e.children&&e.children.forEach(n=>{r+=In(n,t)});return r}var K4=/^[\u220f-\u2211]|[\u2229-\u2233]|[\u22c0-\u22c3]$/,X4=/^\u220f|\u2211|[\u2229-\u222b]|\u222e|\u222f|\u2232|\u2233|[\u22c0-\u22c3]$/;function il(e){let t=In(e);return K4.test(t)?t:!1}function al(e,t,r,n=!1,i=!1){let a=t.attribs?.stretchy,o=a==="true"?"1":a==="false"?"0":X4.test(e)?"1":"0";return{type:"tag",name:"m:nary",attribs:{},children:[{type:"tag",name:"m:naryPr",attribs:{},children:[{type:"tag",name:"m:chr",attribs:{"m:val":e},children:[]},{type:"tag",name:"m:limLoc",attribs:{"m:val":r},children:[]},{type:"tag",name:"m:grow",attribs:{"m:val":o},children:[]},{type:"tag",name:"m:subHide",attribs:{"m:val":n?"on":"off"},children:[]},{type:"tag",name:"m:supHide",attribs:{"m:val":i?"on":"off"},children:[]}]}]}}function $4(e,t){let r=t.find(n=>n.attribs?.scriptlevel)?.attribs?.scriptlevel;["0","1","2"].includes(r)&&e.children.unshift({type:"tag",name:"m:argPr",attribs:{},children:[{type:"tag",name:"m:scrLvl",attribs:{"m:val":r},children:[]}]})}function V4(e,t,r,n,i){return t.name="m:oMath",t.attribs={"xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},t.type="tag",t.children=[],t}function Y4(e,t,r,n,i){return t}function Z4(e,t,r,n,i){let a=e.attribs?.notation?.split(" ")[0]||"longdiv",o={type:"tag",name:"m:e",attribs:{},children:[]};if(a==="longdiv")t.children.push({type:"tag",name:"m:rad",attribs:{},children:[{type:"tag",name:"m:radPr",attribs:{},children:[{type:"tag",name:"m:degHide",attribs:{"m:val":"on"},children:[]}]},{type:"tag",name:"m:deg",attribs:{},children:[]},o]});else{let s={t:{type:"tag",name:"m:hideTop",attribs:{"m:val":"on"},children:[]},b:{type:"tag",name:"m:hideBot",attribs:{"m:val":"on"},children:[]},l:{type:"tag",name:"m:hideLeft",attribs:{"m:val":"on"},children:[]},r:{type:"tag",name:"m:hideRight",attribs:{"m:val":"on"},children:[]}},l={type:"tag",name:"m:borderBoxPr",attribs:{},children:[]},c={type:"tag",name:"m:borderBox",attribs:{},children:[]};switch(a){case"actuarial":case"radical":case"box":c.children=[o];break;case"left":case"roundedbox":l.children=[s.t,s.b,s.r],c.children=[l,o];break;case"right":case"circle":l.children=[s.t,s.b,s.l],c.children=[l,o];break;case"top":l.children=[s.b,s.l,s.r],c.children=[l,o];break;case"bottom":l.children=[s.t,s.l,s.r],c.children=[l,o];break;case"updiagonalstrike":l.children=[s.t,s.b,s.l,s.r,{type:"tag",name:"m:strikeBLTR",attribs:{"m:val":"on"},children:[]}],c.children=[l,o];break;case"downdiagonalstrike":l.children=[s.t,s.b,s.l,s.r,{type:"tag",name:"m:strikeTLBR",attribs:{"m:val":"on"},children:[]}],c.children=[l,o];break;case"verticalstrike":l.children=[s.t,s.b,s.l,s.r,{type:"tag",name:"m:strikeV",attribs:{"m:val":"on"},children:[]}],c.children=[l,o];break;case"horizontalstrike":l.children=[s.t,s.b,s.l,s.r,{type:"tag",name:"m:strikeH",attribs:{"m:val":"on"},children:[]}],c.children=[l,o];break;default:l.children=[s.t,s.b,s.l,s.r],c.children=[l,o];break}t.children.push(c)}return o}function J4(e,t,r,n,i){if(e.children.length!==2)return t;let a=e.children[0],o=e.children[1],s={name:"m:num",type:"tag",attribs:{},children:[]},l={name:"m:den",type:"tag",attribs:{},children:[]};i=[...i],i.unshift(e),rt(a,s,!1,!1,i),rt(o,l,!1,!1,i);let c=e.attribs?.linethickness==="0"?"noBar":"bar";t.children.push({type:"tag",name:"m:f",attribs:{},children:[{type:"tag",name:"m:fPr",attribs:{},children:[{type:"tag",name:"m:type",attribs:{"m:val":c},children:[]}]},s,l]})}function Q4(e,t,r,n,i){e.attribs?.alt&&t.children.push({type:"text",data:e.attribs.alt})}function e5(e,t,r,n,i){if(e.children.length===0)return;let a=e.children[0],o=[],s=[],l=[],c=[],d=e.children.slice(1),f=!1;d.forEach((b,v)=>{b.name==="mprescripts"?f=!0:b.name!=="none"&&(v%2?f?l.push(b):s.push(b):f?c.push(b):o.push(b))}),i=[...i],i.unshift(e);let m={children:[]};rt(a,m,!1,!1,i);let p=m.children[0];if(o.length||s.length){let b={name:"m:sub",type:"tag",attribs:{},children:[]};o.forEach(y=>rt(y,b,!1,!1,i));let v={name:"m:sup",type:"tag",attribs:{},children:[]};s.forEach(y=>rt(y,v,!1,!1,i));let A={type:"tag",attribs:{},children:[{type:"tag",name:"m:e",attribs:{},children:[p]}]};o.length&&s.length?(A.name="m:sSubSup",A.children.push(b),A.children.push(v)):o.length?(A.name="m:sSub",A.children.push(b)):(A.name="m:sSup",A.children.push(v)),p=A}if(l.length||c.length){let b={name:"m:sub",type:"tag",attribs:{},children:[]};l.forEach(y=>rt(y,b,!1,!1,i));let v={name:"m:sup",type:"tag",attribs:{},children:[]};c.forEach(y=>rt(y,v,!1,!1,i)),p={name:"m:sPre",type:"tag",attribs:{},children:[{name:"m:e",type:"tag",attribs:{},children:[p]},b,v]}}t.children.push(p)}function t5(e,t,r,n,i){if(r.isNary){let o=t.children[t.children.length-1];return o.children[o.children.length-1]}let a=e.attribs?.["data-mjx-texclass"];if(a==="INNER"&&e.children?.length>=2){let o=e.children[0],s=e.children[e.children.length-1],l=o.name==="mo"&&o.attribs?.["data-mjx-texclass"]==="OPEN",c=s.name==="mo"&&s.attribs?.["data-mjx-texclass"]==="CLOSE";if(l&&c){let d=Wo(In(o)),f=Wo(In(s)),m={name:"m:e",type:"tag",attribs:{},children:[]},p={name:"m:d",type:"tag",attribs:{},children:[{name:"m:dPr",type:"tag",attribs:{},children:[{name:"m:begChr",type:"tag",attribs:{"m:val":d},children:[]},{name:"m:endChr",type:"tag",attribs:{"m:val":f},children:[]}]},m]};t.children.push(p);let b=e.children.slice(1,-1);if(b.length>0){i=[...i],i.unshift(e);for(let v=0;v<b.length;v++)rt(b[v],m,b[v-1],b[v+1],i)}return null}}if(a==="ORD"&&e.children?.length>=3){let o=e.children[0],s=e.children[e.children.length-1],l=o.name==="mrow"&&o.attribs?.["data-mjx-texclass"]==="OPEN"&&o.children?.length===1&&o.children[0]?.name==="mo",c=s.name==="mrow"&&s.attribs?.["data-mjx-texclass"]==="CLOSE"&&s.children?.length===1&&s.children[0]?.name==="mo";if(l&&c){let d=Wo(In(o.children[0])),f=Wo(In(s.children[0])),m={name:"m:e",type:"tag",attribs:{},children:[]},p={name:"m:d",type:"tag",attribs:{},children:[{name:"m:dPr",type:"tag",attribs:{},children:[{name:"m:begChr",type:"tag",attribs:{"m:val":d},children:[]},{name:"m:endChr",type:"tag",attribs:{"m:val":f},children:[]}]},m]};t.children.push(p);let b=e.children.slice(1,-1);if(b.length>0){i=[...i],i.unshift(e);for(let v=0;v<b.length;v++)rt(b[v],m,b[v-1],b[v+1],i)}return null}}return!e.children||e.children.length===0?(t.children.push({name:"m:r",type:"tag",attribs:{},children:[{name:"m:t",type:"tag",attribs:{"xml:space":"preserve"},children:[{type:"text",data:ci.ZERO_WIDTH_SPACE}]}]}),null):t}function r5(e,t,r,n,i){let a=e.attribs?.width,o=a?rb(a):" ";o&&t.children.push({name:"m:r",type:"tag",attribs:{},children:[{name:"m:t",type:"tag",attribs:{"xml:space":"preserve"},children:[{type:"text",data:o}]}]})}function n5(e,t,r,n,i){let a={name:"m:e",type:"tag",attribs:{},children:[]};return t.children.push({name:"m:rad",type:"tag",attribs:{},children:[{name:"m:radPr",type:"tag",attribs:{},children:[{name:"m:degHide",type:"tag",attribs:{"m:val":"on"},children:[]}]},{name:"m:deg",type:"tag",attribs:{},children:[]},a]}),a}function i5(e,t,r,n,i){return t}function a5(e,t,r,n,i){if(e.children.length!==2)return t;i=[...i],i.unshift(e);let a=e.children[0],o=e.children[1],s,l=il(a);if(l&&e.attribs?.accent?.toLowerCase()!=="true"&&e.attribs?.accentunder?.toLowerCase()!=="true")s=al(l,e,"subSup",!1,!0),e.isNary=!0;else{let d={name:"m:e",type:"tag",attribs:{},children:[]};rt(a,d,!1,!1,i),s={type:"tag",name:"m:sSub",attribs:{},children:[{type:"tag",name:"m:sSubPr",attribs:{},children:[{type:"tag",name:"m:ctrlPr",attribs:{},children:[]}]},d]}}let c={name:"m:sub",type:"tag",attribs:{},children:[]};rt(o,c,!1,!1,i),s.children.push(c),e.isNary&&(s.children.push({type:"tag",name:"m:sup",attribs:{},children:[]}),s.children.push({type:"tag",name:"m:e",attribs:{},children:[]})),t.children.push(s)}function o5(e,t,r,n,i){if(e.children.length!==3)return t;i=[...i],i.unshift(e);let a=e.children[0],o=e.children[1],s=e.children[2],l,c=il(a);if(c&&e.attribs?.accent?.toLowerCase()!=="true"&&e.attribs?.accentunder?.toLowerCase()!=="true")l=al(c,e,"subSup"),e.isNary=!0;else{let m={name:"m:e",type:"tag",attribs:{},children:[]};rt(a,m,!1,!1,i),l={type:"tag",name:"m:sSubSup",attribs:{},children:[{type:"tag",name:"m:sSubSupPr",attribs:{},children:[{type:"tag",name:"m:ctrlPr",attribs:{},children:[]}]},m]}}let d={name:"m:sub",type:"tag",attribs:{},children:[]},f={name:"m:sup",type:"tag",attribs:{},children:[]};rt(o,d,!1,!1,i),rt(s,f,!1,!1,i),l.children.push(d),l.children.push(f),e.isNary&&l.children.push({type:"tag",name:"m:e",attribs:{},children:[]}),t.children.push(l)}function s5(e,t,r,n,i){if(e.children.length!==2)return t;i=[...i],i.unshift(e);let a=e.children[0],o=e.children[1],s,l=il(a);if(l&&e.attribs?.accent?.toLowerCase()!=="true"&&e.attribs?.accentunder?.toLowerCase()!=="true")s=al(l,e,"subSup",!0),e.isNary=!0,s.children.push({type:"tag",name:"m:sub"});else{let d={name:"m:e",type:"tag",attribs:{},children:[]};rt(a,d,!1,!1,i),s={type:"tag",name:"m:sSup",attribs:{},children:[{type:"tag",name:"m:sSupPr",attribs:{},children:[{type:"tag",name:"m:ctrlPr",attribs:{},children:[]}]},d]}}let c={name:"m:sup",type:"tag",attribs:{},children:[]};rt(o,c,!1,!1,i),s.children.push(c),e.isNary&&s.children.push({type:"tag",name:"m:e",attribs:{},children:[]}),t.children.push(s)}function l5(e,t,r,n,i){let a=Math.max(...e.children.map(d=>d.children.length)),o=e.attribs?.columnalign,s=[];o&&(s=o.trim().split(/\s+/));let l=[];if(s.length>0)for(let d=0;d<a;d++){let f=s[d]||s[s.length-1]||"center",m=f==="right"?"right":f==="left"?"left":"center";l.push({name:"m:mc",type:"tag",attribs:{},children:[{name:"m:mcPr",type:"tag",attribs:{},children:[{name:"m:count",type:"tag",attribs:{"m:val":"1"},children:[]},{name:"m:mcJc",type:"tag",attribs:{"m:val":m},children:[]}]}]})}else l.push({name:"m:mc",type:"tag",attribs:{},children:[{name:"m:mcPr",type:"tag",attribs:{},children:[{name:"m:count",type:"tag",attribs:{"m:val":a.toString()},children:[]},{name:"m:mcJc",type:"tag",attribs:{"m:val":"center"},children:[]}]}]});let c={name:"m:m",type:"tag",attribs:{},children:[{name:"m:mPr",type:"tag",attribs:{},children:[{name:"m:baseJc",type:"tag",attribs:{"m:val":"center"},children:[]},{name:"m:plcHide",type:"tag",attribs:{"m:val":"on"},children:[]},{name:"m:mcs",type:"tag",attribs:{},children:l}]}]};return t.children.push(c),c}function c5(e,t,r,n,i){let a={name:"m:e",type:"tag",attribs:{},children:[]};return t.children.push(a),a}function u5(e,t,r,n,i){let a={name:"m:mr",type:"tag",attribs:{},children:[]};return t.children.push(a),a}function d5(e,t,r,n,i){if(e.children.length!==3)return t;i=[...i],i.unshift(e);let a=e.children[0],o=e.children[1],s=e.children[2],l=il(a);if(l&&e.attributes?.accent?.toLowerCase()!=="true"&&e.attributes?.accentunder?.toLowerCase()!=="true"){let m=al(l,e,"undOvr");e.isNary=!0;let p={name:"m:sub",type:"tag",attribs:{},children:[]},b={name:"m:sup",type:"tag",attribs:{},children:[]};rt(o,p,!1,!1,i),rt(s,b,!1,!1,i),m.children.push(p),m.children.push(b),m.children.push({type:"tag",name:"m:e",attribs:{},children:[]}),t.children.push(m);return}let c={name:"m:e",type:"tag",attribs:{},children:[]};rt(a,c,!1,!1,i);let d={name:"m:lim",type:"tag",attribs:{},children:[]},f={name:"m:lim",type:"tag",attribs:{},children:[]};rt(o,d,!1,!1,i),rt(s,f,!1,!1,i),t.children.push({type:"tag",name:"m:limUpp",attribs:{},children:[{type:"tag",name:"m:e",attribs:{},children:[{type:"tag",name:"m:limLow",attribs:{},children:[c,d]}]},f]})}function f5(e,t,r={}){let n=e.attribs||{},i=n.mathcolor||t.find(f=>f.name==="mstyle"&&f.attribs&&f.attribs.color)?.attribs.color||"",a=n.mathsize||t.find(f=>f.name==="mstyle"&&f.attribs&&f.attribs.mathsize)?.attribs.mathsize||"",o=n.scriptlevel||t.find(f=>f.name==="mstyle"&&f.attribs&&f.attribs.scriptlevel)?.attribs.scriptlevel||"",s=n.mathbackground||t.find(f=>f.name==="mstyle"&&f.attribs&&f.attribs.mathbackground)?.attribs.mathbackground||"",l=n.mathvariant||t.find(f=>f.name==="mstyle"&&f.attribs&&f.attribs.mathvariant)?.attribs.mathvariant||"";l==="b-i"&&(l="bold-italic");let c=n.fontweight||t.find(f=>f.name==="mstyle"&&f.attribs&&f.attribs.fontweight)?.attribs.fontweight||"";c==="bold"&&!["bold","bold-italic"].includes(l)?l.includes("italic")?l="bold-italic":l="bold":c==="normal"&&["bold","bold-italic"].includes(l)&&(l.includes("italic")?l="italic":l="");let d=n.fontstyle||t.find(f=>f.name==="mstyle"&&f.attribs&&f.attribs.fontstyle)?.attribs.fontstyle||"";if(d==="italic"&&!["italic","bold-italic"].includes(l)?l.includes("bold")?l="bold-italic":l="italic":d==="normal"&&["italic","bold-italic"].includes(l)&&(l.includes("bold")?l="bold":l=""),!n.mathvariant){let f=In(e);r.variant===""&&(e.name==="mi"&&f.length>1||e.name==="mn"&&!/^\d+\.\d+$/.test(f))?l="":["mi","mn","mo"].includes(e.name)&&["italic","bold-italic"].includes(r.variant)&&(c==="bold"?l="bold-italic":l="italic")}return{color:i,variant:l,size:a,scriptlevel:o,background:s,fontstyle:d}}var m5={bold:"b",italic:"i","bold-italic":"bi"};function ol(e,t,r,n,i,a){if(r.isNary){let f=t.children[t.children.length-1];t=f.children[f.children.length-1]}let o=e.children?.find(f=>f.name==="mglyph"),s=f5(e,i,r?.style);e.style=s,e.hasMglyphChild=o;let l=Object.keys(s).every(f=>{let m=r?.style;return m&&s[f]===m[f]})&&r?.hasMglyphChild===o,c=a===r?.name||["mi","mn","mo"].includes(a)&&["mi","mn","mo"].includes(r?.name),d;if(c&&l&&!o){let f=t.children[t.children.length-1];d=f.children[f.children.length-1]}else{let f={name:"m:r",type:"tag",attribs:{},children:[]};if(s.variant){let m={name:"w:rPr",type:"tag",attribs:{},children:[]};s.variant.includes("bold")&&m.children.push({name:"w:b",type:"tag",attribs:{},children:[]}),s.variant.includes("italic")&&m.children.push({name:"w:i",type:"tag",attribs:{},children:[]}),f.children.push(m);let p={name:"m:rPr",type:"tag",attribs:{},children:[{name:"m:nor",type:"tag",attribs:{},children:[]}]};s.variant!=="italic"&&p.children.push({name:"m:sty",type:"tag",attribs:{"m:val":m5[s.variant]},children:[]}),f.children.push(p)}else o||a==="mtext"?f.children.push({name:"m:rPr",type:"tag",attribs:{},children:[{name:"m:nor",type:"tag",attribs:{},children:[]}]}):(s.fontstyle==="normal"||a==="ms"&&s.fontstyle==="")&&f.children.push({name:"m:rPr",type:"tag",attribs:{},children:[{name:"m:sty",type:"tag",attribs:{"m:val":"p"},children:[]}]});d={name:"m:t",type:"tag",attribs:{"xml:space":"preserve"},children:[]},f.children.push(d),t.children.push(f)}return d}function h5(e,t,r,n,i){return ol(e,t,r,n,i,"mtext")}function p5(e,t,r,n,i){return ol(e,t,r,n,i,"mi")}function g5(e,t,r,n,i){return ol(e,t,r,n,i,"mn")}function y5(e,t,r,n,i){if(Wo(In(e))==="\u2061")return t.children.push({name:"m:r",type:"tag",attribs:{},children:[{name:"m:t",type:"tag",attribs:{"xml:space":"preserve"},children:[{type:"text",data:ci.THIN_SPACE}]}]}),null;let o=e.attribs?.lspace;if(o){let c=rb(o);c&&t.children.push({name:"m:r",type:"tag",attribs:{},children:[{name:"m:t",type:"tag",attribs:{"xml:space":"preserve"},children:[{type:"text",data:c}]}]})}let s=ol(e,t,r,n,i,"mo"),l=e.attribs?.rspace;if(l){let c=rb(l);c&&t.children.push({name:"m:r",type:"tag",attribs:{},children:[{name:"m:t",type:"tag",attribs:{"xml:space":"preserve"},children:[{type:"text",data:c}]}]})}return e.attribs?.movablelimits==="true"&&n?.name==="mi"&&t.children.push({name:"m:r",type:"tag",attribs:{},children:[{name:"m:t",type:"tag",attribs:{"xml:space":"preserve"},children:[{type:"text",data:ci.THIN_SPACE}]}]}),s}function _5(e,t,r,n,i){return ol(e,t,r,n,i,"ms")}var Rx={"\u2190":"\u20D6","\u27F5":"\u20D6","\u2192":"\u20D7","\u27F6":"\u20D7","\xB4":"\u0301","\u02DD":"\u030B","\u02D8":"\u0306","\u02C7":"\u030C","\xB8":"\u0312","^":"\u0302","\xA8":"\u0308","\u02D9":"\u0307","`":"\u0300","-":"\u0305","\xAF":"\u0305","\u2212":"\u0305",".":"\u0307","~":"\u0303","\u02DC":"\u0303","\u02DA":"\u030A","\u20DB":"\u20DB"};function Bx(e,t,r,n,i,a){if(e.children.length!==2)return t;i=[...i],i.unshift(e);let o=e.children[0],s=e.children[1],l=il(o);if(l&&e.attribs?.accent?.toLowerCase()!=="true"&&e.attribs?.accentunder?.toLowerCase()!=="true"){let A=al(l,e,"undOvr",a==="over",a==="under");e.isNary=!0;let y={name:"m:sub",type:"tag",attribs:{},children:[]},T={name:"m:sup",type:"tag",attribs:{},children:[]};rt(s,a==="under"?y:T,!1,!1,i),A.children.push(y),A.children.push(T),A.children.push({type:"tag",name:"m:e",attribs:{},children:[]}),t.children.push(A);return}let c=Wo(In(s)),d={name:"m:e",type:"tag",attribs:{},children:[]};rt(o,d,!1,!1,i);let f=["\u0332","_","\u2581","\u23AF","\u2015","\u203E"],m=["\u0305","\xAF","\u2015","\u203E","\u2594","\u23AF"];if(a==="under"&&s.name==="mo"&&f.includes(c)||a==="over"&&s.name==="mo"&&m.includes(c)){t.children.push({type:"tag",name:"m:bar",attribs:{},children:[{type:"tag",name:"m:barPr",attribs:{},children:[{type:"tag",name:"m:pos",attribs:{"m:val":a==="under"?"bot":"top"},children:[]}]},d]});return}let p=c in Rx;if(a==="under"&&e.attribs?.accentunder?.toLowerCase()==="true"&&s.name==="mo"&&c.length<2||a==="over"&&(e.attribs?.accent?.toLowerCase()==="true"||p)&&s.name==="mo"&&c.length<2){t.children.push({type:"tag",name:"m:acc",attribs:{},children:[{type:"tag",name:"m:accPr",attribs:{},children:[{type:"tag",name:"m:chr",attribs:{"m:val":Rx[c]||c},children:[]}]},d]});return}let b=new Set(["\u23DE","\u23DF","\u2192","\u2190","\u2194","\u21D2","\u21D0","\u21D4","\u23DC","\u23DD"]);if(e.attribs?.accent?.toLowerCase()!=="true"&&e.attribs?.accentunder?.toLowerCase()!=="true"&&s.name==="mo"&&o.name==="mrow"&&c.length===1&&b.has(c)){t.children.push({type:"tag",name:"m:groupChr",attribs:{},children:[{type:"tag",name:"m:groupChrPr",attribs:{},children:[{type:"tag",name:"m:chr",attribs:{"m:val":c},children:[]},{type:"tag",name:"m:pos",attribs:{"m:val":a==="under"?"bot":"top"},children:[]},{type:"tag",name:"m:vertJc",attribs:{"m:val":a==="under"?"top":"bot"},children:[]}]},d]});return}let v={name:"m:lim",type:"tag",attribs:{},children:[]};rt(s,v,!1,!1,i),t.children.push({type:"tag",name:a==="under"?"m:limLow":"m:limUpp",attribs:{},children:[d,v]})}function v5(e,t,r,n,i){return Bx(e,t,r,n,i,"under")}function b5(e,t,r,n,i){return Bx(e,t,r,n,i,"over")}function w5(e,t,r,n,i){if(e.children.length!==2)return t;i=[...i],i.unshift(e);let a=e.children[0],o=e.children[1],s={type:"tag",name:"m:e",attribs:{},children:[]};rt(a,s,!1,!1,i);let l={type:"tag",name:"m:deg",attribs:{},children:[]};rt(o,l,!1,!1,i);let c=In(o);t.children.push({type:"tag",name:"m:rad",attribs:{},children:[{type:"tag",name:"m:radPr",attribs:{},children:[{type:"tag",name:"m:degHide",attribs:{"m:val":c.length?"off":"on"},children:[]}]},l,s]})}function E5(e,t,r,n,i){let a=e.data.replace(/[\u2062]|[\u200B]/g,"");if(i.find(o=>["mi","mn","mo"].includes(o.name)))a=a.replace(/\s/g,"");else{let o=i.find(s=>s.name==="ms");o&&(a=(o.attribs?.lquote||'"')+a+(o.attribs?.rquote||'"'))}return a.length&&(t.children.length&&t.children[t.children.length-1].type==="text"?t.children[t.children.length-1].data+=a:t.children.push({type:"text",data:a})),t}var Lx=Object.freeze({__proto__:null,math:V4,menclose:Z4,mfrac:J4,mglyph:Q4,mi:p5,mmultiscripts:e5,mn:g5,mo:y5,mover:b5,mroot:w5,mrow:t5,ms:_5,mspace:r5,msqrt:n5,mstyle:i5,msub:a5,msubsup:o5,msup:s5,mtable:l5,mtd:c5,mtext:h5,mtr:u5,munder:v5,munderover:d5,semantics:Y4,text:E5});function rt(e,t,r=!1,n=!1,i=[]){!r&&["m:deg","m:den","m:e","m:fName","m:lim","m:num","m:sub","m:sup"].includes(t.name)&&$4(t,i);let a,o=e.name||e.type;if(Lx[o]?a=Lx[o](e,t,r,n,i):(o&&o!=="root"&&console.warn(`Type not supported: ${o}`),a=t),!!a&&e.children?.length){i=[...i],i.unshift(e);for(let s=0;s<e.children.length;s++)rt(e.children[s],a,e.children[s-1],e.children[s+1],i)}}var ab=class{constructor(t,r){this.inString=t,this.inXML=z4(t,r),this.outXML=!1,this.outString=!1}run(){let t={};rt({children:this.inXML,type:"root"},t),this.outXML=t}getResult(){return this.outString=W4([this.outXML]),this.outString}},Fx=(e,t)=>{let r=new ab(e,t);return r.run(),r.getResult()};var b2=Ln(f2(),1),cl=null,ll=null,H5=p2.AllPackages.filter(e=>e!=="bussproofs"),z5={"\\oiint":"\u222F","\\oiiint":"\u2230","\\varointclockwise":"\u2232","\\ointctrclockwise":"\u2233","\\intclockwise":"\u2231","\\amalg":"\u2A3F"};function G5(e){let t=e;for(let[r,n]of Object.entries(z5)){let i=new RegExp(r.replace(/\\/g,"\\\\")+"(?![a-zA-Z])","g");t=t.replace(i,n)}return t}function W5(e){return Fx(e,{disableDecode:!0})}function K5(e){let n=((0,b2.xml2js)(e,{compact:!1,ignoreDeclaration:!0,ignoreComment:!0,captureSpacesBetweenElements:!0})?.elements??[]).find(a=>a.type==="element"&&a.name==="m:oMath");if(!n)throw new Error("Invalid OMML content: missing m:oMath element");let i=ps(n);if(!i||typeof i=="string")throw new Error("Failed to convert OMML element");if(i.rootKey!=="m:oMath")throw new Error("Failed to convert OMML element");return i}function X5(e){let t=W5(e);return K5(t)}function w2(){if(cl)return cl;let e=(0,g2.liteAdaptor)();(0,y2.RegisterHTMLHandler)(e);let t=new h2.TeX({packages:H5}),r=m2.mathjax.document("",{InputJax:t}),n=new _2.SerializedMmlVisitor;return cl={adaptor:e,document:r,visitor:n},cl}async function E2(){return cl?!0:ll?(await ll,!0):(ll=Promise.resolve().then(()=>{w2()}),await ll,ll=null,!0)}function $5(e){if(typeof e!="string")throw new Error("latex2MathMl expects a string input");let t=G5(e),{document:r,visitor:n}=w2(),i=r.convert(t,{display:!1,end:v2.STATE.CONVERT});return n.visitTree(i)}function Qu(e){let t=$5(e);return X5(t)}function ub(e){pl(e,[/\r?\n|\r/g,V5])}function V5(){return{type:"break"}}function ed(){return function(e){ub(e)}}var db={100:"\u{1F4AF}",1234:"\u{1F522}",grinning:"\u{1F600}",smiley:"\u{1F603}",smile:"\u{1F604}",grin:"\u{1F601}",laughing:"\u{1F606}",satisfied:"\u{1F606}",sweat_smile:"\u{1F605}",rofl:"\u{1F923}",joy:"\u{1F602}",slightly_smiling_face:"\u{1F642}",upside_down_face:"\u{1F643}",melting_face:"\u{1FAE0}",wink:"\u{1F609}",blush:"\u{1F60A}",innocent:"\u{1F607}",smiling_face_with_three_hearts:"\u{1F970}",heart_eyes:"\u{1F60D}",star_struck:"\u{1F929}",kissing_heart:"\u{1F618}",kissing:"\u{1F617}",relaxed:"\u263A\uFE0F",kissing_closed_eyes:"\u{1F61A}",kissing_smiling_eyes:"\u{1F619}",smiling_face_with_tear:"\u{1F972}",yum:"\u{1F60B}",stuck_out_tongue:"\u{1F61B}",stuck_out_tongue_winking_eye:"\u{1F61C}",zany_face:"\u{1F92A}",stuck_out_tongue_closed_eyes:"\u{1F61D}",money_mouth_face:"\u{1F911}",hugs:"\u{1F917}",hand_over_mouth:"\u{1F92D}",face_with_open_eyes_and_hand_over_mouth:"\u{1FAE2}",face_with_peeking_eye:"\u{1FAE3}",shushing_face:"\u{1F92B}",thinking:"\u{1F914}",saluting_face:"\u{1FAE1}",zipper_mouth_face:"\u{1F910}",raised_eyebrow:"\u{1F928}",neutral_face:"\u{1F610}",expressionless:"\u{1F611}",no_mouth:"\u{1F636}",dotted_line_face:"\u{1FAE5}",face_in_clouds:"\u{1F636}\u200D\u{1F32B}\uFE0F",smirk:"\u{1F60F}",unamused:"\u{1F612}",roll_eyes:"\u{1F644}",grimacing:"\u{1F62C}",face_exhaling:"\u{1F62E}\u200D\u{1F4A8}",lying_face:"\u{1F925}",shaking_face:"\u{1FAE8}",relieved:"\u{1F60C}",pensive:"\u{1F614}",sleepy:"\u{1F62A}",drooling_face:"\u{1F924}",sleeping:"\u{1F634}",mask:"\u{1F637}",face_with_thermometer:"\u{1F912}",face_with_head_bandage:"\u{1F915}",nauseated_face:"\u{1F922}",vomiting_face:"\u{1F92E}",sneezing_face:"\u{1F927}",hot_face:"\u{1F975}",cold_face:"\u{1F976}",woozy_face:"\u{1F974}",dizzy_face:"\u{1F635}",face_with_spiral_eyes:"\u{1F635}\u200D\u{1F4AB}",exploding_head:"\u{1F92F}",cowboy_hat_face:"\u{1F920}",partying_face:"\u{1F973}",disguised_face:"\u{1F978}",sunglasses:"\u{1F60E}",nerd_face:"\u{1F913}",monocle_face:"\u{1F9D0}",confused:"\u{1F615}",face_with_diagonal_mouth:"\u{1FAE4}",worried:"\u{1F61F}",slightly_frowning_face:"\u{1F641}",frowning_face:"\u2639\uFE0F",open_mouth:"\u{1F62E}",hushed:"\u{1F62F}",astonished:"\u{1F632}",flushed:"\u{1F633}",pleading_face:"\u{1F97A}",face_holding_back_tears:"\u{1F979}",frowning:"\u{1F626}",anguished:"\u{1F627}",fearful:"\u{1F628}",cold_sweat:"\u{1F630}",disappointed_relieved:"\u{1F625}",cry:"\u{1F622}",sob:"\u{1F62D}",scream:"\u{1F631}",confounded:"\u{1F616}",persevere:"\u{1F623}",disappointed:"\u{1F61E}",sweat:"\u{1F613}",weary:"\u{1F629}",tired_face:"\u{1F62B}",yawning_face:"\u{1F971}",triumph:"\u{1F624}",rage:"\u{1F621}",pout:"\u{1F621}",angry:"\u{1F620}",cursing_face:"\u{1F92C}",smiling_imp:"\u{1F608}",imp:"\u{1F47F}",skull:"\u{1F480}",skull_and_crossbones:"\u2620\uFE0F",hankey:"\u{1F4A9}",poop:"\u{1F4A9}",shit:"\u{1F4A9}",clown_face:"\u{1F921}",japanese_ogre:"\u{1F479}",japanese_goblin:"\u{1F47A}",ghost:"\u{1F47B}",alien:"\u{1F47D}",space_invader:"\u{1F47E}",robot:"\u{1F916}",smiley_cat:"\u{1F63A}",smile_cat:"\u{1F638}",joy_cat:"\u{1F639}",heart_eyes_cat:"\u{1F63B}",smirk_cat:"\u{1F63C}",kissing_cat:"\u{1F63D}",scream_cat:"\u{1F640}",crying_cat_face:"\u{1F63F}",pouting_cat:"\u{1F63E}",see_no_evil:"\u{1F648}",hear_no_evil:"\u{1F649}",speak_no_evil:"\u{1F64A}",love_letter:"\u{1F48C}",cupid:"\u{1F498}",gift_heart:"\u{1F49D}",sparkling_heart:"\u{1F496}",heartpulse:"\u{1F497}",heartbeat:"\u{1F493}",revolving_hearts:"\u{1F49E}",two_hearts:"\u{1F495}",heart_decoration:"\u{1F49F}",heavy_heart_exclamation:"\u2763\uFE0F",broken_heart:"\u{1F494}",heart_on_fire:"\u2764\uFE0F\u200D\u{1F525}",mending_heart:"\u2764\uFE0F\u200D\u{1FA79}",heart:"\u2764\uFE0F",pink_heart:"\u{1FA77}",orange_heart:"\u{1F9E1}",yellow_heart:"\u{1F49B}",green_heart:"\u{1F49A}",blue_heart:"\u{1F499}",light_blue_heart:"\u{1FA75}",purple_heart:"\u{1F49C}",brown_heart:"\u{1F90E}",black_heart:"\u{1F5A4}",grey_heart:"\u{1FA76}",white_heart:"\u{1F90D}",kiss:"\u{1F48B}",anger:"\u{1F4A2}",boom:"\u{1F4A5}",collision:"\u{1F4A5}",dizzy:"\u{1F4AB}",sweat_drops:"\u{1F4A6}",dash:"\u{1F4A8}",hole:"\u{1F573}\uFE0F",speech_balloon:"\u{1F4AC}",eye_speech_bubble:"\u{1F441}\uFE0F\u200D\u{1F5E8}\uFE0F",left_speech_bubble:"\u{1F5E8}\uFE0F",right_anger_bubble:"\u{1F5EF}\uFE0F",thought_balloon:"\u{1F4AD}",zzz:"\u{1F4A4}",wave:"\u{1F44B}",raised_back_of_hand:"\u{1F91A}",raised_hand_with_fingers_splayed:"\u{1F590}\uFE0F",hand:"\u270B",raised_hand:"\u270B",vulcan_salute:"\u{1F596}",rightwards_hand:"\u{1FAF1}",leftwards_hand:"\u{1FAF2}",palm_down_hand:"\u{1FAF3}",palm_up_hand:"\u{1FAF4}",leftwards_pushing_hand:"\u{1FAF7}",rightwards_pushing_hand:"\u{1FAF8}",ok_hand:"\u{1F44C}",pinched_fingers:"\u{1F90C}",pinching_hand:"\u{1F90F}",v:"\u270C\uFE0F",crossed_fingers:"\u{1F91E}",hand_with_index_finger_and_thumb_crossed:"\u{1FAF0}",love_you_gesture:"\u{1F91F}",metal:"\u{1F918}",call_me_hand:"\u{1F919}",point_left:"\u{1F448}",point_right:"\u{1F449}",point_up_2:"\u{1F446}",middle_finger:"\u{1F595}",fu:"\u{1F595}",point_down:"\u{1F447}",point_up:"\u261D\uFE0F",index_pointing_at_the_viewer:"\u{1FAF5}","+1":"\u{1F44D}",thumbsup:"\u{1F44D}","-1":"\u{1F44E}",thumbsdown:"\u{1F44E}",fist_raised:"\u270A",fist:"\u270A",fist_oncoming:"\u{1F44A}",facepunch:"\u{1F44A}",punch:"\u{1F44A}",fist_left:"\u{1F91B}",fist_right:"\u{1F91C}",clap:"\u{1F44F}",raised_hands:"\u{1F64C}",heart_hands:"\u{1FAF6}",open_hands:"\u{1F450}",palms_up_together:"\u{1F932}",handshake:"\u{1F91D}",pray:"\u{1F64F}",writing_hand:"\u270D\uFE0F",nail_care:"\u{1F485}",selfie:"\u{1F933}",muscle:"\u{1F4AA}",mechanical_arm:"\u{1F9BE}",mechanical_leg:"\u{1F9BF}",leg:"\u{1F9B5}",foot:"\u{1F9B6}",ear:"\u{1F442}",ear_with_hearing_aid:"\u{1F9BB}",nose:"\u{1F443}",brain:"\u{1F9E0}",anatomical_heart:"\u{1FAC0}",lungs:"\u{1FAC1}",tooth:"\u{1F9B7}",bone:"\u{1F9B4}",eyes:"\u{1F440}",eye:"\u{1F441}\uFE0F",tongue:"\u{1F445}",lips:"\u{1F444}",biting_lip:"\u{1FAE6}",baby:"\u{1F476}",child:"\u{1F9D2}",boy:"\u{1F466}",girl:"\u{1F467}",adult:"\u{1F9D1}",blond_haired_person:"\u{1F471}",man:"\u{1F468}",bearded_person:"\u{1F9D4}",man_beard:"\u{1F9D4}\u200D\u2642\uFE0F",woman_beard:"\u{1F9D4}\u200D\u2640\uFE0F",red_haired_man:"\u{1F468}\u200D\u{1F9B0}",curly_haired_man:"\u{1F468}\u200D\u{1F9B1}",white_haired_man:"\u{1F468}\u200D\u{1F9B3}",bald_man:"\u{1F468}\u200D\u{1F9B2}",woman:"\u{1F469}",red_haired_woman:"\u{1F469}\u200D\u{1F9B0}",person_red_hair:"\u{1F9D1}\u200D\u{1F9B0}",curly_haired_woman:"\u{1F469}\u200D\u{1F9B1}",person_curly_hair:"\u{1F9D1}\u200D\u{1F9B1}",white_haired_woman:"\u{1F469}\u200D\u{1F9B3}",person_white_hair:"\u{1F9D1}\u200D\u{1F9B3}",bald_woman:"\u{1F469}\u200D\u{1F9B2}",person_bald:"\u{1F9D1}\u200D\u{1F9B2}",blond_haired_woman:"\u{1F471}\u200D\u2640\uFE0F",blonde_woman:"\u{1F471}\u200D\u2640\uFE0F",blond_haired_man:"\u{1F471}\u200D\u2642\uFE0F",older_adult:"\u{1F9D3}",older_man:"\u{1F474}",older_woman:"\u{1F475}",frowning_person:"\u{1F64D}",frowning_man:"\u{1F64D}\u200D\u2642\uFE0F",frowning_woman:"\u{1F64D}\u200D\u2640\uFE0F",pouting_face:"\u{1F64E}",pouting_man:"\u{1F64E}\u200D\u2642\uFE0F",pouting_woman:"\u{1F64E}\u200D\u2640\uFE0F",no_good:"\u{1F645}",no_good_man:"\u{1F645}\u200D\u2642\uFE0F",ng_man:"\u{1F645}\u200D\u2642\uFE0F",no_good_woman:"\u{1F645}\u200D\u2640\uFE0F",ng_woman:"\u{1F645}\u200D\u2640\uFE0F",ok_person:"\u{1F646}",ok_man:"\u{1F646}\u200D\u2642\uFE0F",ok_woman:"\u{1F646}\u200D\u2640\uFE0F",tipping_hand_person:"\u{1F481}",information_desk_person:"\u{1F481}",tipping_hand_man:"\u{1F481}\u200D\u2642\uFE0F",sassy_man:"\u{1F481}\u200D\u2642\uFE0F",tipping_hand_woman:"\u{1F481}\u200D\u2640\uFE0F",sassy_woman:"\u{1F481}\u200D\u2640\uFE0F",raising_hand:"\u{1F64B}",raising_hand_man:"\u{1F64B}\u200D\u2642\uFE0F",raising_hand_woman:"\u{1F64B}\u200D\u2640\uFE0F",deaf_person:"\u{1F9CF}",deaf_man:"\u{1F9CF}\u200D\u2642\uFE0F",deaf_woman:"\u{1F9CF}\u200D\u2640\uFE0F",bow:"\u{1F647}",bowing_man:"\u{1F647}\u200D\u2642\uFE0F",bowing_woman:"\u{1F647}\u200D\u2640\uFE0F",facepalm:"\u{1F926}",man_facepalming:"\u{1F926}\u200D\u2642\uFE0F",woman_facepalming:"\u{1F926}\u200D\u2640\uFE0F",shrug:"\u{1F937}",man_shrugging:"\u{1F937}\u200D\u2642\uFE0F",woman_shrugging:"\u{1F937}\u200D\u2640\uFE0F",health_worker:"\u{1F9D1}\u200D\u2695\uFE0F",man_health_worker:"\u{1F468}\u200D\u2695\uFE0F",woman_health_worker:"\u{1F469}\u200D\u2695\uFE0F",student:"\u{1F9D1}\u200D\u{1F393}",man_student:"\u{1F468}\u200D\u{1F393}",woman_student:"\u{1F469}\u200D\u{1F393}",teacher:"\u{1F9D1}\u200D\u{1F3EB}",man_teacher:"\u{1F468}\u200D\u{1F3EB}",woman_teacher:"\u{1F469}\u200D\u{1F3EB}",judge:"\u{1F9D1}\u200D\u2696\uFE0F",man_judge:"\u{1F468}\u200D\u2696\uFE0F",woman_judge:"\u{1F469}\u200D\u2696\uFE0F",farmer:"\u{1F9D1}\u200D\u{1F33E}",man_farmer:"\u{1F468}\u200D\u{1F33E}",woman_farmer:"\u{1F469}\u200D\u{1F33E}",cook:"\u{1F9D1}\u200D\u{1F373}",man_cook:"\u{1F468}\u200D\u{1F373}",woman_cook:"\u{1F469}\u200D\u{1F373}",mechanic:"\u{1F9D1}\u200D\u{1F527}",man_mechanic:"\u{1F468}\u200D\u{1F527}",woman_mechanic:"\u{1F469}\u200D\u{1F527}",factory_worker:"\u{1F9D1}\u200D\u{1F3ED}",man_factory_worker:"\u{1F468}\u200D\u{1F3ED}",woman_factory_worker:"\u{1F469}\u200D\u{1F3ED}",office_worker:"\u{1F9D1}\u200D\u{1F4BC}",man_office_worker:"\u{1F468}\u200D\u{1F4BC}",woman_office_worker:"\u{1F469}\u200D\u{1F4BC}",scientist:"\u{1F9D1}\u200D\u{1F52C}",man_scientist:"\u{1F468}\u200D\u{1F52C}",woman_scientist:"\u{1F469}\u200D\u{1F52C}",technologist:"\u{1F9D1}\u200D\u{1F4BB}",man_technologist:"\u{1F468}\u200D\u{1F4BB}",woman_technologist:"\u{1F469}\u200D\u{1F4BB}",singer:"\u{1F9D1}\u200D\u{1F3A4}",man_singer:"\u{1F468}\u200D\u{1F3A4}",woman_singer:"\u{1F469}\u200D\u{1F3A4}",artist:"\u{1F9D1}\u200D\u{1F3A8}",man_artist:"\u{1F468}\u200D\u{1F3A8}",woman_artist:"\u{1F469}\u200D\u{1F3A8}",pilot:"\u{1F9D1}\u200D\u2708\uFE0F",man_pilot:"\u{1F468}\u200D\u2708\uFE0F",woman_pilot:"\u{1F469}\u200D\u2708\uFE0F",astronaut:"\u{1F9D1}\u200D\u{1F680}",man_astronaut:"\u{1F468}\u200D\u{1F680}",woman_astronaut:"\u{1F469}\u200D\u{1F680}",firefighter:"\u{1F9D1}\u200D\u{1F692}",man_firefighter:"\u{1F468}\u200D\u{1F692}",woman_firefighter:"\u{1F469}\u200D\u{1F692}",police_officer:"\u{1F46E}",cop:"\u{1F46E}",policeman:"\u{1F46E}\u200D\u2642\uFE0F",policewoman:"\u{1F46E}\u200D\u2640\uFE0F",detective:"\u{1F575}\uFE0F",male_detective:"\u{1F575}\uFE0F\u200D\u2642\uFE0F",female_detective:"\u{1F575}\uFE0F\u200D\u2640\uFE0F",guard:"\u{1F482}",guardsman:"\u{1F482}\u200D\u2642\uFE0F",guardswoman:"\u{1F482}\u200D\u2640\uFE0F",ninja:"\u{1F977}",construction_worker:"\u{1F477}",construction_worker_man:"\u{1F477}\u200D\u2642\uFE0F",construction_worker_woman:"\u{1F477}\u200D\u2640\uFE0F",person_with_crown:"\u{1FAC5}",prince:"\u{1F934}",princess:"\u{1F478}",person_with_turban:"\u{1F473}",man_with_turban:"\u{1F473}\u200D\u2642\uFE0F",woman_with_turban:"\u{1F473}\u200D\u2640\uFE0F",man_with_gua_pi_mao:"\u{1F472}",woman_with_headscarf:"\u{1F9D5}",person_in_tuxedo:"\u{1F935}",man_in_tuxedo:"\u{1F935}\u200D\u2642\uFE0F",woman_in_tuxedo:"\u{1F935}\u200D\u2640\uFE0F",person_with_veil:"\u{1F470}",man_with_veil:"\u{1F470}\u200D\u2642\uFE0F",woman_with_veil:"\u{1F470}\u200D\u2640\uFE0F",bride_with_veil:"\u{1F470}\u200D\u2640\uFE0F",pregnant_woman:"\u{1F930}",pregnant_man:"\u{1FAC3}",pregnant_person:"\u{1FAC4}",breast_feeding:"\u{1F931}",woman_feeding_baby:"\u{1F469}\u200D\u{1F37C}",man_feeding_baby:"\u{1F468}\u200D\u{1F37C}",person_feeding_baby:"\u{1F9D1}\u200D\u{1F37C}",angel:"\u{1F47C}",santa:"\u{1F385}",mrs_claus:"\u{1F936}",mx_claus:"\u{1F9D1}\u200D\u{1F384}",superhero:"\u{1F9B8}",superhero_man:"\u{1F9B8}\u200D\u2642\uFE0F",superhero_woman:"\u{1F9B8}\u200D\u2640\uFE0F",supervillain:"\u{1F9B9}",supervillain_man:"\u{1F9B9}\u200D\u2642\uFE0F",supervillain_woman:"\u{1F9B9}\u200D\u2640\uFE0F",mage:"\u{1F9D9}",mage_man:"\u{1F9D9}\u200D\u2642\uFE0F",mage_woman:"\u{1F9D9}\u200D\u2640\uFE0F",fairy:"\u{1F9DA}",fairy_man:"\u{1F9DA}\u200D\u2642\uFE0F",fairy_woman:"\u{1F9DA}\u200D\u2640\uFE0F",vampire:"\u{1F9DB}",vampire_man:"\u{1F9DB}\u200D\u2642\uFE0F",vampire_woman:"\u{1F9DB}\u200D\u2640\uFE0F",merperson:"\u{1F9DC}",merman:"\u{1F9DC}\u200D\u2642\uFE0F",mermaid:"\u{1F9DC}\u200D\u2640\uFE0F",elf:"\u{1F9DD}",elf_man:"\u{1F9DD}\u200D\u2642\uFE0F",elf_woman:"\u{1F9DD}\u200D\u2640\uFE0F",genie:"\u{1F9DE}",genie_man:"\u{1F9DE}\u200D\u2642\uFE0F",genie_woman:"\u{1F9DE}\u200D\u2640\uFE0F",zombie:"\u{1F9DF}",zombie_man:"\u{1F9DF}\u200D\u2642\uFE0F",zombie_woman:"\u{1F9DF}\u200D\u2640\uFE0F",troll:"\u{1F9CC}",massage:"\u{1F486}",massage_man:"\u{1F486}\u200D\u2642\uFE0F",massage_woman:"\u{1F486}\u200D\u2640\uFE0F",haircut:"\u{1F487}",haircut_man:"\u{1F487}\u200D\u2642\uFE0F",haircut_woman:"\u{1F487}\u200D\u2640\uFE0F",walking:"\u{1F6B6}",walking_man:"\u{1F6B6}\u200D\u2642\uFE0F",walking_woman:"\u{1F6B6}\u200D\u2640\uFE0F",standing_person:"\u{1F9CD}",standing_man:"\u{1F9CD}\u200D\u2642\uFE0F",standing_woman:"\u{1F9CD}\u200D\u2640\uFE0F",kneeling_person:"\u{1F9CE}",kneeling_man:"\u{1F9CE}\u200D\u2642\uFE0F",kneeling_woman:"\u{1F9CE}\u200D\u2640\uFE0F",person_with_probing_cane:"\u{1F9D1}\u200D\u{1F9AF}",man_with_probing_cane:"\u{1F468}\u200D\u{1F9AF}",woman_with_probing_cane:"\u{1F469}\u200D\u{1F9AF}",person_in_motorized_wheelchair:"\u{1F9D1}\u200D\u{1F9BC}",man_in_motorized_wheelchair:"\u{1F468}\u200D\u{1F9BC}",woman_in_motorized_wheelchair:"\u{1F469}\u200D\u{1F9BC}",person_in_manual_wheelchair:"\u{1F9D1}\u200D\u{1F9BD}",man_in_manual_wheelchair:"\u{1F468}\u200D\u{1F9BD}",woman_in_manual_wheelchair:"\u{1F469}\u200D\u{1F9BD}",runner:"\u{1F3C3}",running:"\u{1F3C3}",running_man:"\u{1F3C3}\u200D\u2642\uFE0F",running_woman:"\u{1F3C3}\u200D\u2640\uFE0F",woman_dancing:"\u{1F483}",dancer:"\u{1F483}",man_dancing:"\u{1F57A}",business_suit_levitating:"\u{1F574}\uFE0F",dancers:"\u{1F46F}",dancing_men:"\u{1F46F}\u200D\u2642\uFE0F",dancing_women:"\u{1F46F}\u200D\u2640\uFE0F",sauna_person:"\u{1F9D6}",sauna_man:"\u{1F9D6}\u200D\u2642\uFE0F",sauna_woman:"\u{1F9D6}\u200D\u2640\uFE0F",climbing:"\u{1F9D7}",climbing_man:"\u{1F9D7}\u200D\u2642\uFE0F",climbing_woman:"\u{1F9D7}\u200D\u2640\uFE0F",person_fencing:"\u{1F93A}",horse_racing:"\u{1F3C7}",skier:"\u26F7\uFE0F",snowboarder:"\u{1F3C2}",golfing:"\u{1F3CC}\uFE0F",golfing_man:"\u{1F3CC}\uFE0F\u200D\u2642\uFE0F",golfing_woman:"\u{1F3CC}\uFE0F\u200D\u2640\uFE0F",surfer:"\u{1F3C4}",surfing_man:"\u{1F3C4}\u200D\u2642\uFE0F",surfing_woman:"\u{1F3C4}\u200D\u2640\uFE0F",rowboat:"\u{1F6A3}",rowing_man:"\u{1F6A3}\u200D\u2642\uFE0F",rowing_woman:"\u{1F6A3}\u200D\u2640\uFE0F",swimmer:"\u{1F3CA}",swimming_man:"\u{1F3CA}\u200D\u2642\uFE0F",swimming_woman:"\u{1F3CA}\u200D\u2640\uFE0F",bouncing_ball_person:"\u26F9\uFE0F",bouncing_ball_man:"\u26F9\uFE0F\u200D\u2642\uFE0F",basketball_man:"\u26F9\uFE0F\u200D\u2642\uFE0F",bouncing_ball_woman:"\u26F9\uFE0F\u200D\u2640\uFE0F",basketball_woman:"\u26F9\uFE0F\u200D\u2640\uFE0F",weight_lifting:"\u{1F3CB}\uFE0F",weight_lifting_man:"\u{1F3CB}\uFE0F\u200D\u2642\uFE0F",weight_lifting_woman:"\u{1F3CB}\uFE0F\u200D\u2640\uFE0F",bicyclist:"\u{1F6B4}",biking_man:"\u{1F6B4}\u200D\u2642\uFE0F",biking_woman:"\u{1F6B4}\u200D\u2640\uFE0F",mountain_bicyclist:"\u{1F6B5}",mountain_biking_man:"\u{1F6B5}\u200D\u2642\uFE0F",mountain_biking_woman:"\u{1F6B5}\u200D\u2640\uFE0F",cartwheeling:"\u{1F938}",man_cartwheeling:"\u{1F938}\u200D\u2642\uFE0F",woman_cartwheeling:"\u{1F938}\u200D\u2640\uFE0F",wrestling:"\u{1F93C}",men_wrestling:"\u{1F93C}\u200D\u2642\uFE0F",women_wrestling:"\u{1F93C}\u200D\u2640\uFE0F",water_polo:"\u{1F93D}",man_playing_water_polo:"\u{1F93D}\u200D\u2642\uFE0F",woman_playing_water_polo:"\u{1F93D}\u200D\u2640\uFE0F",handball_person:"\u{1F93E}",man_playing_handball:"\u{1F93E}\u200D\u2642\uFE0F",woman_playing_handball:"\u{1F93E}\u200D\u2640\uFE0F",juggling_person:"\u{1F939}",man_juggling:"\u{1F939}\u200D\u2642\uFE0F",woman_juggling:"\u{1F939}\u200D\u2640\uFE0F",lotus_position:"\u{1F9D8}",lotus_position_man:"\u{1F9D8}\u200D\u2642\uFE0F",lotus_position_woman:"\u{1F9D8}\u200D\u2640\uFE0F",bath:"\u{1F6C0}",sleeping_bed:"\u{1F6CC}",people_holding_hands:"\u{1F9D1}\u200D\u{1F91D}\u200D\u{1F9D1}",two_women_holding_hands:"\u{1F46D}",couple:"\u{1F46B}",two_men_holding_hands:"\u{1F46C}",couplekiss:"\u{1F48F}",couplekiss_man_woman:"\u{1F469}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}",couplekiss_man_man:"\u{1F468}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}",couplekiss_woman_woman:"\u{1F469}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}",couple_with_heart:"\u{1F491}",couple_with_heart_woman_man:"\u{1F469}\u200D\u2764\uFE0F\u200D\u{1F468}",couple_with_heart_man_man:"\u{1F468}\u200D\u2764\uFE0F\u200D\u{1F468}",couple_with_heart_woman_woman:"\u{1F469}\u200D\u2764\uFE0F\u200D\u{1F469}",family:"\u{1F46A}",family_man_woman_boy:"\u{1F468}\u200D\u{1F469}\u200D\u{1F466}",family_man_woman_girl:"\u{1F468}\u200D\u{1F469}\u200D\u{1F467}",family_man_woman_girl_boy:"\u{1F468}\u200D\u{1F469}\u200D\u{1F467}\u200D\u{1F466}",family_man_woman_boy_boy:"\u{1F468}\u200D\u{1F469}\u200D\u{1F466}\u200D\u{1F466}",family_man_woman_girl_girl:"\u{1F468}\u200D\u{1F469}\u200D\u{1F467}\u200D\u{1F467}",family_man_man_boy:"\u{1F468}\u200D\u{1F468}\u200D\u{1F466}",family_man_man_girl:"\u{1F468}\u200D\u{1F468}\u200D\u{1F467}",family_man_man_girl_boy:"\u{1F468}\u200D\u{1F468}\u200D\u{1F467}\u200D\u{1F466}",family_man_man_boy_boy:"\u{1F468}\u200D\u{1F468}\u200D\u{1F466}\u200D\u{1F466}",family_man_man_girl_girl:"\u{1F468}\u200D\u{1F468}\u200D\u{1F467}\u200D\u{1F467}",family_woman_woman_boy:"\u{1F469}\u200D\u{1F469}\u200D\u{1F466}",family_woman_woman_girl:"\u{1F469}\u200D\u{1F469}\u200D\u{1F467}",family_woman_woman_girl_boy:"\u{1F469}\u200D\u{1F469}\u200D\u{1F467}\u200D\u{1F466}",family_woman_woman_boy_boy:"\u{1F469}\u200D\u{1F469}\u200D\u{1F466}\u200D\u{1F466}",family_woman_woman_girl_girl:"\u{1F469}\u200D\u{1F469}\u200D\u{1F467}\u200D\u{1F467}",family_man_boy:"\u{1F468}\u200D\u{1F466}",family_man_boy_boy:"\u{1F468}\u200D\u{1F466}\u200D\u{1F466}",family_man_girl:"\u{1F468}\u200D\u{1F467}",family_man_girl_boy:"\u{1F468}\u200D\u{1F467}\u200D\u{1F466}",family_man_girl_girl:"\u{1F468}\u200D\u{1F467}\u200D\u{1F467}",family_woman_boy:"\u{1F469}\u200D\u{1F466}",family_woman_boy_boy:"\u{1F469}\u200D\u{1F466}\u200D\u{1F466}",family_woman_girl:"\u{1F469}\u200D\u{1F467}",family_woman_girl_boy:"\u{1F469}\u200D\u{1F467}\u200D\u{1F466}",family_woman_girl_girl:"\u{1F469}\u200D\u{1F467}\u200D\u{1F467}",speaking_head:"\u{1F5E3}\uFE0F",bust_in_silhouette:"\u{1F464}",busts_in_silhouette:"\u{1F465}",people_hugging:"\u{1FAC2}",footprints:"\u{1F463}",monkey_face:"\u{1F435}",monkey:"\u{1F412}",gorilla:"\u{1F98D}",orangutan:"\u{1F9A7}",dog:"\u{1F436}",dog2:"\u{1F415}",guide_dog:"\u{1F9AE}",service_dog:"\u{1F415}\u200D\u{1F9BA}",poodle:"\u{1F429}",wolf:"\u{1F43A}",fox_face:"\u{1F98A}",raccoon:"\u{1F99D}",cat:"\u{1F431}",cat2:"\u{1F408}",black_cat:"\u{1F408}\u200D\u2B1B",lion:"\u{1F981}",tiger:"\u{1F42F}",tiger2:"\u{1F405}",leopard:"\u{1F406}",horse:"\u{1F434}",moose:"\u{1FACE}",donkey:"\u{1FACF}",racehorse:"\u{1F40E}",unicorn:"\u{1F984}",zebra:"\u{1F993}",deer:"\u{1F98C}",bison:"\u{1F9AC}",cow:"\u{1F42E}",ox:"\u{1F402}",water_buffalo:"\u{1F403}",cow2:"\u{1F404}",pig:"\u{1F437}",pig2:"\u{1F416}",boar:"\u{1F417}",pig_nose:"\u{1F43D}",ram:"\u{1F40F}",sheep:"\u{1F411}",goat:"\u{1F410}",dromedary_camel:"\u{1F42A}",camel:"\u{1F42B}",llama:"\u{1F999}",giraffe:"\u{1F992}",elephant:"\u{1F418}",mammoth:"\u{1F9A3}",rhinoceros:"\u{1F98F}",hippopotamus:"\u{1F99B}",mouse:"\u{1F42D}",mouse2:"\u{1F401}",rat:"\u{1F400}",hamster:"\u{1F439}",rabbit:"\u{1F430}",rabbit2:"\u{1F407}",chipmunk:"\u{1F43F}\uFE0F",beaver:"\u{1F9AB}",hedgehog:"\u{1F994}",bat:"\u{1F987}",bear:"\u{1F43B}",polar_bear:"\u{1F43B}\u200D\u2744\uFE0F",koala:"\u{1F428}",panda_face:"\u{1F43C}",sloth:"\u{1F9A5}",otter:"\u{1F9A6}",skunk:"\u{1F9A8}",kangaroo:"\u{1F998}",badger:"\u{1F9A1}",feet:"\u{1F43E}",paw_prints:"\u{1F43E}",turkey:"\u{1F983}",chicken:"\u{1F414}",rooster:"\u{1F413}",hatching_chick:"\u{1F423}",baby_chick:"\u{1F424}",hatched_chick:"\u{1F425}",bird:"\u{1F426}",penguin:"\u{1F427}",dove:"\u{1F54A}\uFE0F",eagle:"\u{1F985}",duck:"\u{1F986}",swan:"\u{1F9A2}",owl:"\u{1F989}",dodo:"\u{1F9A4}",feather:"\u{1FAB6}",flamingo:"\u{1F9A9}",peacock:"\u{1F99A}",parrot:"\u{1F99C}",wing:"\u{1FABD}",black_bird:"\u{1F426}\u200D\u2B1B",goose:"\u{1FABF}",frog:"\u{1F438}",crocodile:"\u{1F40A}",turtle:"\u{1F422}",lizard:"\u{1F98E}",snake:"\u{1F40D}",dragon_face:"\u{1F432}",dragon:"\u{1F409}",sauropod:"\u{1F995}","t-rex":"\u{1F996}",whale:"\u{1F433}",whale2:"\u{1F40B}",dolphin:"\u{1F42C}",flipper:"\u{1F42C}",seal:"\u{1F9AD}",fish:"\u{1F41F}",tropical_fish:"\u{1F420}",blowfish:"\u{1F421}",shark:"\u{1F988}",octopus:"\u{1F419}",shell:"\u{1F41A}",coral:"\u{1FAB8}",jellyfish:"\u{1FABC}",snail:"\u{1F40C}",butterfly:"\u{1F98B}",bug:"\u{1F41B}",ant:"\u{1F41C}",bee:"\u{1F41D}",honeybee:"\u{1F41D}",beetle:"\u{1FAB2}",lady_beetle:"\u{1F41E}",cricket:"\u{1F997}",cockroach:"\u{1FAB3}",spider:"\u{1F577}\uFE0F",spider_web:"\u{1F578}\uFE0F",scorpion:"\u{1F982}",mosquito:"\u{1F99F}",fly:"\u{1FAB0}",worm:"\u{1FAB1}",microbe:"\u{1F9A0}",bouquet:"\u{1F490}",cherry_blossom:"\u{1F338}",white_flower:"\u{1F4AE}",lotus:"\u{1FAB7}",rosette:"\u{1F3F5}\uFE0F",rose:"\u{1F339}",wilted_flower:"\u{1F940}",hibiscus:"\u{1F33A}",sunflower:"\u{1F33B}",blossom:"\u{1F33C}",tulip:"\u{1F337}",hyacinth:"\u{1FABB}",seedling:"\u{1F331}",potted_plant:"\u{1FAB4}",evergreen_tree:"\u{1F332}",deciduous_tree:"\u{1F333}",palm_tree:"\u{1F334}",cactus:"\u{1F335}",ear_of_rice:"\u{1F33E}",herb:"\u{1F33F}",shamrock:"\u2618\uFE0F",four_leaf_clover:"\u{1F340}",maple_leaf:"\u{1F341}",fallen_leaf:"\u{1F342}",leaves:"\u{1F343}",empty_nest:"\u{1FAB9}",nest_with_eggs:"\u{1FABA}",mushroom:"\u{1F344}",grapes:"\u{1F347}",melon:"\u{1F348}",watermelon:"\u{1F349}",tangerine:"\u{1F34A}",orange:"\u{1F34A}",mandarin:"\u{1F34A}",lemon:"\u{1F34B}",banana:"\u{1F34C}",pineapple:"\u{1F34D}",mango:"\u{1F96D}",apple:"\u{1F34E}",green_apple:"\u{1F34F}",pear:"\u{1F350}",peach:"\u{1F351}",cherries:"\u{1F352}",strawberry:"\u{1F353}",blueberries:"\u{1FAD0}",kiwi_fruit:"\u{1F95D}",tomato:"\u{1F345}",olive:"\u{1FAD2}",coconut:"\u{1F965}",avocado:"\u{1F951}",eggplant:"\u{1F346}",potato:"\u{1F954}",carrot:"\u{1F955}",corn:"\u{1F33D}",hot_pepper:"\u{1F336}\uFE0F",bell_pepper:"\u{1FAD1}",cucumber:"\u{1F952}",leafy_green:"\u{1F96C}",broccoli:"\u{1F966}",garlic:"\u{1F9C4}",onion:"\u{1F9C5}",peanuts:"\u{1F95C}",beans:"\u{1FAD8}",chestnut:"\u{1F330}",ginger_root:"\u{1FADA}",pea_pod:"\u{1FADB}",bread:"\u{1F35E}",croissant:"\u{1F950}",baguette_bread:"\u{1F956}",flatbread:"\u{1FAD3}",pretzel:"\u{1F968}",bagel:"\u{1F96F}",pancakes:"\u{1F95E}",waffle:"\u{1F9C7}",cheese:"\u{1F9C0}",meat_on_bone:"\u{1F356}",poultry_leg:"\u{1F357}",cut_of_meat:"\u{1F969}",bacon:"\u{1F953}",hamburger:"\u{1F354}",fries:"\u{1F35F}",pizza:"\u{1F355}",hotdog:"\u{1F32D}",sandwich:"\u{1F96A}",taco:"\u{1F32E}",burrito:"\u{1F32F}",tamale:"\u{1FAD4}",stuffed_flatbread:"\u{1F959}",falafel:"\u{1F9C6}",egg:"\u{1F95A}",fried_egg:"\u{1F373}",shallow_pan_of_food:"\u{1F958}",stew:"\u{1F372}",fondue:"\u{1FAD5}",bowl_with_spoon:"\u{1F963}",green_salad:"\u{1F957}",popcorn:"\u{1F37F}",butter:"\u{1F9C8}",salt:"\u{1F9C2}",canned_food:"\u{1F96B}",bento:"\u{1F371}",rice_cracker:"\u{1F358}",rice_ball:"\u{1F359}",rice:"\u{1F35A}",curry:"\u{1F35B}",ramen:"\u{1F35C}",spaghetti:"\u{1F35D}",sweet_potato:"\u{1F360}",oden:"\u{1F362}",sushi:"\u{1F363}",fried_shrimp:"\u{1F364}",fish_cake:"\u{1F365}",moon_cake:"\u{1F96E}",dango:"\u{1F361}",dumpling:"\u{1F95F}",fortune_cookie:"\u{1F960}",takeout_box:"\u{1F961}",crab:"\u{1F980}",lobster:"\u{1F99E}",shrimp:"\u{1F990}",squid:"\u{1F991}",oyster:"\u{1F9AA}",icecream:"\u{1F366}",shaved_ice:"\u{1F367}",ice_cream:"\u{1F368}",doughnut:"\u{1F369}",cookie:"\u{1F36A}",birthday:"\u{1F382}",cake:"\u{1F370}",cupcake:"\u{1F9C1}",pie:"\u{1F967}",chocolate_bar:"\u{1F36B}",candy:"\u{1F36C}",lollipop:"\u{1F36D}",custard:"\u{1F36E}",honey_pot:"\u{1F36F}",baby_bottle:"\u{1F37C}",milk_glass:"\u{1F95B}",coffee:"\u2615",teapot:"\u{1FAD6}",tea:"\u{1F375}",sake:"\u{1F376}",champagne:"\u{1F37E}",wine_glass:"\u{1F377}",cocktail:"\u{1F378}",tropical_drink:"\u{1F379}",beer:"\u{1F37A}",beers:"\u{1F37B}",clinking_glasses:"\u{1F942}",tumbler_glass:"\u{1F943}",pouring_liquid:"\u{1FAD7}",cup_with_straw:"\u{1F964}",bubble_tea:"\u{1F9CB}",beverage_box:"\u{1F9C3}",mate:"\u{1F9C9}",ice_cube:"\u{1F9CA}",chopsticks:"\u{1F962}",plate_with_cutlery:"\u{1F37D}\uFE0F",fork_and_knife:"\u{1F374}",spoon:"\u{1F944}",hocho:"\u{1F52A}",knife:"\u{1F52A}",jar:"\u{1FAD9}",amphora:"\u{1F3FA}",earth_africa:"\u{1F30D}",earth_americas:"\u{1F30E}",earth_asia:"\u{1F30F}",globe_with_meridians:"\u{1F310}",world_map:"\u{1F5FA}\uFE0F",japan:"\u{1F5FE}",compass:"\u{1F9ED}",mountain_snow:"\u{1F3D4}\uFE0F",mountain:"\u26F0\uFE0F",volcano:"\u{1F30B}",mount_fuji:"\u{1F5FB}",camping:"\u{1F3D5}\uFE0F",beach_umbrella:"\u{1F3D6}\uFE0F",desert:"\u{1F3DC}\uFE0F",desert_island:"\u{1F3DD}\uFE0F",national_park:"\u{1F3DE}\uFE0F",stadium:"\u{1F3DF}\uFE0F",classical_building:"\u{1F3DB}\uFE0F",building_construction:"\u{1F3D7}\uFE0F",bricks:"\u{1F9F1}",rock:"\u{1FAA8}",wood:"\u{1FAB5}",hut:"\u{1F6D6}",houses:"\u{1F3D8}\uFE0F",derelict_house:"\u{1F3DA}\uFE0F",house:"\u{1F3E0}",house_with_garden:"\u{1F3E1}",office:"\u{1F3E2}",post_office:"\u{1F3E3}",european_post_office:"\u{1F3E4}",hospital:"\u{1F3E5}",bank:"\u{1F3E6}",hotel:"\u{1F3E8}",love_hotel:"\u{1F3E9}",convenience_store:"\u{1F3EA}",school:"\u{1F3EB}",department_store:"\u{1F3EC}",factory:"\u{1F3ED}",japanese_castle:"\u{1F3EF}",european_castle:"\u{1F3F0}",wedding:"\u{1F492}",tokyo_tower:"\u{1F5FC}",statue_of_liberty:"\u{1F5FD}",church:"\u26EA",mosque:"\u{1F54C}",hindu_temple:"\u{1F6D5}",synagogue:"\u{1F54D}",shinto_shrine:"\u26E9\uFE0F",kaaba:"\u{1F54B}",fountain:"\u26F2",tent:"\u26FA",foggy:"\u{1F301}",night_with_stars:"\u{1F303}",cityscape:"\u{1F3D9}\uFE0F",sunrise_over_mountains:"\u{1F304}",sunrise:"\u{1F305}",city_sunset:"\u{1F306}",city_sunrise:"\u{1F307}",bridge_at_night:"\u{1F309}",hotsprings:"\u2668\uFE0F",carousel_horse:"\u{1F3A0}",playground_slide:"\u{1F6DD}",ferris_wheel:"\u{1F3A1}",roller_coaster:"\u{1F3A2}",barber:"\u{1F488}",circus_tent:"\u{1F3AA}",steam_locomotive:"\u{1F682}",railway_car:"\u{1F683}",bullettrain_side:"\u{1F684}",bullettrain_front:"\u{1F685}",train2:"\u{1F686}",metro:"\u{1F687}",light_rail:"\u{1F688}",station:"\u{1F689}",tram:"\u{1F68A}",monorail:"\u{1F69D}",mountain_railway:"\u{1F69E}",train:"\u{1F68B}",bus:"\u{1F68C}",oncoming_bus:"\u{1F68D}",trolleybus:"\u{1F68E}",minibus:"\u{1F690}",ambulance:"\u{1F691}",fire_engine:"\u{1F692}",police_car:"\u{1F693}",oncoming_police_car:"\u{1F694}",taxi:"\u{1F695}",oncoming_taxi:"\u{1F696}",car:"\u{1F697}",red_car:"\u{1F697}",oncoming_automobile:"\u{1F698}",blue_car:"\u{1F699}",pickup_truck:"\u{1F6FB}",truck:"\u{1F69A}",articulated_lorry:"\u{1F69B}",tractor:"\u{1F69C}",racing_car:"\u{1F3CE}\uFE0F",motorcycle:"\u{1F3CD}\uFE0F",motor_scooter:"\u{1F6F5}",manual_wheelchair:"\u{1F9BD}",motorized_wheelchair:"\u{1F9BC}",auto_rickshaw:"\u{1F6FA}",bike:"\u{1F6B2}",kick_scooter:"\u{1F6F4}",skateboard:"\u{1F6F9}",roller_skate:"\u{1F6FC}",busstop:"\u{1F68F}",motorway:"\u{1F6E3}\uFE0F",railway_track:"\u{1F6E4}\uFE0F",oil_drum:"\u{1F6E2}\uFE0F",fuelpump:"\u26FD",wheel:"\u{1F6DE}",rotating_light:"\u{1F6A8}",traffic_light:"\u{1F6A5}",vertical_traffic_light:"\u{1F6A6}",stop_sign:"\u{1F6D1}",construction:"\u{1F6A7}",anchor:"\u2693",ring_buoy:"\u{1F6DF}",boat:"\u26F5",sailboat:"\u26F5",canoe:"\u{1F6F6}",speedboat:"\u{1F6A4}",passenger_ship:"\u{1F6F3}\uFE0F",ferry:"\u26F4\uFE0F",motor_boat:"\u{1F6E5}\uFE0F",ship:"\u{1F6A2}",airplane:"\u2708\uFE0F",small_airplane:"\u{1F6E9}\uFE0F",flight_departure:"\u{1F6EB}",flight_arrival:"\u{1F6EC}",parachute:"\u{1FA82}",seat:"\u{1F4BA}",helicopter:"\u{1F681}",suspension_railway:"\u{1F69F}",mountain_cableway:"\u{1F6A0}",aerial_tramway:"\u{1F6A1}",artificial_satellite:"\u{1F6F0}\uFE0F",rocket:"\u{1F680}",flying_saucer:"\u{1F6F8}",bellhop_bell:"\u{1F6CE}\uFE0F",luggage:"\u{1F9F3}",hourglass:"\u231B",hourglass_flowing_sand:"\u23F3",watch:"\u231A",alarm_clock:"\u23F0",stopwatch:"\u23F1\uFE0F",timer_clock:"\u23F2\uFE0F",mantelpiece_clock:"\u{1F570}\uFE0F",clock12:"\u{1F55B}",clock1230:"\u{1F567}",clock1:"\u{1F550}",clock130:"\u{1F55C}",clock2:"\u{1F551}",clock230:"\u{1F55D}",clock3:"\u{1F552}",clock330:"\u{1F55E}",clock4:"\u{1F553}",clock430:"\u{1F55F}",clock5:"\u{1F554}",clock530:"\u{1F560}",clock6:"\u{1F555}",clock630:"\u{1F561}",clock7:"\u{1F556}",clock730:"\u{1F562}",clock8:"\u{1F557}",clock830:"\u{1F563}",clock9:"\u{1F558}",clock930:"\u{1F564}",clock10:"\u{1F559}",clock1030:"\u{1F565}",clock11:"\u{1F55A}",clock1130:"\u{1F566}",new_moon:"\u{1F311}",waxing_crescent_moon:"\u{1F312}",first_quarter_moon:"\u{1F313}",moon:"\u{1F314}",waxing_gibbous_moon:"\u{1F314}",full_moon:"\u{1F315}",waning_gibbous_moon:"\u{1F316}",last_quarter_moon:"\u{1F317}",waning_crescent_moon:"\u{1F318}",crescent_moon:"\u{1F319}",new_moon_with_face:"\u{1F31A}",first_quarter_moon_with_face:"\u{1F31B}",last_quarter_moon_with_face:"\u{1F31C}",thermometer:"\u{1F321}\uFE0F",sunny:"\u2600\uFE0F",full_moon_with_face:"\u{1F31D}",sun_with_face:"\u{1F31E}",ringed_planet:"\u{1FA90}",star:"\u2B50",star2:"\u{1F31F}",stars:"\u{1F320}",milky_way:"\u{1F30C}",cloud:"\u2601\uFE0F",partly_sunny:"\u26C5",cloud_with_lightning_and_rain:"\u26C8\uFE0F",sun_behind_small_cloud:"\u{1F324}\uFE0F",sun_behind_large_cloud:"\u{1F325}\uFE0F",sun_behind_rain_cloud:"\u{1F326}\uFE0F",cloud_with_rain:"\u{1F327}\uFE0F",cloud_with_snow:"\u{1F328}\uFE0F",cloud_with_lightning:"\u{1F329}\uFE0F",tornado:"\u{1F32A}\uFE0F",fog:"\u{1F32B}\uFE0F",wind_face:"\u{1F32C}\uFE0F",cyclone:"\u{1F300}",rainbow:"\u{1F308}",closed_umbrella:"\u{1F302}",open_umbrella:"\u2602\uFE0F",umbrella:"\u2614",parasol_on_ground:"\u26F1\uFE0F",zap:"\u26A1",snowflake:"\u2744\uFE0F",snowman_with_snow:"\u2603\uFE0F",snowman:"\u26C4",comet:"\u2604\uFE0F",fire:"\u{1F525}",droplet:"\u{1F4A7}",ocean:"\u{1F30A}",jack_o_lantern:"\u{1F383}",christmas_tree:"\u{1F384}",fireworks:"\u{1F386}",sparkler:"\u{1F387}",firecracker:"\u{1F9E8}",sparkles:"\u2728",balloon:"\u{1F388}",tada:"\u{1F389}",confetti_ball:"\u{1F38A}",tanabata_tree:"\u{1F38B}",bamboo:"\u{1F38D}",dolls:"\u{1F38E}",flags:"\u{1F38F}",wind_chime:"\u{1F390}",rice_scene:"\u{1F391}",red_envelope:"\u{1F9E7}",ribbon:"\u{1F380}",gift:"\u{1F381}",reminder_ribbon:"\u{1F397}\uFE0F",tickets:"\u{1F39F}\uFE0F",ticket:"\u{1F3AB}",medal_military:"\u{1F396}\uFE0F",trophy:"\u{1F3C6}",medal_sports:"\u{1F3C5}","1st_place_medal":"\u{1F947}","2nd_place_medal":"\u{1F948}","3rd_place_medal":"\u{1F949}",soccer:"\u26BD",baseball:"\u26BE",softball:"\u{1F94E}",basketball:"\u{1F3C0}",volleyball:"\u{1F3D0}",football:"\u{1F3C8}",rugby_football:"\u{1F3C9}",tennis:"\u{1F3BE}",flying_disc:"\u{1F94F}",bowling:"\u{1F3B3}",cricket_game:"\u{1F3CF}",field_hockey:"\u{1F3D1}",ice_hockey:"\u{1F3D2}",lacrosse:"\u{1F94D}",ping_pong:"\u{1F3D3}",badminton:"\u{1F3F8}",boxing_glove:"\u{1F94A}",martial_arts_uniform:"\u{1F94B}",goal_net:"\u{1F945}",golf:"\u26F3",ice_skate:"\u26F8\uFE0F",fishing_pole_and_fish:"\u{1F3A3}",diving_mask:"\u{1F93F}",running_shirt_with_sash:"\u{1F3BD}",ski:"\u{1F3BF}",sled:"\u{1F6F7}",curling_stone:"\u{1F94C}",dart:"\u{1F3AF}",yo_yo:"\u{1FA80}",kite:"\u{1FA81}",gun:"\u{1F52B}","8ball":"\u{1F3B1}",crystal_ball:"\u{1F52E}",magic_wand:"\u{1FA84}",video_game:"\u{1F3AE}",joystick:"\u{1F579}\uFE0F",slot_machine:"\u{1F3B0}",game_die:"\u{1F3B2}",jigsaw:"\u{1F9E9}",teddy_bear:"\u{1F9F8}",pinata:"\u{1FA85}",mirror_ball:"\u{1FAA9}",nesting_dolls:"\u{1FA86}",spades:"\u2660\uFE0F",hearts:"\u2665\uFE0F",diamonds:"\u2666\uFE0F",clubs:"\u2663\uFE0F",chess_pawn:"\u265F\uFE0F",black_joker:"\u{1F0CF}",mahjong:"\u{1F004}",flower_playing_cards:"\u{1F3B4}",performing_arts:"\u{1F3AD}",framed_picture:"\u{1F5BC}\uFE0F",art:"\u{1F3A8}",thread:"\u{1F9F5}",sewing_needle:"\u{1FAA1}",yarn:"\u{1F9F6}",knot:"\u{1FAA2}",eyeglasses:"\u{1F453}",dark_sunglasses:"\u{1F576}\uFE0F",goggles:"\u{1F97D}",lab_coat:"\u{1F97C}",safety_vest:"\u{1F9BA}",necktie:"\u{1F454}",shirt:"\u{1F455}",tshirt:"\u{1F455}",jeans:"\u{1F456}",scarf:"\u{1F9E3}",gloves:"\u{1F9E4}",coat:"\u{1F9E5}",socks:"\u{1F9E6}",dress:"\u{1F457}",kimono:"\u{1F458}",sari:"\u{1F97B}",one_piece_swimsuit:"\u{1FA71}",swim_brief:"\u{1FA72}",shorts:"\u{1FA73}",bikini:"\u{1F459}",womans_clothes:"\u{1F45A}",folding_hand_fan:"\u{1FAAD}",purse:"\u{1F45B}",handbag:"\u{1F45C}",pouch:"\u{1F45D}",shopping:"\u{1F6CD}\uFE0F",school_satchel:"\u{1F392}",thong_sandal:"\u{1FA74}",mans_shoe:"\u{1F45E}",shoe:"\u{1F45E}",athletic_shoe:"\u{1F45F}",hiking_boot:"\u{1F97E}",flat_shoe:"\u{1F97F}",high_heel:"\u{1F460}",sandal:"\u{1F461}",ballet_shoes:"\u{1FA70}",boot:"\u{1F462}",hair_pick:"\u{1FAAE}",crown:"\u{1F451}",womans_hat:"\u{1F452}",tophat:"\u{1F3A9}",mortar_board:"\u{1F393}",billed_cap:"\u{1F9E2}",military_helmet:"\u{1FA96}",rescue_worker_helmet:"\u26D1\uFE0F",prayer_beads:"\u{1F4FF}",lipstick:"\u{1F484}",ring:"\u{1F48D}",gem:"\u{1F48E}",mute:"\u{1F507}",speaker:"\u{1F508}",sound:"\u{1F509}",loud_sound:"\u{1F50A}",loudspeaker:"\u{1F4E2}",mega:"\u{1F4E3}",postal_horn:"\u{1F4EF}",bell:"\u{1F514}",no_bell:"\u{1F515}",musical_score:"\u{1F3BC}",musical_note:"\u{1F3B5}",notes:"\u{1F3B6}",studio_microphone:"\u{1F399}\uFE0F",level_slider:"\u{1F39A}\uFE0F",control_knobs:"\u{1F39B}\uFE0F",microphone:"\u{1F3A4}",headphones:"\u{1F3A7}",radio:"\u{1F4FB}",saxophone:"\u{1F3B7}",accordion:"\u{1FA97}",guitar:"\u{1F3B8}",musical_keyboard:"\u{1F3B9}",trumpet:"\u{1F3BA}",violin:"\u{1F3BB}",banjo:"\u{1FA95}",drum:"\u{1F941}",long_drum:"\u{1FA98}",maracas:"\u{1FA87}",flute:"\u{1FA88}",iphone:"\u{1F4F1}",calling:"\u{1F4F2}",phone:"\u260E\uFE0F",telephone:"\u260E\uFE0F",telephone_receiver:"\u{1F4DE}",pager:"\u{1F4DF}",fax:"\u{1F4E0}",battery:"\u{1F50B}",low_battery:"\u{1FAAB}",electric_plug:"\u{1F50C}",computer:"\u{1F4BB}",desktop_computer:"\u{1F5A5}\uFE0F",printer:"\u{1F5A8}\uFE0F",keyboard:"\u2328\uFE0F",computer_mouse:"\u{1F5B1}\uFE0F",trackball:"\u{1F5B2}\uFE0F",minidisc:"\u{1F4BD}",floppy_disk:"\u{1F4BE}",cd:"\u{1F4BF}",dvd:"\u{1F4C0}",abacus:"\u{1F9EE}",movie_camera:"\u{1F3A5}",film_strip:"\u{1F39E}\uFE0F",film_projector:"\u{1F4FD}\uFE0F",clapper:"\u{1F3AC}",tv:"\u{1F4FA}",camera:"\u{1F4F7}",camera_flash:"\u{1F4F8}",video_camera:"\u{1F4F9}",vhs:"\u{1F4FC}",mag:"\u{1F50D}",mag_right:"\u{1F50E}",candle:"\u{1F56F}\uFE0F",bulb:"\u{1F4A1}",flashlight:"\u{1F526}",izakaya_lantern:"\u{1F3EE}",lantern:"\u{1F3EE}",diya_lamp:"\u{1FA94}",notebook_with_decorative_cover:"\u{1F4D4}",closed_book:"\u{1F4D5}",book:"\u{1F4D6}",open_book:"\u{1F4D6}",green_book:"\u{1F4D7}",blue_book:"\u{1F4D8}",orange_book:"\u{1F4D9}",books:"\u{1F4DA}",notebook:"\u{1F4D3}",ledger:"\u{1F4D2}",page_with_curl:"\u{1F4C3}",scroll:"\u{1F4DC}",page_facing_up:"\u{1F4C4}",newspaper:"\u{1F4F0}",newspaper_roll:"\u{1F5DE}\uFE0F",bookmark_tabs:"\u{1F4D1}",bookmark:"\u{1F516}",label:"\u{1F3F7}\uFE0F",moneybag:"\u{1F4B0}",coin:"\u{1FA99}",yen:"\u{1F4B4}",dollar:"\u{1F4B5}",euro:"\u{1F4B6}",pound:"\u{1F4B7}",money_with_wings:"\u{1F4B8}",credit_card:"\u{1F4B3}",receipt:"\u{1F9FE}",chart:"\u{1F4B9}",envelope:"\u2709\uFE0F",email:"\u{1F4E7}","e-mail":"\u{1F4E7}",incoming_envelope:"\u{1F4E8}",envelope_with_arrow:"\u{1F4E9}",outbox_tray:"\u{1F4E4}",inbox_tray:"\u{1F4E5}",package:"\u{1F4E6}",mailbox:"\u{1F4EB}",mailbox_closed:"\u{1F4EA}",mailbox_with_mail:"\u{1F4EC}",mailbox_with_no_mail:"\u{1F4ED}",postbox:"\u{1F4EE}",ballot_box:"\u{1F5F3}\uFE0F",pencil2:"\u270F\uFE0F",black_nib:"\u2712\uFE0F",fountain_pen:"\u{1F58B}\uFE0F",pen:"\u{1F58A}\uFE0F",paintbrush:"\u{1F58C}\uFE0F",crayon:"\u{1F58D}\uFE0F",memo:"\u{1F4DD}",pencil:"\u{1F4DD}",briefcase:"\u{1F4BC}",file_folder:"\u{1F4C1}",open_file_folder:"\u{1F4C2}",card_index_dividers:"\u{1F5C2}\uFE0F",date:"\u{1F4C5}",calendar:"\u{1F4C6}",spiral_notepad:"\u{1F5D2}\uFE0F",spiral_calendar:"\u{1F5D3}\uFE0F",card_index:"\u{1F4C7}",chart_with_upwards_trend:"\u{1F4C8}",chart_with_downwards_trend:"\u{1F4C9}",bar_chart:"\u{1F4CA}",clipboard:"\u{1F4CB}",pushpin:"\u{1F4CC}",round_pushpin:"\u{1F4CD}",paperclip:"\u{1F4CE}",paperclips:"\u{1F587}\uFE0F",straight_ruler:"\u{1F4CF}",triangular_ruler:"\u{1F4D0}",scissors:"\u2702\uFE0F",card_file_box:"\u{1F5C3}\uFE0F",file_cabinet:"\u{1F5C4}\uFE0F",wastebasket:"\u{1F5D1}\uFE0F",lock:"\u{1F512}",unlock:"\u{1F513}",lock_with_ink_pen:"\u{1F50F}",closed_lock_with_key:"\u{1F510}",key:"\u{1F511}",old_key:"\u{1F5DD}\uFE0F",hammer:"\u{1F528}",axe:"\u{1FA93}",pick:"\u26CF\uFE0F",hammer_and_pick:"\u2692\uFE0F",hammer_and_wrench:"\u{1F6E0}\uFE0F",dagger:"\u{1F5E1}\uFE0F",crossed_swords:"\u2694\uFE0F",bomb:"\u{1F4A3}",boomerang:"\u{1FA83}",bow_and_arrow:"\u{1F3F9}",shield:"\u{1F6E1}\uFE0F",carpentry_saw:"\u{1FA9A}",wrench:"\u{1F527}",screwdriver:"\u{1FA9B}",nut_and_bolt:"\u{1F529}",gear:"\u2699\uFE0F",clamp:"\u{1F5DC}\uFE0F",balance_scale:"\u2696\uFE0F",probing_cane:"\u{1F9AF}",link:"\u{1F517}",chains:"\u26D3\uFE0F",hook:"\u{1FA9D}",toolbox:"\u{1F9F0}",magnet:"\u{1F9F2}",ladder:"\u{1FA9C}",alembic:"\u2697\uFE0F",test_tube:"\u{1F9EA}",petri_dish:"\u{1F9EB}",dna:"\u{1F9EC}",microscope:"\u{1F52C}",telescope:"\u{1F52D}",satellite:"\u{1F4E1}",syringe:"\u{1F489}",drop_of_blood:"\u{1FA78}",pill:"\u{1F48A}",adhesive_bandage:"\u{1FA79}",crutch:"\u{1FA7C}",stethoscope:"\u{1FA7A}",x_ray:"\u{1FA7B}",door:"\u{1F6AA}",elevator:"\u{1F6D7}",mirror:"\u{1FA9E}",window:"\u{1FA9F}",bed:"\u{1F6CF}\uFE0F",couch_and_lamp:"\u{1F6CB}\uFE0F",chair:"\u{1FA91}",toilet:"\u{1F6BD}",plunger:"\u{1FAA0}",shower:"\u{1F6BF}",bathtub:"\u{1F6C1}",mouse_trap:"\u{1FAA4}",razor:"\u{1FA92}",lotion_bottle:"\u{1F9F4}",safety_pin:"\u{1F9F7}",broom:"\u{1F9F9}",basket:"\u{1F9FA}",roll_of_paper:"\u{1F9FB}",bucket:"\u{1FAA3}",soap:"\u{1F9FC}",bubbles:"\u{1FAE7}",toothbrush:"\u{1FAA5}",sponge:"\u{1F9FD}",fire_extinguisher:"\u{1F9EF}",shopping_cart:"\u{1F6D2}",smoking:"\u{1F6AC}",coffin:"\u26B0\uFE0F",headstone:"\u{1FAA6}",funeral_urn:"\u26B1\uFE0F",nazar_amulet:"\u{1F9FF}",hamsa:"\u{1FAAC}",moyai:"\u{1F5FF}",placard:"\u{1FAA7}",identification_card:"\u{1FAAA}",atm:"\u{1F3E7}",put_litter_in_its_place:"\u{1F6AE}",potable_water:"\u{1F6B0}",wheelchair:"\u267F",mens:"\u{1F6B9}",womens:"\u{1F6BA}",restroom:"\u{1F6BB}",baby_symbol:"\u{1F6BC}",wc:"\u{1F6BE}",passport_control:"\u{1F6C2}",customs:"\u{1F6C3}",baggage_claim:"\u{1F6C4}",left_luggage:"\u{1F6C5}",warning:"\u26A0\uFE0F",children_crossing:"\u{1F6B8}",no_entry:"\u26D4",no_entry_sign:"\u{1F6AB}",no_bicycles:"\u{1F6B3}",no_smoking:"\u{1F6AD}",do_not_litter:"\u{1F6AF}","non-potable_water":"\u{1F6B1}",no_pedestrians:"\u{1F6B7}",no_mobile_phones:"\u{1F4F5}",underage:"\u{1F51E}",radioactive:"\u2622\uFE0F",biohazard:"\u2623\uFE0F",arrow_up:"\u2B06\uFE0F",arrow_upper_right:"\u2197\uFE0F",arrow_right:"\u27A1\uFE0F",arrow_lower_right:"\u2198\uFE0F",arrow_down:"\u2B07\uFE0F",arrow_lower_left:"\u2199\uFE0F",arrow_left:"\u2B05\uFE0F",arrow_upper_left:"\u2196\uFE0F",arrow_up_down:"\u2195\uFE0F",left_right_arrow:"\u2194\uFE0F",leftwards_arrow_with_hook:"\u21A9\uFE0F",arrow_right_hook:"\u21AA\uFE0F",arrow_heading_up:"\u2934\uFE0F",arrow_heading_down:"\u2935\uFE0F",arrows_clockwise:"\u{1F503}",arrows_counterclockwise:"\u{1F504}",back:"\u{1F519}",end:"\u{1F51A}",on:"\u{1F51B}",soon:"\u{1F51C}",top:"\u{1F51D}",place_of_worship:"\u{1F6D0}",atom_symbol:"\u269B\uFE0F",om:"\u{1F549}\uFE0F",star_of_david:"\u2721\uFE0F",wheel_of_dharma:"\u2638\uFE0F",yin_yang:"\u262F\uFE0F",latin_cross:"\u271D\uFE0F",orthodox_cross:"\u2626\uFE0F",star_and_crescent:"\u262A\uFE0F",peace_symbol:"\u262E\uFE0F",menorah:"\u{1F54E}",six_pointed_star:"\u{1F52F}",khanda:"\u{1FAAF}",aries:"\u2648",taurus:"\u2649",gemini:"\u264A",cancer:"\u264B",leo:"\u264C",virgo:"\u264D",libra:"\u264E",scorpius:"\u264F",sagittarius:"\u2650",capricorn:"\u2651",aquarius:"\u2652",pisces:"\u2653",ophiuchus:"\u26CE",twisted_rightwards_arrows:"\u{1F500}",repeat:"\u{1F501}",repeat_one:"\u{1F502}",arrow_forward:"\u25B6\uFE0F",fast_forward:"\u23E9",next_track_button:"\u23ED\uFE0F",play_or_pause_button:"\u23EF\uFE0F",arrow_backward:"\u25C0\uFE0F",rewind:"\u23EA",previous_track_button:"\u23EE\uFE0F",arrow_up_small:"\u{1F53C}",arrow_double_up:"\u23EB",arrow_down_small:"\u{1F53D}",arrow_double_down:"\u23EC",pause_button:"\u23F8\uFE0F",stop_button:"\u23F9\uFE0F",record_button:"\u23FA\uFE0F",eject_button:"\u23CF\uFE0F",cinema:"\u{1F3A6}",low_brightness:"\u{1F505}",high_brightness:"\u{1F506}",signal_strength:"\u{1F4F6}",wireless:"\u{1F6DC}",vibration_mode:"\u{1F4F3}",mobile_phone_off:"\u{1F4F4}",female_sign:"\u2640\uFE0F",male_sign:"\u2642\uFE0F",transgender_symbol:"\u26A7\uFE0F",heavy_multiplication_x:"\u2716\uFE0F",heavy_plus_sign:"\u2795",heavy_minus_sign:"\u2796",heavy_division_sign:"\u2797",heavy_equals_sign:"\u{1F7F0}",infinity:"\u267E\uFE0F",bangbang:"\u203C\uFE0F",interrobang:"\u2049\uFE0F",question:"\u2753",grey_question:"\u2754",grey_exclamation:"\u2755",exclamation:"\u2757",heavy_exclamation_mark:"\u2757",wavy_dash:"\u3030\uFE0F",currency_exchange:"\u{1F4B1}",heavy_dollar_sign:"\u{1F4B2}",medical_symbol:"\u2695\uFE0F",recycle:"\u267B\uFE0F",fleur_de_lis:"\u269C\uFE0F",trident:"\u{1F531}",name_badge:"\u{1F4DB}",beginner:"\u{1F530}",o:"\u2B55",white_check_mark:"\u2705",ballot_box_with_check:"\u2611\uFE0F",heavy_check_mark:"\u2714\uFE0F",x:"\u274C",negative_squared_cross_mark:"\u274E",curly_loop:"\u27B0",loop:"\u27BF",part_alternation_mark:"\u303D\uFE0F",eight_spoked_asterisk:"\u2733\uFE0F",eight_pointed_black_star:"\u2734\uFE0F",sparkle:"\u2747\uFE0F",copyright:"\xA9\uFE0F",registered:"\xAE\uFE0F",tm:"\u2122\uFE0F",hash:"#\uFE0F\u20E3",asterisk:"*\uFE0F\u20E3",zero:"0\uFE0F\u20E3",one:"1\uFE0F\u20E3",two:"2\uFE0F\u20E3",three:"3\uFE0F\u20E3",four:"4\uFE0F\u20E3",five:"5\uFE0F\u20E3",six:"6\uFE0F\u20E3",seven:"7\uFE0F\u20E3",eight:"8\uFE0F\u20E3",nine:"9\uFE0F\u20E3",keycap_ten:"\u{1F51F}",capital_abcd:"\u{1F520}",abcd:"\u{1F521}",symbols:"\u{1F523}",abc:"\u{1F524}",a:"\u{1F170}\uFE0F",ab:"\u{1F18E}",b:"\u{1F171}\uFE0F",cl:"\u{1F191}",cool:"\u{1F192}",free:"\u{1F193}",information_source:"\u2139\uFE0F",id:"\u{1F194}",m:"\u24C2\uFE0F",new:"\u{1F195}",ng:"\u{1F196}",o2:"\u{1F17E}\uFE0F",ok:"\u{1F197}",parking:"\u{1F17F}\uFE0F",sos:"\u{1F198}",up:"\u{1F199}",vs:"\u{1F19A}",koko:"\u{1F201}",sa:"\u{1F202}\uFE0F",u6708:"\u{1F237}\uFE0F",u6709:"\u{1F236}",u6307:"\u{1F22F}",ideograph_advantage:"\u{1F250}",u5272:"\u{1F239}",u7121:"\u{1F21A}",u7981:"\u{1F232}",accept:"\u{1F251}",u7533:"\u{1F238}",u5408:"\u{1F234}",u7a7a:"\u{1F233}",congratulations:"\u3297\uFE0F",secret:"\u3299\uFE0F",u55b6:"\u{1F23A}",u6e80:"\u{1F235}",red_circle:"\u{1F534}",orange_circle:"\u{1F7E0}",yellow_circle:"\u{1F7E1}",green_circle:"\u{1F7E2}",large_blue_circle:"\u{1F535}",purple_circle:"\u{1F7E3}",brown_circle:"\u{1F7E4}",black_circle:"\u26AB",white_circle:"\u26AA",red_square:"\u{1F7E5}",orange_square:"\u{1F7E7}",yellow_square:"\u{1F7E8}",green_square:"\u{1F7E9}",blue_square:"\u{1F7E6}",purple_square:"\u{1F7EA}",brown_square:"\u{1F7EB}",black_large_square:"\u2B1B",white_large_square:"\u2B1C",black_medium_square:"\u25FC\uFE0F",white_medium_square:"\u25FB\uFE0F",black_medium_small_square:"\u25FE",white_medium_small_square:"\u25FD",black_small_square:"\u25AA\uFE0F",white_small_square:"\u25AB\uFE0F",large_orange_diamond:"\u{1F536}",large_blue_diamond:"\u{1F537}",small_orange_diamond:"\u{1F538}",small_blue_diamond:"\u{1F539}",small_red_triangle:"\u{1F53A}",small_red_triangle_down:"\u{1F53B}",diamond_shape_with_a_dot_inside:"\u{1F4A0}",radio_button:"\u{1F518}",white_square_button:"\u{1F533}",black_square_button:"\u{1F532}",checkered_flag:"\u{1F3C1}",triangular_flag_on_post:"\u{1F6A9}",crossed_flags:"\u{1F38C}",black_flag:"\u{1F3F4}",white_flag:"\u{1F3F3}\uFE0F",rainbow_flag:"\u{1F3F3}\uFE0F\u200D\u{1F308}",transgender_flag:"\u{1F3F3}\uFE0F\u200D\u26A7\uFE0F",pirate_flag:"\u{1F3F4}\u200D\u2620\uFE0F",ascension_island:"\u{1F1E6}\u{1F1E8}",andorra:"\u{1F1E6}\u{1F1E9}",united_arab_emirates:"\u{1F1E6}\u{1F1EA}",afghanistan:"\u{1F1E6}\u{1F1EB}",antigua_barbuda:"\u{1F1E6}\u{1F1EC}",anguilla:"\u{1F1E6}\u{1F1EE}",albania:"\u{1F1E6}\u{1F1F1}",armenia:"\u{1F1E6}\u{1F1F2}",angola:"\u{1F1E6}\u{1F1F4}",antarctica:"\u{1F1E6}\u{1F1F6}",argentina:"\u{1F1E6}\u{1F1F7}",american_samoa:"\u{1F1E6}\u{1F1F8}",austria:"\u{1F1E6}\u{1F1F9}",australia:"\u{1F1E6}\u{1F1FA}",aruba:"\u{1F1E6}\u{1F1FC}",aland_islands:"\u{1F1E6}\u{1F1FD}",azerbaijan:"\u{1F1E6}\u{1F1FF}",bosnia_herzegovina:"\u{1F1E7}\u{1F1E6}",barbados:"\u{1F1E7}\u{1F1E7}",bangladesh:"\u{1F1E7}\u{1F1E9}",belgium:"\u{1F1E7}\u{1F1EA}",burkina_faso:"\u{1F1E7}\u{1F1EB}",bulgaria:"\u{1F1E7}\u{1F1EC}",bahrain:"\u{1F1E7}\u{1F1ED}",burundi:"\u{1F1E7}\u{1F1EE}",benin:"\u{1F1E7}\u{1F1EF}",st_barthelemy:"\u{1F1E7}\u{1F1F1}",bermuda:"\u{1F1E7}\u{1F1F2}",brunei:"\u{1F1E7}\u{1F1F3}",bolivia:"\u{1F1E7}\u{1F1F4}",caribbean_netherlands:"\u{1F1E7}\u{1F1F6}",brazil:"\u{1F1E7}\u{1F1F7}",bahamas:"\u{1F1E7}\u{1F1F8}",bhutan:"\u{1F1E7}\u{1F1F9}",bouvet_island:"\u{1F1E7}\u{1F1FB}",botswana:"\u{1F1E7}\u{1F1FC}",belarus:"\u{1F1E7}\u{1F1FE}",belize:"\u{1F1E7}\u{1F1FF}",canada:"\u{1F1E8}\u{1F1E6}",cocos_islands:"\u{1F1E8}\u{1F1E8}",congo_kinshasa:"\u{1F1E8}\u{1F1E9}",central_african_republic:"\u{1F1E8}\u{1F1EB}",congo_brazzaville:"\u{1F1E8}\u{1F1EC}",switzerland:"\u{1F1E8}\u{1F1ED}",cote_divoire:"\u{1F1E8}\u{1F1EE}",cook_islands:"\u{1F1E8}\u{1F1F0}",chile:"\u{1F1E8}\u{1F1F1}",cameroon:"\u{1F1E8}\u{1F1F2}",cn:"\u{1F1E8}\u{1F1F3}",colombia:"\u{1F1E8}\u{1F1F4}",clipperton_island:"\u{1F1E8}\u{1F1F5}",costa_rica:"\u{1F1E8}\u{1F1F7}",cuba:"\u{1F1E8}\u{1F1FA}",cape_verde:"\u{1F1E8}\u{1F1FB}",curacao:"\u{1F1E8}\u{1F1FC}",christmas_island:"\u{1F1E8}\u{1F1FD}",cyprus:"\u{1F1E8}\u{1F1FE}",czech_republic:"\u{1F1E8}\u{1F1FF}",de:"\u{1F1E9}\u{1F1EA}",diego_garcia:"\u{1F1E9}\u{1F1EC}",djibouti:"\u{1F1E9}\u{1F1EF}",denmark:"\u{1F1E9}\u{1F1F0}",dominica:"\u{1F1E9}\u{1F1F2}",dominican_republic:"\u{1F1E9}\u{1F1F4}",algeria:"\u{1F1E9}\u{1F1FF}",ceuta_melilla:"\u{1F1EA}\u{1F1E6}",ecuador:"\u{1F1EA}\u{1F1E8}",estonia:"\u{1F1EA}\u{1F1EA}",egypt:"\u{1F1EA}\u{1F1EC}",western_sahara:"\u{1F1EA}\u{1F1ED}",eritrea:"\u{1F1EA}\u{1F1F7}",es:"\u{1F1EA}\u{1F1F8}",ethiopia:"\u{1F1EA}\u{1F1F9}",eu:"\u{1F1EA}\u{1F1FA}",european_union:"\u{1F1EA}\u{1F1FA}",finland:"\u{1F1EB}\u{1F1EE}",fiji:"\u{1F1EB}\u{1F1EF}",falkland_islands:"\u{1F1EB}\u{1F1F0}",micronesia:"\u{1F1EB}\u{1F1F2}",faroe_islands:"\u{1F1EB}\u{1F1F4}",fr:"\u{1F1EB}\u{1F1F7}",gabon:"\u{1F1EC}\u{1F1E6}",gb:"\u{1F1EC}\u{1F1E7}",uk:"\u{1F1EC}\u{1F1E7}",grenada:"\u{1F1EC}\u{1F1E9}",georgia:"\u{1F1EC}\u{1F1EA}",french_guiana:"\u{1F1EC}\u{1F1EB}",guernsey:"\u{1F1EC}\u{1F1EC}",ghana:"\u{1F1EC}\u{1F1ED}",gibraltar:"\u{1F1EC}\u{1F1EE}",greenland:"\u{1F1EC}\u{1F1F1}",gambia:"\u{1F1EC}\u{1F1F2}",guinea:"\u{1F1EC}\u{1F1F3}",guadeloupe:"\u{1F1EC}\u{1F1F5}",equatorial_guinea:"\u{1F1EC}\u{1F1F6}",greece:"\u{1F1EC}\u{1F1F7}",south_georgia_south_sandwich_islands:"\u{1F1EC}\u{1F1F8}",guatemala:"\u{1F1EC}\u{1F1F9}",guam:"\u{1F1EC}\u{1F1FA}",guinea_bissau:"\u{1F1EC}\u{1F1FC}",guyana:"\u{1F1EC}\u{1F1FE}",hong_kong:"\u{1F1ED}\u{1F1F0}",heard_mcdonald_islands:"\u{1F1ED}\u{1F1F2}",honduras:"\u{1F1ED}\u{1F1F3}",croatia:"\u{1F1ED}\u{1F1F7}",haiti:"\u{1F1ED}\u{1F1F9}",hungary:"\u{1F1ED}\u{1F1FA}",canary_islands:"\u{1F1EE}\u{1F1E8}",indonesia:"\u{1F1EE}\u{1F1E9}",ireland:"\u{1F1EE}\u{1F1EA}",israel:"\u{1F1EE}\u{1F1F1}",isle_of_man:"\u{1F1EE}\u{1F1F2}",india:"\u{1F1EE}\u{1F1F3}",british_indian_ocean_territory:"\u{1F1EE}\u{1F1F4}",iraq:"\u{1F1EE}\u{1F1F6}",iran:"\u{1F1EE}\u{1F1F7}",iceland:"\u{1F1EE}\u{1F1F8}",it:"\u{1F1EE}\u{1F1F9}",jersey:"\u{1F1EF}\u{1F1EA}",jamaica:"\u{1F1EF}\u{1F1F2}",jordan:"\u{1F1EF}\u{1F1F4}",jp:"\u{1F1EF}\u{1F1F5}",kenya:"\u{1F1F0}\u{1F1EA}",kyrgyzstan:"\u{1F1F0}\u{1F1EC}",cambodia:"\u{1F1F0}\u{1F1ED}",kiribati:"\u{1F1F0}\u{1F1EE}",comoros:"\u{1F1F0}\u{1F1F2}",st_kitts_nevis:"\u{1F1F0}\u{1F1F3}",north_korea:"\u{1F1F0}\u{1F1F5}",kr:"\u{1F1F0}\u{1F1F7}",kuwait:"\u{1F1F0}\u{1F1FC}",cayman_islands:"\u{1F1F0}\u{1F1FE}",kazakhstan:"\u{1F1F0}\u{1F1FF}",laos:"\u{1F1F1}\u{1F1E6}",lebanon:"\u{1F1F1}\u{1F1E7}",st_lucia:"\u{1F1F1}\u{1F1E8}",liechtenstein:"\u{1F1F1}\u{1F1EE}",sri_lanka:"\u{1F1F1}\u{1F1F0}",liberia:"\u{1F1F1}\u{1F1F7}",lesotho:"\u{1F1F1}\u{1F1F8}",lithuania:"\u{1F1F1}\u{1F1F9}",luxembourg:"\u{1F1F1}\u{1F1FA}",latvia:"\u{1F1F1}\u{1F1FB}",libya:"\u{1F1F1}\u{1F1FE}",morocco:"\u{1F1F2}\u{1F1E6}",monaco:"\u{1F1F2}\u{1F1E8}",moldova:"\u{1F1F2}\u{1F1E9}",montenegro:"\u{1F1F2}\u{1F1EA}",st_martin:"\u{1F1F2}\u{1F1EB}",madagascar:"\u{1F1F2}\u{1F1EC}",marshall_islands:"\u{1F1F2}\u{1F1ED}",macedonia:"\u{1F1F2}\u{1F1F0}",mali:"\u{1F1F2}\u{1F1F1}",myanmar:"\u{1F1F2}\u{1F1F2}",mongolia:"\u{1F1F2}\u{1F1F3}",macau:"\u{1F1F2}\u{1F1F4}",northern_mariana_islands:"\u{1F1F2}\u{1F1F5}",martinique:"\u{1F1F2}\u{1F1F6}",mauritania:"\u{1F1F2}\u{1F1F7}",montserrat:"\u{1F1F2}\u{1F1F8}",malta:"\u{1F1F2}\u{1F1F9}",mauritius:"\u{1F1F2}\u{1F1FA}",maldives:"\u{1F1F2}\u{1F1FB}",malawi:"\u{1F1F2}\u{1F1FC}",mexico:"\u{1F1F2}\u{1F1FD}",malaysia:"\u{1F1F2}\u{1F1FE}",mozambique:"\u{1F1F2}\u{1F1FF}",namibia:"\u{1F1F3}\u{1F1E6}",new_caledonia:"\u{1F1F3}\u{1F1E8}",niger:"\u{1F1F3}\u{1F1EA}",norfolk_island:"\u{1F1F3}\u{1F1EB}",nigeria:"\u{1F1F3}\u{1F1EC}",nicaragua:"\u{1F1F3}\u{1F1EE}",netherlands:"\u{1F1F3}\u{1F1F1}",norway:"\u{1F1F3}\u{1F1F4}",nepal:"\u{1F1F3}\u{1F1F5}",nauru:"\u{1F1F3}\u{1F1F7}",niue:"\u{1F1F3}\u{1F1FA}",new_zealand:"\u{1F1F3}\u{1F1FF}",oman:"\u{1F1F4}\u{1F1F2}",panama:"\u{1F1F5}\u{1F1E6}",peru:"\u{1F1F5}\u{1F1EA}",french_polynesia:"\u{1F1F5}\u{1F1EB}",papua_new_guinea:"\u{1F1F5}\u{1F1EC}",philippines:"\u{1F1F5}\u{1F1ED}",pakistan:"\u{1F1F5}\u{1F1F0}",poland:"\u{1F1F5}\u{1F1F1}",st_pierre_miquelon:"\u{1F1F5}\u{1F1F2}",pitcairn_islands:"\u{1F1F5}\u{1F1F3}",puerto_rico:"\u{1F1F5}\u{1F1F7}",palestinian_territories:"\u{1F1F5}\u{1F1F8}",portugal:"\u{1F1F5}\u{1F1F9}",palau:"\u{1F1F5}\u{1F1FC}",paraguay:"\u{1F1F5}\u{1F1FE}",qatar:"\u{1F1F6}\u{1F1E6}",reunion:"\u{1F1F7}\u{1F1EA}",romania:"\u{1F1F7}\u{1F1F4}",serbia:"\u{1F1F7}\u{1F1F8}",ru:"\u{1F1F7}\u{1F1FA}",rwanda:"\u{1F1F7}\u{1F1FC}",saudi_arabia:"\u{1F1F8}\u{1F1E6}",solomon_islands:"\u{1F1F8}\u{1F1E7}",seychelles:"\u{1F1F8}\u{1F1E8}",sudan:"\u{1F1F8}\u{1F1E9}",sweden:"\u{1F1F8}\u{1F1EA}",singapore:"\u{1F1F8}\u{1F1EC}",st_helena:"\u{1F1F8}\u{1F1ED}",slovenia:"\u{1F1F8}\u{1F1EE}",svalbard_jan_mayen:"\u{1F1F8}\u{1F1EF}",slovakia:"\u{1F1F8}\u{1F1F0}",sierra_leone:"\u{1F1F8}\u{1F1F1}",san_marino:"\u{1F1F8}\u{1F1F2}",senegal:"\u{1F1F8}\u{1F1F3}",somalia:"\u{1F1F8}\u{1F1F4}",suriname:"\u{1F1F8}\u{1F1F7}",south_sudan:"\u{1F1F8}\u{1F1F8}",sao_tome_principe:"\u{1F1F8}\u{1F1F9}",el_salvador:"\u{1F1F8}\u{1F1FB}",sint_maarten:"\u{1F1F8}\u{1F1FD}",syria:"\u{1F1F8}\u{1F1FE}",swaziland:"\u{1F1F8}\u{1F1FF}",tristan_da_cunha:"\u{1F1F9}\u{1F1E6}",turks_caicos_islands:"\u{1F1F9}\u{1F1E8}",chad:"\u{1F1F9}\u{1F1E9}",french_southern_territories:"\u{1F1F9}\u{1F1EB}",togo:"\u{1F1F9}\u{1F1EC}",thailand:"\u{1F1F9}\u{1F1ED}",tajikistan:"\u{1F1F9}\u{1F1EF}",tokelau:"\u{1F1F9}\u{1F1F0}",timor_leste:"\u{1F1F9}\u{1F1F1}",turkmenistan:"\u{1F1F9}\u{1F1F2}",tunisia:"\u{1F1F9}\u{1F1F3}",tonga:"\u{1F1F9}\u{1F1F4}",tr:"\u{1F1F9}\u{1F1F7}",trinidad_tobago:"\u{1F1F9}\u{1F1F9}",tuvalu:"\u{1F1F9}\u{1F1FB}",taiwan:"\u{1F1F9}\u{1F1FC}",tanzania:"\u{1F1F9}\u{1F1FF}",ukraine:"\u{1F1FA}\u{1F1E6}",uganda:"\u{1F1FA}\u{1F1EC}",us_outlying_islands:"\u{1F1FA}\u{1F1F2}",united_nations:"\u{1F1FA}\u{1F1F3}",us:"\u{1F1FA}\u{1F1F8}",uruguay:"\u{1F1FA}\u{1F1FE}",uzbekistan:"\u{1F1FA}\u{1F1FF}",vatican_city:"\u{1F1FB}\u{1F1E6}",st_vincent_grenadines:"\u{1F1FB}\u{1F1E8}",venezuela:"\u{1F1FB}\u{1F1EA}",british_virgin_islands:"\u{1F1FB}\u{1F1EC}",us_virgin_islands:"\u{1F1FB}\u{1F1EE}",vietnam:"\u{1F1FB}\u{1F1F3}",vanuatu:"\u{1F1FB}\u{1F1FA}",wallis_futuna:"\u{1F1FC}\u{1F1EB}",samoa:"\u{1F1FC}\u{1F1F8}",kosovo:"\u{1F1FD}\u{1F1F0}",yemen:"\u{1F1FE}\u{1F1EA}",mayotte:"\u{1F1FE}\u{1F1F9}",south_africa:"\u{1F1FF}\u{1F1E6}",zambia:"\u{1F1FF}\u{1F1F2}",zimbabwe:"\u{1F1FF}\u{1F1FC}",england:"\u{1F3F4}\u{E0067}\u{E0062}\u{E0065}\u{E006E}\u{E0067}\u{E007F}",scotland:"\u{1F3F4}\u{E0067}\u{E0062}\u{E0073}\u{E0063}\u{E0074}\u{E007F}",wales:"\u{1F3F4}\u{E0067}\u{E0062}\u{E0077}\u{E006C}\u{E0073}\u{E007F}"};function td(){return function(e){pl(e,[/:(\+1|[-\w]+):/g,function(t,r){return Object.hasOwn(db,r)?db[r]:!1}])}}function Y5(e,t,r,n,i){return{default:Z5(e.fontScheme,t),paragraphStyles:J5(e.fontScheme,t,r),characterStyles:Q5(e.fontScheme,t,r),tableStyles:eq(n,r),codeColors:tq(i,r),linkColor:r.accent.link.replace("#",""),blockquoteColor:r.blockquote.border.replace("#","")}}function Z5(e,t){let r=e.body.fontFamily,n=Ft.ptToHalfPt(t.body.fontSize),i=Math.round(t.body.lineHeight*240),a=i-240,o=t.blocks.paragraph,s=parseFloat(o.spacingBefore||"0pt"),l=parseFloat(o.spacingAfter||"0pt"),c=Ft.ptToTwips(s+"pt")+Math.round(a/2),d=Math.max(0,Ft.ptToTwips(l+"pt")-Math.round(a/2));return{run:{font:Ft.getDocxFont(r),size:n},paragraph:{spacing:{line:i,before:c,after:d}}}}function J5(e,t,r){let n={};return["h1","h2","h3","h4","h5","h6"].forEach((a,o)=>{let s=o+1,l=e.headings[a],c=t.headings[a],d=l?.fontFamily||e.headings.fontFamily||e.body.fontFamily,f=Ft.getDocxFont(d),p=(l?.fontWeight??e.headings.fontWeight??"bold")==="bold",b=parseFloat(c.spacingBefore||"0pt"),v=parseFloat(c.spacingAfter||"0pt"),A=120,y=Ft.ptToTwips(b+"pt")+Math.round(A/2),T=Math.max(0,Ft.ptToTwips(v+"pt")-Math.round(A/2)),E=r.headings?.[a]||r.text.primary;n[`heading${s}`]={id:`Heading${s}`,name:`Heading ${s}`,basedOn:"Normal",next:"Normal",run:{size:Ft.ptToHalfPt(c.fontSize),bold:p,font:f,color:E.replace("#","")},paragraph:{spacing:{before:y,after:T,line:360},alignment:c.alignment||"left"}}}),n}function Q5(e,t,r){let n=e.code.fontFamily,i=r.background.code.replace("#","");return{code:{font:Ft.getDocxFont(n),size:Ft.ptToHalfPt(t.code.fontSize),background:i}}}function eq(e,t){let r={borders:{},header:{},cell:{},zebra:e.zebra?.enabled||!1},n=t.table.border.replace("#",""),i=e.border||{};i.all&&(r.borders.all={style:ul(i.all.style),size:dl(i.all.width,i.all.style),color:n}),i.headerTop&&(r.borders.headerTop={style:ul(i.headerTop.style),size:dl(i.headerTop.width,i.headerTop.style),color:n}),i.headerBottom&&(r.borders.headerBottom={style:ul(i.headerBottom.style),size:dl(i.headerBottom.width,i.headerBottom.style),color:n}),i.rowBottom&&(r.borders.insideHorizontal={style:ul(i.rowBottom.style),size:dl(i.rowBottom.width,i.rowBottom.style),color:n}),i.lastRowBottom&&(r.borders.lastRowBottom={style:ul(i.lastRowBottom.style),size:dl(i.lastRowBottom.width,i.lastRowBottom.style),color:n}),r.header.shading={fill:t.table.headerBackground.replace("#","")},r.header.color=t.table.headerText.replace("#",""),e.header.fontWeight&&(r.header.bold=e.header.fontWeight==="bold");let a=Ft.ptToTwips(e.cell.padding);return r.cell.margins={top:a,bottom:a,left:a,right:a},e.zebra?.enabled&&(r.zebra={even:t.table.zebraEven.replace("#",""),odd:t.table.zebraOdd.replace("#","")}),r}function tq(e,t){let r={};return Object.keys(e.colors).forEach(n=>{r[n]=e.colors[n]}),{background:t.background.code.replace("#",""),foreground:e.foreground?.replace("#","")||"24292e",colors:r}}function ul(e){return{none:We.NONE,solid:We.SINGLE,dashed:We.DASHED,dotted:We.DOTTED,double:We.DOUBLE}[e]||We.SINGLE}function dl(e,t="single"){let r=e.match(/^(\d+\.?\d*)(pt|px)$/);if(!r)return 8;let n=parseFloat(r[1]),i=r[2];if(i==="pt")return Math.round(n*8);if(i==="px"){let a=n*.75;return Math.round(a*8)}return 8}async function A2(e){try{await Ft.initialize();let t=await Ft.loadTheme(e),r=globalThis.platform;if(!r?.resource)throw new Error("Platform resource service not available");let n=async l=>{let c=await r.resource.fetch(l);return JSON.parse(c)},i=await n(`themes/layout-schemes/${t.layoutScheme}.json`),a=await n(`themes/color-schemes/${t.colorScheme}.json`),o=await n(`themes/table-styles/${t.tableStyle}.json`),s=await n(`themes/code-themes/${t.codeTheme}.json`);return Y5(t,i,a,o,s)}catch(t){let r=t instanceof Error?t.message:String(t);throw console.error("Error loading theme for DOCX:",r),t}}var kt=class e{constructor(t){if(this.constructor===e)throw new Error("BasePlugin is abstract and cannot be instantiated directly");this.type=t}get nodeSelector(){return["code"]}get language(){return this.type}extractContent(t){return!this.nodeSelector.includes(t.type)||this.language&&t.lang!==this.language?null:t.value||null}createTaskData(t){return{code:t}}getRenderParams(){return{}}isInline(){return!1}isUrl(t){return!1}async fetchContent(t){throw new Error("fetchContent not implemented")}async renderToCommon(t,r){let n=this.isInline();if(!t)return{type:"error",content:{text:`[${this.type} - Renderer not available]`},display:{inline:n,alignment:"left"}};try{let i=await t.render(this.type,r);if(!i)return{type:"empty",content:{},display:{inline:n,alignment:"left"}};let a=i.base64;if(typeof a!="string"||!a)throw new Error("Missing base64 data");let o=atob(a),s=o.length,l=new Uint8Array(s);for(let c=0;c<s;c++)l[c]=o.charCodeAt(c);return{type:"image",content:{data:l,base64:a,width:i.width,height:i.height,format:"png"},display:{inline:n,alignment:n?"left":"center"}}}catch(i){return console.warn(`Failed to render ${this.type}:`,i),{type:"error",content:{text:`[${this.type} Error: ${i.message}]`},display:{inline:n,alignment:"left"}}}}};var rd=class extends kt{constructor(){super("mermaid")}};var nd=class extends kt{constructor(){super("vega-lite")}extractContent(t){return t.type==="code"&&(t.lang==="vega-lite"||t.lang==="vegalite")&&t.value||null}};var id=class extends kt{constructor(){super("vega")}};function rq(e){if(typeof document>"u")return aq(e);try{let t=document.createElement("template");return t.innerHTML=e,nq(t.content),t.innerHTML}catch{return e}}function nq(e){let t=new Set(["SCRIPT","IFRAME","OBJECT","EMBED","AUDIO","VIDEO"]),r=[];for(Array.from(e.childNodes).forEach(n=>{n.nodeType===Node.ELEMENT_NODE?r.push(n):n.nodeType===Node.COMMENT_NODE&&n.remove()});r.length>0;){let n=r.pop();if(t.has(n.tagName)){n.remove();continue}let i=Array.from(n.attributes||[]);for(let a of i)(a.name.startsWith("on")||a.name==="href"&&a.value.trim().toLowerCase().startsWith("javascript:"))&&n.removeAttribute(a.name);Array.from(n.childNodes).forEach(a=>{a.nodeType===Node.ELEMENT_NODE?r.push(a):a.nodeType===Node.COMMENT_NODE&&a.remove()})}}function iq(e){if(typeof document>"u")return oq(e);let t=document.createElement("div");return t.innerHTML=e,t.textContent.trim().length>0||t.querySelector("*")!==null}function O2(e){if(/^(?:<br\s*\/?>(?:\s| )*)+$/i.test(e))return{sanitized:"",hasContent:!1};let t=rq(e),r=iq(t);return{sanitized:t,hasContent:r}}function aq(e){let t=e;return t=t.replace(/<!--[\s\S]*?-->/g,""),t=t.replace(/<script\b[\s\S]*?<\/script>/gi,"").replace(/<iframe\b[\s\S]*?<\/iframe>/gi,"").replace(/<object\b[\s\S]*?<\/object>/gi,"").replace(/<embed\b[\s\S]*?<\/embed>/gi,"").replace(/<audio\b[\s\S]*?<\/audio>/gi,"").replace(/<video\b[\s\S]*?<\/video>/gi,""),t=t.replace(/\son[a-z]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,""),t=t.replace(/\shref\s*=\s*(["'])\s*javascript:[\s\S]*?\1/gi,' href="#"'),t}function oq(e){let t=(e||"").replace(/<!--[\s\S]*?-->/g,"").replace(/<script\b[\s\S]*?<\/script>/gi,"").replace(/<style\b[\s\S]*?<\/style>/gi,"").trim();return t?!!(t.replace(/<[^>]+>/g,"").replace(/\s+/g," ").trim().length>0||/<(img|svg|table|pre|code|hr|br|math|canvas|iframe|object|embed)\b/i.test(t)):!1}var ad=class extends kt{constructor(){super("html")}get nodeSelector(){return["html"]}extractContent(t){if(t.type!=="html")return null;let r=t.value?.trim()||"";if(!r)return null;let{hasContent:n}=O2(r);return n?r:null}};var od=class extends kt{constructor(){super("svg");this._currentNodeType=null;this._currentNodeType=null}extractContent(r){if(this._currentNodeType=r.type,r.type==="code"&&r.lang==="svg")return r.value||null;if(r.type==="image"){let n=r.url||"";if(n.toLowerCase().endsWith(".svg")||n.toLowerCase().includes("image/svg+xml"))return n}return null}isInline(){return this._currentNodeType==="image"}isUrl(r){return r.startsWith("http://")||r.startsWith("https://")||r.startsWith("file://")||r.startsWith("data:")||r.includes("/")||r.includes("\\")}async fetchContent(r){if(r.startsWith("data:image/svg+xml")){let a=r.match(/^data:image\/svg\+xml;base64,(.+)$/);if(a)return atob(a[1]);let o=r.match(/^data:image\/svg\+xml[;,](.+)$/);if(o)return decodeURIComponent(o[1]);throw new Error("Unsupported SVG data URL format")}let n=globalThis.platform?.document;if(!n)throw new Error("DocumentService not available - platform not initialized");if(r.startsWith("http://")||r.startsWith("https://")){let a=await n.fetchRemote(r);return new TextDecoder().decode(a)}let i=r.startsWith("file://")?r.slice(7):r;try{return await n.readRelativeFile(i)}catch(a){throw new Error(`Cannot load SVG file: ${r} - ${a.message}`)}}get nodeSelector(){return["code","image"]}};var sd=class extends kt{constructor(){super("dot")}};var ld=class extends kt{constructor(){super("infographic")}};var cd=class extends kt{constructor(){super("canvas")}};var fb=class{constructor(t=500){this.cache=new Map;this.maxSize=t}get(t){let r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t)&&this.cache.delete(t),this.cache.size>=this.maxSize){let n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}get size(){return this.cache.size}},mz=new fb(5e3);var uq=[new ad,new rd,new nd,new id,new od,new sd,new ld,new cd];function hb(e){for(let t of uq)if(t.extractContent(e)!==null)return t;return null}async function T2(e,t,r,n=null){let i=hb(e);if(!i)return null;let a=i.extractContent(e);if(!a)return null;i.isUrl&&i.isUrl(a)&&(a=await i.fetchContent(a));let o=await i.renderToCommon(t,a),s=mb(o,i.type);return n&&n(),s}var hC=Ln(mC(),1);var _b=hC.default;var C8={foreground:"24292E",colors:{}},k8={font:"Consolas",size:20};function N8(e){return e?e.replace(/&(#x?[0-9a-fA-F]+|[a-zA-Z]+);/g,(t,r)=>{let n=String(r).toLowerCase();if(n==="lt")return"<";if(n==="gt")return">";if(n==="amp")return"&";if(n==="quot")return'"';if(n==="apos")return"'";if(n==="nbsp")return" ";if(n.startsWith("#x")){let i=Number.parseInt(n.slice(2),16);if(Number.isFinite(i))try{return String.fromCodePoint(i)}catch{return""}}if(n.startsWith("#")){let i=Number.parseInt(n.slice(1),10);if(Number.isFinite(i))try{return String.fromCodePoint(i)}catch{return""}}return`&${r};`}):""}function I8(e,t,r,n,i){let a=[],o="",s=()=>{for(let d=a.length-1;d>=0;d--){let f=r(a[d]);if(f)return f}return i},l=()=>{if(!o)return;let d=N8(o);n(d,t,s()),o=""},c=0;for(;c<e.length;){let d=e[c];if(d!=="<"){o+=d,c++;continue}let f=e.indexOf(">",c+1);if(f===-1){o+=e.slice(c);break}let m=e.slice(c+1,f).trim(),p=m.toLowerCase();if((p.startsWith("span")||p==="/span"||p.startsWith("br"))&&l(),p.startsWith("span")){let b=m.match(/\bclass\s*=\s*(?:"([^"]*)"|'([^']*)')/i),v=(b?.[1]??b?.[2]??"").trim(),A=v?v.split(/\s+/).filter(Boolean):[];a.push(A)}else p==="/span"?a.pop():p.startsWith("br")&&(o+=`
|
|
53
|
+
`);c=f+1}l()}function pC(e){let t=e?.codeColors||C8,r=e?.characterStyles?.code||k8;function n(s){if(!s)return null;let l=Array.isArray(s)?s:typeof s=="string"?s.split(/\s+/):Array.from(s);for(let c of l){if(!c)continue;let d=c.startsWith("hljs-")?c.slice(5):c;if(!d)continue;let f=d.replace(/-/g,"_"),m=t.colors?.[f];if(m)return m.replace("#","")}return null}function i(s,l,c){if(s==="")return;let d=s.split(`
|
|
54
|
+
`),f=d.length-1,m=t.foreground,p=c||m,b=r.font,v=r.size;d.forEach((A,y)=>{A.length>0&&l.push(new Ue({text:A,font:b,size:v,color:p})),y<f&&l.push(new Ue({text:"",break:1}))})}function a(s,l,c=null){if(c===null&&(c=t.foreground),!s)return;if(s.nodeType===Node.TEXT_NODE){i(s.nodeValue||"",l,c);return}if(s.nodeType!==Node.ELEMENT_NODE)return;let m=n(s.classList)||c||c;s.childNodes.forEach(p=>{a(p,l,m)})}function o(s,l){let c=[],d=typeof document<"u"&&typeof Node<"u";if(!s){let p=r.font,b=r.size,v=t.foreground;return c.push(new Ue({text:"",font:p,size:b,color:v})),c}let f=null;try{l&&_b.getLanguage(l)?f=_b.highlight(s,{language:l,ignoreIllegals:!0}):f=null}catch(p){console.warn("Highlight error:",p)}let m=t.foreground;if(f&&f.value)if(d){let p=document.createElement("div");p.innerHTML=f.value,a(p,c,m)}else I8(f.value,c,p=>n(p),i,m);return c.length===0&&i(s,c,m),c}return{getHighlightColor:n,appendCodeTextRuns:i,collectHighlightedRuns:a,getHighlightedRunsForCode:o}}function P8(e,t){let r=URL.createObjectURL(e),n=document.createElement("a");n.href=r,n.download=t,n.style.display="none",document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n),URL.revokeObjectURL(r)},100)}async function gC(e,t,r){let n=globalThis.platform;if(n?.file?.download){await n.file.download(e,t,{mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",onProgress:r?i=>{r(i.uploaded,i.total)}:void 0});return}P8(e,t)}function yC({themeStyles:e,convertInlineNodes:t}){let r={top:80,bottom:80,left:100,right:100},n=e.tableStyles||{},i=n.header||{},a=n.cell||{},o=n.borders||{},s=n.zebra;async function l(c,d=0){let f=[],m=c.align||[],p=(c.children||[]).filter(A=>A.type==="tableRow"),b=p.length;for(let A=0;A<b;A++){let y=p[A],T=A===0,E=A===b-1;if(y.type==="tableRow"){let w=[],x=y.children||[];for(let D=0;D<x.length;D++){let B=x[D];if(B.type==="tableCell"){let P=T&&(i.bold??!0),I=T&&i.color?i.color:void 0,Z=T?await t(B.children||[],{bold:P,size:20,color:I}):await t(B.children||[],{size:20}),oe=m[D],R=Oe.LEFT;T?R=Oe.CENTER:oe==="center"?R=Oe.CENTER:oe==="right"&&(R=Oe.RIGHT);let z={children:Z,alignment:R,spacing:{before:60,after:60,line:240}},C={style:We.SINGLE,size:0,color:"FFFFFF"},J={style:We.NONE,size:0,color:"FFFFFF"},te=D===0,X;o.all?X={top:o.all,bottom:o.all,left:o.all,right:o.all}:X={top:C,bottom:C,left:te?C:J,right:J},T&&o.headerTop&&o.headerTop.style!==We.NONE&&(X={...X||{},top:o.headerTop}),T&&o.headerBottom&&o.headerBottom.style!==We.NONE&&(X={...X||{},bottom:o.headerBottom}),T||(E&&o.lastRowBottom&&o.lastRowBottom.style!==We.NONE?X={...X||{},bottom:o.lastRowBottom}:o.insideHorizontal&&o.insideHorizontal.style!==We.NONE&&(X={...X||{},bottom:o.insideHorizontal}));let W;if(T&&i.shading)W=i.shading;else if(A>0&&typeof s=="object"){let K=(A-1)%2===0?s.odd:s.even;K!=="ffffff"&&K!=="FFFFFF"&&(W={fill:K})}let H={children:[new Le(z)],verticalAlign:u0.CENTER,margins:a.margins||r,borders:X,shading:W};w.push(new fi(H))}}f.push(new za({children:w,tableHeader:T}))}}let v=d>0?at(.5*d/2):void 0;return new Ha({rows:f,layout:Ql.AUTOFIT,alignment:Oe.CENTER,indent:v?{size:v,type:Xn.DXA}:void 0})}return{convertTable:l}}var j8={leftBorderSize:18};function _C({themeStyles:e,convertInlineNodes:t,convertChildNode:r}){let i=(e.default?.paragraph?.spacing||{before:0,line:276}).line??276,s={top:80+(i-240),bottom:0,left:200,right:100},l=r;function c(m){l=m}async function d(m,p){let v={children:await t(m.children),spacing:{before:p?0:120,after:0,line:i},alignment:Oe.LEFT};return new Le(v)}async function f(m,p=0,b=0){let v=[],A=!0;for(let P of m.children)if(P.type==="paragraph")v.push(await d(P,A)),A=!1;else if(P.type==="blockquote"){let I=await f(P,p,b+1);v.push(I),A=!1}else if(l){let I=await l(P,b+1);I&&(Array.isArray(I)?v.push(...I):v.push(I)),A=!1}v.length===0&&v.push(new Le({text:""}));let y=new fi({children:v,margins:s,borders:{top:{style:We.SINGLE,size:0,color:"FFFFFF"},bottom:{style:We.SINGLE,size:0,color:"FFFFFF"},right:{style:We.SINGLE,size:0,color:"FFFFFF"},left:{style:We.SINGLE,size:j8.leftBorderSize,color:e.blockquoteColor}}}),T=new za({children:[y]}),E=p>0?.5*p:0,w=.2*b,x=E+w,D=b>0;return new Ha({rows:[T],width:D?{size:100,type:Xn.PERCENTAGE}:{size:at(6.5-E),type:Xn.DXA},layout:Ql.FIXED,indent:D?void 0:E>0?{size:at(E),type:Xn.DXA}:void 0})}return{convertBlockquote:f,setConvertChildNode:c}}function vC(){let e=[],t=[Et.DECIMAL,Et.LOWER_ROMAN,Et.LOWER_LETTER,Et.LOWER_LETTER,Et.LOWER_LETTER,Et.LOWER_LETTER,Et.LOWER_LETTER,Et.LOWER_LETTER,Et.LOWER_LETTER],r=.42,n=.42,i=.28;for(let a=0;a<9;a++)e.push({level:a,format:t[a],text:`%${a+1}.`,alignment:Oe.START,style:{paragraph:{indent:{left:at(r+a*n),hanging:at(a===8?.3:i)}}}});return e}function bC({themeStyles:e,convertInlineNodes:t,getListInstanceCounter:r,incrementListInstanceCounter:n}){let i=e.default?.run||{font:"Arial",size:22},a=e.default?.paragraph?.spacing||{line:276},o;function s(d){o=d}async function l(d){let f=[],m=n();for(let p of d.children){let b=await c(d.ordered??!1,p,0,m);b&&f.push(...b)}return f}async function c(d,f,m,p){let b=[],v=f.checked!==null&&f.checked!==void 0;for(let A of f.children)if(A.type==="paragraph"){let T=await t(A.children||[]);if(v){let D=f.checked?"\u25A3":"\u2610";T.unshift(new Ue({text:D+" ",font:i.font,size:i.size}))}let E=a.line??276,w={children:T,spacing:{before:0,after:0,line:E},alignment:Oe.LEFT},x=d&&!v?new Le({...w,numbering:{reference:"default-ordered-list",level:m,instance:p}}):new Le({...w,bullet:{level:m}});b.push(x)}else if(A.type==="list"){let y=A;for(let T of y.children)b.push(...await c(y.ordered??!1,T,m+1,p))}else if(o){let y=await o(A,m+1);y&&(Array.isArray(y)?b.push(...y):b.push(y))}return b}return{convertList:l,convertListItem:c,setConvertChildNode:s}}function yd(e,t){if(e<=576&&t<=912)return{width:e,height:t};let o=576/e,s=912/t,l=Math.min(o,s);return{width:Math.round(e*l),height:Math.round(t*l)}}function mb(e,t="diagram"){if(e.type==="empty")return new Le({children:[]});if(e.type==="error")return e.display.inline?new Ue({text:e.content.text||"",italics:!0,color:"FF0000"}):new Le({children:[new Ue({text:e.content.text||"",italics:!0,color:"FF0000"})],alignment:Oe.LEFT,spacing:{before:240,after:240}});if(e.type==="text"){let r=e.display.inline,n=e.content.text||"";return r?new Ue({text:n}):new Le({children:[new Ue({text:n})],alignment:Oe.LEFT,spacing:{before:240,after:240}})}if(e.type==="image"){let{data:r,width:n,height:i}=e.content,{inline:a,alignment:o}=e.display,s=Math.round((n||0)/4),l=Math.round((i||0)/4),{width:c,height:d}=yd(s,l),f=new Wn({data:r,transformation:{width:c,height:d},type:"png",altText:{title:`${t} Image`,description:`${t} image`,name:`${t}-image`}});if(a)return f;let m={center:Oe.CENTER,right:Oe.RIGHT,left:Oe.LEFT};return new Le({children:[f],alignment:m[o||"center"]||Oe.CENTER,spacing:{before:240,after:240}})}return new Le({children:[]})}async function wC(e,t){if(typeof Blob<"u"&&typeof URL<"u"&&typeof URL.createObjectURL=="function"&&typeof Image<"u")return await new Promise((l,c)=>{let d=e.slice().buffer,f=new Blob([d],{type:t}),m=URL.createObjectURL(f),p=new Image;p.onload=()=>{URL.revokeObjectURL(m),l({width:p.width,height:p.height})},p.onerror=()=>{URL.revokeObjectURL(m),c(new Error("Failed to load image"))},p.src=m});let n=e,i=l=>(n[l]|n[l+1]<<8)>>>0,a=l=>(n[l]<<8|n[l+1])>>>0,o=l=>(n[l]|n[l+1]<<8|n[l+2]<<16|n[l+3]<<24)>>>0,s=l=>(n[l]<<24>>>0|n[l+1]<<16|n[l+2]<<8|n[l+3])>>>0;try{if(n.length>=24&&n[0]===137&&n[1]===80&&n[2]===78&&n[3]===71){let l=s(16),c=s(20);return{width:l,height:c}}if(n.length>=10&&n[0]===71&&n[1]===73&&n[2]===70){let l=i(6),c=i(8);return{width:l,height:c}}if(n.length>=26&&n[0]===66&&n[1]===77){let l=o(18),c=o(22),d=c>2147483647?4294967296-c:c;return{width:l,height:Math.abs(d)}}if(n.length>=4&&n[0]===255&&n[1]===216){let l=2;for(;l+4<n.length;){if(n[l]!==255){l++;continue}for(;l<n.length&&n[l]===255;)l++;let c=n[l];if(l++,c===217||c===218||l+1>=n.length)break;let d=a(l);if(d<2)break;if((c>=192&&c<=195||c>=197&&c<=199||c>=201&&c<=203||c>=205&&c<=207)&&l+7<n.length){let m=a(l+3);return{width:a(l+5),height:m}}l+=d}}if(n.length>=30&&n[0]===82&&n[1]===73&&n[2]===70&&n[3]===70&&n[8]===87&&n[9]===69&&n[10]===66&&n[11]===80){let l=String.fromCharCode(n[12],n[13],n[14],n[15]);if(l==="VP8X"&&n.length>=30){let c=n[24]|n[25]<<8|n[26]<<16,d=n[27]|n[28]<<8|n[29]<<16;return{width:c+1,height:d+1}}if(l==="VP8L"&&n.length>=25&&n[20]===47){let c=o(21),d=(c&16383)+1,f=(c>>14&16383)+1;return{width:d,height:f}}}}catch{}return{width:96,height:96}}function EC(e,t){let r="png";if(e)e.includes("jpeg")||e.includes("jpg")?r="jpg":e.includes("png")?r="png":e.includes("gif")?r="gif":e.includes("bmp")&&(r="bmp");else if(t){let n=t.toLowerCase().split(".").pop()?.split("?")[0]||"",i={jpg:"jpg",jpeg:"jpg",png:"png",gif:"gif",bmp:"bmp"};n in i&&(r=i[n])}return r}function AC(e,t=null){if(t&&t.includes("svg"))return!0;let r=e.toLowerCase();return r.endsWith(".svg")||r.includes("image/svg+xml")}async function OC(e,t){let r=await t.render("svg",e,{outputFormat:"png"}),n=atob(r.base64),i=n.length,a=new Uint8Array(i);for(let o=0;o<i;o++)a[o]=n.charCodeAt(o);return{buffer:a,width:r.width,height:r.height}}async function TC(e,t){if(e.startsWith("data:image/svg+xml")){let n=e.match(/^data:image\/svg\+xml;base64,(.+)$/);if(n)return atob(n[1]);let i=e.match(/^data:image\/svg\+xml[;,](.+)$/);if(i)return decodeURIComponent(i[1]);throw new Error("Unsupported SVG data URL format")}let{buffer:r}=await t(e);return new TextDecoder().decode(r)}var SC={apple:{ascii:"Apple Color Emoji",eastAsia:"Apple Color Emoji",hAnsi:"Apple Color Emoji",cs:"Apple Color Emoji"},windows:{ascii:"Segoe UI Emoji",eastAsia:"Segoe UI Emoji",hAnsi:"Segoe UI Emoji",cs:"Segoe UI Emoji"}};function R8(e="windows"){return e==="system"?SC.windows:SC[e]}var xC=new RegExp("(?:\\p{RI}\\p{RI}|[#*0-9]\\u{FE0F}?\\u{20E3}|\\p{Extended_Pictographic}(?:\\p{Emoji_Modifier}|\\u{FE0F}|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(?:\\u{200D}(?:\\p{Extended_Pictographic}(?:\\p{Emoji_Modifier}|\\u{FE0F}|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?|[#*0-9]\\u{FE0F}?\\u{20E3}))*)","gu");function L8(e){let t=[],r=0;xC.lastIndex=0;let n;for(;(n=xC.exec(e))!==null;)n.index>r&&t.push({type:"text",content:e.slice(r,n.index)}),t.push({type:"emoji",content:n[0]}),r=n.index+n[0].length;return r<e.length&&t.push({type:"text",content:e.slice(r)}),t}function MC({themeStyles:e,fetchImageAsBuffer:t,reportResourceProgress:r,linkDefinitions:n,renderer:i,emojiStyle:a="system",linkColor:o="0366D6"}){let s=a==="system"?null:R8(a);function l(E){return E.replace(/\uFE0F/g,"")}function c(E,w){if(s===null)return new Ue({text:E,...w});let x=L8(E);if(x.length===1&&x[0].type==="text")return new Ue({text:E,...w});if(x.length===1&&x[0].type==="emoji"){let D=l(E);return new Ue({text:D,...w,font:s})}return x.map(D=>{if(D.type==="emoji"){let B=l(D.content);return new Ue({text:B,...w,font:s})}return new Ue({text:D.content,...w})})}async function d(E,w={}){let x=[],D=e.default.run.font,B=e.default.run.size,P={font:D,size:B,...w};for(let I of E){let Z=await f(I,P);Z&&(Array.isArray(Z)?x.push(...Z):x.push(Z))}return x}async function f(E,w={}){switch(E.type){case"text":return c(E.value,w);case"strong":return await d(E.children,{...w,bold:!0});case"emphasis":return await d(E.children,{...w,italics:!0});case"delete":return await d(E.children,{...w,strike:!0});case"superscript":return await d(E.children,{...w,superScript:!0});case"subscript":return await d(E.children,{...w,subScript:!0});case"inlineCode":{let x=e.characterStyles.code;return new Ue({...w,text:E.value,font:x.font,size:x.size,shading:{fill:x.background}})}case"link":return await m(E,w);case"linkReference":return await p(E,w);case"image":return await b(E);case"inlineMath":return await y(E,w);case"break":return new Ue({text:"",break:1});case"html":{let x=E.value?.trim()||"";if(/^<br\s*\/?>$/i.test(x))return new Ue({text:"",break:1});let D=x.replace(/<[^>]+>/g,"");return c(D,w)}default:return null}}async function m(E,w){let x=T(E),D=E.url||"#",B={style:"Hyperlink",color:o,underline:{type:"single",color:o},...w},P=c(x,B);return new qa({children:Array.isArray(P)?P:[P],link:D})}async function p(E,w){let x=T(E),D=E.identifier.toLowerCase(),P=n?.get(D)?.url||"#",I={style:"Hyperlink",color:o,underline:{type:"single",color:o},...w},Z=c(x,I);return new qa({children:Array.isArray(Z)?Z:[Z],link:P})}async function b(E){try{if(AC(E.url))return await v(E.url,E.alt);let{buffer:w,contentType:x}=await t(E.url);if(x&&x.includes("svg")){let oe=new TextDecoder().decode(w);return await A(oe,E.alt)}let{width:D,height:B}=await wC(w,x),{width:P,height:I}=yd(D,B),Z=EC(x,E.url);return r(),new Wn({data:w,transformation:{width:P,height:I},type:Z,altText:{title:E.alt||"Image",description:E.alt||"",name:E.alt||"image"}})}catch(w){return console.warn("Failed to load image:",E.url,w),r(),new Ue({text:`[\u56FE\u7247\u52A0\u8F7D\u5931\u8D25: ${E.alt||E.url}]`,italics:!0,color:"DC2626",bold:!0})}}async function v(E,w){try{let x=await TC(E,t);return await A(x,w)}catch(x){return console.warn("Failed to load SVG image:",E,x),r(),new Ue({text:`[SVG \u56FE\u7247\u52A0\u8F7D\u5931\u8D25: ${w||E}]`,italics:!0,color:"DC2626"})}}async function A(E,w){if(!i)return r(),new Ue({text:"[SVG \u56FE\u7247 - \u6E32\u67D3\u5668\u4E0D\u53EF\u7528]",italics:!0,color:"666666"});try{let{buffer:x,width:D,height:B}=await OC(E,i),P=Math.round(D/4),I=Math.round(B/4),{width:Z,height:oe}=yd(P,I);return r(),new Wn({data:x,transformation:{width:Z,height:oe},type:"png",altText:{title:w||"SVG Image",description:w||"SVG image",name:w||"svg-image"}})}catch(x){return console.warn("Failed to render SVG:",x),r(),new Ue({text:`[SVG \u6E32\u67D3\u5931\u8D25: ${x.message}]`,italics:!0,color:"FF0000"})}}async function y(E,w){try{return Qu(E.value)}catch(x){console.warn("Inline math conversion error:",x);let D=e.characterStyles.code;return new Ue({text:E.value,font:D.font,size:D.size,...w})}}function T(E){if("value"in E&&E.value)return E.value;if("children"in E&&E.children){let w="";for(let x of E.children)w+=T(x);return w}return""}return{convertInlineNodes:d,convertInlineNode:f,convertImage:b,extractText:T}}var vb=class{constructor(t=null){this.imageCache=new Map;this.listInstanceCounter=0;this.mathJaxInitialized=!1;this.baseUrl=null;this.themeStyles=null;this.codeHighlighter=null;this.linkDefinitions=new Map;this.progressCallback=null;this.totalResources=0;this.processedResources=0;this.docxHrAsPageBreak=!0;this.docxEmojiStyle="windows";this.frontmatterDisplay="hide";this.tableConverter=null;this.blockquoteConverter=null;this.listConverter=null;this.inlineConverter=null;this.frontmatterContent=null;this.renderer=t}setBaseUrl(t){this.baseUrl=t;let r=this.getDocumentService();if(r){let n=t.startsWith("file://")?t.replace("file://",""):t;r.setDocumentPath(n)}}getDocumentService(){return globalThis.platform?.document}async initializeMathJax(){this.mathJaxInitialized||(await E2(),this.mathJaxInitialized=!0)}initializeConverters(){if(!this.themeStyles)return;let t=this.renderer?{render:async(r,n)=>{let i=await this.renderer.render(r,n);if(!i)throw new Error("Renderer returned empty result");let{base64:a,width:o,height:s,format:l}=i;if(typeof a!="string"||a.length===0)throw new Error("Renderer returned empty base64");if(typeof o!="number"||typeof s!="number")throw new Error("Renderer returned invalid dimensions");if(typeof l!="string"||l.length===0)throw new Error("Renderer returned empty format");return{base64:a,width:o,height:s,format:l}}}:null;this.inlineConverter=MC({themeStyles:this.themeStyles,fetchImageAsBuffer:r=>this.fetchImageAsBuffer(r),reportResourceProgress:()=>this.reportResourceProgress(),linkDefinitions:this.linkDefinitions,renderer:t,emojiStyle:this.docxEmojiStyle,linkColor:this.themeStyles.linkColor}),this.tableConverter=yC({themeStyles:this.themeStyles,convertInlineNodes:(r,n)=>this.inlineConverter.convertInlineNodes(r,n)}),this.blockquoteConverter=_C({themeStyles:this.themeStyles,convertInlineNodes:(r,n)=>this.inlineConverter.convertInlineNodes(r,n)}),this.blockquoteConverter.setConvertChildNode((r,n)=>this.convertNode(r,{},0,n)),this.listConverter=bC({themeStyles:this.themeStyles,convertInlineNodes:(r,n)=>this.inlineConverter.convertInlineNodes(r,n),getListInstanceCounter:()=>this.listInstanceCounter,incrementListInstanceCounter:()=>this.listInstanceCounter++}),this.listConverter.setConvertChildNode((r,n)=>this.convertNode(r,{},n))}async exportToDocx(t,r="document.docx",n=null){try{typeof window<"u"&&window.location?.href&&this.setBaseUrl(window.location.href);try{let y=globalThis.platform?.storage;if(y?.get){let E=(await y.get(["markdownViewerSettings"]))?.markdownViewerSettings,w=E?.docxHrAsPageBreak;this.docxHrAsPageBreak=typeof w=="boolean"?w:!0;let x=E?.docxEmojiStyle;this.docxEmojiStyle=x==="apple"||x==="windows"||x==="system"?x:"system";let D=E?.frontmatterDisplay;this.frontmatterDisplay=D==="hide"||D==="table"||D==="raw"?D:"hide"}else this.docxHrAsPageBreak=!0,this.frontmatterDisplay="hide"}catch{this.docxHrAsPageBreak=!0,this.frontmatterDisplay="hide"}let i=await Ft.loadSelectedTheme();if(this.themeStyles=await A2(i),!this.themeStyles)throw new Error("Failed to load DOCX theme");this.codeHighlighter=pC(this.themeStyles),this.progressCallback=n,this.totalResources=0,this.processedResources=0,await this.initializeMathJax();let a=this.parseMarkdown(t);this.totalResources=this.countResources(a),n&&n(0,100),this.initializeConverters();let o=performance.now(),s=await this.convertAstToDocx(a),l=performance.now()-o,c=Object.entries(this.themeStyles.paragraphStyles).map(([y,T])=>({id:y,...this.toHeadingStyle(T)})),d={default:{document:this.toDocumentDefaults(this.themeStyles.default)},paragraphStyles:c},f=new Kl({creator:"Markdown Viewer Extension",lastModifiedBy:"Markdown Viewer Extension",numbering:{config:[{reference:"default-ordered-list",levels:vC()}]},styles:d,sections:[{properties:{page:{margin:{top:at(1),right:at(1),bottom:at(1),left:at(1)}}},children:s}]}),m=l*1.8,p=performance.now(),b=30,v=n?setInterval(()=>{let y=performance.now()-p,T=Math.min(84,30+y/m*55);T>b&&(b=Math.round(T),n(b,100))},100):null,A=await h0.toBlob(f);return v&&clearInterval(v),n&&n(85,100),await gC(A,r,n?(y,T)=>{let E=T>0?y/T:1,w=85+Math.round(E*15);n(w,100)}:void 0),{success:!0}}catch(i){let a=i instanceof Error?i.message:String(i),o=i instanceof Error?i.stack:"";return this.imageCache.clear(),console.error("DOCX export error:",a,o),{success:!1,error:a}}finally{this.progressCallback=null,this.totalResources=0,this.processedResources=0}}countResources(t){let r=0,n=i=>{i.type==="image"&&r++,hb(i)&&r++,i.children&&i.children.forEach(n)};return t.children&&t.children.forEach(n),r}reportResourceProgress(){if(this.processedResources++,this.progressCallback&&this.totalResources>0){let t=this.processedResources/this.totalResources,r=Math.round(t*30);this.progressCallback(r,100)}}extractFrontmatter(t){let r=t.split(`
|
|
55
|
+
`);if(r.length<2||r[0].trim()!=="---")return[null,t];let n=-1;for(let s=1;s<r.length;s++)if(r[s].trim()==="---"){n=s;break}if(n===-1)return[null,t];let a=r.slice(1,n).join(`
|
|
56
|
+
`),o=r.slice(n+1).join(`
|
|
57
|
+
`);return[a,o]}parseFrontmatterData(t){let r=t.split(`
|
|
58
|
+
`),n={};for(let i of r){let a=i.indexOf(":");if(a>0){let o=i.substring(0,a).trim(),s=i.substring(a+1).trim();o&&(n[o]=s)}}return n}parseMarkdown(t){let[r,n]=this.extractFrontmatter(t);this.frontmatterContent=r;let i=Eb().use(Ab).use(Tb,{singleTilde:!1}).use(ed).use(Sb).use(td).use(bd),a=i.parse(n),o=i.runSync(a);return this.linkDefinitions=new Map,Ob(o,"definition",s=>{let l=s;l.identifier&&this.linkDefinitions.set(l.identifier.toLowerCase(),{url:l.url||"",title:l.title??null})}),o}isTocMarker(t){if(t.type!=="paragraph"||!t.children||t.children.length!==1)return!1;let r=t.children[0];if(r.type!=="text")return!1;let n=(r.value||"").trim();return/^\[toc\]$/i.test(n)}async convertFrontmatterToDocx(){if(!this.frontmatterContent||this.frontmatterDisplay==="hide")return[];let t=[],r=this.themeStyles?.default?.paragraph?.spacing||{before:0,after:200,line:276};if(this.frontmatterDisplay==="table"){let n=this.parseFrontmatterData(this.frontmatterContent),i=Object.entries(n);if(i.length>0&&this.tableConverter){let a={type:"table",align:["left","left"],children:[{type:"tableRow",children:[{type:"tableCell",children:[{type:"text",value:"Property"}]},{type:"tableCell",children:[{type:"text",value:"Value"}]}]},...i.map(([s,l])=>({type:"tableRow",children:[{type:"tableCell",children:[{type:"text",value:s}]},{type:"tableCell",children:[{type:"text",value:l}]}]}))]},o=await this.tableConverter.convertTable(a);t.push(o),t.push(new Le({text:"",spacing:{before:r.before,after:r.after}}))}}else if(this.frontmatterDisplay==="raw"){let n=this.themeStyles?.characterStyles?.code||{font:"Consolas",size:20},i=this.themeStyles?.characterStyles?.code?.background||"F6F8FA",a=this.themeStyles?.codeColors?.foreground||"24292E",o=[];this.frontmatterContent.split(`
|
|
59
|
+
`).forEach((l,c)=>{c>0&&o.push(new Ue({break:1})),o.push(new Ue({text:l||" ",font:n.font,size:n.size,color:a}))}),t.push(new Le({children:o,wordWrap:!0,alignment:Oe.LEFT,spacing:{before:200,after:200,line:276},shading:{fill:i},indent:{left:200,right:200},border:{top:{color:"E1E4E8",space:10,style:We.SINGLE,size:6},bottom:{color:"E1E4E8",space:10,style:We.SINGLE,size:6},left:{color:"E1E4E8",space:10,style:We.SINGLE,size:6},right:{color:"E1E4E8",space:10,style:We.SINGLE,size:6}}})),t.push(new Le({text:"",spacing:{before:r.before,after:r.after}}))}return t}async convertAstToDocx(t){let r=[],n=null;this.listInstanceCounter=0;let i=await this.convertFrontmatterToDocx();if(r.push(...i),i.length>0&&(n="frontmatter"),!t.children)return r;for(let a of t.children){if(this.isTocMarker(a)){let s=new Xl("Contents",{hyperlink:!0,headingStyleRange:"1-6"});r.push(s),r.push(new Le({text:"",spacing:{before:240,after:120}})),n="toc";continue}!this.docxHrAsPageBreak&&a.type==="thematicBreak"&&n==="thematicBreak"&&r.push(new Le({text:"",alignment:Oe.LEFT,spacing:{before:0,after:0,line:1,lineRule:"exact"}})),a.type==="table"&&n==="table"&&r.push(new Le({text:"",alignment:Oe.LEFT,spacing:{before:120,after:120,line:240}})),a.type==="blockquote"&&n==="blockquote"&&r.push(new Le({text:"",alignment:Oe.LEFT,spacing:{before:120,after:120,line:240}}));let o=await this.convertNode(a);o&&(Array.isArray(o)?r.push(...o):r.push(o)),n=a.type}return r}async convertNode(t,r={},n=0,i=0){let a={Paragraph:Le,TextRun:Ue,ImageRun:Wn,AlignmentType:Oe,convertInchesToTwip:at,themeStyles:this.themeStyles},o=this.renderer?{render:async(l,c)=>{let d=await this.renderer.render(l,c);if(!d)throw new Error("Plugin renderer returned empty result");if(typeof d.width!="number"||typeof d.height!="number")throw new Error("Plugin renderer returned invalid dimensions");let f=typeof d.format=="string"&&d.format?d.format:"png";return{base64:d.base64,width:d.width,height:d.height,format:f,error:d.error}}}:{render:async()=>{throw new Error("Renderer not available")}},s=await T2(t,o,a,()=>this.reportResourceProgress());if(s)return s;switch(t.type){case"heading":return this.convertHeading(t);case"paragraph":return await this.convertParagraph(t,r);case"list":return await this.listConverter.convertList(t);case"code":return this.convertCodeBlock(t,n,i);case"blockquote":return await this.blockquoteConverter.convertBlockquote(t,n);case"table":return await this.tableConverter.convertTable(t,n);case"thematicBreak":return this.convertThematicBreak();case"html":return this.convertHtml(t);case"math":return this.convertMathBlock(t);default:return null}}convertHeading(t){let r={1:hi.HEADING_1,2:hi.HEADING_2,3:hi.HEADING_3,4:hi.HEADING_4,5:hi.HEADING_5,6:hi.HEADING_6},n=this.inlineConverter.extractText({type:"root",children:t.children||[]}),i=t.depth||1,a=this.themeStyles?.paragraphStyles?.[`heading${i}`],o={text:n,heading:r[i]||hi.HEADING_1};return a?.paragraph?.alignment==="center"&&(o.alignment=Oe.CENTER),new Le(o)}async convertParagraph(t,r={}){let n=await this.inlineConverter.convertInlineNodes(t.children||[],r),i=this.themeStyles?.default?.paragraph?.spacing||{before:0,after:200,line:276};return new Le({children:n.length>0?n:void 0,text:n.length===0?"":void 0,spacing:{before:i.before,after:i.after,line:i.line},alignment:Oe.LEFT})}convertCodeBlock(t,r=0,n=0){let i=this.codeHighlighter.getHighlightedRunsForCode(t.value??"",t.lang),a=this.themeStyles?.characterStyles?.code?.background||"F6F8FA",o=200,l=(r>0?at(.5*r):0)+o,c=n>0?300*n:0,d=o+c;return new Le({children:i,wordWrap:!0,alignment:Oe.LEFT,spacing:{before:200,after:200,line:276},shading:{fill:a},indent:{left:l,right:d},border:{top:{color:"E1E4E8",space:10,style:We.SINGLE,size:6},bottom:{color:"E1E4E8",space:10,style:We.SINGLE,size:6},left:{color:"E1E4E8",space:10,style:We.SINGLE,size:6},right:{color:"E1E4E8",space:10,style:We.SINGLE,size:6}}})}convertHtml(t){return new Le({children:[new Ue({text:"[HTML Content]",italics:!0,color:"666666"})],alignment:Oe.LEFT,spacing:{before:120,after:120}})}convertThematicBreak(){return this.docxHrAsPageBreak?new Le({pageBreakBefore:!0,children:[new Ue({text:"",size:1})],spacing:{before:0,after:0,line:1,lineRule:"exact"},alignment:Oe.LEFT}):new Le({text:"",alignment:Oe.LEFT,spacing:{before:300,after:300,line:120,lineRule:"exact"},border:{bottom:{color:"E1E4E8",space:1,style:We.SINGLE,size:12}}})}convertMathBlock(t){try{let r=Qu(t.value||"");return new Le({children:[r],spacing:{before:120,after:120},alignment:Oe.CENTER})}catch(r){console.warn("Math conversion error:",r);let n=this.themeStyles?.characterStyles?.code||{font:"Consolas",size:20};return new Le({children:[new Ue({text:t.value||"",font:n.font,size:n.size})],alignment:Oe.LEFT,spacing:{before:120,after:120}})}}toAlignmentType(t){if(!t)return;let r=t.trim().toLowerCase();if(!r)return;let i={left:Oe.LEFT,center:Oe.CENTER,right:Oe.RIGHT,justify:Oe.JUSTIFIED,justified:Oe.JUSTIFIED,start:Oe.START,end:Oe.END}[r];return i||(Object.values(Oe).includes(r)?r:void 0)}toDocumentDefaults(t){let r=t.paragraph?{spacing:t.paragraph.spacing,alignment:this.toAlignmentType(t.paragraph.alignment)}:void 0;return{run:t.run,paragraph:r}}toHeadingStyle(t){let r={spacing:t.paragraph.spacing,alignment:this.toAlignmentType(t.paragraph.alignment)};return{name:t.name,basedOn:t.basedOn,next:t.next,run:t.run,paragraph:r}}async fetchImageAsBuffer(t){if(this.imageCache.has(t))return this.imageCache.get(t);if(t.startsWith("data:")){let i=t.match(/^data:([^;,]+)[^,]*,(.+)$/);if(!i)throw new Error("Invalid data URL format");let a=i[1],o=atob(i[2]),s=new Uint8Array(o.length);for(let c=0;c<o.length;c++)s[c]=o.charCodeAt(c);let l={buffer:s,contentType:a};return this.imageCache.set(t,l),l}let r=this.getDocumentService();if(!r)throw new Error("DocumentService not available - platform not initialized");let n=t.startsWith("http://")||t.startsWith("https://");try{if(n){let i=await r.fetchRemote(t),a=this.guessContentType(t),o={buffer:i,contentType:a};return this.imageCache.set(t,o),o}else{let i=await r.readRelativeFile(t,{binary:!0}),a=atob(i),o=new Uint8Array(a.length);for(let c=0;c<a.length;c++)o[c]=a.charCodeAt(c);let s=this.guessContentType(t),l={buffer:o,contentType:s};return this.imageCache.set(t,l),l}}catch(i){throw new Error(`Failed to fetch image: ${t} - ${i.message}`)}}guessContentType(t){let r=t.split(".").pop()?.toLowerCase().split("?")[0]||"";return{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",webp:"image/webp",svg:"image/svg+xml"}[r]||"image/png"}},gW=vb;export{mb as a,gW as b,uq as c};
|
|
60
|
+
/*! Bundled license information:
|
|
61
|
+
|
|
62
|
+
mhchemparser/dist/mhchemParser.js:
|
|
63
|
+
(*!
|
|
64
|
+
*************************************************************************
|
|
65
|
+
*
|
|
66
|
+
* mhchemParser.ts
|
|
67
|
+
* 4.2.1
|
|
68
|
+
*
|
|
69
|
+
* Parser for the \ce command and \pu command for MathJax and Co.
|
|
70
|
+
*
|
|
71
|
+
* mhchem's \ce is a tool for writing beautiful chemical equations easily.
|
|
72
|
+
* mhchem's \pu is a tool for writing physical units easily.
|
|
73
|
+
*
|
|
74
|
+
* ----------------------------------------------------------------------
|
|
75
|
+
*
|
|
76
|
+
* Copyright (c) 2015-2023 Martin Hensel
|
|
77
|
+
*
|
|
78
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
79
|
+
* you may not use this file except in compliance with the License.
|
|
80
|
+
* You may obtain a copy of the License at
|
|
81
|
+
*
|
|
82
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
83
|
+
*
|
|
84
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
85
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
86
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
87
|
+
* See the License for the specific language governing permissions and
|
|
88
|
+
* limitations under the License.
|
|
89
|
+
*
|
|
90
|
+
* ----------------------------------------------------------------------
|
|
91
|
+
*
|
|
92
|
+
* https://github.com/mhchem/mhchemParser
|
|
93
|
+
*
|
|
94
|
+
*)
|
|
95
|
+
|
|
96
|
+
sax/lib/sax.js:
|
|
97
|
+
(*! http://mths.be/fromcodepoint v0.1.0 by @mathias *)
|
|
98
|
+
|
|
99
|
+
docx/dist/index.mjs:
|
|
100
|
+
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
101
|
+
(*!
|
|
102
|
+
* The buffer module from node.js, for the browser.
|
|
103
|
+
*
|
|
104
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
105
|
+
* @license MIT
|
|
106
|
+
*)
|
|
107
|
+
(*! http://mths.be/fromcodepoint v0.1.0 by @mathias *)
|
|
108
|
+
*/
|