(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[80],{18821:function(e,t,n){"use strict";n.d(t,{mf:function(){return r}});var r=function(e){return"function"==typeof e}},8788:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=l(e),o=a[0],s=a[1],u=new i((o+s)*3/4-s),h=0,c=s>0?o-4:o;for(n=0;n<c;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[h++]=t>>16&255,u[h++]=t>>8&255,u[h++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[h++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[h++]=t>>8&255,u[h++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=0,s=r-i;o<s;o+=16383)a.push(function(e,t,r){for(var i,a=[],o=t;o<r;o+=3)a.push(n[(i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)n[o]=a[o],r[a.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";var r=n(675),i=n(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return h(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|d(e,t),r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return c(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(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),s.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|p(e.length),r=o(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?o(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return u(e),o(e<0?0:0|p(e))}function c(e){for(var t=e.length<0?0:0|p(e.length),n=o(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return A(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return N(e).length;default:if(i)return r?-1:A(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,a,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=E[e[a]];return i}(this,t,n);case"utf8":case"utf-8":return b(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=t,a=n,0===i&&a===this.length?r.fromByteArray(this):r.fromByteArray(this.slice(i,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}(this,t,n);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function f(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){var a;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(a=n=+n)!=a&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var h=-1;for(a=n;a<s;a++)if(u(e,a)===u(t,-1===h?0:a-h)){if(-1===h&&(h=a),a-h+1===l)return h*o}else -1!==h&&(a-=a-h),h=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var c=!0,p=0;p<l;p++)if(u(e,a+p)!==u(t,p)){c=!1;break}if(c)return a}return -1}function b(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,l,u=e[i],h=null,c=u>239?4:u>223?3:u>191?2:1;if(i+c<=n)switch(c){case 1:u<128&&(h=u);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&u)<<6|63&a)>127&&(h=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(h=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(h=l)}null===h?(h=65533,c=1):h>65535&&(h-=65536,r.push(h>>>10&1023|55296),h=56320|1023&h),r.push(h),i+=c}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function _(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function v(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function k(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function w(e,t,n,r,a){return t=+t,n>>>=0,a||k(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function S(e,t,n,r,a){return t=+t,n>>>=0,a||k(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return h(e)},s.allocUnsafeSlow=function(e){return h(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),L(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(L(a,Uint8Array)&&(a=s.from(a)),!s.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):m.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,l=Math.min(a,o),u=this.slice(r,i),h=e.slice(t,n),c=0;c<l;++c)if(u[c]!==h[c]){a=u[c],o=h[c];break}return a<o?-1:o<a?1:0},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,s,l,u,h,c,p,d,m,f,g=this.length-t;if((void 0===n||n>g)&&(n=g),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var y=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(s!=s)break;e[n+o]=s}return o}(this,e,t,n);case"utf8":case"utf-8":return l=t,u=n,T(A(e,this.length-l),this,l,u);case"ascii":return h=t,c=n,T(P(e),this,h,c);case"latin1":case"binary":return i=this,a=e,o=t,s=n,T(P(a),i,o,s);case"base64":return p=t,d=n,T(N(e),this,p,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m=t,f=n,T(function(e,t){for(var n,r,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(r);return i}(e,this.length-m),this,m,f);default:if(y)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),y=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||_(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||_(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||_(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||_(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||_(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||_(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||_(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||_(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||_(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||_(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||_(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;v(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=255&e;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;v(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);v(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);v(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return w(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return w(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return S(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return S(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var a=i-1;a>=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=s.isBuffer(e)?e:s.from(e,r),l=o.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%l]}return this};var C=/[^+/0-9A-Za-z-_]/g;function A(e,t){t=t||1/0;for(var n,r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319||o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function P(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function N(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function T(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var E=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,u=l>>1,h=-7,c=n?i-1:0,p=n?-1:1,d=e[t+c];for(c+=p,a=d&(1<<-h)-1,d>>=-h,h+=s;h>0;a=256*a+e[t+c],c+=p,h-=8);for(o=a&(1<<-h)-1,a>>=-h,h+=r;h>0;o=256*o+e[t+c],c+=p,h-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,r),a-=u}return(d?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,u=8*a-i-1,h=(1<<u)-1,c=h>>1,p=23===i?5960464477539062e-23:0,d=r?0:a-1,m=r?1:-1,f=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,o=h):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+c>=1?t+=p/l:t+=p*Math.pow(2,1-c),t*l>=2&&(o++,l/=2),o+c>=h?(s=0,o=h):o+c>=1?(s=(t*l-1)*Math.pow(2,i),o+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[n+d]=255&s,d+=m,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[n+d]=255&o,d+=m,o/=256,u-=8);e[n+d-m]|=128*f}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}},o=!0;try{t[e](a,a.exports,r),o=!1}finally{o&&delete n[e]}return a.exports}r.ab="//";var i=r(72);e.exports=i}()},13558:function(e,t,n){"use strict";let r,i,a,o,s;n.d(t,{FP:function(){return tE}});var l,u,h,c=n(98466);let p=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(9413).then(n.bind(n,69413))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(3938).then(n.bind(n,63938))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(4372).then(n.bind(n,94372))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(5679).then(n.bind(n,61754))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(6829).then(n.bind(n,56829))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(8124).then(n.bind(n,28124))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(5873).then(n.bind(n,5873))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(371).then(n.bind(n,90371))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(5447).then(n.bind(n,65447))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(1414).then(n.bind(n,61414))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(7205).then(n.bind(n,47205))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(6634).then(n.bind(n,16634))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(3002).then(n.bind(n,63002))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(6878).then(n.bind(n,46878))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(5722).then(n.bind(n,45621))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(4005).then(n.bind(n,54005))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(2738).then(n.bind(n,32738))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(1665).then(n.bind(n,91665))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(8726).then(n.bind(n,38726))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(8494).then(n.bind(n,88494))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(1953).then(n.bind(n,81953))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(776).then(n.bind(n,776))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(2971).then(n.bind(n,32971))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(9533).then(n.bind(n,79533))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(6362).then(n.bind(n,76362))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(3504).then(n.bind(n,33504))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(3512).then(n.bind(n,63512))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(2951).then(n.bind(n,2951))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(4323).then(n.bind(n,34323))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(9466).then(n.bind(n,19466))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(4293).then(n.bind(n,54293))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(428).then(n.bind(n,60428))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(5653).then(n.bind(n,25653))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(6946).then(n.bind(n,96946))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(8834).then(n.bind(n,58834))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(7416).then(n.bind(n,7416))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(9761).then(n.bind(n,29761))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(8315).then(n.bind(n,38315))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(5948).then(n.bind(n,95948))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(6299).then(n.bind(n,76299))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(1685).then(n.bind(n,91685))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(1027).then(n.bind(n,41027))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(2982).then(n.bind(n,92982))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(8108).then(n.bind(n,68108))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(1233).then(n.bind(n,71233))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(6003).then(n.bind(n,36003))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(8966).then(n.bind(n,88966))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(657).then(n.bind(n,70657))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(1549).then(n.bind(n,51549))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(6601).then(n.bind(n,86601))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(4162).then(n.bind(n,64162))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(866).then(n.bind(n,80866))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(6464).then(n.bind(n,96464))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(8269).then(n.bind(n,18269))}].map(e=>[e.id,e.import]));class d extends Error{constructor(e){super(e),this.name="ShikiError"}}var m=n(8788).Buffer;class f extends Error{constructor(e){super(e),this.name="ShikiError"}}function g(){return"undefined"!=typeof performance?performance.now():Date.now()}let y=(e,t)=>e+(t-e%t)%t;async function b(e){let t,n;let r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let a="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function o(e,t){return e?function(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&a)return a.decode(e.subarray(t,i));let o="";for(;t<i;){let n=e[t++];if(!(128&n)){o+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){o+=String.fromCharCode((31&n)<<6|r);continue}let i=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++])<65536)o+=String.fromCharCode(n);else{let e=n-65536;o+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return o}(r.HEAPU8,e,t):""}let s={emscripten_get_now:g,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let a=r.HEAPU8.length;if((e>>>=0)>2147483648)return!1;for(let r=1;r<=4;r*=2){let o=a*(1+.2/r);if(o=Math.min(o,e+100663296),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(2147483648,y(Math.max(e,o),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:s,wasi_snapshot_preview1:s});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=o}return await l(),r}let _=null;class v{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}utf16Length;utf8Length;utf16Value;utf8Value;utf16OffsetToUtf8;utf8OffsetToUtf16;constructor(e){let t=e.length,n=v._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);let a=r?new Uint32Array(n+1):null;r&&(a[n]=t);let o=new Uint8Array(n),s=0;for(let n=0;n<t;n++){let l=e.charCodeAt(n),u=l,h=!1;if(l>=55296&&l<=56319&&n+1<t){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(u=(l-55296<<10)+65536|t-56320,h=!0)}r&&(i[n]=s,h&&(i[n+1]=s),u<=127?a[s+0]=n:u<=2047?(a[s+0]=n,a[s+1]=n):u<=65535?(a[s+0]=n,a[s+1]=n,a[s+2]=n):(a[s+0]=n,a[s+1]=n,a[s+2]=n,a[s+3]=n)),u<=127?o[s++]=u:(u<=2047?o[s++]=192|(1984&u)>>>6:(u<=65535?o[s++]=224|(61440&u)>>>12:(o[s++]=240|(1835008&u)>>>18,o[s++]=128|(258048&u)>>>12),o[s++]=128|(4032&u)>>>6),o[s++]=128|(63&u)>>>0),h&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class k{static LAST_ID=0;static _sharedPtr=0;static _sharedPtrInUse=!1;id=++k.LAST_ID;_onigBinding;content;utf16Length;utf8Length;utf16OffsetToUtf8;utf8OffsetToUtf16;ptr;constructor(e){if(!_)throw new f("Must invoke loadWasm first.");this._onigBinding=_,this.content=e;let t=new v(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!k._sharedPtrInUse?(k._sharedPtr||(k._sharedPtr=_.omalloc(1e4)),k._sharedPtrInUse=!0,_.HEAPU8.set(t.utf8Value,k._sharedPtr),this.ptr=k._sharedPtr):this.ptr=t.createString(_)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===k._sharedPtr?k._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}}class w{_onigBinding;_ptr;constructor(e){if(!_)throw new f("Must invoke loadWasm first.");let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new v(e[r]);t[r]=i.createString(_),n[r]=i.utf8Length}let r=_.omalloc(4*e.length);_.HEAPU32.set(t,r/4);let i=_.omalloc(4*e.length);_.HEAPU32.set(n,i/4);let a=_.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)_.ofree(t[n]);_.ofree(i),_.ofree(r),0===a&&function(e){throw new f(e.UTF8ToString(e.getLastOnigError()))}(_),this._onigBinding=_,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new k(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===a)return null;let o=i.HEAPU32,s=a/4,l=o[s++],u=o[s++],h=[];for(let t=0;t<u;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);h[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:h}}}function S(e){return t=>WebAssembly.instantiate(e,t)}async function C(e){return e&&await (r||(r=async function(){_=await b(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,i,a,o;(void 0!==n.data&&(n=n.data),r=n,"undefined"!=typeof Response&&r instanceof Response)?"function"==typeof WebAssembly.instantiateStreaming?n=await (a=n,e=>WebAssembly.instantiateStreaming(a,e))(t):n=await (o=n,async e=>{let t=await o.arrayBuffer();return WebAssembly.instantiate(t,e)})(t):(i=n,"undefined"!=typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==m&&m.isBuffer?.(i)||"undefined"!=typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&i instanceof Uint32Array)?n=await S(n)(t):n instanceof WebAssembly.Module?n=await S(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await S(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())),{createScanner:e=>new w(e),createString:e=>new k(e)}}var A=n(57404);function P(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var N=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,T=class{static hasCaptures(e){return null!==e&&(N.lastIndex=0,N.test(e))}static replaceCaptures(e,t,n){return e.replace(N,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function L(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){var i,a;let n=(i=e[r])<(a=t[r])?-1:i>a?1:0;if(0!==n)return n}return 0}return n-r}function E(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function x(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var R=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},O=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new R(e=>this._root.match(e))}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let o=-1;if("string"==typeof a.settings.fontStyle){o=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8}}let s=null;"string"==typeof a.settings.foreground&&E(a.settings.foreground)&&(s=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&E(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),u=a[a.length-1],h=null;a.length>1&&(h=a.slice(0,a.length-1)).reverse(),n[r++]=new B(u,h,e,o,s,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let i=(n=e.scope)<(r=t.scope)?-1:n>r?1:0;return 0!==i||0!==(i=L(e.parentScopes,t.parentScopes))?i:e.index-t.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(i=t.background)}let a=new U(t),o=new M(n,a.getId(r),a.getId(i)),s=new $(new G(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new O(a,o,s)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var n,r;let a=t[i],o=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],o=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new M(n.fontStyle,n.foreground,n.background):null}},I=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},M=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},B=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},D=((l=D||{})[l.NotSet=-1]="NotSet",l[l.None=0]="None",l[l.Italic=1]="Italic",l[l.Bold=2]="Bold",l[l.Underline=4]="Underline",l[l.Strikethrough=8]="Strikethrough",l),U=class{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},j=Object.freeze([]),G=class e{constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||j,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}},$=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==i)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){let s,l,u;if(""===n){this._doInsertHere(t,r,i,a,o);return}let h=n.indexOf(".");-1===h?(s=n,l=""):(s=n.substring(0,h),l=n.substring(h+1)),this._children.hasOwnProperty(s)?u=this._children[s]:(u=new e(this._mainRule.clone(),G.cloneArr(this._rulesWithParentScopes)),this._children[s]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(null===t){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(0===L(o.parentScopes,t)){o.acceptOverwrite(e,n,r,i);return}}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new G(e,t,n,r,i))}},F=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t);console.log({languageId:n,tokenType:r,fontStyle:e.getFontStyle(t),foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static set(t,n,r,i,a,o,s){let l=e.getLanguageId(t),u=e.getTokenType(t),h=e.containsBalancedBrackets(t)?1:0,c=e.getFontStyle(t),p=e.getForeground(t),d=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(u=r),null!==i&&(h=i?1:0),-1!==a&&(c=a),0!==o&&(p=o),0!==s&&(d=s),(l<<0|u<<8|h<<10|c<<11|p<<15|d<<24)>>>0}};function W(e,t){let n,r;let i=[],a=(r=(n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(e),{next:()=>{if(!r)return null;let t=r[0];return r=n.exec(e),t}}),o=a.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=a.next()}let t=l();if(i.push({matcher:t,priority:e}),","!==o)break;o=a.next()}return i;function s(){if("-"===o){o=a.next();let e=s();return t=>!!e&&!e(t)}if("("===o){o=a.next();let e=function(){let e=[],t=l();for(;t&&(e.push(t),"|"===o||","===o);){do o=a.next();while("|"===o||","===o);t=l()}return t=>e.some(e=>e(t))}();return")"===o&&(o=a.next()),e}if(H(o)){let e=[];do e.push(o),o=a.next();while(H(o));return n=>t(e,n)}return null}function l(){let e=[],t=s();for(;t;)e.push(t),t=s();return t=>e.every(e=>e(t))}}function H(e){return!!e&&!!e.match(/[\w\.:]+/)}var q=((u=q||{})[u.None=0]="None",u[u.NotBeginString=1]="NotBeginString",u[u.NotEndString=2]="NotEndString",u[u.NotBeginPosition=4]="NotBeginPosition",u[u.DebugCall=8]="DebugCall",u);function z(e){"function"==typeof e.dispose&&e.dispose()}var V=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},K=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Y=class{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},X=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new V(this.initialScopeName)]}processQueue(){let e=this.Q;this.Q=[];let t=new Y;for(let n of e)!function(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof V?Q({baseGrammar:a,selfGrammar:i},r):J(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new V(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof V){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function J(e,t,n){t.repository&&t.repository[e]&&Z([t.repository[e]],t,n)}function Q(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Z(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Z(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Z(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?P({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Z(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=ea(i);switch(a.kind){case 0:Q({...t,selfGrammar:t.baseGrammar},n);break;case 1:Q(t,n);break;case 2:J(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let o=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){let r={baseGrammar:t.baseGrammar,selfGrammar:o,repository:e};4===a.kind?J(a.ruleName,r,n):Q(r,n)}else 4===a.kind?n.add(new K(a.scopeName,a.ruleName)):n.add(new V(a.scopeName))}}}var ee=class{constructor(){this.kind=0}},et=class{constructor(){this.kind=1}},en=class{constructor(e){this.ruleName=e,this.kind=2}},er=class{constructor(e){this.scopeName=e,this.kind=3}},ei=class{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}};function ea(e){if("$base"===e)return new ee;if("$self"===e)return new et;let t=e.indexOf("#");return -1===t?new er(e):0===t?new en(e.substring(1)):new ei(e.substring(0,t),e.substring(t+1))}var eo=/\\(\d+)/,es=/\\(\d+)/g;Symbol("RuleId");var el=class{constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=T.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=T.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?T.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?T.replaceCaptures(this._contentName,e,t):this._contentName}},eu=class extends el{constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}},eh=class extends el{constructor(e,t,n,r,i){super(e,t,n,null),this._match=new ef(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new eg,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ec=class extends el{constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new eg,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ep=class extends el{constructor(e,t,n,r,i,a,o,s,l,u){super(e,t,n,r),this._begin=new ef(i,this.id),this.beginCaptures=a,this._end=new ef(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new eg,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},ed=class extends el{constructor(e,t,n,r,i,a,o,s,l){super(e,t,n,r),this._begin=new ef(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new ef(o,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new eg,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new eg,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},em=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new eu(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new eh(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=P({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new ec(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new ed(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new ep(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=ea(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,u=n.getExternalGrammar(a,r);if(u){if(l){let t=u.repository[l];t&&(s=e.getCompiledRuleId(t,n,u.repository))}else s=e.getCompiledRuleId(u.repository.$self,n,u.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(-1!==s){let e=n.getRule(s),t=!1;if((e instanceof ec||e instanceof ep||e instanceof ed)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},ef=class e{constructor(e,t){if(e){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){let t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=eo.test(this.source)}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let n=t.map(t=>e.substring(t.start,t.end));return es.lastIndex=0,this.source.replace(es,(e,t)=>x(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r,i=[],a=[],o=[],s=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,o[e]=n,s[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="￿",a[e+1]="￿",o[e+1]="A",s[e+1]="A"):"G"===r?(i[e+1]="￿",a[e+1]="G",o[e+1]="￿",s[e+1]="G"):(i[e+1]=r,a[e+1]=r,o[e+1]=r,s[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:o.join(""),A1_G1:s.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}},eg=class{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new ey(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new ey(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},ey=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},eb=class{constructor(e,t){this.languageId=e,this.tokenType=t}},e_=class e{constructor(e,t){this._getBasicScopeAttributes=new R(e=>new eb(this._scopeToLanguage(e),this._toStandardTokenType(e))),this._defaultAttributes=new eb(e,8),this._embeddedLanguagesMatcher=new ev(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}};e_._NULL_SCOPE_METADATA=new eb(0,0),e_.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;var ev=class{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>x(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==A&&A.env.VSCODE_TEXTMATE_DEBUG;var ek=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ew(e,t,n,r,i,a,o,s){let l=t.content.length,u=!1,h=-1;if(o){let o=function(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof ed&&s.push({rule:n,stack:t})}for(let p=s.pop();p;p=s.pop()){var l,u,h,c;let{ruleScanner:s,findOptions:d}=(l=p.rule,u=p.stack.endRule,h=n,c=r===o,{ruleScanner:l.compileWhileAG(e,u,h,c),findOptions:0}),m=s.findNextMatchSync(t,r,d);if(m){if(-2!==m.ruleId){i=p.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(a.produce(p.stack,m.captureIndices[0].start),eC(e,t,n,p.stack,a,p.rule.whileCaptures,m.captureIndices),a.produce(p.stack,m.captureIndices[0].end),o=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{i=p.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,h=o.anchorPosition}let c=Date.now();for(;!u;){if(0!==s&&Date.now()-c>s)return new ek(i,!0);!function(){let o=function(e,t,n,r,i,a){let o=function(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=eS(i.getRule(e),e,i.endRule,n,r===a),l=o.findNextMatchSync(t,r,s);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,a),s=e.getInjections();if(0===s.length)return o;let l=function(e,t,n,r,i,a,o){let s,l=Number.MAX_VALUE,u=null,h=0,c=a.contentNameScopesList.getScopeNames();for(let a=0,p=e.length;a<p;a++){let p=e[a];if(!p.matcher(c))continue;let{ruleScanner:d,findOptions:m}=eS(t.getRule(p.ruleId),t,null,r,i===o),f=d.findNextMatchSync(n,i,m);if(!f)continue;let g=f.captureIndices[0].start;if(!(g>=l)&&(l=g,u=f.captureIndices,s=f.ruleId,h=p.priority,l===i))break}return u?{priorityMatch:-1===h,captureIndices:u,matchedRuleId:s}:null}(s,e,t,n,r,i,a);if(!l)return o;if(!o)return l;let u=o.captureIndices[0].start,h=l.captureIndices[0].start;return h<u||l.priorityMatch&&h===u?l:o}(e,t,n,r,i,h);if(!o){a.produce(i,l),u=!0;return}let s=o.captureIndices,c=o.matchedRuleId,p=!!s&&s.length>0&&s[0].end>r;if(-1===c){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),eC(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let c=i;if(i=i.parent,h=c.getAnchorPos(),!p&&c.getEnterPos()===r){i=c,a.produce(i,l),u=!0;return}}else{let o=e.getRule(c);a.produce(i,s[0].start);let d=i,m=o.getName(t.content,s),f=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(c,r,h,s[0].end===l,null,f,f),o instanceof ep){eC(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),h=s[0].end;let r=o.getContentName(t.content,s),c=f.pushAttributed(r,e);if(i=i.withContentNameScopesList(c),o.endHasBackReferences&&(i=i.withEndRule(o.getEndWithResolvedBackReferences(t.content,s))),!p&&d.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(o instanceof ed){eC(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),h=s[0].end;let r=o.getContentName(t.content,s),c=f.pushAttributed(r,e);if(i=i.withContentNameScopesList(c),o.whileHasBackReferences&&(i=i.withEndRule(o.getWhileWithResolvedBackReferences(t.content,s))),!p&&d.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(eC(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!p){i=i.safePop(),a.produce(i,l),u=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}()}return new ek(i,!1)}function eS(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function eC(e,t,n,r,i,a,o){if(0===a.length)return;let s=t.content,l=Math.min(a.length,o.length),u=[],h=o[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let c=o[t];if(0===c.length)continue;if(c.start>h)break;for(;u.length>0&&u[u.length-1].endPos<=c.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,c.start):i.produce(r,c.start),l.retokenizeCapturedWithRuleId){let t=l.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),u=l.getContentName(s,o),h=a.pushAttributed(u,e),p=r.push(l.retokenizeCapturedWithRuleId,c.start,-1,!1,null,a,h),d=e.createOnigString(s.substring(0,c.end));ew(e,d,n&&0===c.start,c.start,p,i,!1,0),z(d);continue}let p=l.getName(s,o);if(null!==p){let t=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);u.push(new eA(t,c.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var eA=class{constructor(e,t){this.scopes=e,this.endPos=t}};function eP(e,t,n,r,i){let a=W(t,eN),o=em.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function eN(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}var eT=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new e_(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=eL(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i))for(let t of W(e,eN))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let r=n.injections;if(r)for(let t in r)eP(e,t,r[t],this,n);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&eP(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=eL(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=em.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==eR.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=F.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),o=this.getRule(this._rootId).getName(null,null);e=o?eE.createRootAndLookUpScopeName(o,a,this):eE.createRoot("unknown",a),t=new eR(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),o=a.content.length,s=new eI(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ew(this,a,i,0,t,s,!0,r);return z(a),{lineLength:o,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function eL(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=e(t[r]);return n}(t):"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var eE=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)r=new e(r,i=I.push(i,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new I(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new I(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),F.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},ex=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&eE.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=eE.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,eE.fromExtension(r,n.contentNameScopesList))}};ex.NULL=new ex(null,0,0,0,!1,null,null,null);var eR=ex,eO=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):W(e,eN).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>W(e,eN).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},eI=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=F.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=F.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},eM=class{constructor(e,t){this._onigLib=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new eT(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},eB=class{constructor(e){this._options=e,this._syncRegistry=new eM(O.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(O.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new eO(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new X(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},eD=eR.NULL,eU=n(717);function ej(e,t=!1){let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||""):n[e];i.push([a,r]),r+=n[e].length+(n[e+1]?.length||0)}return i}function eG(e){return!e||["plaintext","txt","text","plain"].includes(e)}function e$(e){return"ansi"===e||eG(e)}function eF(e){return"none"===e}function eW(e,t){var n;if(!t)return e;for(let r of(e.properties||(e.properties={}),(n=e.properties).class||(n.class=[]),"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}async function eH(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function eq(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?n[e]=i:e===r&&Object.assign(n,i);return n}function ez(e,t){return e&&t?.[e?.toLowerCase()]||e}function eV(e){let t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&D.Italic&&(t["font-style"]="italic"),e.fontStyle&D.Bold&&(t["font-weight"]="bold"),e.fontStyle&D.Underline&&(t["text-decoration"]="underline")),t}class eK extends Error{constructor(e){super(e),this.name="ShikiError"}}var eY=Object.defineProperty,eX=(e,t,n)=>t in e?eY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eJ=(e,t,n)=>(eX(e,"symbol"!=typeof t?t+"":t,n),n);let eQ=new WeakMap;function eZ(e,t){eQ.set(e,t)}function e0(e){return eQ.get(e)}class e1{constructor(...e){if(eJ(this,"_stacks",{}),eJ(this,"lang"),2===e.length){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new e1(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,eD])),e)}getInternalStack(e=this.theme){return this._stacks[e]}get scopes(){return e2(this._stacks[this.theme])}getScopes(e=this.theme){return e2(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function e2(e){let t=[],n=new Set;return!function e(r){if(n.has(r))return;n.add(r);let i=r?.nameScopesList?.scopeName;i&&t.push(i),r.parent&&e(r.parent)}(e),t}let e6=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new eK(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}{let t=r.lines[e.line];if(void 0===t)throw new eK(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);if(e.character<0||e.character>t.length)throw new eK(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,offset:r.posToIndex(e.line,e.character)}}},r=function(e){let t=ej(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+n}}}(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new eK(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<n.end.offset,o=t.start.offset<n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<t.end.offset;if(i||a||o||s){if(a&&a||o&&s)continue;throw new eK(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length)return function(e,t){let n=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?function(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}(e,t):e})):e}(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(r.length!==n.converter.lines.length)throw new eK(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let o=r[e],s="",l=-1,u=-1;if(0===t&&(l=0),0===n&&(u=0),n===Number.POSITIVE_INFINITY&&(u=o.children.length),-1===l||-1===u)for(let e=0;e<o.children.length;e++)s+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(o.children[e]),-1===l&&s.length===t&&(l=e+1),-1===u&&s.length===n&&(u=e+1);if(-1===l)throw new eK(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===u)throw new eK(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let h=o.children.slice(l,u);if(i.alwaysWrap||h.length!==o.children.length){if(i.alwaysWrap||1!==h.length||"element"!==h[0].type){let e={type:"element",tagName:"span",properties:{},children:h};a(e,i,"wrapper"),o.children.splice(l,h.length,e)}else a(h[0],i,"token")}else a(o,i,"line")}function a(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&eW(e,t.properties.class),e=i(e,n)||e}let o=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset)){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,Number.POSITIVE_INFINITY,e);for(let i=t.line+1;i<n.line;i++)o.unshift(()=>{var t;r[t=i]=a(r[t],e,"line")});i(n.line,0,n.character,e)}}o.forEach(e=>e())}}}()];function e5(e){return[...e.transformers||[],...e6]}var e3=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],e4={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function e8(e,t){let n,r=1,i=e[t+r++];if("2"===i){let i=[e[t+r++],e[t+r++],e[t+r]].map(e=>Number.parseInt(e));3!==i.length||i.some(e=>Number.isNaN(e))||(n={type:"rgb",rgb:i})}else if("5"===i){let i=Number.parseInt(e[t+r]);Number.isNaN(i)||(n={type:"table",index:Number(i)})}return[r,n]}var e7={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function e9(e,t,n={}){let{lang:r="text",theme:i=e.getLoadedThemes()[0]}=n;if(eG(r)||eF(i))return ej(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:a,colorMap:o}=e.setTheme(i);if("ansi"===r)return function(e,t,n){let r,i,a;let o=eq(e,n),s=ej(t),l=function(e=e7){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(r){switch(r.type){case"named":return e[r.name];case"rgb":return n(r.rgb);case"table":var i;return i=r.index,function(){if(t)return t;t=[];for(let n=0;n<e3.length;n++)t.push(e[e3[n]]);let r=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)t.push(n([r[e],r[i],r[a]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(n([i,i,i]));return t}()[i]}}}}(Object.fromEntries(e3.map(t=>[t,e.colors?.[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]]))),u=(r=null,i=null,a=new Set,{parse(e){let t=[],n=0;do{let o=function(e,t){let n=e.indexOf("\x1b[",t);if(-1!==n){let t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),s=o.sequence?e.substring(n,o.startPosition):e.substring(n);if(s.length>0&&t.push({value:s,foreground:r,background:i,decorations:new Set(a)}),o.sequence){let e=function(e){let t=[];for(let n=0;n<e.length;n++){let r=Number.parseInt(e[n]);if(!Number.isNaN(r)){if(0===r)t.push({type:"resetAll"});else if(r<=9)e4[r]&&t.push({type:"setDecoration",value:e4[r]});else if(r<=29){let e=e4[r-20];e&&t.push({type:"resetDecoration",value:e})}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:e3[r-30]}});else if(38===r){let[r,i]=e8(e,n);i&&t.push({type:"setForegroundColor",value:i}),n+=r}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:e3[r-40]}});else if(48===r){let[r,i]=e8(e,n);i&&t.push({type:"setBackgroundColor",value:i}),n+=r}else 49===r?t.push({type:"resetBackgroundColor"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:e3[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:e3[r-100+8]}})}}return t}(o.sequence);for(let t of e)"resetAll"===t.type?(r=null,i=null,a.clear()):"resetForegroundColor"===t.type?r=null:"resetBackgroundColor"===t.type?i=null:"resetDecoration"===t.type&&a.delete(t.value);for(let t of e)"setForegroundColor"===t.type?r=t.value:"setBackgroundColor"===t.type?i=t.value:"setDecoration"===t.type&&a.add(t.value)}n=o.position}while(n<e.length);return t}});return s.map(t=>u.parse(t[0]).map(n=>{let r,i;n.decorations.has("reverse")?(r=n.background?l.value(n.background):e.bg,i=n.foreground?l.value(n.foreground):e.fg):(r=n.foreground?l.value(n.foreground):e.fg,i=n.background?l.value(n.background):void 0),r=ez(r,o),i=ez(i,o),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){let e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(e=>`${e}${e}`).join("")}80`}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(r));let a=D.None;return n.decorations.has("bold")&&(a|=D.Bold),n.decorations.has("italic")&&(a|=D.Italic),n.decorations.has("underline")&&(a|=D.Underline),{content:n.value,offset:t[1],color:r,bgColor:i,fontStyle:a}}))}(a,t,n);let s=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==s.name)throw new d(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(a.name))throw new d(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return function(e,t,n,r,i){let a=te(e,t,n,r,i),o=new e1(te(e,t,n,r,i).stateStack,t.name,n.name);return eZ(a.tokens,o),a.tokens}(t,s,a,o,n)}function te(e,t,n,r,i){let a=eq(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,l=ej(e),u=i.grammarState?function(e,t){if(!(e instanceof e1))throw new eK("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,n.name)??eD:null!=i.grammarContextCode?te(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:eD,h=[],c=[];for(let e=0,p=l.length;e<p;e++){let p,d;let[m,f]=l[e];if(""===m){h=[],c.push([]);continue}if(o>0&&m.length>=o){h=[],c.push([{content:m,offset:f,color:"",fontStyle:0}]);continue}i.includeExplanation&&(p=t.tokenizeLine(m,u).tokens,d=0);let g=t.tokenizeLine2(m,u,s),y=g.tokens.length/2;for(let e=0;e<y;e++){let t=g.tokens[2*e],o=e+1<y?g.tokens[2*e+2]:m.length;if(t===o)continue;let s=g.tokens[2*e+1],l=ez(r[F.getForeground(s)],a),u=F.getFontStyle(s),c={content:m.substring(t,o),offset:f+t,color:l,fontStyle:u};if(i.includeExplanation){let e=[];if("scopeName"!==i.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}c.explanation=[];let r=0;for(;t+r<o;){let t=p[d],n=m.substring(t.startIndex,t.endIndex);r+=n.length,c.explanation.push({content:n,scopes:"scopeName"===i.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:function(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,n){if(!tt(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)tt(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(a);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),d+=1}}h.push(c)}c.push(h),h=[],u=g.ruleStack}return{tokens:c,stateStack:u}}function tt(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tn(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{let i=e9(e,t,{...n,theme:r.theme}),a=e0(i);return{tokens:i,state:a,theme:"string"==typeof r.theme?r.theme:r.theme.name}}),a=function(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...i.map(e=>e.tokens)),o=a[0].map((e,t)=>e.map((e,i)=>{let o={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(o.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:s,offset:l,...u}=e[t][i];o.variants[r[n].color]=u}),o})),s=i[0].state?new e1(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return s&&eZ(o,s),o}function tr(e,t,n){let r,i,a,o,s,l;if("themes"in n){let{defaultColor:u="light",cssVariablePrefix:h="--shiki-"}=n,c=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===u?-1:t.color===u?1:0);if(0===c.length)throw new d("`themes` option must not be empty");let p=tn(e,t,n);if(l=e0(p),u&&!c.find(e=>e.color===u))throw new d(`\`themes\` option must contain the defaultColor key \`${u}\``);let m=c.map(t=>e.getTheme(t.theme)),f=c.map(e=>e.color);a=p.map(e=>e.map(e=>(function(e,t,n,r){let i={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(t=>eV(e.variants[t])),o=new Set(a.flatMap(e=>Object.keys(e))),s={};return a.forEach((e,i)=>{for(let a of o){let o=e[a]||"inherit";if(0===i&&r)s[a]=o;else{let e="color"===a?"":"background-color"===a?"-bg":`-${a}`;s[n+t[i]+("color"===a?"":e)]=o}}}),i.htmlStyle=s,i})(e,f,h,u))),l&&eZ(a,l);let g=c.map(e=>eq(e.theme,n));i=c.map((e,t)=>(0===t&&u?"":`${h+e.color}:`)+(ez(m[t].fg,g[t])||"inherit")).join(";"),r=c.map((e,t)=>(0===t&&u?"":`${h+e.color}-bg:`)+(ez(m[t].bg,g[t])||"inherit")).join(";"),o=`shiki-themes ${m.map(e=>e.name).join(" ")}`,s=u?void 0:[i,r].join(";")}else if("theme"in n){let s=eq(n.theme,n);a=e9(e,t,n);let u=e.getTheme(n.theme);r=ez(u.bg,s),i=ez(u.fg,s),o=u.name,l=e0(a)}else throw new d("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:l}}function ti(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>ti(e,t,n),codeToTokens:(t,n)=>tr(e,t,n)}){let i=t;for(let e of e5(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:l,rootStyle:u,grammarState:h}=tr(e,i,n),{mergeWhitespaces:c=!0}=n;!0===c?a=a.map(e=>{let t=[],n="",r=0;return e.forEach((i,a)=>{let o=!(i.fontStyle&&i.fontStyle&D.Underline);o&&i.content.match(/^\s+$/)&&e[a+1]?(r||(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=0,n=""):t.push(i)}),t}):"never"===c&&(a=a.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a})));let p={...r,get source(){return i}};for(let e of e5(n))a=e.tokens?.call(p,a)||a;return function(e,t,n,r=e0(e)){let i=e5(t),a=[],o={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t,u={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...!1!==l&&null!=l?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([e])=>!e.startsWith("_")))},children:[]},h={type:"element",tagName:"code",properties:{},children:a},c=[],p={...n,structure:s,addClassToHast:eW,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return h},get lines(){return c}};if(e.forEach((e,t)=>{t&&("inline"===s?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===s&&a.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(let a of e){var l;let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]};a.htmlStyle;let u="string"==typeof(l=a.htmlStyle||eV(a))?l:Object.entries(l).map(([e,t])=>`${e}:${t}`).join(";");for(let o of(u&&(e.properties.style=u),i))e=o?.span?.call(p,e,t+1,r,n,a)||e;"inline"===s?o.children.push(e):"classic"===s&&n.children.push(e),r+=a.content.length}if("classic"===s){for(let e of i)n=e?.line?.call(p,n,t+1)||n;c.push(n),a.push(n)}}),"classic"===s){for(let e of i)h=e?.code?.call(p,h)||h;for(let e of(u.children.push(h),i))u=e?.pre?.call(p,u)||u;o.children.push(u)}let d=o;for(let e of i)d=e?.root?.call(p,d)||d;return r&&eZ(d,r),d}(a,{...n,fg:o,bg:s,themeName:l,rootStyle:u},p,h)}let ta={light:"#333333",dark:"#bbbbbb"},to={light:"#fffffe",dark:"#1e1e1e"},ts="__shiki_resolved";function tl(e){if(e?.[ts])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?ta.light:ta.dark),n||(n="light"===t.type?to.light:to.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,ts,{enumerable:!1,writable:!1,value:!0}),t}async function tu(e){return Array.from(new Set((await Promise.all(e.filter(e=>!e$(e)).map(async e=>await eH(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function th(e){return(await Promise.all(e.map(async e=>eF(e)?null:tl(await eH(e))))).filter(e=>!!e)}var tc=Object.defineProperty,tp=(e,t,n)=>t in e?tc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,td=(e,t,n)=>(tp(e,"symbol"!=typeof t?t+"":t,n),n);class tm extends eB{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,td(this,"_resolvedThemes",new Map),td(this,"_resolvedGrammars",new Map),td(this,"_langMap",new Map),td(this,"_langGraph",new Map),td(this,"_textmateThemeCache",new WeakMap),td(this,"_loadedThemesCache",null),td(this,"_loadedLanguagesCache",null),this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=tl(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=O.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){let t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new eK(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t&&t.embeddedLangs?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new eK(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(let t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}var tf=Object.defineProperty,tg=(e,t,n)=>t in e?tf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ty=(e,t,n)=>(tg(e,"symbol"!=typeof t?t+"":t,n),n);class tb{constructor(e,t){ty(this,"_langs",new Map),ty(this,"_scopeToLang",new Map),ty(this,"_injections",new Map),ty(this,"_onigLib"),this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}}let t_=0;async function tv(e={}){e.loadWasm;let[t,n,r]=await Promise.all([th(e.themes||[]),tu(e.langs||[]),e.engine||C(e.loadWasm||i)]);return function(e){let t;t_+=1,!1!==e.warnings&&t_>=10&&t_%10==0&&console.warn(`[Shiki] ${t_} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new eK("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(tl),a=new tm(new tb(e.engine,r),i,r,e.langAlias);function o(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();let t=a.getTheme(e);if(!t)throw new eK(`Theme \`${e}\` not found, you may need to load it first`);return t}function s(...e){u(),a.loadLanguages(e.flat(1))}function l(...e){for(let t of(u(),e.flat(1)))a.loadTheme(t)}function u(){if(n)throw new eK("Shiki instance has been disposed")}function h(){n||(n=!0,a.dispose(),t_-=1)}return{setTheme:function(e){u();let n=o(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:o,getLanguage:function(e){u();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new eK(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return u(),a.getLoadedThemes()},getLoadedLanguages:function(){return u(),a.getLoadedLanguages()},loadLanguage:async function(...e){return s(await tu(e))},loadLanguageSync:s,loadTheme:async function(...e){return u(),l(await th(e))},loadThemeSync:l,dispose:h,[Symbol.dispose]:h}}({...e,loadWasm:void 0,themes:t,langs:n,engine:r})}async function tk(e={}){let t=await tv(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return e0(e[1]);let[t,n,r={}]=e,{lang:i="text",theme:a=t.getLoadedThemes()[0]}=r;if(eG(i)||eF(a))throw new d("Plain language does not have grammar state");if("ansi"===i)throw new d("ANSI language does not have grammar state");let{theme:o,colorMap:s}=t.setTheme(a),l=t.getLanguage(i);return new e1(te(n,l,o,s,r).stateStack,l.name,o.name)})(t,...e),codeToTokensBase:(e,n)=>e9(t,e,n),codeToTokensWithThemes:(e,n)=>tn(t,e,n),codeToTokens:(e,n)=>tr(t,e,n),codeToHast:(e,n)=>ti(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>ti(e,t,n),codeToTokens:(t,n)=>tr(e,t,n)},i=(0,eU.v)(ti(e,t,n,r));for(let e of e5(n))i=e.postprocess?.call(r,i,n)||i;return i})(t,e,n),...t,getInternalContext:()=>t}}let tw=(a=(h={langs:c.j8,themes:p,engine:()=>C(n.e(4204).then(n.bind(n,49173)))}).langs,o=h.themes,s=h.engine,async function(e){function t(e){if("string"==typeof e){if(e$(e))return[];let t=a[e];if(!t)throw new d(`Language \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}function n(e){if(eF(e))return"none";if("string"==typeof e){let t=o[e];if(!t)throw new d(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let r=(e.themes??[]).map(e=>n(e)),i=(e.langs??[]).map(e=>t(e)),l=await tk({engine:s(),...e,themes:r,langs:i});return{...l,loadLanguage:(...e)=>l.loadLanguage(...e.map(t)),loadTheme:(...e)=>l.loadTheme(...e.map(n))}}),{codeToHtml:tS,codeToHast:tC,codeToTokens:tA,codeToTokensBase:tP,codeToTokensWithThemes:tN,getSingletonHighlighter:tT,getLastGrammarState:tL}=function(e){let t;let n=async function(n={}){if(!t)return t=e({...n,themes:n.themes||[],langs:n.langs||[]});{let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}};return{getSingletonHighlighter:e=>n(e),codeToHtml:async(e,t)=>(await n({langs:[t.lang],themes:"theme"in t?[t.theme]:Object.values(t.themes)})).codeToHtml(e,t),codeToHast:async(e,t)=>(await n({langs:[t.lang],themes:"theme"in t?[t.theme]:Object.values(t.themes)})).codeToHast(e,t),codeToTokens:async(e,t)=>(await n({langs:[t.lang],themes:"theme"in t?[t.theme]:Object.values(t.themes)})).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await n({langs:[t.lang],themes:[t.theme]})).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await n({langs:[t.lang],themes:Object.values(t.themes).filter(Boolean)})).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}(tw),tE=e=>tw(e)},98466:function(e,t,n){"use strict";n.d(t,{Rt:function(){return r},j8:function(){return o}});let r=[{id:"abap",name:"ABAP",import:()=>n.e(1046).then(n.bind(n,91046))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(5505).then(n.bind(n,35505))},{id:"ada",name:"Ada",import:()=>n.e(2183).then(n.bind(n,82183))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(2595)]).then(n.bind(n,2595))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(965),n.e(9886),n.e(3376),n.e(5646),n.e(5300),n.e(9978)]).then(n.bind(n,20016))},{id:"apache",name:"Apache Conf",import:()=>n.e(1927).then(n.bind(n,51927))},{id:"apex",name:"Apex",import:()=>n.e(3768).then(n.bind(n,73768))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(2247),n.e(9654)]).then(n.bind(n,79654))},{id:"applescript",name:"AppleScript",import:()=>n.e(1262).then(n.bind(n,31262))},{id:"ara",name:"Ara",import:()=>n.e(6912).then(n.bind(n,96912))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(6532).then(n.bind(n,86532))},{id:"asm",name:"Assembly",import:()=>n.e(4314).then(n.bind(n,54314))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(965),n.e(7739),n.e(3376),n.e(8438)]).then(n.bind(n,48438))},{id:"awk",name:"AWK",import:()=>n.e(8324).then(n.bind(n,18324))},{id:"ballerina",name:"Ballerina",import:()=>n.e(9110).then(n.bind(n,69110))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(4989).then(n.bind(n,54989))},{id:"beancount",name:"Beancount",import:()=>n.e(8344).then(n.bind(n,78344))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(5538).then(n.bind(n,55538))},{id:"bibtex",name:"BibTeX",import:()=>n.e(2662).then(n.bind(n,2662))},{id:"bicep",name:"Bicep",import:()=>n.e(3690).then(n.bind(n,73690))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(2247),n.e(350),n.e(9658)]).then(n.bind(n,79658))},{id:"c",name:"C",import:()=>n.e(3114).then(n.bind(n,73114))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(9498).then(n.bind(n,9498))},{id:"clarity",name:"Clarity",import:()=>n.e(1916).then(n.bind(n,1916))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(1778).then(n.bind(n,51778))},{id:"cmake",name:"CMake",import:()=>n.e(9249).then(n.bind(n,59249))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(2247),n.e(2331)]).then(n.bind(n,52331))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(6167).then(n.bind(n,16167))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(8599).then(n.bind(n,78599))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(965),n.e(466)]).then(n.bind(n,20466))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(3713).then(n.bind(n,53713))},{id:"coq",name:"Coq",import:()=>n.e(2670).then(n.bind(n,41764))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(4148),n.e(7261),n.e(350),n.e(3114),n.e(3473)]).then(n.bind(n,63860))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(350),n.e(3114),n.e(5831),n.e(9370)]).then(n.bind(n,29370))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(7972).then(n.bind(n,67972))},{id:"css",name:"CSS",import:()=>n.e(3376).then(n.bind(n,83376))},{id:"csv",name:"CSV",import:()=>n.e(7505).then(n.bind(n,77505))},{id:"cue",name:"CUE",import:()=>n.e(5391).then(n.bind(n,95391))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(9134).then(n.bind(n,9134))},{id:"d",name:"D",import:()=>n.e(8695).then(n.bind(n,58695))},{id:"dart",name:"Dart",import:()=>n.e(3852).then(n.bind(n,13852))},{id:"dax",name:"DAX",import:()=>n.e(3551).then(n.bind(n,83551))},{id:"desktop",name:"Desktop",import:()=>n.e(8201).then(n.bind(n,58201))},{id:"diff",name:"Diff",import:()=>n.e(3297).then(n.bind(n,33297))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(368).then(n.bind(n,368))},{id:"dotenv",name:"dotEnv",import:()=>n.e(450).then(n.bind(n,80450))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(2804).then(n.bind(n,22804))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(965),n.e(7739),n.e(3376),n.e(5646),n.e(4643)]).then(n.bind(n,84643))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(6802)]).then(n.bind(n,26802))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(3114),n.e(275)]).then(n.bind(n,10275))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(2450).then(n.bind(n,41698))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(2247),n.e(350),n.e(3114),n.e(5831),n.e(41),n.e(9506)]).then(n.bind(n,89506))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>n.e(6401).then(n.bind(n,86401))},{id:"fennel",name:"Fennel",import:()=>n.e(8216).then(n.bind(n,38216))},{id:"fish",name:"Fish",import:()=>n.e(789).then(n.bind(n,60789))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(6579).then(n.bind(n,66579))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(2665),n.e(7719)]).then(n.bind(n,87719))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(2665).then(n.bind(n,72665))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(6587),n.e(7812)]).then(n.bind(n,7812))},{id:"gdresource",name:"GDResource",import:()=>n.e(2656).then(n.bind(n,2656))},{id:"gdscript",name:"GDScript",import:()=>n.e(7959).then(n.bind(n,17959))},{id:"gdshader",name:"GDShader",import:()=>n.e(4482).then(n.bind(n,74482))},{id:"genie",name:"Genie",import:()=>n.e(3390).then(n.bind(n,43390))},{id:"gherkin",name:"Gherkin",import:()=>n.e(7589).then(n.bind(n,77589))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(5137).then(n.bind(n,75137))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(5831),n.e(2220)]).then(n.bind(n,42220))},{id:"gleam",name:"Gleam",import:()=>n.e(7182).then(n.bind(n,57182))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(965),n.e(7739),n.e(3376),n.e(5646),n.e(5621)]).then(n.bind(n,5621))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(965),n.e(7739),n.e(3376),n.e(5646),n.e(5320)]).then(n.bind(n,65320))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(3114),n.e(8873)]).then(n.bind(n,78873))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(9968).then(n.bind(n,39968))},{id:"go",name:"Go",import:()=>n.e(3349).then(n.bind(n,43349))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(965),n.e(7739),n.e(3446),n.e(7054),n.e(38)]).then(n.bind(n,50038))},{id:"groovy",name:"Groovy",import:()=>n.e(2639).then(n.bind(n,2639))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(350),n.e(2835)]).then(n.bind(n,92835))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(965),n.e(3376),n.e(884)]).then(n.bind(n,80884))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(1208)]).then(n.bind(n,41208))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(4362).then(n.bind(n,4362))},{id:"haxe",name:"Haxe",import:()=>n.e(2203).then(n.bind(n,2203))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(1467).then(n.bind(n,41467))},{id:"hjson",name:"Hjson",import:()=>n.e(4844).then(n.bind(n,54844))},{id:"hlsl",name:"HLSL",import:()=>n.e(1459).then(n.bind(n,11459))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646)]).then(n.bind(n,95646))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(4092)]).then(n.bind(n,44092))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(965),n.e(7739),n.e(3446),n.e(7054),n.e(2247),n.e(5831),n.e(9931)]).then(n.bind(n,69931))},{id:"hxml",name:"HXML",import:()=>n.e(3714).then(n.bind(n,53714))},{id:"hy",name:"Hy",import:()=>n.e(9357).then(n.bind(n,39357))},{id:"imba",name:"Imba",import:()=>Promise.all([n.e(7739),n.e(5603)]).then(n.bind(n,5603))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(301).then(n.bind(n,30301))},{id:"java",name:"Java",import:()=>n.e(2247).then(n.bind(n,22247))},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>n.e(965).then(n.bind(n,54132))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(9962)]).then(n.bind(n,9962))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(965),n.e(5598)]).then(n.bind(n,55598))},{id:"json",name:"JSON",import:()=>n.e(8833).then(n.bind(n,88833))},{id:"json5",name:"JSON5",import:()=>n.e(5071).then(n.bind(n,5071))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(2999).then(n.bind(n,77054))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(2809).then(n.bind(n,62809))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(2296).then(n.bind(n,92296))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(5246).then(n.bind(n,85246))},{id:"jsx",name:"JSX",import:()=>n.e(3446).then(n.bind(n,64874))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(965),n.e(4148),n.e(7261),n.e(350),n.e(3114),n.e(6643),n.e(7615),n.e(5663)]).then(n.bind(n,98008))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(7932).then(n.bind(n,27932))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(458).then(n.bind(n,70458))},{id:"latex",name:"LaTeX",import:()=>Promise.all([n.e(7615),n.e(5059)]).then(n.bind(n,85059))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(2672).then(n.bind(n,92672))},{id:"less",name:"Less",import:()=>n.e(6515).then(n.bind(n,76515))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(7242)]).then(n.bind(n,97242))},{id:"log",name:"Log file",import:()=>n.e(5740).then(n.bind(n,25740))},{id:"logo",name:"Logo",import:()=>n.e(1499).then(n.bind(n,81499))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(3114),n.e(9763)]).then(n.bind(n,49763))},{id:"luau",name:"Luau",import:()=>n.e(1721).then(n.bind(n,51721))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(9985).then(n.bind(n,49985))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(6587).then(n.bind(n,26587))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5300),n.e(6515),n.e(6041)]).then(n.bind(n,26041))},{id:"matlab",name:"MATLAB",import:()=>n.e(2532).then(n.bind(n,22532))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(6587),n.e(8731)]).then(n.bind(n,88731))},{id:"mdx",name:"MDX",import:()=>n.e(440).then(n.bind(n,40440))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(8400).then(n.bind(n,68400))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(1395).then(n.bind(n,91395))},{id:"mojo",name:"Mojo",import:()=>n.e(5374).then(n.bind(n,75374))},{id:"move",name:"Move",import:()=>n.e(6736).then(n.bind(n,96736))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(2424).then(n.bind(n,72424))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(1729).then(n.bind(n,91729))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(3114),n.e(6474)]).then(n.bind(n,66474))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(2247),n.e(3114),n.e(6587),n.e(8221)]).then(n.bind(n,58221))},{id:"nix",name:"Nix",import:()=>n.e(461).then(n.bind(n,50461))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(2724).then(n.bind(n,42724))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(5789).then(n.bind(n,35789))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(4917).then(n.bind(n,14648))},{id:"ocaml",name:"OCaml",import:()=>n.e(2822).then(n.bind(n,92822))},{id:"pascal",name:"Pascal",import:()=>n.e(756).then(n.bind(n,756))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(2247),n.e(350),n.e(5667)]).then(n.bind(n,15667))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(2247),n.e(350),n.e(2988),n.e(5692)]).then(n.bind(n,82988))},{id:"plsql",name:"PL/SQL",import:()=>n.e(4308).then(n.bind(n,24308))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(3951).then(n.bind(n,73951))},{id:"postcss",name:"PostCSS",import:()=>n.e(1990).then(n.bind(n,91990))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(1112).then(n.bind(n,91112))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(5192).then(n.bind(n,45192))},{id:"prisma",name:"Prisma",import:()=>n.e(2400).then(n.bind(n,32400))},{id:"prolog",name:"Prolog",import:()=>n.e(452).then(n.bind(n,30452))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(8789).then(n.bind(n,58789))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(1893)]).then(n.bind(n,11893))},{id:"puppet",name:"Puppet",import:()=>n.e(4627).then(n.bind(n,94627))},{id:"purescript",name:"PureScript",import:()=>n.e(3109).then(n.bind(n,93109))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(6643).then(n.bind(n,6643))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(965),n.e(8968)]).then(n.bind(n,98968))},{id:"qmldir",name:"QML Directory",import:()=>n.e(1764).then(n.bind(n,21764))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(8398).then(n.bind(n,78398))},{id:"r",name:"R",import:()=>n.e(7615).then(n.bind(n,87615))},{id:"racket",name:"Racket",import:()=>n.e(1754).then(n.bind(n,51754))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(4656).then(n.bind(n,74656))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(7972),n.e(3048)]).then(n.bind(n,33048))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(2528).then(n.bind(n,52528))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(2494).then(n.bind(n,2494))},{id:"rel",name:"Rel",import:()=>n.e(6543).then(n.bind(n,86543))},{id:"riscv",name:"RISC-V",import:()=>n.e(6107).then(n.bind(n,66107))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(965),n.e(4148),n.e(7261),n.e(3376),n.e(5646),n.e(2247),n.e(350),n.e(3114),n.e(5831),n.e(6643),n.e(41),n.e(9590)]).then(n.bind(n,53656))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(2247),n.e(350),n.e(3114),n.e(5831),n.e(41)]).then(n.bind(n,20041))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(5486).then(n.bind(n,95486))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(350),n.e(661)]).then(n.bind(n,90661))},{id:"sass",name:"Sass",import:()=>n.e(6072).then(n.bind(n,76072))},{id:"scala",name:"Scala",import:()=>n.e(5023).then(n.bind(n,75023))},{id:"scheme",name:"Scheme",import:()=>n.e(6821).then(n.bind(n,56821))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(3376),n.e(5300)]).then(n.bind(n,75300))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(7260).then(n.bind(n,7260))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(5831).then(n.bind(n,5831))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(5831),n.e(7465)]).then(n.bind(n,17465))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(9028).then(n.bind(n,79028))},{id:"solidity",name:"Solidity",import:()=>n.e(2277).then(n.bind(n,52277))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(112)]).then(n.bind(n,40112))},{id:"sparql",name:"SPARQL",import:()=>n.e(383).then(n.bind(n,50383))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(174).then(n.bind(n,90174))},{id:"sql",name:"SQL",import:()=>n.e(350).then(n.bind(n,350))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(6348).then(n.bind(n,6348))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(350),n.e(5454)]).then(n.bind(n,65454))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(7564).then(n.bind(n,47564))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(965),n.e(7739),n.e(3376),n.e(5581)]).then(n.bind(n,85581))},{id:"swift",name:"Swift",import:()=>n.e(1135).then(n.bind(n,11135))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(2825).then(n.bind(n,72825))},{id:"systemd",name:"Systemd Units",import:()=>n.e(4339).then(n.bind(n,64339))},{id:"tasl",name:"Tasl",import:()=>n.e(3034).then(n.bind(n,63034))},{id:"tcl",name:"Tcl",import:()=>n.e(9708).then(n.bind(n,59708))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(965),n.e(3376),n.e(3349),n.e(8688)]).then(n.bind(n,78688))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(5583).then(n.bind(n,15583))},{id:"tex",name:"TeX",import:()=>Promise.all([n.e(7615),n.e(7684)]).then(n.bind(n,97684))},{id:"toml",name:"TOML",import:()=>n.e(210).then(n.bind(n,60210))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(965),n.e(7739),n.e(3376),n.e(5646),n.e(2247),n.e(350),n.e(3114),n.e(1875)]).then(n.bind(n,11875))},{id:"tsv",name:"TSV",import:()=>n.e(6554).then(n.bind(n,56554))},{id:"tsx",name:"TSX",import:()=>n.e(7054).then(n.bind(n,7440))},{id:"turtle",name:"Turtle",import:()=>n.e(3426).then(n.bind(n,93426))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(965),n.e(3376),n.e(5646),n.e(2247),n.e(350),n.e(3114),n.e(5831),n.e(6643),n.e(41),n.e(5300),n.e(2988),n.e(3477)]).then(n.bind(n,53477))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>n.e(7739).then(n.bind(n,17360))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(2883).then(n.bind(n,12883))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(6741).then(n.bind(n,86741))},{id:"v",name:"V",import:()=>n.e(8790).then(n.bind(n,98790))},{id:"vala",name:"Vala",import:()=>n.e(9553).then(n.bind(n,9553))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(4835).then(n.bind(n,64835))},{id:"verilog",name:"Verilog",import:()=>n.e(6701).then(n.bind(n,56701))},{id:"vhdl",name:"VHDL",import:()=>n.e(87).then(n.bind(n,70087))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(2208).then(n.bind(n,32208))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(965),n.e(7739),n.e(3376),n.e(5646),n.e(7484)]).then(n.bind(n,17484))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(965),n.e(7739),n.e(3376),n.e(5646),n.e(2416)]).then(n.bind(n,42416))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(6422).then(n.bind(n,66422))},{id:"wasm",name:"WebAssembly",import:()=>n.e(9573).then(n.bind(n,69573))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e(7353).then(n.bind(n,77353))},{id:"wgsl",name:"WGSL",import:()=>n.e(473).then(n.bind(n,80473))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(8208).then(n.bind(n,18208))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(7753).then(n.bind(n,39224))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(2247),n.e(7092)]).then(n.bind(n,25692))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(2247),n.e(5909)]).then(n.bind(n,35909))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(9192).then(n.bind(n,39192))},{id:"zenscript",name:"ZenScript",import:()=>n.e(183).then(n.bind(n,80183))},{id:"zig",name:"Zig",import:()=>n.e(2454).then(n.bind(n,72454))}],i=Object.fromEntries(r.map(e=>[e.id,e.import])),a=Object.fromEntries(r.flatMap(e=>{var t;return(null===(t=e.aliases)||void 0===t?void 0:t.map(t=>[t,e.import]))||[]})),o={...i,...a}},717:function(e,t,n){"use strict";let r;n.d(t,{v:function(){return eA}});var i={};n.r(i),n.d(i,{boolean:function(){return c},booleanish:function(){return p},commaOrSpaceSeparated:function(){return y},commaSeparated:function(){return g},number:function(){return m},overloadedBoolean:function(){return d},spaceSeparated:function(){return f}});let a=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class o{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function s(e,t){let n={},r={},i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new o(n,r,t)}function l(e){return e.toLowerCase()}o.prototype.property={},o.prototype.normal={},o.prototype.space=null;class u{constructor(e,t){this.property=e,this.attribute=t}}u.prototype.space=null,u.prototype.boolean=!1,u.prototype.booleanish=!1,u.prototype.overloadedBoolean=!1,u.prototype.number=!1,u.prototype.commaSeparated=!1,u.prototype.spaceSeparated=!1,u.prototype.commaOrSpaceSeparated=!1,u.prototype.mustUseProperty=!1,u.prototype.defined=!1;let h=0,c=b(),p=b(),d=b(),m=b(),f=b(),g=b(),y=b();function b(){return 2**++h}let _=Object.keys(i);class v extends u{constructor(e,t,n,r){var a,o;let s=-1;if(super(e,t),r&&(this.space=r),"number"==typeof n)for(;++s<_.length;){let e=_[s];a=_[s],(o=(n&i[e])===i[e])&&(this[a]=o)}}}v.prototype.defined=!0;let k={}.hasOwnProperty;function w(e){let t;let n={},r={};for(t in e.properties)if(k.call(e.properties,t)){let i=e.properties[t],a=new v(t,e.transform(e.attributes||{},t),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(t)&&(a.mustUseProperty=!0),n[t]=a,r[l(t)]=t,r[l(a.attribute)]=t}return new o(n,r,e.space)}let S=w({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),C=w({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function A(e,t){return t in e?e[t]:t}function P(e,t){return A(e,t.toLowerCase())}let N=w({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:P,properties:{xmlns:null,xmlnsXLink:null}}),T=w({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:p,ariaAutoComplete:null,ariaBusy:p,ariaChecked:p,ariaColCount:m,ariaColIndex:m,ariaColSpan:m,ariaControls:f,ariaCurrent:null,ariaDescribedBy:f,ariaDetails:null,ariaDisabled:p,ariaDropEffect:f,ariaErrorMessage:null,ariaExpanded:p,ariaFlowTo:f,ariaGrabbed:p,ariaHasPopup:null,ariaHidden:p,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:f,ariaLevel:m,ariaLive:null,ariaModal:p,ariaMultiLine:p,ariaMultiSelectable:p,ariaOrientation:null,ariaOwns:f,ariaPlaceholder:null,ariaPosInSet:m,ariaPressed:p,ariaReadOnly:p,ariaRelevant:null,ariaRequired:p,ariaRoleDescription:f,ariaRowCount:m,ariaRowIndex:m,ariaRowSpan:m,ariaSelected:p,ariaSetSize:m,ariaSort:null,ariaValueMax:m,ariaValueMin:m,ariaValueNow:m,ariaValueText:null,role:null}}),L=w({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:P,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:g,acceptCharset:f,accessKey:f,action:null,allow:null,allowFullScreen:c,allowPaymentRequest:c,allowUserMedia:c,alt:null,as:null,async:c,autoCapitalize:null,autoComplete:f,autoFocus:c,autoPlay:c,blocking:f,capture:null,charSet:null,checked:c,cite:null,className:f,cols:m,colSpan:null,content:null,contentEditable:p,controls:c,controlsList:f,coords:m|g,crossOrigin:null,data:null,dateTime:null,decoding:null,default:c,defer:c,dir:null,dirName:null,disabled:c,download:d,draggable:p,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:c,formTarget:null,headers:f,height:m,hidden:c,high:m,href:null,hrefLang:null,htmlFor:f,httpEquiv:f,id:null,imageSizes:null,imageSrcSet:null,inert:c,inputMode:null,integrity:null,is:null,isMap:c,itemId:null,itemProp:f,itemRef:f,itemScope:c,itemType:f,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:c,low:m,manifest:null,max:null,maxLength:m,media:null,method:null,min:null,minLength:m,multiple:c,muted:c,name:null,nonce:null,noModule:c,noValidate:c,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:c,optimum:m,pattern:null,ping:f,placeholder:null,playsInline:c,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:c,referrerPolicy:null,rel:f,required:c,reversed:c,rows:m,rowSpan:m,sandbox:f,scope:null,scoped:c,seamless:c,selected:c,shadowRootClonable:c,shadowRootDelegatesFocus:c,shadowRootMode:null,shape:null,size:m,sizes:null,slot:null,span:m,spellCheck:p,src:null,srcDoc:null,srcLang:null,srcSet:null,start:m,step:null,style:null,tabIndex:m,target:null,title:null,translate:null,type:null,typeMustMatch:c,useMap:null,value:p,width:m,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:f,axis:null,background:null,bgColor:null,border:m,borderColor:null,bottomMargin:m,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:c,declare:c,event:null,face:null,frame:null,frameBorder:null,hSpace:m,leftMargin:m,link:null,longDesc:null,lowSrc:null,marginHeight:m,marginWidth:m,noResize:c,noHref:c,noShade:c,noWrap:c,object:null,profile:null,prompt:null,rev:null,rightMargin:m,rules:null,scheme:null,scrolling:p,standby:null,summary:null,text:null,topMargin:m,valueType:null,version:null,vAlign:null,vLink:null,vSpace:m,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:c,disableRemotePlayback:c,prefix:null,property:null,results:m,security:null,unselectable:null}}),E=w({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:A,properties:{about:y,accentHeight:m,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:m,amplitude:m,arabicForm:null,ascent:m,attributeName:null,attributeType:null,azimuth:m,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:m,by:null,calcMode:null,capHeight:m,className:f,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:m,diffuseConstant:m,direction:null,display:null,dur:null,divisor:m,dominantBaseline:null,download:c,dx:null,dy:null,edgeMode:null,editable:null,elevation:m,enableBackground:null,end:null,event:null,exponent:m,externalResourcesRequired:null,fill:null,fillOpacity:m,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:g,g2:g,glyphName:g,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:m,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:m,horizOriginX:m,horizOriginY:m,id:null,ideographic:m,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:m,k:m,k1:m,k2:m,k3:m,k4:m,kernelMatrix:y,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:m,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:m,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:m,overlineThickness:m,paintOrder:null,panose1:null,path:null,pathLength:m,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:f,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:m,pointsAtY:m,pointsAtZ:m,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:y,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:y,rev:y,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:y,requiredFeatures:y,requiredFonts:y,requiredFormats:y,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:m,specularExponent:m,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:m,strikethroughThickness:m,string:null,stroke:null,strokeDashArray:y,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:m,strokeOpacity:m,strokeWidth:null,style:null,surfaceScale:m,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:y,tabIndex:m,tableValues:null,target:null,targetX:m,targetY:m,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:y,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:m,underlineThickness:m,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:m,values:null,vAlphabetic:m,vMathematical:m,vectorEffect:null,vHanging:m,vIdeographic:m,version:null,vertAdvY:m,vertOriginX:m,vertOriginY:m,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:m,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),x=s([C,S,N,T,L],"html"),R=s([C,S,N,T,E],"svg"),O={}.hasOwnProperty,I=/["&'<>`]/g,M=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,B=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,D=/[|\\{}()[\]^$+*?.]/g,U=new WeakMap,j=/[\dA-Fa-f]/,G=/\d/,$=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],F={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},W=["cent","copy","divide","gt","lt","not","para","times"],H={}.hasOwnProperty,q={};for(r in F)H.call(F,r)&&(q[F[r]]=r);let z=/[^\dA-Za-z]/;function V(e,t,n){let r,i=function(e,t,n){let r="&#x"+e.toString(16).toUpperCase();return n&&t&&!j.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){let i=String.fromCharCode(e);if(H.call(q,i)){let e=q[i],a="&"+e;return n&&$.includes(e)&&!W.includes(e)&&(!r||t&&61!==t&&z.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){let r=function(e,t,n){let r="&#"+String(e);return n&&t&&!G.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<i.length&&(i=r)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function K(e,t){return function(e,t){var n;let r;if(e=e.replace(t.subset?(n=t.subset,(r=U.get(n))||(r=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(D,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(n),U.set(n,r)),r):I,i),t.subset||t.escapeOnly)return e;return e.replace(M,function(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}).replace(B,i);function i(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}(e,Object.assign({format:V},t))}let Y=/^>|^->|<!--|-->|--!>|<!-$/g,X=[">"],J=["<",">"];function Q(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let Z=/^data[-\w.:]+$/i,ee=/-[a-z]/g,et=/[A-Z]/g;function en(e){return"-"+e.toLowerCase()}function er(e){return e.charAt(1).toUpperCase()}let ei=/[ \t\n\f\r]/g;function ea(e){return"object"==typeof e?"text"===e.type&&eo(e.value):eo(e)}function eo(e){return""===e.replace(ei,"")}let es=eh(1),el=eh(-1),eu=[];function eh(e){return function(t,n,r){let i=t?t.children:eu,a=(n||0)+e,o=i[a];if(!r)for(;o&&ea(o);)a+=e,o=i[a];return o}}let ec={}.hasOwnProperty;function ep(e){return function(t,n,r){return ec.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let ed=ep({body:function(e,t,n){let r=es(n,t);return!r||"comment"!==r.type},caption:em,colgroup:em,dd:function(e,t,n){let r=es(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=es(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:em,html:function(e,t,n){let r=es(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=es(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=es(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=es(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=es(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:ef,rt:ef,tbody:function(e,t,n){let r=es(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:eg,tfoot:function(e,t,n){return!es(n,t)},th:eg,thead:function(e,t,n){let r=es(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=es(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function em(e,t,n){let r=es(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&ea(r.value.charAt(0)))}function ef(e,t,n){let r=es(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function eg(e,t,n){let r=es(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let ey=ep({body:function(e){let t=es(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&ea(t.value.charAt(0)))&&!("element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName))},colgroup:function(e,t,n){let r=el(n,t),i=es(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&ed(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=es(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=el(n,t),i=es(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&ed(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),eb={name:[["	\n\f\r &/=>".split(""),"	\n\f\r \"&'/=>`".split("")],["\0	\n\f\r \"&'/<=>".split(""),"\0	\n\f\r \"&'/<=>`".split("")]],unquoted:[["	\n\f\r &>".split(""),"\0	\n\f\r \"&'<=>`".split("")],["\0	\n\f\r \"&'<=>`".split(""),"\0	\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},e_=["<","&"];function ev(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:K(e.value,Object.assign({},r.settings.characterReferences,{subset:e_}))}let ek=function(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&O.call(t,e)){let n=String(t[e]);i=O.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+K(e.value,Object.assign({},r.settings.characterReferences,{subset:X}))+">":"<!--"+e.value.replace(Y,function(e){return K(e,Object.assign({},r.settings.characterReferences,{subset:J}))})+"-->"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let i;let a=r.schema,o="svg"!==a.space&&r.settings.omitOptionalTags,s="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),h=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=R);let c=function(e,t){let n;let r=[],i=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let i=function(e,t,n){let r;let i=function(e,t){let n=l(t),r=t,i=u;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Z.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(ee,er);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!ee.test(e)){let n=e.replace(et,en);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=v}return new i(r,t)}(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=e.settings.allowDangerousCharacters?0:1,s=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean&&"string"!=typeof n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let h=K(i.attribute,Object.assign({},e.settings.characterReferences,{subset:eb.name[a][o]}));return!0===n?h:(n=Array.isArray(n)?(i.commaSeparated?function(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}:function(e){return e.join(" ").trim()})(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?h:(e.settings.preferUnquoted&&(r=K(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:eb.unquoted[a][o]}))),r!==n&&(e.settings.quoteSmart&&Q(n,s)>Q(n,e.alternative)&&(s=e.alternative),r=s+K(n,Object.assign({},e.settings.characterReferences,{subset:("'"===s?eb.single:eb.double)[a][o],attribute:!0}))+s),h+(r?"="+r:r))}(e,n,t[n]);i&&r.push(i)}}for(;++i<r.length;){let t=e.settings.tightAttributes?r[i].charAt(r[i].length-1):void 0;i!==r.length-1&&'"'!==t&&"'"!==t&&(r[i]+=" ")}return r.join("")}(r,e.properties),p=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,p&&(s=!1),!c&&o&&ey(e,t,n)||(h.push("<",e.tagName,c?" "+c:""),s&&("svg"===a.space||r.settings.closeSelfClosing)&&(i=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&h.push(" "),h.push("/")),h.push(">")),h.push(p),s||o&&ed(e,t,n)||h.push("</"+e.tagName+">"),h.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:ev(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:ev}}),ew={},eS={},eC=[];function eA(e,t){let n=t||ew,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:eP,all:eN,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||a,characterReferences:n.characterReferences||eS,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?R:x,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function eP(e,t,n){return ek(e,t,n,this)}function eN(e){let t=[],n=e&&e.children||eC,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}}}]);