!function(){"use strict";vart,e,n,r,o,i,a,l,u,s={244:function(t,e,n){varr,o=this&&this.__extends||(r=function(t,e){returnr=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(t,e){t.__proto__=e}||function(t,e){for(varnine)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Class extends value "+String(e)+" is not a constructor or null");functionn(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,newn)}),i=this&&this.__assign||function(){returni=Object.assign||function(t){for(vare,n=1,r=arguments.length;n<r;n++)for(varoine=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);returnt},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.NodeMixin=e.NodeMixinOptions=void0;vara=n(77);e.NodeMixinOptions={badCSS:!0,badSizes:!0},e.NodeMixin=function(t,n){varr;returnvoid0===n&&(n={}),n=(0,a.userOptions)((0,a.defaultOptions)({},e.NodeMixinOptions),n),r=function(t){functione(){for(vare=[],n=0;n<arguments.length;n++)e[n]=arguments[n];varr=t.call(this,e[0])||this,o=r.constructor;returnr.options=(0,a.userOptions)((0,a.defaultOptions)({},o.OPTIONS),e[1]),r}returno(e,t),e.prototype.fontSize=function(e){returnn.badCSS?this.options.fontSize:t.prototype.fontSize.call(this,e)},e.prototype.fontFamily=function(e){returnn.badCSS?this.options.fontFamily:t.prototype.fontFamily.call(this,e)},e.prototype.nodeSize=function(r,o,i){if(void0===o&&(o=1),void0===i&&(i=null),!n.badSizes)returnt.prototype.nodeSize.call(this,r,o,i);vara=this.textContent(r),l=Array.from(a.replace(e.cjkPattern,"")).length;return[(Array.from(a).length-l)*this.options.cjkCharWidth+l*this.options.unknownCharWidth,this.options.unknownCharHeight]},e.prototype.nodeBBox=function(e){returnn.badSizes?{left:0,right:0,top:0,bottom:0}:t.prototype.nodeBBox.call(this,e)},e}(t),r.OPTIONS=i(i({},n.badCSS?{fontSize:16,fontFamily:"Times"}:{}),n.badSizes?{cjkCharWidth:1,unknownCharWidth:.6,unknownCharHeight:.8}:{}),r.cjkPattern=newRegExp(["[","\u1100-\u115f","\u2329\u232a","\u2e80-\u303e","\u3040-\u3247","\u3250-\u4dbf","\u4e00-\ua4c6","\ua960-\ua97c","\uac00-\ud7a3","\uf900-\ufaff","\ufe10-\ufe19","\ufe30-\ufe6b","\uff01-\uff60\uffe0-\uffe6","\ud82c\udc00-\ud82c\udc01","\ud83c\ude00-\ud83c\ude51","\ud840\udc00-\ud8bf\udffd","]"].join(""),"gu"),r}},877:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.LiteDocument=void0;varr=n(946),o=function(){functiont(){this.root=newr.LiteElement("html",{},[this.head=newr.LiteElement("head"),this.body=newr.LiteElement("body")]),this.type=""}returnObject.defineProperty(t.prototype,"kind",{get:function(){return"#document"},enumerable:!1,configurable:!0}),t}();e.LiteDocument=o},946:function(t,e){varn=this&&this.__assign||function(){returnn=Object.assign||function(t){for(vare,n=1,r=arguments.length;n<r;n++)for(varoine=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);returnt},n.apply(this,arguments)},r=this&&this.__read||function(t,e){varn="function"==typeofSymbol&&t[Symbol.iterator];if(!n)returnt;varr,o,i=n.call(t),a=[];try{for(;(void0===e||e-->0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throwo.error}}returna},o=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(varr,o=0,i=e.length;o<i;o++)!r&&oine||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);returnt.concat(r||Array.prototype.slice.call(e))},i=this&&this.__values||function(t){vare="function"==typeofSymbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)returnn.call(t);if(t&&"number"==typeoft.length)return{next:function(){returnt&&r>=t.length&&(t=void0),{value:t&&t[r++],done:!t}}};thrownewTypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteElement=void0;vara=function(t,e,a){varl,u;void0===e&&(e={}),void0===a&&(a=[]),this.kind=t,this.attributes=n({},e),this.children=