@beff/aula-cli 0.12.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/src/aula-render.core.wasm +0 -0
- package/dist/src/{aula-voice-tts-YOS4IQXV.js → aula-voice-tts-FEFKNA2I.js} +1 -1
- package/dist/src/aula.js +2 -2
- package/dist/src/{chunk-DC7A435Z.js → chunk-2BEUK7M7.js} +1 -1
- package/dist/src/{chunk-2PAZTBSE.js → chunk-2VD3JPLV.js} +3 -5
- package/dist/src/chunk-4N5SDSCV.js +63 -0
- package/dist/src/{chunk-AXQBWV7J.js → chunk-F37DXY3P.js} +219 -115
- package/dist/src/{chunk-PZXFW6ZD.js → chunk-FGTN34N7.js} +3 -3
- package/dist/src/{chunk-RAGZAJKD.js → chunk-GQSFMINU.js} +3 -33
- package/dist/src/chunk-N3YZ7K5L.js +111 -0
- package/dist/src/{chunk-DN2LVJO3.js → chunk-T7S65ZHW.js} +4307 -1645
- package/dist/src/{chunk-TDAWUJ2L.js → chunk-V3GJ4XSW.js} +118 -66
- package/dist/src/{chunk-T6CAPT32.js → chunk-VJAXVLXZ.js} +3 -2
- package/dist/src/{chunk-HD6FTA3H.js → chunk-Z7VLJSDG.js} +211 -92
- package/dist/src/cli.js +44 -155
- package/dist/src/{commands-BSDNHYB3.js → commands-ZTGXXVOO.js} +12 -10
- package/dist/src/generated/aula.core5.wasm +0 -0
- package/dist/src/generated/aula.js +4076 -1341
- package/dist/src/generated/interfaces/aula-engine-engine.d.ts +39 -0
- package/dist/src/problems-BDPV4IRL.js +17 -0
- package/dist/src/project-XHL7FN7B.js +16 -0
- package/dist/src/run-LZVKYMKT.js +238 -0
- package/dist/src/{server-TJTMSDO2.js → server-H7XOUJNL.js} +24 -21
- package/dist/src/{site-RGPJOWSU.js → site-7MLO35NA.js} +16 -89
- package/dist/src/workspace-load-OQXB2ZOC.js +16 -0
- package/dist/web/app/assets/{bf5dd884 → 15e78332}/aula-method.js +1 -1
- package/dist/web/app/assets/{bf5dd884 → 15e78332}/aula.js +1 -1
- package/dist/web/app/assets/15e78332/build-worker.js +2 -0
- package/dist/web/app/assets/15e78332/index.js +51 -0
- package/dist/web/app/assets/__vite-browser-external-CCI-9X_7.js +1 -0
- package/dist/web/app/assets/aula-voice-worker-bYZ7BKji.js +1 -0
- package/dist/web/app/assets/{aula.core5-CQ2oHbtB.wasm → aula.core5-CtBp7wFf.wasm} +0 -0
- package/dist/web/app/assets/protocol-j759xoXL.js +15 -0
- package/dist/web/app/assets/src-BjcN7H3T.js +6 -0
- package/dist/web/{site/assets/tex-mathjax-DrZV_cwB.js → app/assets/tex-mathjax-Bbh2jsAv.js} +1 -1
- package/dist/web/app/index.html +4 -4
- package/dist/web/site/assets/{07fb5cf0 → 671a8ee2}/aula-method.js +1 -1
- package/dist/web/site/assets/{07fb5cf0 → 671a8ee2}/aula.js +1 -1
- package/dist/web/site/assets/671a8ee2/build-worker.js +2 -0
- package/dist/web/site/assets/671a8ee2/index.js +51 -0
- package/dist/web/site/assets/__vite-browser-external-CrZYh5ba.js +1 -0
- package/dist/web/site/assets/aula-voice-worker-Doyh20uI.js +1 -0
- package/dist/web/site/assets/{aula.core5-CQ2oHbtB.wasm → aula.core5-CtBp7wFf.wasm} +0 -0
- package/dist/web/site/assets/protocol-ByKVs3Yn.js +15 -0
- package/dist/web/site/assets/src-BwnY0kQu.js +6 -0
- package/dist/web/{app/assets/tex-mathjax-eWNptbJg.js → site/assets/tex-mathjax-DKtiwFu-.js} +1 -1
- package/dist/web/site/index.html +4 -4
- package/package.json +1 -1
- package/dist/src/chunk-4QGX7XXO.js +0 -104
- package/dist/src/problems-CGKCPETU.js +0 -18
- package/dist/src/project-EUFMRQXR.js +0 -16
- package/dist/src/run-ER27SVTA.js +0 -183
- package/dist/web/app/assets/__vite-browser-external-BHESVS8k.js +0 -1
- package/dist/web/app/assets/aula-voice-worker-CJpoa9h-.js +0 -1
- package/dist/web/app/assets/bf5dd884/build-worker.js +0 -2
- package/dist/web/app/assets/bf5dd884/index.js +0 -51
- package/dist/web/app/assets/protocol-Dc79M9p3.js +0 -15
- package/dist/web/app/assets/src-DWqZcp-P.js +0 -6
- package/dist/web/site/assets/07fb5cf0/build-worker.js +0 -2
- package/dist/web/site/assets/07fb5cf0/index.js +0 -51
- package/dist/web/site/assets/__vite-browser-external-DQubyTsZ.js +0 -1
- package/dist/web/site/assets/aula-voice-worker-BRrzyFz3.js +0 -1
- package/dist/web/site/assets/protocol-F-4tHoAW.js +0 -15
- package/dist/web/site/assets/src-DfPcHwz-.js +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-BLXQ4ufn.js";import{x as t}from"./src-DWqZcp-P.js";var n=e(((e,t,n)=>{var r=n&&n.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=n&&n.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},o=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteElement=void 0,e.LiteElement=function(){function e(e,t,n){var s,c;t===void 0&&(t={}),n===void 0&&(n=[]),this.kind=e,this.attributes=r({},t),this.children=a([],i(n),!1);try{for(var l=o(this.children),u=l.next();!u.done;u=l.next()){var d=u.value;d.parent=this}}catch(e){s={error:e}}finally{try{u&&!u.done&&(c=l.return)&&c.call(l)}finally{if(s)throw s.error}}this.styles=null}return e}()})),r=e(((e,t,n)=>{var r=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractDOMAdaptor=void 0,e.AbstractDOMAdaptor=function(){function e(e){e===void 0&&(e=null),this.document=e}return e.prototype.node=function(e,t,n,i){var a,o;t===void 0&&(t={}),n===void 0&&(n=[]);var s=this.create(e,i);this.setAttributes(s,t);try{for(var c=r(n),l=c.next();!l.done;l=c.next()){var u=l.value;this.append(s,u)}}catch(e){a={error:e}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}return s},e.prototype.setAttributes=function(e,t){var n,i,a,o,s,c;if(t.style&&typeof t.style!=`string`)try{for(var l=r(Object.keys(t.style)),u=l.next();!u.done;u=l.next()){var d=u.value;this.setStyle(e,d.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}),t.style[d])}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}if(t.properties)try{for(var f=r(Object.keys(t.properties)),p=f.next();!p.done;p=f.next()){var d=p.value;e[d]=t.properties[d]}}catch(e){a={error:e}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}try{for(var m=r(Object.keys(t)),h=m.next();!h.done;h=m.next()){var d=h.value;(d!==`style`||typeof t.style==`string`)&&d!==`properties`&&this.setAttribute(e,d,t[d])}}catch(e){s={error:e}}finally{try{h&&!h.done&&(c=m.return)&&c.call(m)}finally{if(s)throw s.error}}},e.prototype.replace=function(e,t){return this.insert(e,t),this.remove(t),t},e.prototype.childNode=function(e,t){return this.childNodes(e)[t]},e.prototype.allClasses=function(e){var t=this.getAttribute(e,`class`);return t?t.replace(/ +/g,` `).replace(/^ /,``).replace(/ $/,``).split(/ /):[]},e}()})),i=e(((e,t,n)=>{var r=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},i=n&&n.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.lookup=e.separateOptions=e.selectOptionsFromKeys=e.selectOptions=e.userOptions=e.defaultOptions=e.insert=e.copy=e.keys=e.makeArray=e.expandable=e.Expandable=e.OPTIONS=e.REMOVE=e.APPEND=e.isObject=void 0;var o={}.constructor;function s(e){return typeof e==`object`&&!!e&&(e.constructor===o||e.constructor===c)}e.isObject=s,e.APPEND=`[+]`,e.REMOVE=`[-]`,e.OPTIONS={invalidOption:`warn`,optionError:function(t,n){if(e.OPTIONS.invalidOption===`fatal`)throw Error(t);console.warn(`MathJax: `+t)}};var c=function(){function e(){}return e}();e.Expandable=c;function l(e){return Object.assign(Object.create(c.prototype),e)}e.expandable=l,e.makeArray=function(e){return Array.isArray(e)?e:[e]};function u(e){return e?Object.keys(e).concat(Object.getOwnPropertySymbols(e)):[]}e.keys=u;function d(e){var t,n,i={};try{for(var a=r(u(e)),o=a.next();!o.done;o=a.next()){var p=o.value,m=Object.getOwnPropertyDescriptor(e,p),h=m.value;Array.isArray(h)?m.value=f([],h,!1):s(h)&&(m.value=d(h)),m.enumerable&&(i[p]=m)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return Object.defineProperties(e.constructor===c?l({}):{},i)}e.copy=d;function f(t,n,o){var l,p;o===void 0&&(o=!0);var m=function(r){if(o&&t[r]===void 0&&t.constructor!==c)return typeof r==`symbol`&&(r=r.toString()),e.OPTIONS.optionError(`Invalid option "${r}" (no default value).`,r),`continue`;var l=n[r],p=t[r];if(s(l)&&p!==null&&(typeof p==`object`||typeof p==`function`)){var m=u(l);Array.isArray(p)&&(m.length===1&&(m[0]===e.APPEND||m[0]===e.REMOVE)&&Array.isArray(l[m[0]])||m.length===2&&m.sort().join(`,`)===e.APPEND+`,`+e.REMOVE&&Array.isArray(l[e.APPEND])&&Array.isArray(l[e.REMOVE]))?(l[e.REMOVE]&&(p=t[r]=p.filter(function(t){return l[e.REMOVE].indexOf(t)<0})),l[e.APPEND]&&(t[r]=a(a([],i(p),!1),i(l[e.APPEND]),!1))):f(p,l,o)}else Array.isArray(l)?(t[r]=[],f(t[r],l,!1)):s(l)?t[r]=d(l):t[r]=l};try{for(var h=r(u(n)),g=h.next();!g.done;g=h.next())m(g.value)}catch(e){l={error:e}}finally{try{g&&!g.done&&(p=h.return)&&p.call(h)}finally{if(l)throw l.error}}return t}e.insert=f,e.defaultOptions=function(e){return[...arguments].slice(1).forEach(function(t){return f(e,t,!1)}),e},e.userOptions=function(e){return[...arguments].slice(1).forEach(function(t){return f(e,t,!0)}),e};function p(e){var t,n,i=[...arguments].slice(1),a={};try{for(var o=r(i),s=o.next();!s.done;s=o.next()){var c=s.value;e.hasOwnProperty(c)&&(a[c]=e[c])}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a}e.selectOptions=p,e.selectOptionsFromKeys=function(e,t){return p.apply(void 0,a([e],i(Object.keys(t)),!1))},e.separateOptions=function(e){var t,n,i,a,o=[...arguments].slice(1),s=[];try{for(var c=r(o),l=c.next();!l.done;l=c.next()){var u=l.value,d={},f={};try{for(var p=(i=void 0,r(Object.keys(e||{}))),m=p.next();!m.done;m=p.next()){var h=m.value;(u[h]===void 0?f:d)[h]=e[h]}}catch(e){i={error:e}}finally{try{m&&!m.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}s.push(d),e=f}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return s.unshift(e),s},e.lookup=function(e,t,n){return n===void 0&&(n=null),t.hasOwnProperty(e)?t[e]:n}})),a=e(((e,t,n)=>{var r=n&&n.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),a=n&&n.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.NodeMixin=e.NodeMixinOptions=void 0;var o=i();e.NodeMixinOptions={badCSS:!0,badSizes:!0},e.NodeMixin=function(t,n){var i;return n===void 0&&(n={}),n=(0,o.userOptions)((0,o.defaultOptions)({},e.NodeMixinOptions),n),i=function(e){r(t,e);function t(){var t=[...arguments],n=e.call(this,t[0])||this,r=n.constructor;return n.options=(0,o.userOptions)((0,o.defaultOptions)({},r.OPTIONS),t[1]),n}return t.prototype.fontSize=function(t){return n.badCSS?this.options.fontSize:e.prototype.fontSize.call(this,t)},t.prototype.fontFamily=function(t){return n.badCSS?this.options.fontFamily:e.prototype.fontFamily.call(this,t)},t.prototype.nodeSize=function(r,i,a){if(i===void 0&&(i=1),a===void 0&&(a=null),!n.badSizes)return e.prototype.nodeSize.call(this,r,i,a);var o=this.textContent(r),s=Array.from(o.replace(t.cjkPattern,``)).length;return[(Array.from(o).length-s)*this.options.cjkCharWidth+s*this.options.unknownCharWidth,this.options.unknownCharHeight]},t.prototype.nodeBBox=function(t){return n.badSizes?{left:0,right:0,top:0,bottom:0}:e.prototype.nodeBBox.call(this,t)},t}(t),i.OPTIONS=a(a({},n.badCSS?{fontSize:16,fontFamily:`Times`}:{}),n.badSizes?{cjkCharWidth:1,unknownCharWidth:.6,unknownCharHeight:.8}:{}),i.cjkPattern=RegExp(`[ᄀ-ᅟ〈〉⺀-〾-㉇㉐-䶿一-꓆ꥠ-ꥼ가-힣豈-︐-︙︰-﹫!-⦆¢-₩𛀀-𛀁🈀-🉑𠀀-]`,`gu`),i}})),o=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LiteDocument=void 0;var t=n();e.LiteDocument=function(){function e(){this.root=new t.LiteElement(`html`,{},[this.head=new t.LiteElement(`head`),this.body=new t.LiteElement(`body`)]),this.type=``}return Object.defineProperty(e.prototype,"kind",{get:function(){return`#document`},enumerable:!1,configurable:!0}),e}()})),s=e(((e,t,n)=>{var r=n&&n.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.LiteComment=e.LiteText=void 0;var i=function(){function e(e){e===void 0&&(e=``),this.value=e}return Object.defineProperty(e.prototype,"kind",{get:function(){return`#text`},enumerable:!1,configurable:!0}),e}();e.LiteText=i,e.LiteComment=function(e){r(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}(i)})),c=e(((e,t,n)=>{var r=n&&n.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},i=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteList=void 0,e.LiteList=function(){function e(e){this.nodes=[],this.nodes=i([],r(e),!1)}return e.prototype.append=function(e){this.nodes.push(e)},e.prototype[Symbol.iterator]=function(){var e=0;return{next:function(){return e===this.nodes.length?{value:null,done:!0}:{value:this.nodes[e++],done:!1}}}},e}()})),l=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfter=e.handleRetriesFor=void 0,e.handleRetriesFor=function(e){return new Promise(function t(n,r){try{n(e())}catch(e){e.retry&&e.retry instanceof Promise?e.retry.then(function(){return t(n,r)}).catch(function(e){return r(e)}):e.restart&&e.restart.isCallback?MathJax.Callback.After(function(){return t(n,r)},e.restart):r(e)}})},e.retryAfter=function(e){var t=Error(`MathJax retry`);throw t.retry=e,t}})),u=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION=`3.2.2`})),d=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PrioritizedList=void 0,e.PrioritizedList=function(){function e(){this.items=[],this.items=[]}return e.prototype[Symbol.iterator]=function(){var e=0,t=this.items;return{next:function(){return{value:t[e++],done:e>t.length}}}},e.prototype.add=function(t,n){n===void 0&&(n=e.DEFAULTPRIORITY);var r=this.items.length;do r--;while(r>=0&&n<this.items[r].priority);return this.items.splice(r+1,0,{item:t,priority:n}),t},e.prototype.remove=function(e){var t=this.items.length;do t--;while(t>=0&&this.items[t].item!==e);t>=0&&this.items.splice(t,1)},e.DEFAULTPRIORITY=5,e}()})),f=e(((e,t,n)=>{var r=n&&n.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),i=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.HandlerList=void 0,e.HandlerList=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.register=function(e){return this.add(e,e.priority)},t.prototype.unregister=function(e){this.remove(e)},t.prototype.handlesDocument=function(e){var t,n;try{for(var r=i(this),a=r.next();!a.done;a=r.next()){var o=a.value.item;if(o.handlesDocument(e))return o}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}throw Error(`Can't find handler for document`)},t.prototype.document=function(e,t){return t===void 0&&(t=null),this.handlesDocument(e).create(e,t)},t}(d().PrioritizedList)})),p=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mathjax=void 0;var t=u(),n=f(),r=l();e.mathjax={version:t.VERSION,handlers:new n.HandlerList,document:function(t,n){return e.mathjax.handlers.document(t,n)},handleRetriesFor:r.handleRetriesFor,retryAfter:r.retryAfter,asyncLoad:null}})),m=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.asyncLoad=void 0;var t=p();e.asyncLoad=function(e){return t.mathjax.asyncLoad?new Promise(function(n,r){var i=t.mathjax.asyncLoad(e);i instanceof Promise?i.then(function(e){return n(e)}).catch(function(e){return r(e)}):n(i)}):Promise.reject(`Can't load '${e}': No asyncLoad method specified`)}})),h=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.numeric=e.translate=e.remove=e.add=e.entities=e.options=void 0;var t=l(),n=m();e.options={loadMissingEntities:!0},e.entities={ApplyFunction:``,Backslash:`∖`,Because:`∵`,Breve:`˘`,Cap:`⋒`,CenterDot:`·`,CircleDot:`⊙`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,Congruent:`≡`,ContourIntegral:`∮`,Coproduct:`∐`,Cross:`⨯`,Cup:`⋓`,CupCap:`≍`,Dagger:`‡`,Del:`∇`,Delta:`Δ`,Diamond:`⋄`,DifferentialD:`ⅆ`,DotEqual:`≐`,DoubleDot:`¨`,DoubleRightTee:`⊨`,DoubleVerticalBar:`∥`,DownArrow:`↓`,DownLeftVector:`↽`,DownRightVector:`⇁`,DownTee:`⊤`,Downarrow:`⇓`,Element:`∈`,EqualTilde:`≂`,Equilibrium:`⇌`,Exists:`∃`,ExponentialE:`ⅇ`,FilledVerySmallSquare:`▪`,ForAll:`∀`,Gamma:`Γ`,Gg:`⋙`,GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Hacek:`ˇ`,Hat:`^`,HumpDownHump:`≎`,HumpEqual:`≏`,Im:`ℑ`,ImaginaryI:`ⅈ`,Integral:`∫`,Intersection:`⋂`,InvisibleComma:``,InvisibleTimes:``,Lambda:`Λ`,Larr:`↞`,LeftAngleBracket:`⟨`,LeftArrow:`←`,LeftArrowRightArrow:`⇆`,LeftCeiling:`⌈`,LeftDownVector:`⇃`,LeftFloor:`⌊`,LeftRightArrow:`↔`,LeftTee:`⊣`,LeftTriangle:`⊲`,LeftTriangleEqual:`⊴`,LeftUpVector:`↿`,LeftVector:`↼`,Leftarrow:`⇐`,Leftrightarrow:`⇔`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,LessSlantEqual:`⩽`,LessTilde:`≲`,Ll:`⋘`,Lleftarrow:`⇚`,LongLeftArrow:`⟵`,LongLeftRightArrow:`⟷`,LongRightArrow:`⟶`,Longleftarrow:`⟸`,Longleftrightarrow:`⟺`,Longrightarrow:`⟹`,Lsh:`↰`,MinusPlus:`∓`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotLeftTriangle:`⋪`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotPrecedes:`⊀`,NotPrecedesSlantEqual:`⋠`,NotRightTriangle:`⋫`,NotRightTriangleEqual:`⋭`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsSlantEqual:`⋡`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotVerticalBar:`∤`,Omega:`Ω`,OverBar:`‾`,OverBrace:`⏞`,PartialD:`∂`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,Product:`∏`,Proportional:`∝`,Psi:`Ψ`,Rarr:`↠`,Re:`ℜ`,ReverseEquilibrium:`⇋`,RightAngleBracket:`⟩`,RightArrow:`→`,RightArrowLeftArrow:`⇄`,RightCeiling:`⌉`,RightDownVector:`⇂`,RightFloor:`⌋`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTriangle:`⊳`,RightTriangleEqual:`⊵`,RightUpVector:`↾`,RightVector:`⇀`,Rightarrow:`⇒`,Rrightarrow:`⇛`,Rsh:`↱`,Sigma:`Σ`,SmallCircle:`∘`,Sqrt:`√`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,Star:`⋆`,Subset:`⋐`,SubsetEqual:`⊆`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,SuchThat:`∋`,Sum:`∑`,Superset:`⊃`,SupersetEqual:`⊇`,Supset:`⋑`,Therefore:`∴`,Theta:`Θ`,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,UnderBar:`_`,UnderBrace:`⏟`,Union:`⋃`,UnionPlus:`⊎`,UpArrow:`↑`,UpDownArrow:`↕`,UpTee:`⊥`,Uparrow:`⇑`,Updownarrow:`⇕`,Upsilon:`Υ`,Vdash:`⊩`,Vee:`⋁`,VerticalBar:`∣`,VerticalTilde:`≀`,Vvdash:`⊪`,Wedge:`⋀`,Xi:`Ξ`,amp:`&`,acute:`´`,aleph:`ℵ`,alpha:`α`,amalg:`⨿`,and:`∧`,ang:`∠`,angmsd:`∡`,angsph:`∢`,ape:`≊`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,beta:`β`,beth:`ℶ`,between:`≬`,bigcirc:`◯`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,blacklozenge:`⧫`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,bowtie:`⋈`,boxdl:`┐`,boxdr:`┌`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxul:`┘`,boxur:`└`,bsol:`\\`,bull:`•`,cap:`∩`,check:`✓`,chi:`χ`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledR:`®`,circledS:`Ⓢ`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,clubs:`♣`,colon:`:`,comp:`∁`,ctdot:`⋯`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cup:`∪`,curarr:`↷`,curlyvee:`⋎`,curlywedge:`⋏`,dagger:`†`,daleth:`ℸ`,ddarr:`⇊`,deg:`°`,delta:`δ`,digamma:`ϝ`,div:`÷`,divideontimes:`⋇`,dot:`˙`,doteqdot:`≑`,dotplus:`∔`,dotsquare:`⊡`,dtdot:`⋱`,ecir:`≖`,efDot:`≒`,egs:`⪖`,ell:`ℓ`,els:`⪕`,empty:`∅`,epsi:`ε`,epsiv:`ϵ`,erDot:`≓`,eta:`η`,eth:`ð`,flat:`♭`,fork:`⋔`,frown:`⌢`,gEl:`⪌`,gamma:`γ`,gap:`⪆`,gimel:`ℷ`,gnE:`≩`,gnap:`⪊`,gne:`⪈`,gnsim:`⋧`,gt:`>`,gtdot:`⋗`,harrw:`↭`,hbar:`ℏ`,hellip:`…`,hookleftarrow:`↩`,hookrightarrow:`↪`,imath:`ı`,infin:`∞`,intcal:`⊺`,iota:`ι`,jmath:`ȷ`,kappa:`κ`,kappav:`ϰ`,lEg:`⪋`,lambda:`λ`,lap:`⪅`,larrlp:`↫`,larrtl:`↢`,lbrace:`{`,lbrack:`[`,le:`≤`,leftleftarrows:`⇇`,leftthreetimes:`⋋`,lessdot:`⋖`,lmoust:`⎰`,lnE:`≨`,lnap:`⪉`,lne:`⪇`,lnsim:`⋦`,longmapsto:`⟼`,looparrowright:`↬`,lowast:`∗`,loz:`◊`,lt:`<`,ltimes:`⋉`,ltri:`◃`,macr:`¯`,malt:`✠`,mho:`℧`,mu:`μ`,multimap:`⊸`,nLeftarrow:`⇍`,nLeftrightarrow:`⇎`,nRightarrow:`⇏`,nVDash:`⊯`,nVdash:`⊮`,natur:`♮`,nearr:`↗`,nharr:`↮`,nlarr:`↚`,not:`¬`,nrarr:`↛`,nu:`ν`,nvDash:`⊭`,nvdash:`⊬`,nwarr:`↖`,omega:`ω`,omicron:`ο`,or:`∨`,osol:`⊘`,period:`.`,phi:`φ`,phiv:`ϕ`,pi:`π`,piv:`ϖ`,prap:`⪷`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,prime:`′`,psi:`ψ`,quot:`"`,rarrtl:`↣`,rbrace:`}`,rbrack:`]`,rho:`ρ`,rhov:`ϱ`,rightrightarrows:`⇉`,rightthreetimes:`⋌`,ring:`˚`,rmoust:`⎱`,rtimes:`⋊`,rtri:`▹`,scap:`⪸`,scnE:`⪶`,scnap:`⪺`,scnsim:`⋩`,sdot:`⋅`,searr:`↘`,sect:`§`,sharp:`♯`,sigma:`σ`,sigmav:`ς`,simne:`≆`,smile:`⌣`,spades:`♠`,sub:`⊂`,subE:`⫅`,subnE:`⫋`,subne:`⊊`,supE:`⫆`,supnE:`⫌`,supne:`⊋`,swarr:`↙`,tau:`τ`,theta:`θ`,thetav:`ϑ`,tilde:`˜`,times:`×`,triangle:`▵`,triangleq:`≜`,upsi:`υ`,upuparrows:`⇈`,veebar:`⊻`,vellip:`⋮`,weierp:`℘`,xi:`ξ`,yen:`¥`,zeta:`ζ`,zigrarr:`⇝`,nbsp:`\xA0`,rsquo:`’`,lsquo:`‘`};var r={};e.add=function(t,n){Object.assign(e.entities,t),r[n]=!0},e.remove=function(t){delete e.entities[t]},e.translate=function(e){return e.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/gi,i)};function i(i,o){if(o.charAt(0)===`#`)return a(o.slice(1));if(e.entities[o])return e.entities[o];if(e.options.loadMissingEntities){var s=o.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:o.charAt(0).toLowerCase();r[s]||(r[s]=!0,(0,t.retryAfter)((0,n.asyncLoad)(`./util/entities/`+s+`.js`)))}return i}function a(e){var t=e.charAt(0)===`x`?parseInt(e.slice(1),16):parseInt(e);return String.fromCodePoint(t)}e.numeric=a})),g=e(((e,t,r)=>{var i=r&&r.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),a=r&&r.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),o=r&&r.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t},c=r&&r.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},l=r&&r.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteParser=e.PATTERNS=void 0;var u=o(h()),d=n(),f=s(),p;(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`)})(p=e.PATTERNS||={}),e.LiteParser=function(){function e(){}return e.prototype.parseFromString=function(e,t,n){t===void 0&&(t=`text/html`),n===void 0&&(n=null);for(var r=n.createDocument(),i=n.body(r),a=e.replace(/<\?.*?\?>/g,``).split(p.tag);a.length;){var o=a.shift(),s=a.shift();o&&this.addText(n,i,o),s&&s.charAt(s.length-1)===`>`&&(s.charAt(1)===`!`?this.addComment(n,i,s):i=s.charAt(1)===`/`?this.closeTag(n,i,s):this.openTag(n,i,s,a))}return this.checkDocument(n,r),r},e.prototype.addText=function(e,t,n){return n=u.translate(n),e.append(t,e.text(n))},e.prototype.addComment=function(e,t,n){return e.append(t,new f.LiteComment(n))},e.prototype.closeTag=function(e,t,n){for(var r=n.slice(2,n.length-1).toLowerCase();e.parent(t)&&e.kind(t)!==r;)t=e.parent(t);return e.parent(t)},e.prototype.openTag=function(e,t,n,r){var i=this.constructor.PCDATA,a=this.constructor.SELF_CLOSING,o=n.match(/<(.*?)[\s\n>\/]/)[1].toLowerCase(),s=e.node(o),c=n.replace(/^<.*?[\s\n>]/,``).split(p.attrsplit);return(c.pop().match(/>$/)||c.length<5)&&(this.addAttributes(e,s,c),e.append(t,s),!a[o]&&!n.match(/\/>$/)&&(i[o]?this.handlePCDATA(e,s,o,r):t=s)),t},e.prototype.addAttributes=function(e,t,n){for(var r=this.constructor.CDATA_ATTR;n.length;){var i=c(n.splice(0,5),5),a=i[1],o=i[2],s=i[3],l=i[4],d=o||s||l||``;r[a]||(d=u.translate(d)),e.setAttribute(t,a,d)}},e.prototype.handlePCDATA=function(e,t,n,r){for(var i=[],a=`</`+n+`>`,o=``;r.length&&o!==a;)i.push(o),i.push(r.shift()),o=r.shift();e.append(t,e.text(i.join(``)))},e.prototype.checkDocument=function(e,t){var n,r,i,a,o=this.getOnlyChild(e,e.body(t));if(o){try{for(var s=l(e.childNodes(e.body(t))),c=s.next();!c.done;c=s.next()){var u=c.value;if(u===o)break;u instanceof f.LiteComment&&u.value.match(/^<!DOCTYPE/)&&(t.type=u.value)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}switch(e.kind(o)){case`html`:try{for(var d=l(o.children),p=d.next();!p.done;p=d.next()){var u=p.value;switch(e.kind(u)){case`head`:t.head=u;break;case`body`:t.body=u}}}catch(e){i={error:e}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}t.root=o,e.remove(o),e.parent(t.body)!==o&&e.append(o,t.body),e.parent(t.head)!==o&&e.insert(t.head,t.body);break;case`head`:t.head=e.replace(o,t.head);break;case`body`:t.body=e.replace(o,t.body)}}},e.prototype.getOnlyChild=function(e,t){var n,r,i=null;try{for(var a=l(e.childNodes(t)),o=a.next();!o.done;o=a.next()){var s=o.value;if(s instanceof d.LiteElement){if(i)return null;i=s}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},e.prototype.serialize=function(e,t,n){var r=this;n===void 0&&(n=!1);var i=this.constructor.SELF_CLOSING,a=this.constructor.CDATA_ATTR,o=e.kind(t),s=e.allAttributes(t).map(function(e){return e.name+`="`+(a[e.name]?e.value:r.protectAttribute(e.value))+`"`}).join(` `),c=this.serializeInner(e,t,n);return`<`+o+(s?` `+s:``)+((!n||c)&&!i[o]?`>${c}</${o}>`:n?`/>`:`>`)},e.prototype.serializeInner=function(e,t,n){var r=this;return n===void 0&&(n=!1),this.constructor.PCDATA.hasOwnProperty(t.kind)?e.childNodes(t).map(function(t){return e.value(t)}).join(``):e.childNodes(t).map(function(t){var i=e.kind(t);return i===`#text`?r.protectHTML(e.value(t)):i===`#comment`?t.value:r.serialize(e,t,n)}).join(``)},e.prototype.protectAttribute=function(e){return typeof e!=`string`&&(e=String(e)),e.replace(/"/g,`"`)},e.prototype.protectHTML=function(e){return e.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}()})),_=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LiteWindow=void 0;var t=n(),r=o(),i=c(),a=g();e.LiteWindow=function(){function e(){this.DOMParser=a.LiteParser,this.NodeList=i.LiteList,this.HTMLCollection=i.LiteList,this.HTMLElement=t.LiteElement,this.DocumentFragment=i.LiteList,this.Document=r.LiteDocument,this.document=new r.LiteDocument}return e}()})),v=e(((e,t,n)=>{var r=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},i=n&&n.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.Styles=void 0;var o=[`top`,`right`,`bottom`,`left`],s=[`width`,`style`,`color`];function c(e){for(var t=e.split(/((?:'[^']*'|"[^"]*"|,[\s\n]|[^\s\n])*)/g),n=[];t.length>1;)t.shift(),n.push(t.shift());return n}function l(e){var t,n,i=c(this.styles[e]);i.length===0&&i.push(``),i.length===1&&i.push(i[0]),i.length===2&&i.push(i[0]),i.length===3&&i.push(i[1]);try{for(var a=r(b.connect[e].children),o=a.next();!o.done;o=a.next()){var s=o.value;this.setStyle(this.childName(e,s),i.shift())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}}function u(e){var t,n,i=b.connect[e].children,a=[];try{for(var o=r(i),s=o.next();!s.done;s=o.next()){var c=s.value,l=this.styles[e+`-`+c];if(!l){delete this.styles[e];return}a.push(l)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}a[3]===a[1]&&(a.pop(),a[2]===a[0]&&(a.pop(),a[1]===a[0]&&a.pop())),this.styles[e]=a.join(` `)}function d(e){var t,n;try{for(var i=r(b.connect[e].children),a=i.next();!a.done;a=i.next()){var o=a.value;this.setStyle(this.childName(e,o),this.styles[e])}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}function f(e){var t,n,o=a([],i(b.connect[e].children),!1),s=this.styles[this.childName(e,o.shift())];try{for(var c=r(o),l=c.next();!l.done;l=c.next()){var u=l.value;if(this.styles[this.childName(e,u)]!==s){delete this.styles[e];return}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}this.styles[e]=s}var p={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 m(e){var t,n,i,a,o={width:``,style:``,color:``};try{for(var s=r(c(this.styles[e])),l=s.next();!l.done;l=s.next()){var u=l.value;u.match(p.width)&&o.width===``?o.width=u:u.match(p.style)&&o.style===``?o.style=u:o.color=u}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}try{for(var d=r(b.connect[e].children),f=d.next();!f.done;f=d.next()){var m=f.value;this.setStyle(this.childName(e,m),o[m])}}catch(e){i={error:e}}finally{try{f&&!f.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}}function h(e){var t,n,i=[];try{for(var a=r(b.connect[e].children),o=a.next();!o.done;o=a.next()){var s=o.value,c=this.styles[this.childName(e,s)];c&&i.push(c)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}i.length?this.styles[e]=i.join(` `):delete this.styles[e]}var g={style:/^(?:normal|italic|oblique|inherit|initial|unset)$/,variant: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)$`),weight:/^(?:normal|bold|bolder|lighter|[1-9]00|inherit|initial|unset)$/,stretch:RegExp(`^(?:normal|(?:(?:ultra|extra|semi)-)?condensed|(?:(?:semi|extra|ulta)-)?expanded|inherit|initial|unset)$`),size:RegExp(`^(?:xx-small|x-small|small|medium|large|x-large|xx-large|larger|smaller|[d.]+%|[d.]+[a-z]+|inherit|initial|unset)(?:/(?:normal|[d.+](?:%|[a-z]+)?))?$`)};function _(e){var t,n,a,o,s=c(this.styles[e]),l={style:``,variant:[],weight:``,stretch:``,size:``,family:``,"line-height":``};try{for(var u=r(s),d=u.next();!d.done;d=u.next()){var f=d.value;l.family=f;try{for(var p=(a=void 0,r(Object.keys(g))),m=p.next();!m.done;m=p.next()){var h=m.value;if((Array.isArray(l[h])||l[h]===``)&&f.match(g[h])){if(h===`size`){var _=i(f.split(/\//),2),y=_[0],b=_[1];l[h]=y,b&&(l[`line-height`]=b)}else l.size===``&&(Array.isArray(l[h])?l[h].push(f):l[h]=f)}}}catch(e){a={error:e}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(a)throw a.error}}}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}v(e,l),delete this.styles[e]}function v(e,t){var n,i;try{for(var a=r(b.connect[e].children),o=a.next();!o.done;o=a.next()){var s=o.value,c=this.childName(e,s);if(Array.isArray(t[s])){var l=t[s];l.length&&(this.styles[c]=l.join(` `))}else t[s]!==``&&(this.styles[c]=t[s])}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}}function y(e){}var b=function(){function e(e){e===void 0&&(e=``),this.parse(e)}return Object.defineProperty(e.prototype,"cssText",{get:function(){var e,t,n=[];try{for(var i=r(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(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n.join(` `)},enumerable:!1,configurable:!0}),e.prototype.set=function(t,n){for(t=this.normalizeName(t),this.setStyle(t,n),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(e){return e=this.normalizeName(e),this.styles.hasOwnProperty(e)?this.styles[e]:``},e.prototype.setStyle=function(t,n){this.styles[t]=n,e.connect[t]&&e.connect[t].children&&e.connect[t].split.call(this,t),n===``&&delete this.styles[t]},e.prototype.combineChildren=function(t){var n,i,a=this.parentName(t);try{for(var o=r(e.connect[t].children),s=o.next();!s.done;s=o.next()){var c=s.value,l=this.childName(a,c);e.connect[l].combine.call(this,l)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype.parentName=function(e){var t=e.replace(/-[^-]*$/,``);return e===t?``:t},e.prototype.childName=function(t,n){return n.match(/-/)?n:(e.connect[t]&&!e.connect[t].combine&&(n+=t.replace(/.*-/,`-`),t=this.parentName(t)),t+`-`+n)},e.prototype.normalizeName=function(e){return e.replace(/[A-Z]/g,function(e){return`-`+e.toLowerCase()})},e.prototype.parse=function(e){e===void 0&&(e=``);var t=this.constructor.pattern;this.styles={};for(var n=e.replace(t.comment,``).split(t.style);n.length>1;){var r=i(n.splice(0,3),3),a=r[0],o=r[1],s=r[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:o,split:l,combine:u},border:{children:o,split:d,combine:f},"border-top":{children:s,split:m,combine:h},"border-right":{children:s,split:m,combine:h},"border-bottom":{children:s,split:m,combine:h},"border-left":{children:s,split:m,combine:h},"border-width":{children:o,split:l,combine:null},"border-style":{children:o,split:l,combine:null},"border-color":{children:o,split:l,combine:null},font:{children:[`style`,`variant`,`weight`,`stretch`,`line-height`,`size`,`family`],split:_,combine:y}},e}();e.Styles=b})),y=e(((e,t,i)=>{var c=i&&i.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),l=i&&i.__assign||function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},l.apply(this,arguments)},u=i&&i.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},d=i&&i.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},f=i&&i.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.liteAdaptor=e.LiteAdaptor=e.LiteBase=void 0;var p=r(),m=a(),h=o(),y=n(),b=s(),x=_(),S=g(),C=v(),w=function(e){c(t,e);function t(){var t=e.call(this)||this;return t.parser=new S.LiteParser,t.window=new x.LiteWindow,t}return t.prototype.parse=function(e,t){return this.parser.parseFromString(e,t,this)},t.prototype.create=function(e,t){return t===void 0&&(t=null),new y.LiteElement(e)},t.prototype.text=function(e){return new b.LiteText(e)},t.prototype.comment=function(e){return new b.LiteComment(e)},t.prototype.createDocument=function(){return new h.LiteDocument},t.prototype.head=function(e){return e.head},t.prototype.body=function(e){return e.body},t.prototype.root=function(e){return e.root},t.prototype.doctype=function(e){return e.type},t.prototype.tags=function(e,t,n){n===void 0&&(n=null);var r=[],i=[];if(n)return i;for(var a=e;a;){var o=a.kind;o!==`#text`&&o!==`#comment`&&(a=a,o===t&&i.push(a),a.children.length&&(r=a.children.concat(r))),a=r.shift()}return i},t.prototype.elementById=function(e,t){for(var n=[],r=e;r;){if(r.kind!==`#text`&&r.kind!==`#comment`){if(r=r,r.attributes.id===t)return r;r.children.length&&(n=r.children.concat(n))}r=n.shift()}return null},t.prototype.elementsByClass=function(e,t){for(var n=[],r=[],i=e;i;)i.kind!==`#text`&&i.kind!==`#comment`&&(i=i,(i.attributes.class||``).trim().split(/ +/).includes(t)&&r.push(i),i.children.length&&(n=i.children.concat(n))),i=n.shift();return r},t.prototype.getElements=function(e,t){var n,r,i=[],a=this.body(t);try{for(var o=u(e),s=o.next();!s.done;s=o.next()){var c=s.value;if(typeof c==`string`){if(c.charAt(0)===`#`){var l=this.elementById(a,c.slice(1));l&&i.push(l)}else c.charAt(0)===`.`?i=i.concat(this.elementsByClass(a,c.slice(1))):c.match(/^[-a-z][-a-z0-9]*$/i)&&(i=i.concat(this.tags(a,c)))}else Array.isArray(c)?i=i.concat(c):c instanceof this.window.NodeList||c instanceof this.window.HTMLCollection?i=i.concat(c.nodes):i.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},t.prototype.contains=function(e,t){for(;t&&t!==e;)t=this.parent(t);return!!t},t.prototype.parent=function(e){return e.parent},t.prototype.childIndex=function(e){return e.parent?e.parent.children.findIndex(function(t){return t===e}):-1},t.prototype.append=function(e,t){return t.parent&&this.remove(t),e.children.push(t),t.parent=e,t},t.prototype.insert=function(e,t){if(e.parent&&this.remove(e),t&&t.parent){var n=this.childIndex(t);t.parent.children.splice(n,0,e),e.parent=t.parent}},t.prototype.remove=function(e){var t=this.childIndex(e);return t>=0&&e.parent.children.splice(t,1),e.parent=null,e},t.prototype.replace=function(e,t){var n=this.childIndex(t);return n>=0&&(t.parent.children[n]=e,e.parent=t.parent,t.parent=null),t},t.prototype.clone=function(e){var t=this,n=new y.LiteElement(e.kind);return n.attributes=l({},e.attributes),n.children=e.children.map(function(e){if(e.kind===`#text`)return new b.LiteText(e.value);if(e.kind===`#comment`)return new b.LiteComment(e.value);var r=t.clone(e);return r.parent=n,r}),n},t.prototype.split=function(e,t){var n=new b.LiteText(e.value.slice(t));return e.value=e.value.slice(0,t),e.parent.children.splice(this.childIndex(e)+1,0,n),n.parent=e.parent,n},t.prototype.next=function(e){var t=e.parent;if(!t)return null;var n=this.childIndex(e)+1;return n>=0&&n<t.children.length?t.children[n]:null},t.prototype.previous=function(e){var t=e.parent;if(!t)return null;var n=this.childIndex(e)-1;return n>=0?t.children[n]:null},t.prototype.firstChild=function(e){return e.children[0]},t.prototype.lastChild=function(e){return e.children[e.children.length-1]},t.prototype.childNodes=function(e){return f([],d(e.children),!1)},t.prototype.childNode=function(e,t){return e.children[t]},t.prototype.kind=function(e){return e.kind},t.prototype.value=function(e){return e.kind===`#text`?e.value:e.kind===`#comment`?e.value.replace(/^<!(--)?((?:.|\n)*)\1>$/,`$2`):``},t.prototype.textContent=function(e){var t=this;return e.children.reduce(function(e,n){return e+(n.kind===`#text`?n.value:n.kind===`#comment`?``:t.textContent(n))},``)},t.prototype.innerHTML=function(e){return this.parser.serializeInner(this,e)},t.prototype.outerHTML=function(e){return this.parser.serialize(this,e)},t.prototype.serializeXML=function(e){return this.parser.serialize(this,e,!0)},t.prototype.setAttribute=function(e,t,n,r){r===void 0&&(r=null),typeof n!=`string`&&(n=String(n)),r&&(t=r.replace(/.*\//,``)+`:`+t.replace(/^.*:/,``)),e.attributes[t]=n,t===`style`&&(e.styles=null)},t.prototype.getAttribute=function(e,t){return e.attributes[t]},t.prototype.removeAttribute=function(e,t){delete e.attributes[t]},t.prototype.hasAttribute=function(e,t){return e.attributes.hasOwnProperty(t)},t.prototype.allAttributes=function(e){var t,n,r=e.attributes,i=[];try{for(var a=u(Object.keys(r)),o=a.next();!o.done;o=a.next()){var s=o.value;i.push({name:s,value:r[s]})}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},t.prototype.addClass=function(e,t){var n=(e.attributes.class||``).split(/ /);n.find(function(e){return e===t})||(n.push(t),e.attributes.class=n.join(` `))},t.prototype.removeClass=function(e,t){var n=(e.attributes.class||``).split(/ /),r=n.findIndex(function(e){return e===t});r>=0&&(n.splice(r,1),e.attributes.class=n.join(` `))},t.prototype.hasClass=function(e,t){return!!(e.attributes.class||``).split(/ /).find(function(e){return e===t})},t.prototype.setStyle=function(e,t,n){e.styles||=new C.Styles(this.getAttribute(e,`style`)),e.styles.set(t,n),e.attributes.style=e.styles.cssText},t.prototype.getStyle=function(e,t){if(!e.styles){var n=this.getAttribute(e,`style`);if(!n)return``;e.styles=new C.Styles(n)}return e.styles.get(t)},t.prototype.allStyles=function(e){return this.getAttribute(e,`style`)},t.prototype.insertRules=function(e,t){e.children=[this.text(t.join(`
|
|
1
|
+
import{t as e}from"./rolldown-runtime-BLXQ4ufn.js";import{x as t}from"./src-BwnY0kQu.js";var n=e(((e,t,n)=>{var r=n&&n.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=n&&n.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},o=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteElement=void 0,e.LiteElement=function(){function e(e,t,n){var s,c;t===void 0&&(t={}),n===void 0&&(n=[]),this.kind=e,this.attributes=r({},t),this.children=a([],i(n),!1);try{for(var l=o(this.children),u=l.next();!u.done;u=l.next()){var d=u.value;d.parent=this}}catch(e){s={error:e}}finally{try{u&&!u.done&&(c=l.return)&&c.call(l)}finally{if(s)throw s.error}}this.styles=null}return e}()})),r=e(((e,t,n)=>{var r=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractDOMAdaptor=void 0,e.AbstractDOMAdaptor=function(){function e(e){e===void 0&&(e=null),this.document=e}return e.prototype.node=function(e,t,n,i){var a,o;t===void 0&&(t={}),n===void 0&&(n=[]);var s=this.create(e,i);this.setAttributes(s,t);try{for(var c=r(n),l=c.next();!l.done;l=c.next()){var u=l.value;this.append(s,u)}}catch(e){a={error:e}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}return s},e.prototype.setAttributes=function(e,t){var n,i,a,o,s,c;if(t.style&&typeof t.style!=`string`)try{for(var l=r(Object.keys(t.style)),u=l.next();!u.done;u=l.next()){var d=u.value;this.setStyle(e,d.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}),t.style[d])}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}if(t.properties)try{for(var f=r(Object.keys(t.properties)),p=f.next();!p.done;p=f.next()){var d=p.value;e[d]=t.properties[d]}}catch(e){a={error:e}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}try{for(var m=r(Object.keys(t)),h=m.next();!h.done;h=m.next()){var d=h.value;(d!==`style`||typeof t.style==`string`)&&d!==`properties`&&this.setAttribute(e,d,t[d])}}catch(e){s={error:e}}finally{try{h&&!h.done&&(c=m.return)&&c.call(m)}finally{if(s)throw s.error}}},e.prototype.replace=function(e,t){return this.insert(e,t),this.remove(t),t},e.prototype.childNode=function(e,t){return this.childNodes(e)[t]},e.prototype.allClasses=function(e){var t=this.getAttribute(e,`class`);return t?t.replace(/ +/g,` `).replace(/^ /,``).replace(/ $/,``).split(/ /):[]},e}()})),i=e(((e,t,n)=>{var r=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},i=n&&n.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.lookup=e.separateOptions=e.selectOptionsFromKeys=e.selectOptions=e.userOptions=e.defaultOptions=e.insert=e.copy=e.keys=e.makeArray=e.expandable=e.Expandable=e.OPTIONS=e.REMOVE=e.APPEND=e.isObject=void 0;var o={}.constructor;function s(e){return typeof e==`object`&&!!e&&(e.constructor===o||e.constructor===c)}e.isObject=s,e.APPEND=`[+]`,e.REMOVE=`[-]`,e.OPTIONS={invalidOption:`warn`,optionError:function(t,n){if(e.OPTIONS.invalidOption===`fatal`)throw Error(t);console.warn(`MathJax: `+t)}};var c=function(){function e(){}return e}();e.Expandable=c;function l(e){return Object.assign(Object.create(c.prototype),e)}e.expandable=l,e.makeArray=function(e){return Array.isArray(e)?e:[e]};function u(e){return e?Object.keys(e).concat(Object.getOwnPropertySymbols(e)):[]}e.keys=u;function d(e){var t,n,i={};try{for(var a=r(u(e)),o=a.next();!o.done;o=a.next()){var p=o.value,m=Object.getOwnPropertyDescriptor(e,p),h=m.value;Array.isArray(h)?m.value=f([],h,!1):s(h)&&(m.value=d(h)),m.enumerable&&(i[p]=m)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return Object.defineProperties(e.constructor===c?l({}):{},i)}e.copy=d;function f(t,n,o){var l,p;o===void 0&&(o=!0);var m=function(r){if(o&&t[r]===void 0&&t.constructor!==c)return typeof r==`symbol`&&(r=r.toString()),e.OPTIONS.optionError(`Invalid option "${r}" (no default value).`,r),`continue`;var l=n[r],p=t[r];if(s(l)&&p!==null&&(typeof p==`object`||typeof p==`function`)){var m=u(l);Array.isArray(p)&&(m.length===1&&(m[0]===e.APPEND||m[0]===e.REMOVE)&&Array.isArray(l[m[0]])||m.length===2&&m.sort().join(`,`)===e.APPEND+`,`+e.REMOVE&&Array.isArray(l[e.APPEND])&&Array.isArray(l[e.REMOVE]))?(l[e.REMOVE]&&(p=t[r]=p.filter(function(t){return l[e.REMOVE].indexOf(t)<0})),l[e.APPEND]&&(t[r]=a(a([],i(p),!1),i(l[e.APPEND]),!1))):f(p,l,o)}else Array.isArray(l)?(t[r]=[],f(t[r],l,!1)):s(l)?t[r]=d(l):t[r]=l};try{for(var h=r(u(n)),g=h.next();!g.done;g=h.next())m(g.value)}catch(e){l={error:e}}finally{try{g&&!g.done&&(p=h.return)&&p.call(h)}finally{if(l)throw l.error}}return t}e.insert=f,e.defaultOptions=function(e){return[...arguments].slice(1).forEach(function(t){return f(e,t,!1)}),e},e.userOptions=function(e){return[...arguments].slice(1).forEach(function(t){return f(e,t,!0)}),e};function p(e){var t,n,i=[...arguments].slice(1),a={};try{for(var o=r(i),s=o.next();!s.done;s=o.next()){var c=s.value;e.hasOwnProperty(c)&&(a[c]=e[c])}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a}e.selectOptions=p,e.selectOptionsFromKeys=function(e,t){return p.apply(void 0,a([e],i(Object.keys(t)),!1))},e.separateOptions=function(e){var t,n,i,a,o=[...arguments].slice(1),s=[];try{for(var c=r(o),l=c.next();!l.done;l=c.next()){var u=l.value,d={},f={};try{for(var p=(i=void 0,r(Object.keys(e||{}))),m=p.next();!m.done;m=p.next()){var h=m.value;(u[h]===void 0?f:d)[h]=e[h]}}catch(e){i={error:e}}finally{try{m&&!m.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}s.push(d),e=f}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return s.unshift(e),s},e.lookup=function(e,t,n){return n===void 0&&(n=null),t.hasOwnProperty(e)?t[e]:n}})),a=e(((e,t,n)=>{var r=n&&n.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),a=n&&n.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.NodeMixin=e.NodeMixinOptions=void 0;var o=i();e.NodeMixinOptions={badCSS:!0,badSizes:!0},e.NodeMixin=function(t,n){var i;return n===void 0&&(n={}),n=(0,o.userOptions)((0,o.defaultOptions)({},e.NodeMixinOptions),n),i=function(e){r(t,e);function t(){var t=[...arguments],n=e.call(this,t[0])||this,r=n.constructor;return n.options=(0,o.userOptions)((0,o.defaultOptions)({},r.OPTIONS),t[1]),n}return t.prototype.fontSize=function(t){return n.badCSS?this.options.fontSize:e.prototype.fontSize.call(this,t)},t.prototype.fontFamily=function(t){return n.badCSS?this.options.fontFamily:e.prototype.fontFamily.call(this,t)},t.prototype.nodeSize=function(r,i,a){if(i===void 0&&(i=1),a===void 0&&(a=null),!n.badSizes)return e.prototype.nodeSize.call(this,r,i,a);var o=this.textContent(r),s=Array.from(o.replace(t.cjkPattern,``)).length;return[(Array.from(o).length-s)*this.options.cjkCharWidth+s*this.options.unknownCharWidth,this.options.unknownCharHeight]},t.prototype.nodeBBox=function(t){return n.badSizes?{left:0,right:0,top:0,bottom:0}:e.prototype.nodeBBox.call(this,t)},t}(t),i.OPTIONS=a(a({},n.badCSS?{fontSize:16,fontFamily:`Times`}:{}),n.badSizes?{cjkCharWidth:1,unknownCharWidth:.6,unknownCharHeight:.8}:{}),i.cjkPattern=RegExp(`[ᄀ-ᅟ〈〉⺀-〾-㉇㉐-䶿一-꓆ꥠ-ꥼ가-힣豈-︐-︙︰-﹫!-⦆¢-₩𛀀-𛀁🈀-🉑𠀀-]`,`gu`),i}})),o=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LiteDocument=void 0;var t=n();e.LiteDocument=function(){function e(){this.root=new t.LiteElement(`html`,{},[this.head=new t.LiteElement(`head`),this.body=new t.LiteElement(`body`)]),this.type=``}return Object.defineProperty(e.prototype,"kind",{get:function(){return`#document`},enumerable:!1,configurable:!0}),e}()})),s=e(((e,t,n)=>{var r=n&&n.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.LiteComment=e.LiteText=void 0;var i=function(){function e(e){e===void 0&&(e=``),this.value=e}return Object.defineProperty(e.prototype,"kind",{get:function(){return`#text`},enumerable:!1,configurable:!0}),e}();e.LiteText=i,e.LiteComment=function(e){r(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}(i)})),c=e(((e,t,n)=>{var r=n&&n.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},i=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteList=void 0,e.LiteList=function(){function e(e){this.nodes=[],this.nodes=i([],r(e),!1)}return e.prototype.append=function(e){this.nodes.push(e)},e.prototype[Symbol.iterator]=function(){var e=0;return{next:function(){return e===this.nodes.length?{value:null,done:!0}:{value:this.nodes[e++],done:!1}}}},e}()})),l=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfter=e.handleRetriesFor=void 0,e.handleRetriesFor=function(e){return new Promise(function t(n,r){try{n(e())}catch(e){e.retry&&e.retry instanceof Promise?e.retry.then(function(){return t(n,r)}).catch(function(e){return r(e)}):e.restart&&e.restart.isCallback?MathJax.Callback.After(function(){return t(n,r)},e.restart):r(e)}})},e.retryAfter=function(e){var t=Error(`MathJax retry`);throw t.retry=e,t}})),u=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION=`3.2.2`})),d=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PrioritizedList=void 0,e.PrioritizedList=function(){function e(){this.items=[],this.items=[]}return e.prototype[Symbol.iterator]=function(){var e=0,t=this.items;return{next:function(){return{value:t[e++],done:e>t.length}}}},e.prototype.add=function(t,n){n===void 0&&(n=e.DEFAULTPRIORITY);var r=this.items.length;do r--;while(r>=0&&n<this.items[r].priority);return this.items.splice(r+1,0,{item:t,priority:n}),t},e.prototype.remove=function(e){var t=this.items.length;do t--;while(t>=0&&this.items[t].item!==e);t>=0&&this.items.splice(t,1)},e.DEFAULTPRIORITY=5,e}()})),f=e(((e,t,n)=>{var r=n&&n.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),i=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.HandlerList=void 0,e.HandlerList=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.register=function(e){return this.add(e,e.priority)},t.prototype.unregister=function(e){this.remove(e)},t.prototype.handlesDocument=function(e){var t,n;try{for(var r=i(this),a=r.next();!a.done;a=r.next()){var o=a.value.item;if(o.handlesDocument(e))return o}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}throw Error(`Can't find handler for document`)},t.prototype.document=function(e,t){return t===void 0&&(t=null),this.handlesDocument(e).create(e,t)},t}(d().PrioritizedList)})),p=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mathjax=void 0;var t=u(),n=f(),r=l();e.mathjax={version:t.VERSION,handlers:new n.HandlerList,document:function(t,n){return e.mathjax.handlers.document(t,n)},handleRetriesFor:r.handleRetriesFor,retryAfter:r.retryAfter,asyncLoad:null}})),m=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.asyncLoad=void 0;var t=p();e.asyncLoad=function(e){return t.mathjax.asyncLoad?new Promise(function(n,r){var i=t.mathjax.asyncLoad(e);i instanceof Promise?i.then(function(e){return n(e)}).catch(function(e){return r(e)}):n(i)}):Promise.reject(`Can't load '${e}': No asyncLoad method specified`)}})),h=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.numeric=e.translate=e.remove=e.add=e.entities=e.options=void 0;var t=l(),n=m();e.options={loadMissingEntities:!0},e.entities={ApplyFunction:``,Backslash:`∖`,Because:`∵`,Breve:`˘`,Cap:`⋒`,CenterDot:`·`,CircleDot:`⊙`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,Congruent:`≡`,ContourIntegral:`∮`,Coproduct:`∐`,Cross:`⨯`,Cup:`⋓`,CupCap:`≍`,Dagger:`‡`,Del:`∇`,Delta:`Δ`,Diamond:`⋄`,DifferentialD:`ⅆ`,DotEqual:`≐`,DoubleDot:`¨`,DoubleRightTee:`⊨`,DoubleVerticalBar:`∥`,DownArrow:`↓`,DownLeftVector:`↽`,DownRightVector:`⇁`,DownTee:`⊤`,Downarrow:`⇓`,Element:`∈`,EqualTilde:`≂`,Equilibrium:`⇌`,Exists:`∃`,ExponentialE:`ⅇ`,FilledVerySmallSquare:`▪`,ForAll:`∀`,Gamma:`Γ`,Gg:`⋙`,GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Hacek:`ˇ`,Hat:`^`,HumpDownHump:`≎`,HumpEqual:`≏`,Im:`ℑ`,ImaginaryI:`ⅈ`,Integral:`∫`,Intersection:`⋂`,InvisibleComma:``,InvisibleTimes:``,Lambda:`Λ`,Larr:`↞`,LeftAngleBracket:`⟨`,LeftArrow:`←`,LeftArrowRightArrow:`⇆`,LeftCeiling:`⌈`,LeftDownVector:`⇃`,LeftFloor:`⌊`,LeftRightArrow:`↔`,LeftTee:`⊣`,LeftTriangle:`⊲`,LeftTriangleEqual:`⊴`,LeftUpVector:`↿`,LeftVector:`↼`,Leftarrow:`⇐`,Leftrightarrow:`⇔`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,LessSlantEqual:`⩽`,LessTilde:`≲`,Ll:`⋘`,Lleftarrow:`⇚`,LongLeftArrow:`⟵`,LongLeftRightArrow:`⟷`,LongRightArrow:`⟶`,Longleftarrow:`⟸`,Longleftrightarrow:`⟺`,Longrightarrow:`⟹`,Lsh:`↰`,MinusPlus:`∓`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotLeftTriangle:`⋪`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotPrecedes:`⊀`,NotPrecedesSlantEqual:`⋠`,NotRightTriangle:`⋫`,NotRightTriangleEqual:`⋭`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsSlantEqual:`⋡`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotVerticalBar:`∤`,Omega:`Ω`,OverBar:`‾`,OverBrace:`⏞`,PartialD:`∂`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,Product:`∏`,Proportional:`∝`,Psi:`Ψ`,Rarr:`↠`,Re:`ℜ`,ReverseEquilibrium:`⇋`,RightAngleBracket:`⟩`,RightArrow:`→`,RightArrowLeftArrow:`⇄`,RightCeiling:`⌉`,RightDownVector:`⇂`,RightFloor:`⌋`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTriangle:`⊳`,RightTriangleEqual:`⊵`,RightUpVector:`↾`,RightVector:`⇀`,Rightarrow:`⇒`,Rrightarrow:`⇛`,Rsh:`↱`,Sigma:`Σ`,SmallCircle:`∘`,Sqrt:`√`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,Star:`⋆`,Subset:`⋐`,SubsetEqual:`⊆`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,SuchThat:`∋`,Sum:`∑`,Superset:`⊃`,SupersetEqual:`⊇`,Supset:`⋑`,Therefore:`∴`,Theta:`Θ`,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,UnderBar:`_`,UnderBrace:`⏟`,Union:`⋃`,UnionPlus:`⊎`,UpArrow:`↑`,UpDownArrow:`↕`,UpTee:`⊥`,Uparrow:`⇑`,Updownarrow:`⇕`,Upsilon:`Υ`,Vdash:`⊩`,Vee:`⋁`,VerticalBar:`∣`,VerticalTilde:`≀`,Vvdash:`⊪`,Wedge:`⋀`,Xi:`Ξ`,amp:`&`,acute:`´`,aleph:`ℵ`,alpha:`α`,amalg:`⨿`,and:`∧`,ang:`∠`,angmsd:`∡`,angsph:`∢`,ape:`≊`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,beta:`β`,beth:`ℶ`,between:`≬`,bigcirc:`◯`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,blacklozenge:`⧫`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,bowtie:`⋈`,boxdl:`┐`,boxdr:`┌`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxul:`┘`,boxur:`└`,bsol:`\\`,bull:`•`,cap:`∩`,check:`✓`,chi:`χ`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledR:`®`,circledS:`Ⓢ`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,clubs:`♣`,colon:`:`,comp:`∁`,ctdot:`⋯`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cup:`∪`,curarr:`↷`,curlyvee:`⋎`,curlywedge:`⋏`,dagger:`†`,daleth:`ℸ`,ddarr:`⇊`,deg:`°`,delta:`δ`,digamma:`ϝ`,div:`÷`,divideontimes:`⋇`,dot:`˙`,doteqdot:`≑`,dotplus:`∔`,dotsquare:`⊡`,dtdot:`⋱`,ecir:`≖`,efDot:`≒`,egs:`⪖`,ell:`ℓ`,els:`⪕`,empty:`∅`,epsi:`ε`,epsiv:`ϵ`,erDot:`≓`,eta:`η`,eth:`ð`,flat:`♭`,fork:`⋔`,frown:`⌢`,gEl:`⪌`,gamma:`γ`,gap:`⪆`,gimel:`ℷ`,gnE:`≩`,gnap:`⪊`,gne:`⪈`,gnsim:`⋧`,gt:`>`,gtdot:`⋗`,harrw:`↭`,hbar:`ℏ`,hellip:`…`,hookleftarrow:`↩`,hookrightarrow:`↪`,imath:`ı`,infin:`∞`,intcal:`⊺`,iota:`ι`,jmath:`ȷ`,kappa:`κ`,kappav:`ϰ`,lEg:`⪋`,lambda:`λ`,lap:`⪅`,larrlp:`↫`,larrtl:`↢`,lbrace:`{`,lbrack:`[`,le:`≤`,leftleftarrows:`⇇`,leftthreetimes:`⋋`,lessdot:`⋖`,lmoust:`⎰`,lnE:`≨`,lnap:`⪉`,lne:`⪇`,lnsim:`⋦`,longmapsto:`⟼`,looparrowright:`↬`,lowast:`∗`,loz:`◊`,lt:`<`,ltimes:`⋉`,ltri:`◃`,macr:`¯`,malt:`✠`,mho:`℧`,mu:`μ`,multimap:`⊸`,nLeftarrow:`⇍`,nLeftrightarrow:`⇎`,nRightarrow:`⇏`,nVDash:`⊯`,nVdash:`⊮`,natur:`♮`,nearr:`↗`,nharr:`↮`,nlarr:`↚`,not:`¬`,nrarr:`↛`,nu:`ν`,nvDash:`⊭`,nvdash:`⊬`,nwarr:`↖`,omega:`ω`,omicron:`ο`,or:`∨`,osol:`⊘`,period:`.`,phi:`φ`,phiv:`ϕ`,pi:`π`,piv:`ϖ`,prap:`⪷`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,prime:`′`,psi:`ψ`,quot:`"`,rarrtl:`↣`,rbrace:`}`,rbrack:`]`,rho:`ρ`,rhov:`ϱ`,rightrightarrows:`⇉`,rightthreetimes:`⋌`,ring:`˚`,rmoust:`⎱`,rtimes:`⋊`,rtri:`▹`,scap:`⪸`,scnE:`⪶`,scnap:`⪺`,scnsim:`⋩`,sdot:`⋅`,searr:`↘`,sect:`§`,sharp:`♯`,sigma:`σ`,sigmav:`ς`,simne:`≆`,smile:`⌣`,spades:`♠`,sub:`⊂`,subE:`⫅`,subnE:`⫋`,subne:`⊊`,supE:`⫆`,supnE:`⫌`,supne:`⊋`,swarr:`↙`,tau:`τ`,theta:`θ`,thetav:`ϑ`,tilde:`˜`,times:`×`,triangle:`▵`,triangleq:`≜`,upsi:`υ`,upuparrows:`⇈`,veebar:`⊻`,vellip:`⋮`,weierp:`℘`,xi:`ξ`,yen:`¥`,zeta:`ζ`,zigrarr:`⇝`,nbsp:`\xA0`,rsquo:`’`,lsquo:`‘`};var r={};e.add=function(t,n){Object.assign(e.entities,t),r[n]=!0},e.remove=function(t){delete e.entities[t]},e.translate=function(e){return e.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/gi,i)};function i(i,o){if(o.charAt(0)===`#`)return a(o.slice(1));if(e.entities[o])return e.entities[o];if(e.options.loadMissingEntities){var s=o.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:o.charAt(0).toLowerCase();r[s]||(r[s]=!0,(0,t.retryAfter)((0,n.asyncLoad)(`./util/entities/`+s+`.js`)))}return i}function a(e){var t=e.charAt(0)===`x`?parseInt(e.slice(1),16):parseInt(e);return String.fromCodePoint(t)}e.numeric=a})),g=e(((e,t,r)=>{var i=r&&r.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),a=r&&r.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),o=r&&r.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t},c=r&&r.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},l=r&&r.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteParser=e.PATTERNS=void 0;var u=o(h()),d=n(),f=s(),p;(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`)})(p=e.PATTERNS||={}),e.LiteParser=function(){function e(){}return e.prototype.parseFromString=function(e,t,n){t===void 0&&(t=`text/html`),n===void 0&&(n=null);for(var r=n.createDocument(),i=n.body(r),a=e.replace(/<\?.*?\?>/g,``).split(p.tag);a.length;){var o=a.shift(),s=a.shift();o&&this.addText(n,i,o),s&&s.charAt(s.length-1)===`>`&&(s.charAt(1)===`!`?this.addComment(n,i,s):i=s.charAt(1)===`/`?this.closeTag(n,i,s):this.openTag(n,i,s,a))}return this.checkDocument(n,r),r},e.prototype.addText=function(e,t,n){return n=u.translate(n),e.append(t,e.text(n))},e.prototype.addComment=function(e,t,n){return e.append(t,new f.LiteComment(n))},e.prototype.closeTag=function(e,t,n){for(var r=n.slice(2,n.length-1).toLowerCase();e.parent(t)&&e.kind(t)!==r;)t=e.parent(t);return e.parent(t)},e.prototype.openTag=function(e,t,n,r){var i=this.constructor.PCDATA,a=this.constructor.SELF_CLOSING,o=n.match(/<(.*?)[\s\n>\/]/)[1].toLowerCase(),s=e.node(o),c=n.replace(/^<.*?[\s\n>]/,``).split(p.attrsplit);return(c.pop().match(/>$/)||c.length<5)&&(this.addAttributes(e,s,c),e.append(t,s),!a[o]&&!n.match(/\/>$/)&&(i[o]?this.handlePCDATA(e,s,o,r):t=s)),t},e.prototype.addAttributes=function(e,t,n){for(var r=this.constructor.CDATA_ATTR;n.length;){var i=c(n.splice(0,5),5),a=i[1],o=i[2],s=i[3],l=i[4],d=o||s||l||``;r[a]||(d=u.translate(d)),e.setAttribute(t,a,d)}},e.prototype.handlePCDATA=function(e,t,n,r){for(var i=[],a=`</`+n+`>`,o=``;r.length&&o!==a;)i.push(o),i.push(r.shift()),o=r.shift();e.append(t,e.text(i.join(``)))},e.prototype.checkDocument=function(e,t){var n,r,i,a,o=this.getOnlyChild(e,e.body(t));if(o){try{for(var s=l(e.childNodes(e.body(t))),c=s.next();!c.done;c=s.next()){var u=c.value;if(u===o)break;u instanceof f.LiteComment&&u.value.match(/^<!DOCTYPE/)&&(t.type=u.value)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}switch(e.kind(o)){case`html`:try{for(var d=l(o.children),p=d.next();!p.done;p=d.next()){var u=p.value;switch(e.kind(u)){case`head`:t.head=u;break;case`body`:t.body=u}}}catch(e){i={error:e}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}t.root=o,e.remove(o),e.parent(t.body)!==o&&e.append(o,t.body),e.parent(t.head)!==o&&e.insert(t.head,t.body);break;case`head`:t.head=e.replace(o,t.head);break;case`body`:t.body=e.replace(o,t.body)}}},e.prototype.getOnlyChild=function(e,t){var n,r,i=null;try{for(var a=l(e.childNodes(t)),o=a.next();!o.done;o=a.next()){var s=o.value;if(s instanceof d.LiteElement){if(i)return null;i=s}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},e.prototype.serialize=function(e,t,n){var r=this;n===void 0&&(n=!1);var i=this.constructor.SELF_CLOSING,a=this.constructor.CDATA_ATTR,o=e.kind(t),s=e.allAttributes(t).map(function(e){return e.name+`="`+(a[e.name]?e.value:r.protectAttribute(e.value))+`"`}).join(` `),c=this.serializeInner(e,t,n);return`<`+o+(s?` `+s:``)+((!n||c)&&!i[o]?`>${c}</${o}>`:n?`/>`:`>`)},e.prototype.serializeInner=function(e,t,n){var r=this;return n===void 0&&(n=!1),this.constructor.PCDATA.hasOwnProperty(t.kind)?e.childNodes(t).map(function(t){return e.value(t)}).join(``):e.childNodes(t).map(function(t){var i=e.kind(t);return i===`#text`?r.protectHTML(e.value(t)):i===`#comment`?t.value:r.serialize(e,t,n)}).join(``)},e.prototype.protectAttribute=function(e){return typeof e!=`string`&&(e=String(e)),e.replace(/"/g,`"`)},e.prototype.protectHTML=function(e){return e.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}()})),_=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LiteWindow=void 0;var t=n(),r=o(),i=c(),a=g();e.LiteWindow=function(){function e(){this.DOMParser=a.LiteParser,this.NodeList=i.LiteList,this.HTMLCollection=i.LiteList,this.HTMLElement=t.LiteElement,this.DocumentFragment=i.LiteList,this.Document=r.LiteDocument,this.document=new r.LiteDocument}return e}()})),v=e(((e,t,n)=>{var r=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},i=n&&n.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.Styles=void 0;var o=[`top`,`right`,`bottom`,`left`],s=[`width`,`style`,`color`];function c(e){for(var t=e.split(/((?:'[^']*'|"[^"]*"|,[\s\n]|[^\s\n])*)/g),n=[];t.length>1;)t.shift(),n.push(t.shift());return n}function l(e){var t,n,i=c(this.styles[e]);i.length===0&&i.push(``),i.length===1&&i.push(i[0]),i.length===2&&i.push(i[0]),i.length===3&&i.push(i[1]);try{for(var a=r(b.connect[e].children),o=a.next();!o.done;o=a.next()){var s=o.value;this.setStyle(this.childName(e,s),i.shift())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}}function u(e){var t,n,i=b.connect[e].children,a=[];try{for(var o=r(i),s=o.next();!s.done;s=o.next()){var c=s.value,l=this.styles[e+`-`+c];if(!l){delete this.styles[e];return}a.push(l)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}a[3]===a[1]&&(a.pop(),a[2]===a[0]&&(a.pop(),a[1]===a[0]&&a.pop())),this.styles[e]=a.join(` `)}function d(e){var t,n;try{for(var i=r(b.connect[e].children),a=i.next();!a.done;a=i.next()){var o=a.value;this.setStyle(this.childName(e,o),this.styles[e])}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}function f(e){var t,n,o=a([],i(b.connect[e].children),!1),s=this.styles[this.childName(e,o.shift())];try{for(var c=r(o),l=c.next();!l.done;l=c.next()){var u=l.value;if(this.styles[this.childName(e,u)]!==s){delete this.styles[e];return}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}this.styles[e]=s}var p={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 m(e){var t,n,i,a,o={width:``,style:``,color:``};try{for(var s=r(c(this.styles[e])),l=s.next();!l.done;l=s.next()){var u=l.value;u.match(p.width)&&o.width===``?o.width=u:u.match(p.style)&&o.style===``?o.style=u:o.color=u}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}try{for(var d=r(b.connect[e].children),f=d.next();!f.done;f=d.next()){var m=f.value;this.setStyle(this.childName(e,m),o[m])}}catch(e){i={error:e}}finally{try{f&&!f.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}}function h(e){var t,n,i=[];try{for(var a=r(b.connect[e].children),o=a.next();!o.done;o=a.next()){var s=o.value,c=this.styles[this.childName(e,s)];c&&i.push(c)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}i.length?this.styles[e]=i.join(` `):delete this.styles[e]}var g={style:/^(?:normal|italic|oblique|inherit|initial|unset)$/,variant: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)$`),weight:/^(?:normal|bold|bolder|lighter|[1-9]00|inherit|initial|unset)$/,stretch:RegExp(`^(?:normal|(?:(?:ultra|extra|semi)-)?condensed|(?:(?:semi|extra|ulta)-)?expanded|inherit|initial|unset)$`),size:RegExp(`^(?:xx-small|x-small|small|medium|large|x-large|xx-large|larger|smaller|[d.]+%|[d.]+[a-z]+|inherit|initial|unset)(?:/(?:normal|[d.+](?:%|[a-z]+)?))?$`)};function _(e){var t,n,a,o,s=c(this.styles[e]),l={style:``,variant:[],weight:``,stretch:``,size:``,family:``,"line-height":``};try{for(var u=r(s),d=u.next();!d.done;d=u.next()){var f=d.value;l.family=f;try{for(var p=(a=void 0,r(Object.keys(g))),m=p.next();!m.done;m=p.next()){var h=m.value;if((Array.isArray(l[h])||l[h]===``)&&f.match(g[h])){if(h===`size`){var _=i(f.split(/\//),2),y=_[0],b=_[1];l[h]=y,b&&(l[`line-height`]=b)}else l.size===``&&(Array.isArray(l[h])?l[h].push(f):l[h]=f)}}}catch(e){a={error:e}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(a)throw a.error}}}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}v(e,l),delete this.styles[e]}function v(e,t){var n,i;try{for(var a=r(b.connect[e].children),o=a.next();!o.done;o=a.next()){var s=o.value,c=this.childName(e,s);if(Array.isArray(t[s])){var l=t[s];l.length&&(this.styles[c]=l.join(` `))}else t[s]!==``&&(this.styles[c]=t[s])}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}}function y(e){}var b=function(){function e(e){e===void 0&&(e=``),this.parse(e)}return Object.defineProperty(e.prototype,"cssText",{get:function(){var e,t,n=[];try{for(var i=r(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(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n.join(` `)},enumerable:!1,configurable:!0}),e.prototype.set=function(t,n){for(t=this.normalizeName(t),this.setStyle(t,n),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(e){return e=this.normalizeName(e),this.styles.hasOwnProperty(e)?this.styles[e]:``},e.prototype.setStyle=function(t,n){this.styles[t]=n,e.connect[t]&&e.connect[t].children&&e.connect[t].split.call(this,t),n===``&&delete this.styles[t]},e.prototype.combineChildren=function(t){var n,i,a=this.parentName(t);try{for(var o=r(e.connect[t].children),s=o.next();!s.done;s=o.next()){var c=s.value,l=this.childName(a,c);e.connect[l].combine.call(this,l)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype.parentName=function(e){var t=e.replace(/-[^-]*$/,``);return e===t?``:t},e.prototype.childName=function(t,n){return n.match(/-/)?n:(e.connect[t]&&!e.connect[t].combine&&(n+=t.replace(/.*-/,`-`),t=this.parentName(t)),t+`-`+n)},e.prototype.normalizeName=function(e){return e.replace(/[A-Z]/g,function(e){return`-`+e.toLowerCase()})},e.prototype.parse=function(e){e===void 0&&(e=``);var t=this.constructor.pattern;this.styles={};for(var n=e.replace(t.comment,``).split(t.style);n.length>1;){var r=i(n.splice(0,3),3),a=r[0],o=r[1],s=r[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:o,split:l,combine:u},border:{children:o,split:d,combine:f},"border-top":{children:s,split:m,combine:h},"border-right":{children:s,split:m,combine:h},"border-bottom":{children:s,split:m,combine:h},"border-left":{children:s,split:m,combine:h},"border-width":{children:o,split:l,combine:null},"border-style":{children:o,split:l,combine:null},"border-color":{children:o,split:l,combine:null},font:{children:[`style`,`variant`,`weight`,`stretch`,`line-height`,`size`,`family`],split:_,combine:y}},e}();e.Styles=b})),y=e(((e,t,i)=>{var c=i&&i.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),l=i&&i.__assign||function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},l.apply(this,arguments)},u=i&&i.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},d=i&&i.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},f=i&&i.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.liteAdaptor=e.LiteAdaptor=e.LiteBase=void 0;var p=r(),m=a(),h=o(),y=n(),b=s(),x=_(),S=g(),C=v(),w=function(e){c(t,e);function t(){var t=e.call(this)||this;return t.parser=new S.LiteParser,t.window=new x.LiteWindow,t}return t.prototype.parse=function(e,t){return this.parser.parseFromString(e,t,this)},t.prototype.create=function(e,t){return t===void 0&&(t=null),new y.LiteElement(e)},t.prototype.text=function(e){return new b.LiteText(e)},t.prototype.comment=function(e){return new b.LiteComment(e)},t.prototype.createDocument=function(){return new h.LiteDocument},t.prototype.head=function(e){return e.head},t.prototype.body=function(e){return e.body},t.prototype.root=function(e){return e.root},t.prototype.doctype=function(e){return e.type},t.prototype.tags=function(e,t,n){n===void 0&&(n=null);var r=[],i=[];if(n)return i;for(var a=e;a;){var o=a.kind;o!==`#text`&&o!==`#comment`&&(a=a,o===t&&i.push(a),a.children.length&&(r=a.children.concat(r))),a=r.shift()}return i},t.prototype.elementById=function(e,t){for(var n=[],r=e;r;){if(r.kind!==`#text`&&r.kind!==`#comment`){if(r=r,r.attributes.id===t)return r;r.children.length&&(n=r.children.concat(n))}r=n.shift()}return null},t.prototype.elementsByClass=function(e,t){for(var n=[],r=[],i=e;i;)i.kind!==`#text`&&i.kind!==`#comment`&&(i=i,(i.attributes.class||``).trim().split(/ +/).includes(t)&&r.push(i),i.children.length&&(n=i.children.concat(n))),i=n.shift();return r},t.prototype.getElements=function(e,t){var n,r,i=[],a=this.body(t);try{for(var o=u(e),s=o.next();!s.done;s=o.next()){var c=s.value;if(typeof c==`string`){if(c.charAt(0)===`#`){var l=this.elementById(a,c.slice(1));l&&i.push(l)}else c.charAt(0)===`.`?i=i.concat(this.elementsByClass(a,c.slice(1))):c.match(/^[-a-z][-a-z0-9]*$/i)&&(i=i.concat(this.tags(a,c)))}else Array.isArray(c)?i=i.concat(c):c instanceof this.window.NodeList||c instanceof this.window.HTMLCollection?i=i.concat(c.nodes):i.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},t.prototype.contains=function(e,t){for(;t&&t!==e;)t=this.parent(t);return!!t},t.prototype.parent=function(e){return e.parent},t.prototype.childIndex=function(e){return e.parent?e.parent.children.findIndex(function(t){return t===e}):-1},t.prototype.append=function(e,t){return t.parent&&this.remove(t),e.children.push(t),t.parent=e,t},t.prototype.insert=function(e,t){if(e.parent&&this.remove(e),t&&t.parent){var n=this.childIndex(t);t.parent.children.splice(n,0,e),e.parent=t.parent}},t.prototype.remove=function(e){var t=this.childIndex(e);return t>=0&&e.parent.children.splice(t,1),e.parent=null,e},t.prototype.replace=function(e,t){var n=this.childIndex(t);return n>=0&&(t.parent.children[n]=e,e.parent=t.parent,t.parent=null),t},t.prototype.clone=function(e){var t=this,n=new y.LiteElement(e.kind);return n.attributes=l({},e.attributes),n.children=e.children.map(function(e){if(e.kind===`#text`)return new b.LiteText(e.value);if(e.kind===`#comment`)return new b.LiteComment(e.value);var r=t.clone(e);return r.parent=n,r}),n},t.prototype.split=function(e,t){var n=new b.LiteText(e.value.slice(t));return e.value=e.value.slice(0,t),e.parent.children.splice(this.childIndex(e)+1,0,n),n.parent=e.parent,n},t.prototype.next=function(e){var t=e.parent;if(!t)return null;var n=this.childIndex(e)+1;return n>=0&&n<t.children.length?t.children[n]:null},t.prototype.previous=function(e){var t=e.parent;if(!t)return null;var n=this.childIndex(e)-1;return n>=0?t.children[n]:null},t.prototype.firstChild=function(e){return e.children[0]},t.prototype.lastChild=function(e){return e.children[e.children.length-1]},t.prototype.childNodes=function(e){return f([],d(e.children),!1)},t.prototype.childNode=function(e,t){return e.children[t]},t.prototype.kind=function(e){return e.kind},t.prototype.value=function(e){return e.kind===`#text`?e.value:e.kind===`#comment`?e.value.replace(/^<!(--)?((?:.|\n)*)\1>$/,`$2`):``},t.prototype.textContent=function(e){var t=this;return e.children.reduce(function(e,n){return e+(n.kind===`#text`?n.value:n.kind===`#comment`?``:t.textContent(n))},``)},t.prototype.innerHTML=function(e){return this.parser.serializeInner(this,e)},t.prototype.outerHTML=function(e){return this.parser.serialize(this,e)},t.prototype.serializeXML=function(e){return this.parser.serialize(this,e,!0)},t.prototype.setAttribute=function(e,t,n,r){r===void 0&&(r=null),typeof n!=`string`&&(n=String(n)),r&&(t=r.replace(/.*\//,``)+`:`+t.replace(/^.*:/,``)),e.attributes[t]=n,t===`style`&&(e.styles=null)},t.prototype.getAttribute=function(e,t){return e.attributes[t]},t.prototype.removeAttribute=function(e,t){delete e.attributes[t]},t.prototype.hasAttribute=function(e,t){return e.attributes.hasOwnProperty(t)},t.prototype.allAttributes=function(e){var t,n,r=e.attributes,i=[];try{for(var a=u(Object.keys(r)),o=a.next();!o.done;o=a.next()){var s=o.value;i.push({name:s,value:r[s]})}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},t.prototype.addClass=function(e,t){var n=(e.attributes.class||``).split(/ /);n.find(function(e){return e===t})||(n.push(t),e.attributes.class=n.join(` `))},t.prototype.removeClass=function(e,t){var n=(e.attributes.class||``).split(/ /),r=n.findIndex(function(e){return e===t});r>=0&&(n.splice(r,1),e.attributes.class=n.join(` `))},t.prototype.hasClass=function(e,t){return!!(e.attributes.class||``).split(/ /).find(function(e){return e===t})},t.prototype.setStyle=function(e,t,n){e.styles||=new C.Styles(this.getAttribute(e,`style`)),e.styles.set(t,n),e.attributes.style=e.styles.cssText},t.prototype.getStyle=function(e,t){if(!e.styles){var n=this.getAttribute(e,`style`);if(!n)return``;e.styles=new C.Styles(n)}return e.styles.get(t)},t.prototype.allStyles=function(e){return this.getAttribute(e,`style`)},t.prototype.insertRules=function(e,t){e.children=[this.text(t.join(`
|
|
2
2
|
|
|
3
3
|
`)+`
|
|
4
4
|
|
package/dist/web/site/index.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
|
-
<script>(function(){var p=fetch(new URL("aula-voice-
|
|
4
|
+
<script>(function(){var p=fetch(new URL("aula-voice-aec149e146b6.avw",document.baseURI));p.catch(function(){});window.aulaVoice=p})();</script>
|
|
5
5
|
<script>addEventListener("error",function(){var s=document.getElementById("splash");if(!s||s.hasAttribute("data-live"))return;s.setAttribute("data-failed","");var t=s.querySelector(".splash-status");if(t)t.textContent="The app did not load. Reload the page."},true);</script>
|
|
6
6
|
<style>#splash{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#fff;color:#1d1d1f;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;opacity:1;visibility:visible}
|
|
7
7
|
#splash[data-state="done"]{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s ease,visibility 0s linear .25s}
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
28
28
|
<link rel="icon" href="data:," />
|
|
29
29
|
<title>Aula videos</title>
|
|
30
|
-
<script type="module" crossorigin src="./assets/
|
|
30
|
+
<script type="module" crossorigin src="./assets/671a8ee2/index.js"></script>
|
|
31
31
|
<link rel="modulepreload" crossorigin href="./assets/rolldown-runtime-BLXQ4ufn.js">
|
|
32
|
-
<link rel="modulepreload" crossorigin href="./assets/src-
|
|
33
|
-
<link rel="modulepreload" crossorigin href="./assets/protocol-
|
|
32
|
+
<link rel="modulepreload" crossorigin href="./assets/src-BwnY0kQu.js">
|
|
33
|
+
<link rel="modulepreload" crossorigin href="./assets/protocol-ByKVs3Yn.js">
|
|
34
34
|
<link rel="stylesheet" crossorigin href="./assets/index-qn44kZJM.css">
|
|
35
35
|
</head>
|
|
36
36
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beff/aula-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The aula command: runs chapter modules on the inlined engine, checks and lints them, writes PNG pictures for review, makes project zips, and serves the web player with narration.",
|
|
6
6
|
"license": "MIT AND GPL-3.0-or-later",
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
chapterNarration
|
|
3
|
-
} from "./chunk-TDAWUJ2L.js";
|
|
4
|
-
|
|
5
|
-
// ../aula-narration/src/script.ts
|
|
6
|
-
var starts = (words) => Float64Array.from(words, (w) => w.start);
|
|
7
|
-
function joinChapter(cues, speeches) {
|
|
8
|
-
let rate = 0;
|
|
9
|
-
for (const [i, speech] of speeches.entries()) {
|
|
10
|
-
if (!speech.samples.length || speech.samples.some((s) => !Number.isFinite(s))) {
|
|
11
|
-
const text = cues[i]?.text.slice(0, 60) ?? "";
|
|
12
|
-
throw new Error(`the narrator returned empty or invalid audio for ${JSON.stringify(text)}`);
|
|
13
|
-
}
|
|
14
|
-
if (rate !== 0 && speech.sampleRate !== rate) throw new Error("the narrator changed its sample rate");
|
|
15
|
-
rate = speech.sampleRate;
|
|
16
|
-
}
|
|
17
|
-
const spoken = speeches.map((s) => ({ samples: s.samples.length, starts: starts(s.words) }));
|
|
18
|
-
const narration = chapterNarration(cues, spoken, rate);
|
|
19
|
-
const samples = new Float32Array(narration.endFrame);
|
|
20
|
-
for (const [i, speech] of speeches.entries()) samples.set(speech.samples, narration.cues[i]?.speechStartFrame ?? 0);
|
|
21
|
-
return { samples, narration };
|
|
22
|
-
}
|
|
23
|
-
function withWaits(samples, waits) {
|
|
24
|
-
if (waits.length === 0) return samples;
|
|
25
|
-
const out = new Float32Array(samples.length + waits.reduce((sum, w) => sum + w.samples, 0));
|
|
26
|
-
let from = 0;
|
|
27
|
-
let to = 0;
|
|
28
|
-
for (const wait of waits.toSorted((a, b) => a.sample - b.sample)) {
|
|
29
|
-
const at = Math.min(wait.sample, samples.length);
|
|
30
|
-
out.set(samples.subarray(from, at), to);
|
|
31
|
-
to += at - from + wait.samples;
|
|
32
|
-
from = at;
|
|
33
|
-
}
|
|
34
|
-
out.set(samples.subarray(from), to);
|
|
35
|
-
return out;
|
|
36
|
-
}
|
|
37
|
-
function timeChapter(cues, timings) {
|
|
38
|
-
const rate = timings[0]?.sampleRate ?? 0;
|
|
39
|
-
if (timings.some((t) => t.sampleRate !== rate)) throw new Error("the narrator changed its sample rate");
|
|
40
|
-
const spoken = timings.map(
|
|
41
|
-
(t) => t.words ? { samples: t.samples, starts: starts(t.words) } : { samples: t.samples }
|
|
42
|
-
);
|
|
43
|
-
return chapterNarration(cues, spoken, rate);
|
|
44
|
-
}
|
|
45
|
-
async function narrateScript(speak, chapters, speaking) {
|
|
46
|
-
const count = chapters.reduce((sum, c) => sum + c.length, 0);
|
|
47
|
-
let spoken = 0;
|
|
48
|
-
const narrated = [];
|
|
49
|
-
for (const cues of chapters) {
|
|
50
|
-
const speeches = [];
|
|
51
|
-
for (const cue of cues) {
|
|
52
|
-
spoken += 1;
|
|
53
|
-
speaking(spoken, count, cue);
|
|
54
|
-
speeches.push(await speak(cue.words));
|
|
55
|
-
}
|
|
56
|
-
narrated.push(joinChapter(cues, speeches));
|
|
57
|
-
}
|
|
58
|
-
if (!narrated.some((c) => c.narration.sampleRate > 0)) throw new Error("the script has no cues");
|
|
59
|
-
return narrated;
|
|
60
|
-
}
|
|
61
|
-
function scriptAudio(chapters, waits) {
|
|
62
|
-
const sounds = chapters.map((c, i) => withWaits(c.samples, waits[i] ?? []));
|
|
63
|
-
const samples = new Float32Array(sounds.reduce((sum, s) => sum + s.length, 0));
|
|
64
|
-
let at = 0;
|
|
65
|
-
for (const sound of sounds) {
|
|
66
|
-
samples.set(sound, at);
|
|
67
|
-
at += sound.length;
|
|
68
|
-
}
|
|
69
|
-
const sampleRate = chapters.find((c) => c.narration.sampleRate > 0)?.narration.sampleRate ?? 0;
|
|
70
|
-
return { samples, sampleRate };
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// ../aula-narration/src/wav.ts
|
|
74
|
-
function wav(samples, rate) {
|
|
75
|
-
const bytes = new Uint8Array(44 + samples.length * 2);
|
|
76
|
-
const view = new DataView(bytes.buffer);
|
|
77
|
-
const text = (at, value) => {
|
|
78
|
-
for (let i = 0; i < value.length; i++) view.setUint8(at + i, value.charCodeAt(i));
|
|
79
|
-
};
|
|
80
|
-
text(0, "RIFF");
|
|
81
|
-
view.setUint32(4, 36 + samples.length * 2, true);
|
|
82
|
-
text(8, "WAVE");
|
|
83
|
-
text(12, "fmt ");
|
|
84
|
-
view.setUint32(16, 16, true);
|
|
85
|
-
view.setUint16(20, 1, true);
|
|
86
|
-
view.setUint16(22, 1, true);
|
|
87
|
-
view.setUint32(24, rate, true);
|
|
88
|
-
view.setUint32(28, rate * 2, true);
|
|
89
|
-
view.setUint16(32, 2, true);
|
|
90
|
-
view.setUint16(34, 16, true);
|
|
91
|
-
text(36, "data");
|
|
92
|
-
view.setUint32(40, samples.length * 2, true);
|
|
93
|
-
samples.forEach((sample, i) => {
|
|
94
|
-
view.setInt16(44 + i * 2, Math.round(Math.min(1, Math.max(-1, sample)) * 32767), true);
|
|
95
|
-
});
|
|
96
|
-
return bytes;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export {
|
|
100
|
-
timeChapter,
|
|
101
|
-
narrateScript,
|
|
102
|
-
scriptAudio,
|
|
103
|
-
wav
|
|
104
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
printDiagnostics
|
|
3
|
-
} from "./chunk-PZXFW6ZD.js";
|
|
4
|
-
import "./chunk-AXQBWV7J.js";
|
|
5
|
-
import "./chunk-4QGX7XXO.js";
|
|
6
|
-
import "./chunk-TDAWUJ2L.js";
|
|
7
|
-
import "./chunk-2PAZTBSE.js";
|
|
8
|
-
import {
|
|
9
|
-
diagnosticsOf
|
|
10
|
-
} from "./chunk-T6CAPT32.js";
|
|
11
|
-
import "./chunk-RAGZAJKD.js";
|
|
12
|
-
import "./chunk-DN2LVJO3.js";
|
|
13
|
-
import "./chunk-VX7UVLQW.js";
|
|
14
|
-
import "./chunk-CZ7CSFO4.js";
|
|
15
|
-
export {
|
|
16
|
-
diagnosticsOf,
|
|
17
|
-
printDiagnostics
|
|
18
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exists,
|
|
3
|
-
host,
|
|
4
|
-
loadProject
|
|
5
|
-
} from "./chunk-DC7A435Z.js";
|
|
6
|
-
import "./chunk-2PAZTBSE.js";
|
|
7
|
-
import "./chunk-T6CAPT32.js";
|
|
8
|
-
import "./chunk-RAGZAJKD.js";
|
|
9
|
-
import "./chunk-DN2LVJO3.js";
|
|
10
|
-
import "./chunk-VX7UVLQW.js";
|
|
11
|
-
import "./chunk-CZ7CSFO4.js";
|
|
12
|
-
export {
|
|
13
|
-
exists,
|
|
14
|
-
host,
|
|
15
|
-
loadProject
|
|
16
|
-
};
|
package/dist/src/run-ER27SVTA.js
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
bundle,
|
|
3
|
-
check,
|
|
4
|
-
exportVideo,
|
|
5
|
-
preview,
|
|
6
|
-
script,
|
|
7
|
-
timeline
|
|
8
|
-
} from "./chunk-HD6FTA3H.js";
|
|
9
|
-
import "./chunk-THQ5Y74K.js";
|
|
10
|
-
import "./chunk-F4XRXW6M.js";
|
|
11
|
-
import "./chunk-4N4NUMKP.js";
|
|
12
|
-
import "./chunk-PZXFW6ZD.js";
|
|
13
|
-
import "./chunk-AXQBWV7J.js";
|
|
14
|
-
import "./chunk-4QGX7XXO.js";
|
|
15
|
-
import "./chunk-TDAWUJ2L.js";
|
|
16
|
-
import "./chunk-DC7A435Z.js";
|
|
17
|
-
import "./chunk-2PAZTBSE.js";
|
|
18
|
-
import {
|
|
19
|
-
wrongArgument
|
|
20
|
-
} from "./chunk-T6CAPT32.js";
|
|
21
|
-
import "./chunk-RAGZAJKD.js";
|
|
22
|
-
import "./chunk-DN2LVJO3.js";
|
|
23
|
-
import "./chunk-VX7UVLQW.js";
|
|
24
|
-
import "./chunk-CZ7CSFO4.js";
|
|
25
|
-
|
|
26
|
-
// src/run.ts
|
|
27
|
-
import path from "node:path";
|
|
28
|
-
var USAGE = `aula: storyboard-first narrated aula videos.
|
|
29
|
-
|
|
30
|
-
<folder> is a project folder: it has index.ts, which exports
|
|
31
|
-
defineProject({ title, theme, chapters }). <chapter> is a chapter name such as
|
|
32
|
-
01-double-the-side (its number and the slug of its heading), or title (the
|
|
33
|
-
title card). Each chapter module holds its script, storyboard notes and
|
|
34
|
-
animations; messages name its lines (file:line:col).
|
|
35
|
-
|
|
36
|
-
aula check <folder> [<chapter> ...] [--json]
|
|
37
|
-
every check, with no narration and no frames, and
|
|
38
|
-
a note for each word whose reading is not clear;
|
|
39
|
-
--json prints the result as one JSON object
|
|
40
|
-
aula preview <folder> <out> [<chapter>[:<line>] ...]
|
|
41
|
-
PNG pictures for review: per chapter, stills,
|
|
42
|
-
motion stills, contact sheets and moves.md
|
|
43
|
-
aula export <folder> <file.mp4> the video to send: narrated in this run, H.264 and
|
|
44
|
-
AAC at 1280x720 and 60 fps; needs ffmpeg
|
|
45
|
-
aula web [<folder>] [--port N] [--host H]
|
|
46
|
-
the web app for a project folder (index.ts) or a
|
|
47
|
-
playlist folder of such projects (default: cwd);
|
|
48
|
-
not a monorepo root that also holds kits; draft:
|
|
49
|
-
true projects stay out of a playlist list; the page
|
|
50
|
-
narrates in the browser; --host defaults to 127.0.0.1
|
|
51
|
-
(use 0.0.0.0 to listen on all interfaces)
|
|
52
|
-
aula bundle <folder> <file.zip> the project zip: the project folder, and the
|
|
53
|
-
packages it imports, to share or host
|
|
54
|
-
aula site <folder> <out> [--title <text>] [--base <path>]
|
|
55
|
-
a website of a project or playlist folder (same as
|
|
56
|
-
aula web; not a monorepo root that also holds kits;
|
|
57
|
-
draft: true projects stay out): the folder's files
|
|
58
|
-
with the packages they import, and the web app, as
|
|
59
|
-
plain files in <out> for any static host; --title
|
|
60
|
-
is the site's title (default: the folder's name);
|
|
61
|
-
--base pins the site to a base path such as /aula/
|
|
62
|
-
(default: it works at any path)
|
|
63
|
-
aula script <folder> [<chapter> ...] the review script: each chapter with its length,
|
|
64
|
-
each spoken beat and what is on screen
|
|
65
|
-
aula timeline <folder> [<chapter> ...]
|
|
66
|
-
print each say and move with its line, second
|
|
67
|
-
and note (agent view)
|
|
68
|
-
aula tokens Kokoro v1.0's token ids of texts, for training
|
|
69
|
-
data: reads JSON lines {"id"?, "text"} on
|
|
70
|
-
stdin, writes {"id"?, "batches": [{"phonemes",
|
|
71
|
-
"ids"}]} on stdout, one batch per model run
|
|
72
|
-
|
|
73
|
-
Errors make the exit code 1. Warnings do not change it.`;
|
|
74
|
-
var VALUED = {
|
|
75
|
-
"--port": { what: "a port number", number: true },
|
|
76
|
-
"--host": { what: "a host", number: false },
|
|
77
|
-
"--title": { what: "a title", number: false },
|
|
78
|
-
"--base": { what: "a base path", number: false }
|
|
79
|
-
};
|
|
80
|
-
function parse(argv, allowed) {
|
|
81
|
-
const args = { positional: [], values: /* @__PURE__ */ new Map(), flags: /* @__PURE__ */ new Set() };
|
|
82
|
-
for (let i = 0; i < argv.length; i++) {
|
|
83
|
-
const arg = argv[i] ?? "";
|
|
84
|
-
const what = VALUED[arg];
|
|
85
|
-
if (what !== void 0 && allowed.includes(arg)) {
|
|
86
|
-
i += 1;
|
|
87
|
-
const value = argv[i];
|
|
88
|
-
if (value === void 0) throw wrongArgument(`${arg} needs ${what.what}`);
|
|
89
|
-
if (!what.number) {
|
|
90
|
-
args.values.set(arg, value);
|
|
91
|
-
continue;
|
|
92
|
-
}
|
|
93
|
-
if (!/^[0-9]+$/.test(value)) throw wrongArgument(`${arg} ${value} is not a number`);
|
|
94
|
-
args.values.set(arg, Number(value));
|
|
95
|
-
} else if (allowed.includes(arg)) {
|
|
96
|
-
args.flags.add(arg);
|
|
97
|
-
} else if (arg.startsWith("--")) {
|
|
98
|
-
throw wrongArgument(`unknown option ${arg}`, "run `aula help` for the options of each command");
|
|
99
|
-
} else {
|
|
100
|
-
args.positional.push(arg);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
return args;
|
|
104
|
-
}
|
|
105
|
-
var OPTIONS = {
|
|
106
|
-
check: ["--json"],
|
|
107
|
-
web: ["--port", "--host"],
|
|
108
|
-
site: ["--title", "--base"]
|
|
109
|
-
};
|
|
110
|
-
var isHelp = (command) => command === void 0 || command === "help" || command === "-h" || command === "--help";
|
|
111
|
-
var ARITY = {
|
|
112
|
-
check: [0, Infinity],
|
|
113
|
-
preview: [1, Infinity],
|
|
114
|
-
export: [1, 1],
|
|
115
|
-
bundle: [1, 1],
|
|
116
|
-
script: [0, Infinity],
|
|
117
|
-
timeline: [0, Infinity]
|
|
118
|
-
};
|
|
119
|
-
function folderArgs(cwd, command, args) {
|
|
120
|
-
const arity = ARITY[command];
|
|
121
|
-
if (arity === void 0) throw wrongArgument(`unknown command ${command}`, "run `aula help` for the commands");
|
|
122
|
-
const [folder, ...rest] = args.positional;
|
|
123
|
-
if (folder === void 0) throw wrongArgument("missing <folder>: the project folder, which has index.ts");
|
|
124
|
-
if (rest.length < arity[0] || rest.length > arity[1])
|
|
125
|
-
throw wrongArgument("wrong number of arguments", "run `aula help` for the usage");
|
|
126
|
-
return { folder: path.resolve(cwd, folder), rest };
|
|
127
|
-
}
|
|
128
|
-
async function run(capabilities, cwd, command, project, rest, flags = /* @__PURE__ */ new Set()) {
|
|
129
|
-
const [first = "", ...more] = rest;
|
|
130
|
-
switch (command) {
|
|
131
|
-
case "check":
|
|
132
|
-
return check(capabilities, cwd, project, rest, flags.has("--json"));
|
|
133
|
-
case "preview":
|
|
134
|
-
return preview(capabilities, cwd, project, path.resolve(cwd, first), more);
|
|
135
|
-
case "export":
|
|
136
|
-
return exportVideo(capabilities, cwd, project, path.resolve(cwd, first));
|
|
137
|
-
case "bundle":
|
|
138
|
-
return bundle(capabilities, project, path.resolve(cwd, first));
|
|
139
|
-
case "script":
|
|
140
|
-
return script(capabilities, cwd, project, rest);
|
|
141
|
-
case "timeline":
|
|
142
|
-
return timeline(capabilities, cwd, project, rest);
|
|
143
|
-
default:
|
|
144
|
-
throw wrongArgument(`unknown command ${command}`, "run `aula help` for the commands");
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
function webOptions(cwd, args) {
|
|
148
|
-
if (args.positional.length > 1) throw wrongArgument("aula web takes one folder", "run `aula help` for the usage");
|
|
149
|
-
const port = args.values.get("--port");
|
|
150
|
-
const host = args.values.get("--host");
|
|
151
|
-
return {
|
|
152
|
-
root: path.resolve(cwd, args.positional[0] ?? "."),
|
|
153
|
-
port: typeof port === "number" ? port : 0,
|
|
154
|
-
host: typeof host === "string" ? host : "127.0.0.1"
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
function siteOptions(cwd, args) {
|
|
158
|
-
const [folder, out, ...more] = args.positional;
|
|
159
|
-
if (folder === void 0 || out === void 0 || more.length > 0)
|
|
160
|
-
throw wrongArgument("aula site takes a playlist folder and an output folder", "run `aula help` for the usage");
|
|
161
|
-
const title = args.values.get("--title");
|
|
162
|
-
const base = args.values.get("--base");
|
|
163
|
-
if (typeof base === "string" && !(base.startsWith("/") && base.endsWith("/")))
|
|
164
|
-
throw wrongArgument(`--base ${base} must start and end with /`, "for example --base /aula/");
|
|
165
|
-
const root = path.resolve(cwd, folder);
|
|
166
|
-
return {
|
|
167
|
-
folder: root,
|
|
168
|
-
out: path.resolve(cwd, out),
|
|
169
|
-
title: typeof title === "string" ? title : path.basename(root),
|
|
170
|
-
base: typeof base === "string" ? base : null
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
var optionsOf = (command) => OPTIONS[command] ?? [];
|
|
174
|
-
export {
|
|
175
|
-
USAGE,
|
|
176
|
-
folderArgs,
|
|
177
|
-
isHelp,
|
|
178
|
-
optionsOf,
|
|
179
|
-
parse,
|
|
180
|
-
run,
|
|
181
|
-
siteOptions,
|
|
182
|
-
webOptions
|
|
183
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./aula-voice-worker-CJpoa9h-.js";var t=/* @__PURE__ */ e(((e,t)=>{t.exports={}}));export default t();
|