17 lines
355 KiB
JavaScript
17 lines
355 KiB
JavaScript
|
|
// 来自 https://github.com/Yuheng0101/X/blob/main/Utils/
|
|||
|
|
// prettier-ignore
|
|||
|
|
function createCheerio(){function e(t,r,n){function i(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var l=r[s]={exports:{}};t[s][0].call(l.exports,function(e){var r=t[s][1][e];return i(r||e)},l,l.exports,e,t,r,n)}return r[s].exports}let s={};for(var a="function"==typeof require&&require,o=0;o<n.length;o++)Object.assign(s,i(n[o]));return s}const t={1:[function(e,t,r){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function i(e){var t=n(e),r=t[0],i=t[1];return 3*(r+i)/4-i}function s(e,t,r){return 3*(t+r)/4-r}function a(e){var t,r,i=n(e),a=i[0],o=i[1],c=new T(s(e,a,o)),u=0,l=o>0?a-4:a;for(r=0;r<l;r+=4)t=h[e.charCodeAt(r)]<<18|h[e.charCodeAt(r+1)]<<12|h[e.charCodeAt(r+2)]<<6|h[e.charCodeAt(r+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===o&&(t=h[e.charCodeAt(r)]<<2|h[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===o&&(t=h[e.charCodeAt(r)]<<10|h[e.charCodeAt(r+1)]<<4|h[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c}function o(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function c(e,t,r){for(var n,i=[],s=t;s<r;s+=3)n=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(o(n));return i.join("")}function u(e){for(var t,r=e.length,n=r%3,i=[],s=16383,a=0,o=r-n;a<o;a+=s)i.push(c(e,a,a+s>o?o:a+s));return 1===n?(t=e[r-1],i.push(l[t>>2]+l[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(l[t>>10]+l[t>>4&63]+l[t<<2&63]+"=")),i.join("")}r.byteLength=i,r.toByteArray=a,r.fromByteArray=u;for(var l=[],h=[],T="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=0,p=d.length;E<p;++E)l[E]=d[E],h[d.charCodeAt(E)]=E;h["-".charCodeAt(0)]=62,h["_".charCodeAt(0)]=63},{}],2:[function(e,t,r){(function(t){(function(){"use strict";function t(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}function n(e){if(e>K)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=i.prototype,t}function i(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return u(e,t);if(ArrayBuffer.isView(e))return l(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(V(e,ArrayBuffer)||e&&V(e.buffer,ArrayBuffer))return h(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return i.from(n,t,r);var s=T(e);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return i.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function a(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function o(e,t,r){return a(e),e<=0?n(e):void 0!==t?"string"==typeof r?n(e).fill(t,r):n(e).fill(t):n(e)}function c(e){return a(e),n(e<0?0:0|d(e))}function u(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!i.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|p(e,t),s=n(r),a=s.write(e,t);return a!==r&&(s=s.slice(0,a)),s}function l(e){for(var t=e.length<0?0:0|d(e.length),r=n(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return
|
|||
|
|
;null==t?(r=Object.keys(e.attribs).filter(function(e){return e.startsWith(S)}),n=r.map(function(e){return(0,D.camelCase)(e.slice(S.length))})):(r=[S+(0,D.cssCase)(t)],n=[t]);for(var s=0;s<r.length;++s){var a=r[s],o=n[s];if(N.call(e.attribs,a)&&!N.call(e.data,o)){if(i=e.attribs[a],N.call(O,i))i=O[i];else if(i===String(Number(i)))i=Number(i);else if(R.test(i))try{i=JSON.parse(i)}catch(e){}e.data[o]=i}}return null==t?e.data:i}function h(e,t){var r,n=this[0];if(n&&(0,D.isTag)(n)){var i=n;return null!==(r=i.data)&&void 0!==r||(i.data={}),e?"object"==typeof e||void 0!==t?((0,D.domEach)(this,function(r){(0,D.isTag)(r)&&("object"==typeof e?u(r,e):u(r,e,t))}),this):N.call(i.data,e)?i.data[e]:l(i,e):l(i)}}function T(e){var t=0===arguments.length,r=this[0];if(!r||!(0,D.isTag)(r))return t?void 0:this;switch(r.name){case"textarea":return this.text(e);case"select":var n=this.find("option:selected");if(!t){if(null==this.attr("multiple")&&"object"==typeof e)return this;this.find("option").removeAttr("selected");for(var i="object"!=typeof e?[e]:e,s=0;s<i.length;s++)this.find('option[value="'.concat(i[s],'"]')).attr("selected","");return this}return this.attr("multiple")?n.toArray().map(function(e){return(0,I.text)(e.children)}):n.attr("value");case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function d(e,t){e.attribs&&N.call(e.attribs,t)&&delete e.attribs[t]}function E(e){return e?e.trim().split(C):[]}function p(e){for(var t=E(e),r=function(e){(0,D.domEach)(n,function(r){(0,D.isTag)(r)&&d(r,t[e])})},n=this,i=0;i<t.length;i++)r(i);return this}function f(e){return this.toArray().some(function(t){var r=(0,D.isTag)(t)&&t.attribs.class,n=-1;if(r&&e.length)for(;(n=r.indexOf(e,n+1))>-1;){var i=n+e.length;if((0===n||C.test(r[n-1]))&&(i===r.length||C.test(r[i])))return!0}return!1})}function _(e){if("function"==typeof e)return(0,D.domEach)(this,function(t,r){if((0,D.isTag)(t)){var n=t.attribs.class||"";_.call([t],e.call(t,r,n))}});if(!e||"string"!=typeof e)return this;for(var t=e.split(C),r=this.length,s=0;s<r;s++){var a=this[s];if((0,D.isTag)(a)){var o=n(a,"class",!1);if(o){for(var c=" ".concat(o," "),u=0;u<t.length;u++){var l="".concat(t[u]," ");c.includes(" ".concat(l))||(c+=l)}i(a,"class",c.trim())}else i(a,"class",t.join(" ").trim())}}return this}function A(e){if("function"==typeof e)return(0,D.domEach)(this,function(t,r){(0,D.isTag)(t)&&A.call([t],e.call(t,r,t.attribs.class||""))});var t=E(e),r=t.length,n=0===arguments.length;return(0,D.domEach)(this,function(e){if((0,D.isTag)(e))if(n)e.attribs.class="";else{for(var i=E(e.attribs.class),s=!1,a=0;a<r;a++){var o=i.indexOf(t[a]);o>=0&&(i.splice(o,1),s=!0,a--)}s&&(e.attribs.class=i.join(" "))}})}function m(e,t){if("function"==typeof e)return(0,D.domEach)(this,function(r,n){(0,D.isTag)(r)&&m.call([r],e.call(r,n,r.attribs.class||"",t),t)});if(!e||"string"!=typeof e)return this;for(var r=e.split(C),n=r.length,i="boolean"==typeof t?t?1:-1:0,s=this.length,a=0;a<s;a++){var o=this[a];if((0,D.isTag)(o)){for(var c=E(o.attribs.class),u=0;u<n;u++){var l=c.indexOf(r[u]);i>=0&&l<0?c.push(r[u]):i<=0&&l>=0&&c.splice(l,1)}o.attribs.class=c.join(" ")}}return this}Object.defineProperty(r,"__esModule",{value:!0}),r.toggleClass=r.removeClass=r.addClass=r.hasClass=r.removeAttr=r.val=r.data=r.prop=r.attr=void 0;var I=e("../static.js"),D=e("../utils.js"),g=e("domutils"),N=Object.prototype.hasOwnProperty,C=/\s+/,S="data-",O={null:null,true:!0,false:!1},b=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,R=/^{[^]*}$|^\[[^]*]$/;r.attr=s,r.prop=c,r.data=h,r.val=T,r.removeAttr=p,r.hasClass=f,r.addClass=_,r.removeClass=A,r.toggleClass=m},{"../static.js":20,"../utils.js":22,domutils:44}],10:[function(e,t,r){"use strict";function n(e,t){return null!=e&&null!=t||"object"==typeof e&&!Array.isArray(e)?(0,c.domEach)(this,function(r,n){(0,c.isTag)(r)&&i(r,e,t,n)}):0!==this.length?s(this[0],e):void 0}function i(e,t,r,n){if("string"==typeof t){var o=s(e),c="function"==typeof r?r.call(e,n,o[t]):r;""===c?delete o[t]:null!=c&&(o[t
|
|||
|
|
exists:function(e,t,r){var n=t.name,i=r.adapter;return function(t){return i.hasAttrib(t,n)&&e(t)}},start:function(e,t,r){var n=r.adapter,s=t.name,o=t.value,c=o.length;return 0===c?a.default.falseFunc:i(t,r)?(o=o.toLowerCase(),function(t){var r=n.getAttributeValue(t,s);return null!=r&&r.length>=c&&r.substr(0,c).toLowerCase()===o&&e(t)}):function(t){var r;return!!(null===(r=n.getAttributeValue(t,s))||void 0===r?void 0:r.startsWith(o))&&e(t)}},end:function(e,t,r){var n=r.adapter,s=t.name,o=t.value,c=-o.length;return 0===c?a.default.falseFunc:i(t,r)?(o=o.toLowerCase(),function(t){var r;return(null===(r=n.getAttributeValue(t,s))||void 0===r?void 0:r.substr(c).toLowerCase())===o&&e(t)}):function(t){var r;return!!(null===(r=n.getAttributeValue(t,s))||void 0===r?void 0:r.endsWith(o))&&e(t)}},any:function(e,t,r){var s=r.adapter,o=t.name,c=t.value;if(""===c)return a.default.falseFunc;if(i(t,r)){var u=new RegExp(n(c),"i");return function(t){var r=s.getAttributeValue(t,o);return null!=r&&r.length>=c.length&&u.test(r)&&e(t)}}return function(t){var r;return!!(null===(r=s.getAttributeValue(t,o))||void 0===r?void 0:r.includes(c))&&e(t)}},not:function(e,t,r){var n=r.adapter,s=t.name,a=t.value;return""===a?function(t){return!!n.getAttributeValue(t,s)&&e(t)}:i(t,r)?(a=a.toLowerCase(),function(t){var r=n.getAttributeValue(t,s);return(null==r||r.length!==a.length||r.toLowerCase()!==a)&&e(t)}):function(t){return n.getAttributeValue(t,s)!==a&&e(t)}}}},{boolbase:5}],24:[function(e,t,r){"use strict";function n(e,t,r){var n=i(e,t,r);return(0,A.ensureIsTag)(n,t.adapter)}function i(e,t,r){var n="string"==typeof e?(0,E.parse)(e):e;return o(n,t,r)}function s(e){return e.type===E.SelectorType.Pseudo&&("scope"===e.name||Array.isArray(e.data)&&e.data.some(function(e){return e.some(s)}))}function a(e,t,r){for(var n=t.adapter,i=!!(null==r?void 0:r.every(function(e){var t=n.isTag(e)&&n.getParent(e);return e===A.PLACEHOLDER_ELEMENT||t&&n.isTag(t)})),a=0,o=e;a<o.length;a++){var c=o[a];if(c.length>0&&(0,f.isTraversal)(c[0])&&c[0].type!==E.SelectorType.Descendant);else{if(!i||c.some(s))continue;c.unshift(m)}c.unshift(D)}}function o(e,t,r){var n;e.forEach(f.default),r=null!==(n=t.context)&&void 0!==n?n:r;var i=Array.isArray(r),s=r&&(Array.isArray(r)?r:[r]);if(!1!==t.relativeSelector)a(e,t,s);else if(e.some(function(e){return e.length>0&&(0,f.isTraversal)(e[0])}))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");var o=!1,l=e.map(function(e){if(e.length>=2){var r=e[0],n=e[1];r.type!==E.SelectorType.Pseudo||"scope"!==r.name||(i&&n.type===E.SelectorType.Descendant?e[1]=I:n.type!==E.SelectorType.Adjacent&&n.type!==E.SelectorType.Sibling||(o=!0))}return c(e,t,s)}).reduce(u,p.default.falseFunc);return l.shouldTestNextSiblings=o,l}function c(e,t,r){var n;return e.reduce(function(e,n){return e===p.default.falseFunc?p.default.falseFunc:(0,_.compileGeneralSelector)(e,n,t,r,o)},null!==(n=t.rootFunc)&&void 0!==n?n:p.default.trueFunc)}function u(e,t){return t===p.default.falseFunc||e===p.default.trueFunc?e:e===p.default.falseFunc||t===p.default.trueFunc?t:function(r){return e(r)||t(r)}}var l=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&("get"in i?t.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),h=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),T=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&l(t,e,r);return h(t,e),t},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.compileToken=r.compileUnsafe=r.compile=void 0;var E=e("css-what"),p=d(e("boolbase")),f=T(e("./sort.js")),_=e("./general.js"),A=e("./pseudo-selectors/subselects.js");r.compil
|
|||
|
|
;var f=p(e("domelementtype")),_=e("entities"),A=e("./foreignNames.js"),m=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]),I=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);r.render=s,r.default=s;var D=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),g=new Set(["svg","math"])},{"./foreignNames.js":37,domelementtype:39,entities:57}],39:[function(e,t,r){"use strict";function n(e){return e.type===i.Tag||e.type===i.Script||e.type===i.Style}var i;Object.defineProperty(r,"__esModule",{value:!0}),r.Doctype=r.CDATA=r.Tag=r.Style=r.Script=r.Comment=r.Directive=r.Text=r.Root=r.isTag=r.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(i=r.ElementType||(r.ElementType={})),r.isTag=n,r.Root=i.Root,r.Text=i.Text,r.Directive=i.Directive,r.Comment=i.Comment,r.Script=i.Script,r.Style=i.Style,r.Tag=i.Tag,r.CDATA=i.CDATA,r.Doctype=i.Doctype},{}],40:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&("get"in i?t.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.DomHandler=void 0;var s=e("domelementtype"),a=e("./node.js");i(e("./node.js"),r);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,r){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?s.ElementType.Tag:void 0,n=new a.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===s.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var r=new a.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===s.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new a.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();r.DomHandler=c,r.default=c},{"./node.js":41,domelementtype:39}],41:[function(e,t,r){"use strict";f
|
|||
|
|
r.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟li
|
|||
|
|
}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0
|
|||
|
|
this.cbs.onattribend(t===c.DoubleQuote?l.Double:l.Single,this.index),this.state=u.BeforeAttributeName):this.decodeEntities&&e===c.Amp&&(this.baseState=this.state,this.state=u.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,c.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,c.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(e){n(e)||e===c.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(l.Unquoted,this.index),this.state=u.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===c.Amp&&(this.baseState=this.state,this.state=u.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(e){e===c.OpeningSquareBracket?(this.state=u.CDATASequence,this.sequenceIndex=0):this.state=e===c.Dash?u.BeforeComment:u.InDeclaration},e.prototype.stateInDeclaration=function(e){(e===c.Gt||this.fastForwardTo(c.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=u.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(e){(e===c.Gt||this.fastForwardTo(c.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=u.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(e){e===c.Dash?(this.state=u.InCommentLike,this.currentSequence=T.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=u.InDeclaration},e.prototype.stateInSpecialComment=function(e){(e===c.Gt||this.fastForwardTo(c.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=u.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(e){var t=32|e;t===T.ScriptEnd[3]?this.startSpecial(T.ScriptEnd,4):t===T.StyleEnd[3]?this.startSpecial(T.StyleEnd,4):(this.state=u.InTagName,this.stateInTagName(e))},e.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===c.Number?this.state=u.BeforeNumericEntity:e===c.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=u.InNamedEntity,this.stateInNamedEntity(e))},e.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,h.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];var t=this.trieCurrent&h.BinTrieFlags.VALUE_LENGTH;if(t){var r=(t>>14)-1;if(this.allowLegacyEntity()||e===c.Semi){var n=this.index-this.entityExcess+1;n>this.sectionStart&&this.emitPartial(this.sectionStart,n),this.entityResult=this.trieIndex,this.trieIndex+=r,this.entityExcess=0,this.sectionStart=this.index+1,0===r&&this.emitNamedEntity()}else this.trieIndex+=r}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,0!==this.entityResult){var e=(this.entityTrie[this.entityResult]&h.BinTrieFlags.VALUE_LENGTH)>>14;switch(e){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~h.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},e.prototype.stateBeforeNumericEntity=function(e){(32|e)===c.LowerX?(this.entityExcess++,this.state=u.InHexEntity):(this.state=u.InNumericEntity,this.stateInNumericEntity(e))},e.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1,r=t+2+Number(this.state===u.InHexEntity);r!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,h.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(e){e===c.Semi?this.emitNumericEntity(!0):s(e)?(this.entityResult=10*this.entityResult+(e-c.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(e){e===c.Semi?this.emitNumericEntity(!0):s(e)
|
|||
|
|
e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"}(c=r.TAG_ID||(r.TAG_ID={}));const u=new Map([[o.A,c.A],[o.ADDRESS,c.ADDRESS],[o.ANNOTATION_XML,c.ANNOTATION_XML],[o.APPLET,c.APPLET],[o.AREA,c.AREA],[o.ARTICLE,c.ARTICLE],[o.ASIDE,c.ASIDE],[o.B,c.B],[o.BASE,c.BASE],[o.BASEFONT,c.BASEFONT],[o.BGSOUND,c.BGSOUND],[o.BIG,c.BIG],[o.BLOCKQUOTE,c.BLOCKQUOTE],[o.BODY,c.BODY],[o.BR,c.BR],[o.BUTTON,c.BUTTON],[o.CAPTION,c.CAPTION],[o.CENTER,c.CENTER],[o.CODE,c.CODE],[o.COL,c.COL],[o.COLGROUP,c.COLGROUP],[o.DD,c.DD],[o.DESC,c.DESC],[o.DETAILS,c.DETAILS],[o.DIALOG,c.DIALOG],[o.DIR,c.DIR],[o.DIV,c.DIV],[o.DL,c.DL],[o.DT,c.DT],[o.EM,c.EM],[o.EMBED,c.EMBED],[o.FIELDSET,c.FIELDSET],[o.FIGCAPTION,c.FIGCAPTION],[o.FIGURE,c.FIGURE],[o.FONT,c.FONT],[o.FOOTER,c.FOOTER],[o.FOREIGN_OBJECT,c.FOREIGN_OBJECT],[o.FORM,c.FORM],[o.FRAME,c.FRAME],[o.FRAMESET,c.FRAMESET],[o.H1,c.H1],[o.H2,c.H2],[o.H3,c.H3],[o.H4,c.H4],[o.H5,c.H5],[o.H6,c.H6],[o.HEAD,c.HEAD],[o.HEADER,c.HEADER],[o.HGROUP,c.HGROUP],[o.HR,c.HR],[o.HTML,c.HTML],[o.I,c.I],[o.IMG,c.IMG],[o.IMAGE,c.IMAGE],[o.INPUT,c.INPUT],[o.IFRAME,c.IFRAME],[o.KEYGEN,c.KEYGEN],[o.LABEL,c.LABEL],[o.LI,c.LI],[o.LINK,c.LINK],[o.LISTING,c.LISTING],[o.MAIN,c.MAIN],[o.MALIGNMARK,c.MALIGNMARK],[o.MARQUEE,c.MARQUEE],[o.MATH,c.MATH],[o.MENU,c.MENU],[o.META,c.META],[o.MGLYPH,c.MGLYPH],[o.MI,c.MI],[o.MO,c.MO],[o.MN,c.MN],[o.MS,c.MS],[o.MTEXT,c.MTEXT],[o.NAV,c.NAV],[o.NOBR,c.NOBR],[o.NOFRAMES,c.NOFRAMES],[o.NOEMBED,c.NOEMBED],[o.NOSCRIPT,c.NOSCRIPT],[o.OBJECT,c.OBJECT],[o.OL,c.OL],[o.OPTGROUP,c.OPTGROUP],[o.OPTION,c.OPTION],[o.P,c.P],[o.PARAM,c.PARAM],[o.PLAINTEXT,c.PLAINTEXT],[o.PRE,c.PRE],[o.RB,c.RB],[o.RP,c.RP],[o.RT,c.RT],[o.RTC,c.RTC],[o.RUBY,c.RUBY],[o.S,c.S],[o.SCRIPT,c.SCRIPT],[o.SECTION,c.SECTION],[o.SELECT,c.SELECT],[o.SOURCE,c.SOURCE],[o.SMALL,c.SMALL],[o.SPAN,c.SPAN],[o.STRIKE,c.STRIKE],[o.STRONG,c.STRONG],[o.STYLE,c.STYLE],[o.SUB,c.SUB],[o.SUMMARY,c.SUMMARY],[o.SUP,c.SUP],[o.TABLE,c.TABLE],[o.TBODY,c.TBODY],[o.TEMPLATE,c.TEMPLATE],[o.TEXTAREA,c.TEXTAREA],[o.TFOOT,c.TFOOT],[o.TD,c.TD],[o.TH,c.TH],[o.THEAD,c.THEAD],[o.TITLE,c.TITLE],[o.TR,c.TR],[o.TRACK,c.TRACK],[o.TT,c.TT],[o.U,c.U],[o.UL,c.UL],[o.SVG,c.SVG],[o.VAR,c.VAR],[o.WBR,c.WBR],[o.XMP,c.XMP]]);r.getTagID=n;const l=c;r.SPECIAL_ELEMENTS={[a.HTML]:new Set([l.ADDRESS,l.APPLET,l.AREA,l.ARTICLE,l.ASIDE,l.BASE,l.BASEFONT,l.BGSOUND,l.BLOCKQUOTE,l.BODY,l.BR,l.BUTTON,l.CAPTION,l.CENTER,l.COL,l.COLGROUP,l.DD,l.DETAILS,l.DIR,l.DIV,l.DL,l.DT,l.EMBED,l.FIELDSET,l.FIGCAPTION,l.FIGURE,l.FOOTER,l.FORM,l.FRAME,l.FRAMESET,l.H1,l.H2,l.H3,l.H4,l.H5,l.H6,l.HEAD,l.HEADER,l.HGROUP,l.HR,l.HTML,l.IFRAME,l.IMG,l.INPUT,l.LI,l.LINK,l.LISTING,l.MAIN,l.MARQUEE,l.MENU,l.META,l.NAV,l.NOEMBED,l.NOFRAMES,l.NOSCRIPT,l.OBJECT,l.OL,l.P,l.PARAM,l.PLAINTEXT,l.PRE,l.SCRIPT,l.SECTION,l.SELECT,l.SOURCE,l.STYLE,l.SUMMARY,l.TABLE,l.TBODY,l.TD,l.TEMPLATE,l.TEXTAREA,l.TFOOT,l.TH,l.THEAD,l.TITLE,l.TR,l.TRACK,l.UL,l.WBR,l.XMP]),[a.MATHML]:new Set([l.MI,l.MO,l.MN,l.MS,l.MTEXT,l.ANNOTATION_XML]),[a.SVG]:new Set([l.TITLE,l.FOREIGN_OBJECT,l.DESC]),[a.XLINK]:new Set,[a.XML]:new Set,[a.XMLNS]:new Set},r.isNumberedHeader=i;const h=new Set([o.
|
|||
|
|
;case vt.TAG_ID.STYLE:case vt.TAG_ID.SCRIPT:case vt.TAG_ID.TEMPLATE:g(e,t);break;case vt.TAG_ID.COL:Le(e,t);break;case vt.TAG_ID.FORM:we(e,t);break;case vt.TAG_ID.TABLE:Ge(e,t);break;case vt.TAG_ID.TBODY:case vt.TAG_ID.TFOOT:case vt.TAG_ID.THEAD:Me(e,t);break;case vt.TAG_ID.INPUT:Be(e,t);break;case vt.TAG_ID.CAPTION:Pe(e,t);break;case vt.TAG_ID.COLGROUP:ve(e,t);break;default:He(e,t)}}function Ue(e,t){switch(t.tagID){case vt.TAG_ID.TABLE:e.openElements.hasInTableScope(vt.TAG_ID.TABLE)&&(e.openElements.popUntilTagNamePopped(vt.TAG_ID.TABLE),e._resetInsertionMode());break;case vt.TAG_ID.TEMPLATE:C(e,t);break;case vt.TAG_ID.BODY:case vt.TAG_ID.CAPTION:case vt.TAG_ID.COL:case vt.TAG_ID.COLGROUP:case vt.TAG_ID.HTML:case vt.TAG_ID.TBODY:case vt.TAG_ID.TD:case vt.TAG_ID.TFOOT:case vt.TAG_ID.TH:case vt.TAG_ID.THEAD:case vt.TAG_ID.TR:break;default:He(e,t)}}function He(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,L(e,t),e.fosterParentingEnabled=r}function Fe(e,t){e.pendingCharacterTokens.push(t)}function je(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function qe(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)He(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Ye(e,t){const r=t.tagID;Ft.has(r)?e.openElements.hasInTableScope(vt.TAG_ID.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(vt.TAG_ID.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Bt.IN_TABLE,xe(e,t)):de(e,t)}function Ve(e,t){const r=t.tagID;switch(r){case vt.TAG_ID.CAPTION:case vt.TAG_ID.TABLE:e.openElements.hasInTableScope(vt.TAG_ID.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(vt.TAG_ID.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Bt.IN_TABLE,r===vt.TAG_ID.TABLE&&Ue(e,t));break;case vt.TAG_ID.BODY:case vt.TAG_ID.COL:case vt.TAG_ID.COLGROUP:case vt.TAG_ID.HTML:case vt.TAG_ID.TBODY:case vt.TAG_ID.TD:case vt.TAG_ID.TFOOT:case vt.TAG_ID.TH:case vt.TAG_ID.THEAD:case vt.TAG_ID.TR:break;default:Se(e,t)}}function Qe(e,t){switch(t.tagID){case vt.TAG_ID.HTML:de(e,t);break;case vt.TAG_ID.COL:e._appendElement(t,vt.NS.HTML),t.ackSelfClosing=!0;break;case vt.TAG_ID.TEMPLATE:g(e,t);break;default:We(e,t)}}function Xe(e,t){switch(t.tagID){case vt.TAG_ID.COLGROUP:e.openElements.currentTagId===vt.TAG_ID.COLGROUP&&(e.openElements.pop(),e.insertionMode=Bt.IN_TABLE);break;case vt.TAG_ID.TEMPLATE:C(e,t);break;case vt.TAG_ID.COL:break;default:We(e,t)}}function We(e,t){e.openElements.currentTagId===vt.TAG_ID.COLGROUP&&(e.openElements.pop(),e.insertionMode=Bt.IN_TABLE,e._processToken(t))}function Ke(e,t){switch(t.tagID){case vt.TAG_ID.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,vt.NS.HTML),e.insertionMode=Bt.IN_ROW;break;case vt.TAG_ID.TH:case vt.TAG_ID.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(vt.TAG_NAMES.TR,vt.TAG_ID.TR),e.insertionMode=Bt.IN_ROW,Ze(e,t);break;case vt.TAG_ID.CAPTION:case vt.TAG_ID.COL:case vt.TAG_ID.COLGROUP:case vt.TAG_ID.TBODY:case vt.TAG_ID.TFOOT:case vt.TAG_ID.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Bt.IN_TABLE,xe(e,t));break;default:xe(e,t)}}function ze(e,t){const r=t.tagID;switch(t.tagID){case vt.TAG_ID.TBODY:case vt.TAG_ID.TFOOT:case vt.TAG_ID.THEAD:e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Bt.IN_TABLE);break;case vt.TAG_ID.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Bt.IN_TABLE,Ue(e,t));break;case vt.TAG_ID.BODY:case vt.TAG_ID.CAPTION:case vt.TAG_ID.COL:case vt.TAG_ID.COLGROUP:case vt.TAG_ID.HTML:case vt.TAG_ID.TD:case vt.TAG_ID.TH:case vt.TAG_ID.TR:break;default:Ue(e,t
|
|||
|
|
;const n=e("../common/html.js"),i=new Set([n.TAG_ID.DD,n.TAG_ID.DT,n.TAG_ID.LI,n.TAG_ID.OPTGROUP,n.TAG_ID.OPTION,n.TAG_ID.P,n.TAG_ID.RB,n.TAG_ID.RP,n.TAG_ID.RT,n.TAG_ID.RTC]),s=new Set([...i,n.TAG_ID.CAPTION,n.TAG_ID.COLGROUP,n.TAG_ID.TBODY,n.TAG_ID.TD,n.TAG_ID.TFOOT,n.TAG_ID.TH,n.TAG_ID.THEAD,n.TAG_ID.TR]),a=new Map([[n.TAG_ID.APPLET,n.NS.HTML],[n.TAG_ID.CAPTION,n.NS.HTML],[n.TAG_ID.HTML,n.NS.HTML],[n.TAG_ID.MARQUEE,n.NS.HTML],[n.TAG_ID.OBJECT,n.NS.HTML],[n.TAG_ID.TABLE,n.NS.HTML],[n.TAG_ID.TD,n.NS.HTML],[n.TAG_ID.TEMPLATE,n.NS.HTML],[n.TAG_ID.TH,n.NS.HTML],[n.TAG_ID.ANNOTATION_XML,n.NS.MATHML],[n.TAG_ID.MI,n.NS.MATHML],[n.TAG_ID.MN,n.NS.MATHML],[n.TAG_ID.MO,n.NS.MATHML],[n.TAG_ID.MS,n.NS.MATHML],[n.TAG_ID.MTEXT,n.NS.MATHML],[n.TAG_ID.DESC,n.NS.SVG],[n.TAG_ID.FOREIGN_OBJECT,n.NS.SVG],[n.TAG_ID.TITLE,n.NS.SVG]]),o=[n.TAG_ID.H1,n.TAG_ID.H2,n.TAG_ID.H3,n.TAG_ID.H4,n.TAG_ID.H5,n.TAG_ID.H6],c=[n.TAG_ID.TR,n.TAG_ID.TEMPLATE,n.TAG_ID.HTML],u=[n.TAG_ID.TBODY,n.TAG_ID.TFOOT,n.TAG_ID.THEAD,n.TAG_ID.TEMPLATE,n.TAG_ID.HTML],l=[n.TAG_ID.TABLE,n.TAG_ID.TEMPLATE,n.TAG_ID.HTML],h=[n.TAG_ID.TD,n.TAG_ID.TH];class T{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,r){this.treeAdapter=t,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=n.TAG_ID.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===n.TAG_ID.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===n.NS.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&(this.current=t)}insertAfter(e,t,r){const n=this._indexOf(e)+1;this.items.splice(n,0,t),this.tagIDs.splice(n,0,r),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==n.NS.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const r=this._indexOfTagNames(e,t);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(o,n.NS.HTML)}popUntilTableCellPopped(){this.popUntilPopped(h,n.NS.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let r=this.stackTop;r>=0;r--)if(e.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===t)return r;return-1}clearBackTo(e,t){const r=this._indexOfTagNames(e,t);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(l,n.NS.HTML)}clearBackToTableBodyContext(){this.clearBackTo(u,n.NS.HTML)}clearBackToTableRowContext(){this.clearBackTo(c,n.NS.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===n.TAG_ID.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===n.TAG_ID.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.
|
|||
|
|
this.state=g.SCRIPT_DATA_END_TAG_OPEN;break;case f.CODE_POINTS.EXCLAMATION_MARK:this.state=g.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=g.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){a(e)?(this.state=g.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=g.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=g.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===f.CODE_POINTS.HYPHEN_MINUS?(this.state=g.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=g.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===f.CODE_POINTS.HYPHEN_MINUS?(this.state=g.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=g.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case f.CODE_POINTS.HYPHEN_MINUS:this.state=g.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case f.CODE_POINTS.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case f.CODE_POINTS.NULL:this._err(m.ERR.unexpectedNullCharacter),this._emitChars(f.REPLACEMENT_CHARACTER);break;case f.CODE_POINTS.EOF:this._err(m.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case f.CODE_POINTS.HYPHEN_MINUS:this.state=g.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case f.CODE_POINTS.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case f.CODE_POINTS.NULL:this._err(m.ERR.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_ESCAPED,this._emitChars(f.REPLACEMENT_CHARACTER);break;case f.CODE_POINTS.EOF:this._err(m.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=g.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case f.CODE_POINTS.HYPHEN_MINUS:this._emitChars("-");break;case f.CODE_POINTS.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case f.CODE_POINTS.GREATER_THAN_SIGN:this.state=g.SCRIPT_DATA,this._emitChars(">");break;case f.CODE_POINTS.NULL:this._err(m.ERR.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_ESCAPED,this._emitChars(f.REPLACEMENT_CHARACTER);break;case f.CODE_POINTS.EOF:this._err(m.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=g.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===f.CODE_POINTS.SOLIDUS?this.state=g.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:a(e)?(this._emitChars("<"),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){a(e)?(this.state=g.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(f.SEQUENCES.SCRIPT,!1)&&E(this.preprocessor.peek(f.SEQUENCES.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<f.SEQUENCES.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case f.CODE_POINTS.HYPHEN_MINUS:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case f.CODE_POINTS.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case f.CODE_POINTS.NULL:this._err(m.ERR.unexpectedNullCharacter),this._emitChars(f.REPLACEMENT_CHARACTER);break;case f.CODE_POINTS.EOF:this._err(m.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateS
|
|||
|
|
_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if((0,n.isSurrogatePair)(t))return this.pos++,this._addGap(),(0,n.getSurrogatePairCodePoint)(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,n.CODE_POINTS.EOF;return this._err(i.ERR.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++){const r=32|this.html.charCodeAt(this.pos+t);if(r!==e.charCodeAt(t))return!1}return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,n.CODE_POINTS.EOF;const r=this.html.charCodeAt(t);return r===n.CODE_POINTS.CARRIAGE_RETURN?n.CODE_POINTS.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,n.CODE_POINTS.EOF;let e=this.html.charCodeAt(this.pos);if(e===n.CODE_POINTS.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,n.CODE_POINTS.LINE_FEED;if(e===n.CODE_POINTS.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,(0,n.isSurrogate)(e)&&(e=this._processSurrogate(e));const t=null===this.handler.onParseError||e>31&&e<127||e===n.CODE_POINTS.LINE_FEED||e===n.CODE_POINTS.CARRIAGE_RETURN||e>159&&e<64976;return t||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){(0,n.isControlCodePoint)(e)?this._err(i.ERR.controlCharacterInInputStream):(0,n.isUndefinedCodePoint)(e)&&this._err(i.ERR.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}r.Preprocessor=a},{"../common/error-codes.js":66,"../common/unicode.js":70}],78:[function(e,t,r){"use strict";function n(e){return{nodeName:"#text",value:e,parentNode:null}}Object.defineProperty(r,"__esModule",{value:!0}),r.defaultTreeAdapter=void 0;const i=e("../common/html.js");r.defaultTreeAdapter={createDocument:()=>({nodeName:"#document",mode:i.DOCUMENT_MODE.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,r)=>({nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,i){const s=e.childNodes.find(e=>"#documentType"===e.nodeName);if(s)s.name=t,s.publicId=n,s.systemId=i;else{const s={nodeName:"#documentType",name:t,publicId:n,systemId:i,parentNode:null};r.defaultTreeAdapter.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(r.defaultTreeAdapter.isTextNode(n))return void(n.value+=t)}r.defaultTreeAdapter.appendChild(e,n(t))},insertTextBefore(e,t,i){const s=e.childNodes[e.childNodes.indexOf(i)-1];s&&r.defaultTreeAdapter.isTextNode(s)?s.value+=t:r.defaultTreeAdapter.insertBefore(e,n(t),i)},adoptAttributes(e,t){const r=new Set(e.attrs.map(e=>e.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},g
|
|||
|
|
|
|||
|
|
|