website/docs/plugins/bundle-viewSourcePage.js

2 lines
1.5 MiB
Raw Permalink Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*! For license information please see bundle-viewSourcePage.js.LICENSE.txt */
(()=>{var e={5682:(e,t,r)=>{const n=r(6209),i=r(943),s=r(1847),o=r(6679),a=r(5435),l=255===new Uint8Array(Uint16Array.of(255).buffer)[0];function u(e){switch(e){case"ascii":return n;case"base64":return i;case"hex":return s;case"utf8":case"utf-8":case void 0:return o;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a;default:throw new Error(`Unknown encoding: ${e}`)}}function c(e){return e instanceof Uint8Array}function h(e,t,r){return"string"==typeof e?function(e,t){const r=u(t),n=new Uint8Array(r.byteLength(e));return r.write(n,e,0,n.byteLength),n}(e,t):Array.isArray(e)?function(e){const t=new Uint8Array(e.length);return t.set(e),t}(e):ArrayBuffer.isView(e)?function(e){const t=new Uint8Array(e.byteLength);return t.set(e),t}(e):function(e,t,r){return new Uint8Array(e,t,r)}(e,t,r)}function p(e,t,r,n,i){if(0===e.byteLength)return-1;if("string"==typeof r?(n=r,r=0):void 0===r?r=i?0:e.length-1:r<0&&(r+=e.byteLength),r>=e.byteLength){if(i)return-1;r=e.byteLength-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t)t=h(t,n);else if("number"==typeof t)return t&=255,i?e.indexOf(t,r):e.lastIndexOf(t,r);if(0===t.byteLength)return-1;if(i){let n=-1;for(let i=r;i<e.byteLength;i++)if(e[i]===t[-1===n?0:i-n]){if(-1===n&&(n=i),i-n+1===t.byteLength)return n}else-1!==n&&(i-=i-n),n=-1}else{r+t.byteLength>e.byteLength&&(r=e.byteLength-t.byteLength);for(let n=r;n>=0;n--){let r=!0;for(let i=0;i<t.byteLength;i++)if(e[n+i]!==t[i]){r=!1;break}if(r)return n}}return-1}function d(e,t,r,n){return p(e,t,r,n,!0)}function f(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}e.exports=t={isBuffer:c,isEncoding:function(e){try{return u(e),!0}catch{return!1}},alloc:function(e,r,n){const i=new Uint8Array(e);return void 0!==r&&t.fill(i,r,0,i.byteLength,n),i},allocUnsafe:function(e){return new Uint8Array(e)},allocUnsafeSlow:function(e){return new Uint8Array(e)},byteLength:function(e,t){return u(t).byteLength(e)},compare:function(e,t){if(e===t)return 0;const r=Math.min(e.byteLength,t.byteLength);e=new DataView(e.buffer,e.byteOffset,e.byteLength),t=new DataView(t.buffer,t.byteOffset,t.byteLength);let n=0;for(let i=r-r%4;n<i&&e.getUint32(n,l)===t.getUint32(n,l);n+=4);for(;n<r;n++){const r=e.getUint8(n),i=t.getUint8(n);if(r<i)return-1;if(r>i)return 1}return e.byteLength>t.byteLength?1:e.byteLength<t.byteLength?-1:0},concat:function(e,t){void 0===t&&(t=e.reduce(((e,t)=>e+t.byteLength),0));const r=new Uint8Array(t);let n=0;for(const t of e){if(n+t.byteLength>r.byteLength){const e=t.subarray(0,r.byteLength-n);return r.set(e,n),r}r.set(t,n),n+=t.byteLength}return r},copy:function(e,t,r=0,n=0,i=e.byteLength){if(i>0&&i<n)return 0;if(i===n)return 0;if(0===e.byteLength||0===t.byteLength)return 0;if(r<0)throw new RangeError("targetStart is out of range");if(n<0||n>=e.byteLength)throw new RangeError("sourceStart is out of range");if(i<0)throw new RangeError("sourceEnd is out of range");r>=t.byteLength&&(r=t.byteLength),i>e.byteLength&&(i=e.byteLength),t.byteLength-r<i-n&&(i=t.length-r+n);const s=i-n;return e===t?t.copyWithin(r,n,i):t.set(e.subarray(n,i),r),s},equals:function(e,t){if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;const r=e.byteLength;e=new DataView(e.buffer,e.byteOffset,e.byteLength),t=new DataView(t.buffer,t.byteOffset,t.byteLength);let n=0;for(let i=r-r%4;n<i;n+=4)if(e.getUint32(n,l)!==t.getUint32(n,l))return!1;for(;n<r;n++)if(e.getUint8(n)!==t.getUint8(n))return!1;return!0},fill:function(e,t,r,n,i){if("string"==typeof t?"string"==typeof r?(i=r,r=0,n=e.byteLength):"string"==typeof n&&(i=n,n=e.byteLength):"number"==typeof t?t&=255:"boolean"==typeof t&&(t=+t),r<0||e.byteLength<r||e.byteLength<n)throw new RangeError("Out of range index");if(void 0===r&&(r=0),void 0===n&&(n=e.byteLength),n<=r)return e;if(t||(t=0),"number"==typeof t)for(let i=r;i<n;++i)e[i]=t;else{const s=(t=c(t)?t:h(t,i)).byteLength;for(let i=0;i<n-r;++i)e[i+r]=t[i%s]}return e},from:h,includes:function(e,t,r,n){return-1!==d(e,t,r,n)},indexOf:d,lastIndexOf:function(e,t,r,n){return p(e,t,r,n,!1)},swap16:function(e){const t=e.byteLength;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)f(e,r,r+1);return e},swap32:function(e){const t=e.byteLength;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)f(e,r,r+3),f(e,r+1,r+2);return e},swap64:function(e){const t=e.byteLength;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)f(e,r,r+7),f(e,r+1,r+6),f(e,r+2,r+5),f(e,r+3,r+4);return e},toBuffer:function(e){return e},toString:function(e,t,r=0,n=e.byteLength){const i=e.byteLength;return r>=i||n<=r?"":(r<0&&(r=0),n>i&&(n=i),(0!==r||n<i)&&(e=e.subarray(r,n)),u(t).toString(e))},write:function(e,t,r,n,i){return void 0===r?i="utf8":void 0===n&&"string"==typeof r?(i=r,r=void 0):void 0===i&&"string"==typeof n&&(i=n,n=void 0),u(i).write(e,t,r,n)},writeDoubleLE:function(e,t,r){return void 0===r&&(r=0),new DataView(e.buffer,e.byteOffset,e.byteLength).setFloat64(r,t,!0),r+8},writeFloatLE:function(e,t,r){return void 0===r&&(r=0),new DataView(e.buffer,e.byteOffset,e.byteLength).setFloat32(r,t,!0),r+4},writeUInt32LE:function(e,t,r){return void 0===r&&(r=0),new DataView(e.buffer,e.byteOffset,e.byteLength).setUint32(r,t,!0),r+4},writeInt32LE:function(e,t,r){return void 0===r&&(r=0),new DataView(e.buffer,e.byteOffset,e.byteLength).setInt32(r,t,!0),r+4},readDoubleLE:function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)},readFloatLE:function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)},readUInt32LE:function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getUint32(t,!0)},readInt32LE:function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getInt32(t,!0)}}},6209:e=>{function t(e){return e.length}e.exports={byteLength:t,toString:function(e){const t=e.byteLength;let r="";for(let n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r},write:function(e,r,n=0,i=t(r)){const s=Math.min(i,e.byteLength-n);for(let t=0;t<s;t++)e[n+t]=r.charCodeAt(t);return s}}},943:e=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(256);for(let e=0;e<64;e++)r[t.charCodeAt(e)]=e;function n(e){let t=e.length;return 61===e.charCodeAt(t-1)&&t--,t>1&&61===e.charCodeAt(t-1)&&t--,3*t>>>2}r[45]=62,r[95]=63,e.exports={byteLength:n,toString:function(e){const r=e.byteLength;let n="";for(let i=0;i<r;i+=3)n+=t[e[i]>>2]+t[(3&e[i])<<4|e[i+1]>>4]+t[(15&e[i+1])<<2|e[i+2]>>6]+t[63&e[i+2]];return r%3==2?n=n.substring(0,n.length-1)+"=":r%3==1&&(n=n.substring(0,n.length-2)+"=="),n},write:function(e,t,i=0,s=n(t)){const o=Math.min(s,e.byteLength-i);for(let n=0,i=0;i<o;n+=4){const s=r[t.charCodeAt(n)],o=r[t.charCodeAt(n+1)],a=r[t.charCodeAt(n+2)],l=r[t.charCodeAt(n+3)];e[i++]=s<<2|o>>4,e[i++]=(15&o)<<4|a>>2,e[i++]=(3&a)<<6|63&l}return o}}},1847:e=>{function t(e){return e.length>>>1}function r(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:void 0}e.exports={byteLength:t,toString:function(e){const t=e.byteLength;e=new DataView(e.buffer,e.byteOffset,t);let r="",n=0;for(let i=t-t%4;n<i;n+=4)r+=e.getUint32(n).toString(16).padStart(8,"0");for(;n<t;n++)r+=e.getUint8(n).toString(16).padStart(2,"0");return r},write:function(e,n,i=0,s=t(n)){const o=Math.min(s,e.byteLength-i);for(let t=0;t<o;t++){const s=r(n.charCodeAt(2*t)),o=r(n.charCodeAt(2*t+1));if(void 0===s||void 0===o)return e.subarray(0,t);e[i+t]=s<<4|o}return o}}},5435:e=>{function t(e){return 2*e.length}e.exports={byteLength:t,toString:function(e){const t=e.byteLength;let r="";for(let n=0;n<t-1;n+=2)r+=String.fromCharCode(e[n]+256*e[n+1]);return r},write:function(e,r,n=0,i=t(r)){const s=Math.min(i,e.byteLength-n);let o=s;for(let t=0;t<r.length&&!((o-=2)<0);++t){const i=r.charCodeAt(t),s=i>>8,o=i%256;e[n+2*t]=o,e[n+2*t+1]=s}return s}}},6679:e=>{function t(e){let t=0;for(let r=0,n=e.length;r<n;r++){const i=e.charCodeAt(r);if(i>=55296&&i<=56319&&r+1<n){const n=e.charCodeAt(r+1);if(n>=56320&&n<=57343){t+=4,r++;continue}}t+=i<=127?1:i<=2047?2:3}return t}let r,n;if("undefined"!=typeof TextDecoder){const e=new TextDecoder;r=function(t){return e.decode(t)}}else r=function(e){const t=e.byteLength;let r="",n=0;for(;n<t;){let i=e[n];if(i<=127){r+=String.fromCharCode(i),n++;continue}let s=0,o=0;if(i<=223?(s=1,o=31&i):i<=239?(s=2,o=15&i):i<=244&&(s=3,o=7&i),t-n-s>0){let t=0;for(;t<s;)i=e[n+t+1],o=o<<6|63&i,t+=1}else o=65533,s=t-n;r+=String.fromCodePoint(o),n+=s+1}return r};if("undefined"!=typeof TextEncoder){const e=new TextEncoder;n=function(r,n,i=0,s=t(n)){const o=Math.min(s,r.byteLength-i);return e.encodeInto(n,r.subarray(i,i+o)),o}}else n=function(e,r,n=0,i=t(r)){const s=Math.min(i,e.byteLength-n);e=e.subarray(n,n+s);let o=0,a=0;for(;o<r.length;){const t=r.codePointAt(o);if(t<=127){e[a++]=t,o++;continue}let n=0,i=0;for(t<=2047?(n=6,i=192):t<=65535?(n=12,i=224):t<=2097151&&(n=18,i=240),e[a++]=i|t>>n,n-=6;n>=0;)e[a++]=128|t>>n&63,n-=6;o+=t>=65536?2:1}return s};e.exports={byteLength:t,toString:r,write:n}},7526:(e,t)=>{"use strict";t.byteLength=function(e){var t=a(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,s=a(e),o=s[0],l=s[1],u=new i(function(e,t,r){return 3*(t+r)/4-r}(0,o,l)),c=0,h=l>0?o-4:o;for(r=0;r<h;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,s=[],o=16383,a=0,u=n-i;a<u;a+=o)s.push(l(e,a,a+o>u?u:a+o));return 1===i?(t=e[n-1],s.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],s.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),s.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)r[o]=s[o],n[s.charCodeAt(o)]=o;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,n){for(var i,s,o=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(r[(s=i)>>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8287:(e,t,r)=>{"use strict";const n=r(7526),i=r(251),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50;const o=2147483647;function a(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|m(e,t);let n=a(r);const i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(z(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(z(e,ArrayBuffer)||e&&z(e.buffer,ArrayBuffer))return d(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(z(e,SharedArrayBuffer)||e&&z(e.buffer,SharedArrayBuffer)))return d(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return l.from(n,t,r);const i=function(e){if(l.isBuffer(e)){const t=0|f(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||G(e.length)?a(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return c(e),a(e<0?0:0|f(e))}function p(e){const t=e.length<0?0:0|f(e.length),r=a(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,l.prototype),n}function f(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return U(e).length;default:if(i)return n?-1:V(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return E(this,t,r);case"ascii":return T(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return k(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function O(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),G(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:x(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):x(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function x(e,t,r,n,i){let s,o=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,a/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let n=-1;for(s=r;s<a;s++)if(u(e,s)===u(t,-1===n?0:s-n)){if(-1===n&&(n=s),s-n+1===l)return n*o}else-1!==n&&(s-=s-n),n=-1}else for(r+l>a&&(r=a-l),s=r;s>=0;s--){let r=!0;for(let n=0;n<l;n++)if(u(e,s+n)!==u(t,n)){r=!1;break}if(r)return s}return-1}function b(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const s=t.length;let o;for(n>s/2&&(n=s/2),o=0;o<n;++o){const n=parseInt(t.substr(2*o,2),16);if(G(n))return o;e[r+o]=n}return o}function v(e,t,r,n){return Y(V(t,e.length-r),e,r,n)}function w(e,t,r,n){return Y(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function D(e,t,r,n){return Y(U(t),e,r,n)}function S(e,t,r,n){return Y(function(e,t){let r,n,i;const s=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,s.push(i),s.push(n);return s}(t,e.length-r),e,r,n)}function k(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function E(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let s=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=r){let r,n,a,l;switch(o){case 1:t<128&&(s=t);break;case 2:r=e[i+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(s=l));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(s=l));break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,l>65535&&l<1114112&&(s=l))}}null===s?(s=65533,o=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=o}return function(e){const t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=C));return r}(n)}t.kMaxLength=o,l.TYPED_ARRAY_SUPPORT=function(){try{const 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}}(),l.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(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return function(e,t,r){return c(e),e<=0?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)}(e,t,r)},l.allocUnsafe=function(e){return h(e)},l.allocUnsafeSlow=function(e){return h(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),z(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,s=Math.min(r,n);i<s;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},l.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}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=l.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(z(t,Uint8Array))i+t.length>n.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?E(this,0,e):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},s&&(l.prototype[s]=l.prototype.inspect),l.prototype.compare=function(e,t,r,n,i){if(z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let s=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0);const a=Math.min(s,o),u=this.slice(n,i),c=e.slice(t,r);for(let e=0;e<a;++e)if(u[e]!==c[e]){s=u[e],o=c[e];break}return s<o?-1:o<s?1:0},l.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return O(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return O(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let s=!1;for(;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return v(this,e,t,r);case"ascii":case"latin1":case"binary":return w(this,e,t,r);case"base64":return D(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function T(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function P(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function A(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=H[e[n]];return i}function F(e,t,r){const n=e.slice(t,r);let i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}function _(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,r,n,i,s){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function B(e,t,r,n,i){Z(t,n,i,e,r,7);let s=Number(t&BigInt(4294967295));e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,r}function N(e,t,r,n,i){Z(t,n,i,e,r,7);let s=Number(t&BigInt(4294967295));e[r+7]=s,s>>=8,e[r+6]=s,s>>=8,e[r+5]=s,s>>=8,e[r+4]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o>>=8,e[r+2]=o,o>>=8,e[r+1]=o,o>>=8,e[r]=o,r+8}function $(e,t,r,n,i,s){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Q(e,t,r,n,s){return t=+t,r>>>=0,s||$(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,s){return t=+t,r>>>=0,s||$(e,0,r,8),i.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,l.prototype),n},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);let n=this[e],i=1,s=0;for(;++s<t&&(i*=256);)n+=this[e+s]*i;return n},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.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]},l.prototype.readUint32BE=l.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])},l.prototype.readBigUInt64LE=J((function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=J((function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);let n=this[e],i=1,s=0;for(;++s<t&&(i*=256);)n+=this[e+s]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);let n=t,i=1,s=this[e+--n];for(;n>0&&(i*=256);)s+=this[e+--n]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s},l.prototype.readInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||_(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||_(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.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},l.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]},l.prototype.readBigInt64LE=J((function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=J((function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||_(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||_(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||_(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||_(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||I(this,e,t,r,Math.pow(2,8*r)-1,0);let i=1,s=0;for(this[t]=255&e;++s<r&&(i*=256);)this[t+s]=e/i&255;return t+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||I(this,e,t,r,Math.pow(2,8*r)-1,0);let i=r-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(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},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(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},l.prototype.writeBigUInt64LE=J((function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=J((function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let i=0,s=1,o=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let i=r-1,s=1,o=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(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},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(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},l.prototype.writeBigInt64LE=J((function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=J((function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,r){return Q(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return Q(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const s=l.isBuffer(e)?e:l.from(e,n),o=s.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=s[i%o]}return this};const M={};function R(e,t,r){M[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function j(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Z(e,t,r,n,i,s){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let i;throw i=s>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(s+1)}${n}`:`>= -(2${n} ** ${8*(s+1)-1}${n}) and < 2 ** ${8*(s+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new M.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||W(t,e.length-(r+1))}(n,i,s)}function q(e,t){if("number"!=typeof e)throw new M.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,r){if(Math.floor(e)!==e)throw q(e,r),new M.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new M.ERR_BUFFER_OUT_OF_BOUNDS;throw new M.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}R("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),R("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),R("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=j(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=j(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n}),RangeError);const X=/[^+/0-9A-Za-z-_]/g;function V(e,t){let r;t=t||1/0;const n=e.length;let i=null;const s=[];for(let o=0;o<n;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function U(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(X,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function G(e){return e!=e}const H=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function J(e){return"undefined"==typeof BigInt?K:e}function K(){throw new Error("BigInt not supported")}},7007:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,s),n(r)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}m(e,t,s,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var i,s,o,u;if(a(r),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),s=e._events),o=s[t]),void 0===o)o=s[t]=r,++e._eventsCount;else if("function"==typeof o?o=s[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=l(e))>0&&o.length>i&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=o.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function p(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):f(i,i.length)}function d(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function f(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(s){n.once&&e.removeEventListener(t,i),r(s)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,s=this._events;if(void 0!==s)i=i&&void 0===s.error;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=s[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else{var u=l.length,c=f(l,u);for(r=0;r<u;++r)n(c[r],this,t)}return!0},s.prototype.addListener=function(e,t){return u(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return u(this,e,t,!0)},s.prototype.once=function(e,t){return a(t),this.on(e,h(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,h(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,n,i,s,o;if(a(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,s=r.length-1;s>=0;s--)if(r[s]===t||r[s].listener===t){o=r[s].listener,i=s;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,s=Object.keys(r);for(n=0;n<s.length;++n)"removeListener"!==(i=s[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},8190:e=>{e.exports=class{constructor(e){if(!(e>0)||0!=(e-1&e))throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return void 0===this.buffer[this.top]&&(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){const e=this.buffer[this.btm];if(void 0!==e)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return void 0===this.buffer[this.btm]}}},6080:(e,t,r)=>{const n=r(8190);e.exports=class{constructor(e){this.hwm=e||16,this.head=new n(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){const t=this.head;this.head=t.next=new n(2*this.head.buffer.length),this.head.push(e)}}shift(){0!==this.length&&this.length--;const e=this.tail.shift();if(void 0===e&&this.tail.next){const e=this.tail.next;return this.tail.next=null,this.tail=e,this.tail.shift()}return e}peek(){const e=this.tail.peek();return void 0===e&&this.tail.next?this.tail.next.peek():e}isEmpty(){return 0===this.length}}},251:(e,t)=>{t.read=function(e,t,r,n,i){var s,o,a=8*i-n-1,l=(1<<a)-1,u=l>>1,c=-7,h=r?i-1:0,p=r?-1:1,d=e[t+h];for(h+=p,s=d&(1<<-c)-1,d>>=-c,c+=a;c>0;s=256*s+e[t+h],h+=p,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=n;c>0;o=256*o+e[t+h],h+=p,c-=8);if(0===s)s=1-u;else{if(s===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),s-=u}return(d?-1:1)*o*Math.pow(2,s-n)},t.write=function(e,t,r,n,i,s){var o,a,l,u=8*s-i-1,c=(1<<u)-1,h=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:s-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+h>=1?p/l:p*Math.pow(2,1-h))*l>=2&&(o++,l/=2),o+h>=c?(a=0,o=c):o+h>=1?(a=(t*l-1)*Math.pow(2,i),o+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=255&a,d+=f,a/=256,i-=8);for(o=o<<i|a,u+=i;u>0;e[r+d]=255&o,d+=f,o/=256,u-=8);e[r+d-f]|=128*m}},3181:e=>{var t;e.exports=(t=function(){"use strict";var e,t,r=Object.create,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,o=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,l=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of s(t))!a.call(e,l)&&l!==r&&n(e,l,{get:()=>t[l],enumerable:!(o=i(t,l))||o.enumerable});return e},u=(e,t,i)=>(i=null!=e?r(o(e)):{},l(!t&&e&&e.__esModule?i:n(i,"default",{value:e,enumerable:!0}),e)),c=(e=e=>{function t(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],!(t.indexOf(r)>=0)&&(i[r]=e[r]);return i}Object.defineProperty(e,"__esModule",{value:!0});var r=class{constructor(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r}},n=class{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}};function i(e,t){let{line:n,column:i,index:s}=e;return new r(n,i+t,s+t)}var s="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",o={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:s},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:s}},a={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},l=e=>"UpdateExpression"===e.type?a.UpdateExpression[`${e.prefix}`]:a[e.type],u={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:e})=>`'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${"ForInStatement"===e?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${"BreakStatement"===e?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:e})=>`\`import()\` requires exactly ${1===e?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${l(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${l(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${l(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map((e=>JSON.stringify(e))).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map((e=>JSON.stringify(e))).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},c=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),h={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${l({type:e})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},p=["toMessage"],d=["message"];function f(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function m(e){let{toMessage:n}=e,i=t(e,p);return function e(t,s){let o=new SyntaxError;return Object.assign(o,i,{loc:t,pos:t.index}),"missingPlugin"in s&&Object.assign(o,{missingPlugin:s.missingPlugin}),f(o,"clone",(function(n={}){var i;let{line:o,column:a,index:l}=null!=(i=n.loc)?i:t;return e(new r(o,a,l),Object.assign({},s,n.details))})),f(o,"details",s),Object.defineProperty(o,"message",{configurable:!0,get(){let e=`${n(s)} (${t.line}:${t.column})`;return this.message=e,e},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),o}}function g(e,r){if(Array.isArray(e))return t=>g(t,e[0]);let n={};for(let i of Object.keys(e)){let s=e[i],o="string"==typeof s?{message:()=>s}:"function"==typeof s?{message:s}:s,{message:a}=o,l=t(o,d),u="string"==typeof a?()=>a:a;n[i]=m(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:u},r?{syntaxPlugin:r}:{},l))}return n}var y=Object.assign({},g(o),g(u),g({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),g`pipelineOperator`(h)),{defineProperty:O}=Object,x=(e,t)=>{e&&O(e,t,{enumerable:!1,value:e[t]})};function b(e){return x(e.loc.start,"index"),x(e.loc.end,"index"),e}var v=class{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}},w={brace:new v("{"),j_oTag:new v("<tag"),j_cTag:new v("</tag"),j_expr:new v("<tag>...</tag>",!0)};w.template=new v("`",!0);var D=!0,S=!0,k=!0,E=!0,C=!0,T=class{constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}},P=new Map;function A(e,t={}){t.keyword=e;let r=M(e,t);return P.set(e,r),r}function F(e,t){return M(e,{beforeExpr:D,binop:t})}var _=-1,I=[],B=[],N=[],$=[],Q=[],L=[];function M(e,t={}){var r,n,i,s;return++_,B.push(e),N.push(null!=(r=t.binop)?r:-1),$.push(null!=(n=t.beforeExpr)&&n),Q.push(null!=(i=t.startsExpr)&&i),L.push(null!=(s=t.prefix)&&s),I.push(new T(e,t)),_}function R(e,t={}){var r,n,i,s;return++_,P.set(e,_),B.push(e),N.push(null!=(r=t.binop)?r:-1),$.push(null!=(n=t.beforeExpr)&&n),Q.push(null!=(i=t.startsExpr)&&i),L.push(null!=(s=t.prefix)&&s),I.push(new T("name",t)),_}var j={bracketL:M("[",{beforeExpr:D,startsExpr:S}),bracketHashL:M("#[",{beforeExpr:D,startsExpr:S}),bracketBarL:M("[|",{beforeExpr:D,startsExpr:S}),bracketR:M("]"),bracketBarR:M("|]"),braceL:M("{",{beforeExpr:D,startsExpr:S}),braceBarL:M("{|",{beforeExpr:D,startsExpr:S}),braceHashL:M("#{",{beforeExpr:D,startsExpr:S}),braceR:M("}"),braceBarR:M("|}"),parenL:M("(",{beforeExpr:D,startsExpr:S}),parenR:M(")"),comma:M(",",{beforeExpr:D}),semi:M(";",{beforeExpr:D}),colon:M(":",{beforeExpr:D}),doubleColon:M("::",{beforeExpr:D}),dot:M("."),question:M("?",{beforeExpr:D}),questionDot:M("?."),arrow:M("=>",{beforeExpr:D}),template:M("template"),ellipsis:M("...",{beforeExpr:D}),backQuote:M("`",{startsExpr:S}),dollarBraceL:M("${",{beforeExpr:D,startsExpr:S}),templateTail:M("...`",{startsExpr:S}),templateNonTail:M("...${",{beforeExpr:D,startsExpr:S}),at:M("@"),hash:M("#",{startsExpr:S}),interpreterDirective:M("#!..."),eq:M("=",{beforeExpr:D,isAssign:E}),assign:M("_=",{beforeExpr:D,isAssign:E}),slashAssign:M("_=",{beforeExpr:D,isAssign:E}),xorAssign:M("_=",{beforeExpr:D,isAssign:E}),moduloAssign:M("_=",{beforeExpr:D,isAssign:E}),incDec:M("++/--",{prefix:C,postfix:!0,startsExpr:S}),bang:M("!",{beforeExpr:D,prefix:C,startsExpr:S}),tilde:M("~",{beforeExpr:D,prefix:C,startsExpr:S}),doubleCaret:M("^^",{startsExpr:S}),doubleAt:M("@@",{startsExpr:S}),pipeline:F("|>",0),nullishCoalescing:F("??",1),logicalOR:F("||",1),logicalAND:F("&&",2),bitwiseOR:F("|",3),bitwiseXOR:F("^",4),bitwiseAND:F("&",5),equality:F("==/!=/===/!==",6),lt:F("</>/<=/>=",7),gt:F("</>/<=/>=",7),relational:F("</>/<=/>=",7),bitShift:F("<</>>/>>>",8),bitShiftL:F("<</>>/>>>",8),bitShiftR:F("<</>>/>>>",8),plusMin:M("+/-",{beforeExpr:D,binop:9,prefix:C,startsExpr:S}),modulo:M("%",{binop:10,startsExpr:S}),star:M("*",{binop:10}),slash:F("/",10),exponent:M("**",{beforeExpr:D,binop:11,rightAssociative:!0}),_in:A("in",{beforeExpr:D,binop:7}),_instanceof:A("instanceof",{beforeExpr:D,binop:7}),_break:A("break"),_case:A("case",{beforeExpr:D}),_catch:A("catch"),_continue:A("continue"),_debugger:A("debugger"),_default:A("default",{beforeExpr:D}),_else:A("else",{beforeExpr:D}),_finally:A("finally"),_function:A("function",{startsExpr:S}),_if:A("if"),_return:A("return",{beforeExpr:D}),_switch:A("switch"),_throw:A("throw",{beforeExpr:D,prefix:C,startsExpr:S}),_try:A("try"),_var:A("var"),_const:A("const"),_with:A("with"),_new:A("new",{beforeExpr:D,startsExpr:S}),_this:A("this",{startsExpr:S}),_super:A("super",{startsExpr:S}),_class:A("class",{startsExpr:S}),_extends:A("extends",{beforeExpr:D}),_export:A("export"),_import:A("import",{startsExpr:S}),_null:A("null",{startsExpr:S}),_true:A("true",{startsExpr:S}),_false:A("false",{startsExpr:S}),_typeof:A("typeof",{beforeExpr:D,prefix:C,startsExpr:S}),_void:A("void",{beforeExpr:D,prefix:C,startsExpr:S}),_delete:A("delete",{beforeExpr:D,prefix:C,startsExpr:S}),_do:A("do",{isLoop:k,beforeExpr:D}),_for:A("for",{isLoop:k}),_while:A("while",{isLoop:k}),_as:R("as",{startsExpr:S}),_assert:R("assert",{startsExpr:S}),_async:R("async",{startsExpr:S}),_await:R("await",{startsExpr:S}),_defer:R("defer",{startsExpr:S}),_from:R("from",{startsExpr:S}),_get:R("get",{startsExpr:S}),_let:R("let",{startsExpr:S}),_meta:R("meta",{startsExpr:S}),_of:R("of",{startsExpr:S}),_sent:R("sent",{startsExpr:S}),_set:R("set",{startsExpr:S}),_source:R("source",{startsExpr:S}),_static:R("static",{startsExpr:S}),_using:R("using",{startsExpr:S}),_yield:R("yield",{startsExpr:S}),_asserts:R("asserts",{startsExpr:S}),_checks:R("checks",{startsExpr:S}),_exports:R("exports",{startsExpr:S}),_global:R("global",{startsExpr:S}),_implements:R("implements",{startsExpr:S}),_intrinsic:R("intrinsic",{startsExpr:S}),_infer:R("infer",{startsExpr:S}),_is:R("is",{startsExpr:S}),_mixins:R("mixins",{startsExpr:S}),_proto:R("proto",{startsExpr:S}),_require:R("require",{startsExpr:S}),_satisfies:R("satisfies",{startsExpr:S}),_keyof:R("keyof",{startsExpr:S}),_readonly:R("readonly",{startsExpr:S}),_unique:R("unique",{startsExpr:S}),_abstract:R("abstract",{startsExpr:S}),_declare:R("declare",{startsExpr:S}),_enum:R("enum",{startsExpr:S}),_module:R("module",{startsExpr:S}),_namespace:R("namespace",{startsExpr:S}),_interface:R("interface",{startsExpr:S}),_type:R("type",{startsExpr:S}),_opaque:R("opaque",{startsExpr:S}),name:M("name",{startsExpr:S}),string:M("string",{startsExpr:S}),num:M("num",{startsExpr:S}),bigint:M("bigint",{startsExpr:S}),decimal:M("decimal",{startsExpr:S}),regexp:M("regexp",{startsExpr:S}),privateName:M("#name",{startsExpr:S}),eof:M("eof"),jsxName:M("jsxName"),jsxText:M("jsxText",{beforeExpr:!0}),jsxTagStart:M("jsxTagStart",{startsExpr:!0}),jsxTagEnd:M("jsxTagEnd"),placeholder:M("%%",{startsExpr:!0})};function Z(e){return e>=93&&e<=132}function q(e){return e>=58&&e<=132}function W(e){return e>=58&&e<=136}function X(e){return Q[e]}function V(e){return e>=129&&e<=131}function U(e){return e>=58&&e<=92}function Y(e){return B[e]}function z(e){return N[e]}function G(e){return e>=24&&e<=25}function H(e){return I[e]}I[8].updateContext=e=>{e.pop()},I[5].updateContext=I[7].updateContext=I[23].updateContext=e=>{e.push(w.brace)},I[22].updateContext=e=>{e[e.length-1]===w.template?e.pop():e.push(w.template)},I[142].updateContext=e=>{e.push(w.j_expr,w.j_oTag)};var J="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA--zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",K="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍--9_・",ee=new RegExp("["+J+"]"),te=new RegExp("["+J+K+"]");J=K=null;var re=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],ne=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function ie(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function se(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ee.test(String.fromCharCode(e)):ie(e,re)))}function oe(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&te.test(String.fromCharCode(e)):ie(e,re)||ie(e,ne))))}var ae=["implements","interface","let","package","private","protected","public","static","yield"],le=["eval","arguments"],ue=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),ce=new Set(ae),he=new Set(le);function pe(e,t){return t&&"await"===e||"enum"===e}function de(e,t){return pe(e,t)||ce.has(e)}function fe(e){return he.has(e)}function me(e,t){return de(e,t)||fe(e)}var ge=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]),ye=class{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}},Oe=class{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(64&e)>0&&0==(2&e)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(128&t)return!0;if(451&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new ye(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,r){let n=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(n,e,t,r);let i=n.names.get(e)||0;16&t?i|=4:(n.firstLexicalName||(n.firstLexicalName=e),i|=2),n.names.set(e,i),8&t&&this.maybeExportDefined(n,e)}else if(4&t)for(let i=this.scopeStack.length-1;i>=0&&(n=this.scopeStack[i],this.checkRedeclarationInScope(n,e,t,r),n.names.set(e,1|(n.names.get(e)||0)),this.maybeExportDefined(n,e),!(387&n.flags));--i);this.parser.inModule&&1&n.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(y.VarRedeclaration,n,{identifierName:t})}isRedeclaredInScope(e,t,r){if(!(1&r))return!1;if(8&r)return e.names.has(t);let n=e.names.get(t);return 16&r?(2&n)>0||!this.treatFunctionsAsVarInScope(e)&&(1&n)>0:(2&n)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&n)>0}checkLocalExport(e){let{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(387&t)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(451&t&&!(4&t))return t}}},xe=class extends ye{constructor(...e){super(...e),this.declareFunctions=new Set}},be=class extends Oe{createScope(e){return new xe(e)}declareName(e,t,r){let n=this.currentScope();if(2048&t)return this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e),void n.declareFunctions.add(e);super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(e,t,r))return!0;if(2048&r&&!e.declareFunctions.has(t)){let r=e.names.get(t);return(4&r)>0||(2&r)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},ve=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{let[t,r]=e;if(!this.hasPlugin(t))return!1;let n=this.plugins.get(t);for(let e of Object.keys(r))if((null==n?void 0:n[e])!==r[e])return!1;return!0}}getPluginOption(e,t){var r;return null==(r=this.plugins.get(e))?void 0:r[t]}};function we(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function De(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function Se(e,t,r){let n=null,i=t.length;for(;null===n&&i>0;)n=t[--i];null===n||n.start>r.start?De(e,r.comments):we(n,r.comments)}var ke=class extends ve{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,r=t.length;if(0===r)return;let n=r-1,i=t[n];i.start===e.end&&(i.leadingNode=e,n--);let{start:s}=e;for(;n>=0;n--){let r=t[n],i=r.end;if(!(i>s)){i===s&&(r.trailingNode=e);break}r.containingNode=e,this.finalizeComment(r),t.splice(n,1)}}finalizeComment(e){let{comments:t}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&we(e.leadingNode,t),null!==e.trailingNode&&function(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}(e.trailingNode,t);else{let{containingNode:r,start:n}=e;if(44===this.input.charCodeAt(n-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Se(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":Se(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Se(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Se(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Se(r,r.specifiers,e);break;default:De(r,t)}else De(r,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:r}=t;if(0===r)return;let n=t[r-1];n.leadingNode===e&&(n.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){let{commentStack:t}=this.state,{length:r}=t;0!==r&&(t[r-1].trailingNode===e?t[r-1].trailingNode=null:r>=2&&t[r-2].trailingNode===e&&(t[r-2].trailingNode=null))}takeSurroundingComments(e,t,r){let{commentStack:n}=this.state,i=n.length;if(0===i)return;let s=i-1;for(;s>=0;s--){let i=n[s],o=i.end;if(i.start===r)i.leadingNode=e;else if(o===t)i.trailingNode=e;else if(o<t)break}}},Ee=/\r\n?|[\n\u2028\u2029]/,Ce=new RegExp(Ee.source,"g");function Te(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var Pe=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ae=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,Fe=new RegExp("(?=("+Ae.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function _e(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var Ie=class e{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[w.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:t,startLine:n,startColumn:i}){this.strict=!1!==e&&(!0===e||"module"===t),this.curLine=n,this.lineStart=-i,this.startLoc=this.endLoc=new r(n,i,0)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}curPosition(){return new r(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let t=new e;return t.flags=this.flags,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},Be=function(e){return e>=48&&e<=57},Ne={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},$e={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Qe(e,t,r,n,i,s){let o=r,a=n,l=i,u="",c=null,h=r,{length:p}=t;for(;;){if(r>=p){s.unterminated(o,a,l),u+=t.slice(h,r);break}let d=t.charCodeAt(r);if(Le(e,d,t,r)){u+=t.slice(h,r);break}if(92===d){u+=t.slice(h,r);let o=Me(t,r,n,i,"template"===e,s);null!==o.ch||c?u+=o.ch:c={pos:r,lineStart:n,curLine:i},({pos:r,lineStart:n,curLine:i}=o),h=r}else 8232===d||8233===d?(++i,n=++r):10===d||13===d?"template"===e?(u+=t.slice(h,r)+"\n",++r,13===d&&10===t.charCodeAt(r)&&++r,++i,h=n=r):s.unterminated(o,a,l):++r}return{pos:r,str:u,firstInvalidLoc:c,lineStart:n,curLine:i,containsInvalid:!!c}}function Le(e,t,r,n){return"template"===e?96===t||36===t&&123===r.charCodeAt(n+1):t===("double"===e?34:39)}function Me(e,t,r,n,i,s){let o=!i;t++;let a=e=>({pos:t,ch:e,lineStart:r,curLine:n}),l=e.charCodeAt(t++);switch(l){case 110:return a("\n");case 114:return a("\r");case 120:{let i;return({code:i,pos:t}=Re(e,t,r,n,2,!1,o,s)),a(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=Ze(e,t,r,n,o,s)),a(null===i?null:String.fromCodePoint(i))}case 116:return a("\t");case 98:return a("\b");case 118:return a("\v");case 102:return a("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++n;case 8232:case 8233:return a("");case 56:case 57:if(i)return a(null);s.strictNumericEscape(t-1,r,n);default:if(l>=48&&l<=55){let o=t-1,l=/^[0-7]+/.exec(e.slice(o,t+2))[0],u=parseInt(l,8);u>255&&(l=l.slice(0,-1),u=parseInt(l,8)),t+=l.length-1;let c=e.charCodeAt(t);if("0"!==l||56===c||57===c){if(i)return a(null);s.strictNumericEscape(o,r,n)}return a(String.fromCharCode(u))}return a(String.fromCharCode(l))}}function Re(e,t,r,n,i,s,o,a){let l,u=t;return({n:l,pos:t}=je(e,t,r,n,16,i,s,!1,a,!o)),null===l&&(o?a.invalidEscapeSequence(u,r,n):t=u-1),{code:l,pos:t}}function je(e,t,r,n,i,s,o,a,l,u){let c=t,h=16===i?Ne.hex:Ne.decBinOct,p=16===i?$e.hex:10===i?$e.dec:8===i?$e.oct:$e.bin,d=!1,f=0;for(let c=0,m=s??1/0;c<m;++c){let s,c=e.charCodeAt(t);if(95!==c||"bail"===a){if(s=c>=97?c-97+10:c>=65?c-65+10:Be(c)?c-48:1/0,s>=i){if(s<=9&&u)return{n:null,pos:t};if(s<=9&&l.invalidDigit(t,r,n,i))s=0;else{if(!o)break;s=0,d=!0}}++t,f=f*i+s}else{let i=e.charCodeAt(t-1),s=e.charCodeAt(t+1);if(a){if(Number.isNaN(s)||!p(s)||h.has(i)||h.has(s)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,n)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,n)}++t}}return t===c||null!=s&&t-c!==s||d?{n:null,pos:t}:{n:f,pos:t}}function Ze(e,t,r,n,i,s){let o;if(123===e.charCodeAt(t)){if(++t,({code:o,pos:t}=Re(e,t,r,n,e.indexOf("}",t)-t,!0,i,s)),++t,null!==o&&o>1114111){if(!i)return{code:null,pos:t};s.invalidCodePoint(t,r,n)}}else({code:o,pos:t}=Re(e,t,r,n,4,!1,i,s));return{code:o,pos:t}}function qe(e,t,n){return new r(n,e-t,e)}var We=new Set([103,109,115,105,121,117,100,118]),Xe=class{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new n(e.startLoc,e.endLoc)}},Ve=class extends ke{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,r,n)=>!!this.options.errorRecovery&&(this.raise(y.InvalidDigit,qe(e,t,r),{radix:n}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(y.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(y.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(y.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(y.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(y.StrictNumericEscape,qe(e,t,r))},unterminated:(e,t,r)=>{throw this.raise(y.UnterminatedString,qe(e-1,t,r))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(y.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(y.UnterminatedTemplate,qe(e,t,r))}}),this.state=new Ie,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Xe(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Pe.lastIndex=e,Pe.test(this.input)?Pe.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Ae.lastIndex=e,Ae.test(this.input)?Ae.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e<this.input.length){let r=this.input.charCodeAt(e);56320==(64512&r)&&(t=65536+((1023&t)<<10)+(1023&r))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach((([e,t])=>this.raise(e,t))),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(139):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let r=this.state.pos,i=this.input.indexOf(e,r+2);if(-1===i)throw this.raise(y.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+e.length,Ce.lastIndex=r+2;Ce.test(this.input)&&Ce.lastIndex<=i;)++this.state.curLine,this.state.lineStart=Ce.lastIndex;if(this.isLookahead)return;let s={type:"CommentBlock",value:this.input.slice(r+2,i),start:r,end:i+e.length,loc:new n(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(s),s}skipLineComment(e){let t,r=this.state.pos;this.isLookahead||(t=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!Te(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let s=this.state.pos,o={type:"CommentLine",value:this.input.slice(r+e,s),start:r,end:s,loc:new n(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(o),o}skipSpace(){let e=this.state.pos,t=[];e:for(;this.state.pos<this.length;){let r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}case 47:{let e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}default:break e}break;default:if(_e(r))++this.state.pos;else if(45===r&&!this.inModule&&this.options.annexB){let r=this.state.pos;if(45!==this.input.charCodeAt(r+1)||62!==this.input.charCodeAt(r+2)||!(0===e||this.state.lineStart>e))break e;{let e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}else{if(60!==r||this.inModule||!this.options.annexB)break e;{let e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{let e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}}}}if(t.length>0){let r={start:e,end:this.state.pos,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(y.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?y.RecordExpressionHashIncorrectStartSyntaxType:y.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else se(t)?(++this.state.pos,this.finishToken(138,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;let t=this.state.pos;for(this.state.pos+=1;!Te(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let r=this.input.slice(t+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(e){let t=42===e?55:54,r=1,n=this.input.charCodeAt(this.state.pos+1);42===e&&42===n&&(r++,n=this.input.charCodeAt(this.state.pos+2),t=57),61===n&&!this.state.inType&&(r++,t=37===e?33:30),this.finishOp(t,r)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(y.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(y.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==t?this.finishOp(124===e?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);61!==e||this.state.inType?94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);t!==e?61===t?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(60===t)return 61===this.input.charCodeAt(e+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==t?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){let t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(30,t+1):void this.finishOp(52,t)}61!==t?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===e?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(y.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(y.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(se(e))return void this.readWord(e)}throw this.raise(y.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){let e,t,r=this.state.startLoc,n=this.state.start+1,{pos:s}=this.state;for(;;++s){if(s>=this.length)throw this.raise(y.UnterminatedRegExp,i(r,1));let n=this.input.charCodeAt(s);if(Te(n))throw this.raise(y.UnterminatedRegExp,i(r,1));if(e)e=!1;else{if(91===n)t=!0;else if(93===n&&t)t=!1;else if(47===n&&!t)break;e=92===n}}let o=this.input.slice(n,s);++s;let a="",l=()=>i(r,s+2-n);for(;s<this.length;){let e=this.codePointAtPos(s),t=String.fromCharCode(e);if(We.has(e))118===e?a.includes("u")&&this.raise(y.IncompatibleRegExpUVFlags,l()):117===e&&a.includes("v")&&this.raise(y.IncompatibleRegExpUVFlags,l()),a.includes(t)&&this.raise(y.DuplicateRegExpFlags,l());else{if(!oe(e)&&92!==e)break;this.raise(y.MalformedRegExpFlags,l())}++s,a+=t}this.state.pos=s,this.finishToken(137,{pattern:o,flags:a})}readInt(e,t,r=!1,n=!0){let{n:i,pos:s}=je(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,n,this.errorHandlers_readInt,!1);return this.state.pos=s,i}readRadixNumber(e){let t=this.state.curPosition(),r=!1;this.state.pos+=2;let n=this.readInt(e);null==n&&this.raise(y.InvalidDigit,i(t,2),{radix:e});let s=this.input.charCodeAt(this.state.pos);if(110===s)++this.state.pos,r=!0;else if(109===s)throw this.raise(y.InvalidDecimal,t);if(se(this.codePointAtPos(this.state.pos)))throw this.raise(y.NumberIdentifier,this.state.curPosition());if(r){let e=this.input.slice(t.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,e)}else this.finishToken(134,n)}readNumber(e){let t=this.state.pos,r=this.state.curPosition(),n=!1,s=!1,o=!1,a=!1,l=!1;!e&&null===this.readInt(10)&&this.raise(y.InvalidNumber,this.state.curPosition());let u=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(u){let e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(y.StrictOctalLiteral,r),!this.state.strict){let t=e.indexOf("_");t>0&&this.raise(y.ZeroDigitNumericSeparator,i(r,t))}l=u&&!/[89]/.test(e)}let c=this.input.charCodeAt(this.state.pos);if(46===c&&!l&&(++this.state.pos,this.readInt(10),n=!0,c=this.input.charCodeAt(this.state.pos)),(69===c||101===c)&&!l&&(c=this.input.charCodeAt(++this.state.pos),(43===c||45===c)&&++this.state.pos,null===this.readInt(10)&&this.raise(y.InvalidOrMissingExponent,r),n=!0,a=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((n||u)&&this.raise(y.InvalidBigIntLiteral,r),++this.state.pos,s=!0),109===c&&(this.expectPlugin("decimal",this.state.curPosition()),(a||u)&&this.raise(y.InvalidDecimal,r),++this.state.pos,o=!0),se(this.codePointAtPos(this.state.pos)))throw this.raise(y.NumberIdentifier,this.state.curPosition());let h=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(s)return void this.finishToken(135,h);if(o)return void this.finishToken(136,h);let p=l?parseInt(h,8):parseFloat(h);this.finishToken(134,p)}readCodePoint(e){let{code:t,pos:r}=Ze(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){let{str:t,pos:r,curLine:n,lineStart:i}=Qe(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=i,this.state.curLine=n,this.finishToken(133,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:n,pos:i,curLine:s,lineStart:o}=Qe("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=o,this.state.curLine=s,n&&(this.state.firstInvalidTemplateEscapePos=new r(n.curLine,n.pos-n.lineStart,n.pos)),96===this.input.codePointAt(i)?this.finishToken(24,n?null:e+t+"`"):(this.state.pos++,this.finishToken(25,n?null:e+t+"${"))}recordStrictModeErrors(e,t){let r=t.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(e,t):this.state.strictErrors.set(r,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="",r=this.state.pos,n=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let e=this.codePointAtPos(this.state.pos);if(oe(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,t+=this.input.slice(n,this.state.pos);let e=this.state.curPosition(),i=this.state.pos===r?se:oe;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(y.MissingUnicodeEscape,this.state.curPosition()),n=this.state.pos-1;continue}++this.state.pos;let s=this.readCodePoint(!0);null!==s&&(i(s)||this.raise(y.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(s)),n=this.state.pos}}}return t+this.input.slice(n,this.state.pos)}readWord(e){let t=this.readWord1(e),r=P.get(t);void 0!==r?this.finishToken(r,Y(r)):this.finishToken(132,t)}checkKeywordEscapes(){let{type:e}=this.state;U(e)&&this.state.containsEsc&&this.raise(y.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Y(e)})}raise(e,t,n={}){let i=e(t instanceof r?t:t.loc.start,n);if(!this.options.errorRecovery)throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(e,t,n={}){let i=t instanceof r?t:t.loc.start,s=i.index,o=this.state.errors;for(let t=o.length-1;t>=0;t--){let r=o[t];if(r.loc.index===s)return o[t]=e(i,n);if(r.loc.index<s)break}return this.raise(e,t,n)}updateContext(e){}unexpected(e,t){throw this.raise(y.UnexpectedToken,e??this.state.startLoc,{expected:t?Y(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(y.MissingPlugin,t??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e))))throw this.raise(y.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,r,n)=>{this.raise(e,qe(t,r,n))}}},Ue=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Ye=class{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Ue)}exit(){let e=this.stack.pop(),t=this.current();for(let[r,n]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,n):this.parser.raise(y.InvalidPrivateFieldResolution,n,{identifierName:r})}declarePrivateName(e,t,r){let{privateNames:n,loneAccessors:i,undefinedPrivateNames:s}=this.current(),o=n.has(e);if(3&t){let r=o&&i.get(e);r?(o=(3&r)==(3&t)||(4&r)!=(4&t),o||i.delete(e)):o||i.set(e,t)}o&&this.parser.raise(y.PrivateNameRedeclaration,r,{identifierName:e}),n.add(e),s.delete(e)}usePrivateName(e,t){let r;for(r of this.stack)if(r.privateNames.has(e))return;r?r.undefinedPrivateNames.set(e,t):this.parser.raise(y.InvalidPrivateFieldResolution,t,{identifierName:e})}},ze=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}},Ge=class extends ze{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){let r=t.index;this.declarationErrors.set(r,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},He=class{constructor(e){this.parser=void 0,this.stack=[new ze],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let r=t.loc.start,{stack:n}=this,i=n.length-1,s=n[i];for(;!s.isCertainlyParameterDeclaration();){if(!s.canBeArrowParameterDeclaration())return;s.recordDeclarationError(e,r),s=n[--i]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,t){let{stack:r}=this,n=r[r.length-1],i=t.loc.start;if(n.isCertainlyParameterDeclaration())this.parser.raise(e,i);else{if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(e,i)}}recordAsyncArrowParametersError(e){let{stack:t}=this,r=t.length-1,n=t[r];for(;n.canBeArrowParameterDeclaration();)2===n.type&&n.recordDeclarationError(y.AwaitBindingIdentifier,e),n=t[--r]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors((([t,r])=>{this.parser.raise(t,r);let n=e.length-2,i=e[n];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(r.index),i=e[--n]}))}};function Je(){return new ze}var Ke=class{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}};function et(e,t){return(e?2:0)|(t?1:0)}var tt=class extends Ve{addExtra(e,t,r,n=!0){if(!e)return;let i=e.extra=e.extra||{};n?i[t]=r:Object.defineProperty(i,t,{enumerable:n,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){let r=e+t.length;if(this.input.slice(e,r)===t){let e=this.input.charCodeAt(r);return!(oe(e)||55296==(64512&e))}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Ee.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Fe.lastIndex=this.state.end,Fe.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(y.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let r={node:null};try{let n=e(((e=null)=>{throw r.node=e,r}));if(this.state.errors.length>t.errors.length){let e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:n,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){let n=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:n};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:n};throw e}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:r,doubleProtoLoc:n,privateKeyLoc:i,optionalParametersLoc:s}=e;if(!t)return!!(r||n||s||i);null!=r&&this.raise(y.InvalidCoverInitializedName,r),null!=n&&this.raise(y.DuplicateProto,n),null!=i&&this.raise(y.UnexpectedPrivateField,i),null!=s&&this.unexpected(s)}isLiteralPropertyName(){return W(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(e="module"===this.options.sourceType){let t=this.state.labels;this.state.labels=[];let r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let n=this.inModule;this.inModule=e;let i=this.scope,s=this.getScopeHandler();this.scope=new s(this,e);let o=this.prodParam;this.prodParam=new Ke;let a=this.classScope;this.classScope=new Ye(this);let l=this.expressionScope;return this.expressionScope=new He(this),()=>{this.state.labels=t,this.exportedIdentifiers=r,this.inModule=n,this.scope=i,this.prodParam=o,this.classScope=a,this.expressionScope=l}}enterInitialScopes(){let e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}},rt=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},nt=class{constructor(e,t,r){this.type="",this.start=t,this.end=0,this.loc=new n(r),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}},it=nt.prototype;function st(e){let{type:t,start:r,end:n,loc:i,range:s,extra:o,name:a}=e,l=Object.create(it);return l.type=t,l.start=r,l.end=n,l.loc=i,l.range=s,l.extra=o,l.name=a,"Placeholder"===t&&(l.expectedNode=e.expectedNode),l}function ot(e){let{type:t,start:r,end:n,loc:i,range:s,extra:o}=e;if("Placeholder"===t)return function(e){return st(e)}(e);let a=Object.create(it);return a.type=t,a.start=r,a.end=n,a.loc=i,a.range=s,void 0!==e.raw?a.raw=e.raw:a.extra=o,a.value=e.value,a}it.__clone=function(){let e=new nt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,n=t.length;r<n;r++){let n=t[r];"leadingComments"!==n&&"trailingComments"!==n&&"innerComments"!==n&&(e[n]=this[n])}return e};var at=class extends tt{startNode(){let e=this.state.startLoc;return new nt(this,e.index,e)}startNodeAt(e){return new nt(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,r){return e.type=t,e.end=r.index,e.loc.end=r,this.options.ranges&&(e.range[1]=r.index),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.options.ranges&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,this.options.ranges&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}},lt=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ut=g`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function ct(e){return"type"===e.importKind||"typeof"===e.importKind}var ht={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},pt=/\*?\s*@((?:no)?flow)\b/,dt=g`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function ft(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function mt(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return mt(e.object)+"."+mt(e.property);throw new Error("Node had unexpected type: "+e.type)}var gt=class extends ye{constructor(...e){super(...e),this.tsNames=new Map}},yt=class extends Oe{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new gt(e)}enter(e){256===e&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return 256===e&&this.importsStack.pop(),e}hasImport(e,t){let r=this.importsStack.length;if(this.importsStack[r-1].has(e))return!0;if(!t&&r>1)for(let t=0;t<r-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,r){if(4096&t)return this.hasImport(e,!0)&&this.parser.raise(y.VarRedeclaration,r,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);let n=this.currentScope(),i=n.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(n,e),void n.tsNames.set(e,16|i);super.declareName(e,t,r),2&t&&(1&t||(this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e)),i|=1),256&t&&(i|=2),512&t&&(i|=4),128&t&&(i|=8),i&&n.tsNames.set(e,i)}isRedeclaredInScope(e,t,r){let n=e.tsNames.get(t);return(2&n)>0?!(256&r)||!!(512&r)!=(4&n)>0:128&r&&(8&n)>0?!!(2&e.names.get(t))&&!!(1&r):!!(2&r&&(1&n)>0)||super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){let{name:t}=e;if(!this.hasImport(t)){for(let e=this.scopeStack.length-1;e>=0;e--){let r=this.scopeStack[e].tsNames.get(t);if((1&r)>0||(16&r)>0)return}super.checkLocalExport(e)}}},Ot=e=>"ParenthesizedExpression"===e.type?Ot(e.expression):e,xt=class extends at{toAssignable(e,t=!1){var r,n;let i;switch(("ParenthesizedExpression"===e.type||null!=(r=e.extra)&&r.parenthesized)&&(i=Ot(e),t?"Identifier"===i.type?this.expressionScope.recordArrowParameterBindingError(y.InvalidParenthesizedAssignment,e):"MemberExpression"!==i.type&&!this.isOptionalMemberExpression(i)&&this.raise(y.InvalidParenthesizedAssignment,e):this.raise(y.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let r=0,n=e.properties.length,i=n-1;r<n;r++){var s;let n=e.properties[r],o=r===i;this.toAssignableObjectExpressionProp(n,o,t),o&&"RestElement"===n.type&&null!=(s=e.extra)&&s.trailingCommaLoc&&this.raise(y.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,t);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null==(n=e.extra)?void 0:n.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(y.MissingEqInAssignment,e.left.loc.end),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(i,t)}}toAssignableObjectExpressionProp(e,t,r){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?y.PatternHasAccessor:y.PatternHasMethod,e.key);else if("SpreadElement"===e.type){e.type="RestElement";let n=e.argument;this.checkToRestConversion(n,!1),this.toAssignable(n,r),t||this.raise(y.RestTrailingComma,e)}else this.toAssignable(e,r)}toAssignableList(e,t,r){let n=e.length-1;for(let i=0;i<=n;i++){let s=e[i];if(s){if("SpreadElement"===s.type){s.type="RestElement";let e=s.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,r)}else this.toAssignable(s,r);"RestElement"===s.type&&(i<n?this.raise(y.RestTrailingComma,s):t&&this.raise(y.RestTrailingComma,t))}}}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let t=e.properties.length-1;return e.properties.every(((e,r)=>"ObjectMethod"!==e.type&&(r===t||"SpreadElement"!==e.type)&&this.isAssignable(e)))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((e=>null===e||this.isAssignable(e)));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(let t of e)"ArrayExpression"===(null==t?void 0:t.type)&&this.toReferencedListDeep(t.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){let e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,t,r){let n=1&r,i=[],s=!0;for(;!this.eat(e);)if(s?s=!1:this.expect(12),n&&this.match(12))i.push(null);else{if(this.eat(e))break;if(this.match(21)){if(i.push(this.parseAssignableListItemTypes(this.parseRestBinding(),r)),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let e=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(y.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseAssignableListItem(r,e))}}return i}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(21===e)return this.parseBindingRestProperty(this.startNode());let r=this.startNode();return 138===e?(this.expectPlugin("destructuringPrivate",t),this.classScope.usePrivateName(this.state.value,t),r.key=this.parsePrivateName()):this.parsePropertyName(r),r.method=!1,this.parseObjPropValue(r,t,!1,!1,!0,!1)}parseAssignableListItem(e,t){let r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r,e);let n=this.parseMaybeDefault(r.loc.start,r);return t.length&&(r.decorators=t),n}parseAssignableListItemTypes(e,t){return e}parseMaybeDefault(e,t){var r;if(null!=e||(e=this.state.startLoc),t=null!=(r=t)?r:this.parseBindingAtom(),!this.eat(29))return t;let n=this.startNodeAt(e);return n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(e,t,r){return((e,t)=>hasOwnProperty.call(e,t)&&e[t])({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},e)}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,{in:t,binding:r=64,checkClashes:n=!1,strictModeChanged:i=!1,hasParenthesizedAncestor:s=!1}){var o;let a=e.type;if(this.isObjectMethod(e))return;let l=this.isOptionalMemberExpression(e);if(l||"MemberExpression"===a)return l&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==t.type&&this.raise(y.InvalidLhsOptionalChaining,e,{ancestor:t})),void(64!==r&&this.raise(y.InvalidPropertyBindingPattern,e));if("Identifier"===a){this.checkIdentifier(e,r,i);let{name:t}=e;return void(n&&(n.has(t)?this.raise(y.ParamDupe,e):n.add(t)))}let u=this.isValidLVal(a,!(s||null!=(o=e.extra)&&o.parenthesized)&&"AssignmentExpression"===t.type,r);if(!0===u)return;if(!1===u){let n=64===r?y.InvalidLhs:y.InvalidLhsBinding;return void this.raise(n,e,{ancestor:t})}let[c,h]=Array.isArray(u)?u:[u,"ParenthesizedExpression"===a],p="ArrayPattern"===a||"ObjectPattern"===a?{type:a}:t;for(let t of[].concat(e[c]))t&&this.checkLVal(t,{in:p,binding:r,checkClashes:n,strictModeChanged:i,hasParenthesizedAncestor:h})}checkIdentifier(e,t,r=!1){this.state.strict&&(r?me(e.name,this.inModule):fe(e.name))&&(64===t?this.raise(y.StrictEvalArguments,e,{referenceName:e.name}):this.raise(y.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(y.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(y.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?y.RestTrailingComma:y.ElementAfterRest,this.state.startLoc),!0)}};function bt(e){if(!e)throw new Error("Assert fail")}var vt=g`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`});function wt(e){return"private"===e||"public"===e||"protected"===e}function Dt(e){return"in"===e||"out"===e}function St(e){if("MemberExpression"!==e.type)return!1;let{computed:t,property:r}=e;return(!t||"StringLiteral"===r.type||!("TemplateLiteral"!==r.type||r.expressions.length>0))&&Ct(e.object)}function kt(e,t){var r;let{type:n}=e;if(null!=(r=e.extra)&&r.parenthesized)return!1;if(t){if("Literal"===n){let{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===n||"BooleanLiteral"===n)return!0;return!!(Et(e,t)||function(e,t){if("UnaryExpression"===e.type){let{operator:r,argument:n}=e;if("-"===r&&Et(n,t))return!0}return!1}(e,t)||"TemplateLiteral"===n&&0===e.expressions.length||St(e))}function Et(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function Ct(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&Ct(e.object)}var Tt=g`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});function Pt(e,t){let[r,n]="string"==typeof t?[t,{}]:t,i=Object.keys(n),s=0===i.length;return e.some((e=>{if("string"==typeof e)return s&&e===r;{let[t,s]=e;if(t!==r)return!1;for(let e of i)if(s[e]!==n[e])return!1;return!0}}))}function At(e,t,r){let n=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return n&&Array.isArray(n)&&n.length>1?n[1][r]:null}var Ft=["minimal","fsharp","hack","smart"],_t=["^^","@@","^","%","#"],It={estree:e=>class extends e{parse(){let e=b(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(b)),e}parseRegExpLiteral({pattern:e,flags:t}){let r=null;try{r=new RegExp(e,t)}catch{}let n=this.estreeParseLiteral(r);return n.regex={pattern:e,flags:t},n}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}let r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r}parseDecimalLiteral(e){let t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let t=e.value;delete e.value,t.type="Literal",t.raw=t.extra.raw,t.value=t.extra.expressionValue;let r=e;return r.type="ExpressionStatement",r.expression=t,r.directive=t.extra.rawValue,delete t.extra,r}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,r,n,i){super.parseBlockBody(e,t,r,n,i);let s=e.directives.map((e=>this.directiveToStmt(e)));e.body=s.concat(e.body),delete e.directives}pushClassMethod(e,t,r,n,i,s){this.parseMethod(t,r,n,i,s,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let t=super.getPrivateNameSV(e);return delete e.id,e.name=t,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){let r=super.parseLiteral(e,t);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(e,t,r=!1){super.parseFunctionBody(e,t,r),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,r,n,i,s,o=!1){let a=this.startNode();return a.kind=e.kind,a=super.parseMethod(a,t,r,n,i,s,o),a.type="FunctionExpression",delete a.kind,e.value=a,"ClassPrivateMethod"===s&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return"Literal"===e.type?"constructor"===e.value:super.nameIsConstructor(e)}parseClassProperty(...e){let t=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")&&(t.type="PropertyDefinition"),t}parseClassPrivateProperty(...e){let t=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")&&(t.type="PropertyDefinition",t.computed=!1),t}parseObjectMethod(e,t,r,n,i){let s=super.parseObjectMethod(e,t,r,n,i);return s&&(s.type="Property","method"===s.kind&&(s.kind="init"),s.shorthand=!1),s}parseObjectProperty(e,t,r,n){let i=super.parseObjectProperty(e,t,r,n);return i&&(i.kind="init",i.type="Property"),i}isValidLVal(e,t,r){return"Property"===e?"value":super.isValidLVal(e,t,r)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(null!=e&&this.isObjectProperty(e)){let{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,r){"Property"!==e.type||"get"!==e.kind&&"set"!==e.kind?"Property"===e.type&&e.method?this.raise(y.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,r):this.raise(y.PatternHasAccessor,e.key)}finishCallExpression(e,t){let r=super.finishCallExpression(e,t);var n,i;return"Import"===r.callee.type&&(r.type="ImportExpression",r.source=r.arguments[0],(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(r.options=null!=(n=r.arguments[1])?n:null,r.attributes=null!=(i=r.arguments[1])?i:null),delete r.arguments,delete r.callee),r}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){let r=this.state.lastTokStartLoc,n=super.parseExport(e,t);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":1===n.specifiers.length&&"ExportNamespaceSpecifier"===n.specifiers[0].type&&(n.type="ExportAllDeclaration",n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var i;let{declaration:e}=n;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(i=e.decorators)?void 0:i.length)>0&&e.start===n.start&&this.resetStartLocation(n,r)}}return n}parseSubscript(e,t,r,n){let i=super.parseSubscript(e,t,r,n);if(n.optionalChainMember){if(("OptionalMemberExpression"===i.type||"OptionalCallExpression"===i.type)&&(i.type=i.type.substring(8)),n.stop){let e=this.startNodeAtNode(i);return e.expression=i,this.finishNode(e,"ChainExpression")}}else("MemberExpression"===i.type||"CallExpression"===i.type)&&(i.optional=!1);return i}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)}finishNodeAt(e,t,r){return b(super.finishNodeAt(e,t,r))}resetStartLocation(e,t){super.resetStartLocation(e,t),b(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),b(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(dt.UnterminatedJsxContent,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?void(60===r&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(r)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(141,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:Te(r)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let t,r=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===r&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,t}jsxReadString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(y.UnterminatedString,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):Te(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,this.state.pos++),this.finishToken(133,t)}jsxReadEntity(){let e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);let t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,r=!1;for(;t++<10&&this.state.pos<this.length&&!(r=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(r){let t;if(this.input.slice(e,this.state.pos),++this.state.pos,t)return t}}return this.state.pos=e,"&"}jsxReadWord(){let e,t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(oe(e)||45===e);this.finishToken(140,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(140)?e.name=this.state.value:U(this.state.type)?e.name=Y(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){let e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;let r=this.startNodeAt(e);return r.namespace=t,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){let e=this.state.startLoc,t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){let r=this.startNodeAt(e);r.object=t,r.property=this.jsxParseIdentifier(),t=this.finishNode(r,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(w.brace),this.next(),e=this.jsxParseExpressionContainer(e,w.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(dt.AttributeIsEmpty,e),e;case 142:case 133:return this.parseExprAtom();default:throw this.raise(dt.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(w.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{let t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(w.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(w.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){let t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){let t=[];for(;!this.match(56)&&!this.match(143);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(143),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){let t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(143),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){let t=this.startNodeAt(e),r=[],n=this.jsxParseOpeningElementAt(e),i=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 142:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break e}r.push(this.jsxParseElementAt(e));break;case 141:r.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let e=this.startNode();this.setContext(w.brace),this.next(),this.match(21)?r.push(this.jsxParseSpreadChild(e)):r.push(this.jsxParseExpressionContainer(e,w.j_expr));break}default:this.unexpected()}ft(n)&&!ft(i)&&null!==i?this.raise(dt.MissingClosingTagFragment,i):(!ft(n)&&ft(i)||!ft(n)&&!ft(i)&&mt(i.name)!==mt(n.name))&&this.raise(dt.MissingClosingTagElement,i,{openingTagName:mt(n.name)})}if(ft(n)?(t.openingFragment=n,t.closingFragment=i):(t.openingElement=n,t.closingElement=i),t.children=r,this.match(47))throw this.raise(dt.UnwrappedAdjacentJSXElements,this.state.startLoc);return ft(n)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(142)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let t=this.curContext();if(t!==w.j_expr){if(t===w.j_oTag||t===w.j_cTag){if(se(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(143);if((34===e||39===e)&&t===w.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(142);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){let{context:t,type:r}=this.state;if(56===r&&142===e)t.splice(-2,2,w.j_cTag),this.state.canStartJSXElement=!1;else if(142===r)t.push(w.j_oTag);else if(143===r){let r=t[t.length-1];r===w.j_oTag&&56===e||r===w.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===w.j_expr):(this.setContext(w.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=function(e){return $[e]}(r)}},flow:e=>class extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return be}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){133!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){let t=pt.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}super.addComment(e)}flowParseTypeInitialiser(e){let t=this.state.inType;this.state.inType=!0,this.expect(e||14);let r=this.flowParseType();return this.state.inType=t,r}flowParsePredicate(){let e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(ut.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,r=null;return this.match(54)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(r=this.flowParsePredicate())),[t,r]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let t=e.id=this.parseIdentifier(),r=this.startNode(),n=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);let i=this.flowParseFunctionTypeParams();return r.params=i.params,r.rest=i.rest,r.this=i._this,this.expect(11),[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(ut.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(133)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let t=e.body=this.startNode(),r=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(ut.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(e)):(this.expectContextual(125,ut.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),r.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let n=null,i=!1;return r.forEach((e=>{!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(i&&this.raise(ut.DuplicateDeclareModuleExports,e),"ES"===n&&this.raise(ut.AmbiguousDeclareModuleKind,e),n="CommonJS",i=!0):("CommonJS"===n&&this.raise(ut.AmbiguousDeclareModuleKind,e),n="ES")})),e.kind=n||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){let e=this.state.value;throw this.raise(ut.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:ht[e]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t}flowParseDeclareOpaqueType(e){this.next();let t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(ut.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,r){lt.has(e)&&this.raise(r?ut.AssignReservedType:ut.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){let t=this.state.startLoc,r=this.startNode(),n=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return r.name=i.name,r.variance=n,r.bound=i.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):e&&this.raise(ut.MissingTypeParamDefault,t),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let r=!1;do{let e=this.flowParseTypeParameter(r);t.params.push(e),e.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);let r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=r,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,r){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){let r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:r,allowProto:n,allowInexact:i}){let s=this.state.inType;this.state.inType=!0;let o=this.startNode();o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let a,l,u=!1;for(t&&this.match(6)?(this.expect(6),a=9,l=!0):(this.expect(5),a=8,l=!1),o.exact=l;!this.match(a);){let t=!1,s=null,a=null,c=this.startNode();if(n&&this.isContextual(118)){let t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),s=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),t=!0)}let h=this.flowParseVariance();if(this.eat(0))null!=s&&this.unexpected(s),this.eat(0)?(h&&this.unexpected(h.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(c,t))):o.indexers.push(this.flowParseObjectTypeIndexer(c,t,h));else if(this.match(10)||this.match(47))null!=s&&this.unexpected(s),h&&this.unexpected(h.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(c,t));else{let e="init";(this.isContextual(99)||this.isContextual(104))&&W(this.lookahead().type)&&(e=this.state.value,this.next());let n=this.flowParseObjectTypeProperty(c,t,s,h,e,r,i??!l);null===n?(u=!0,a=this.state.lastTokStartLoc):o.properties.push(n)}this.flowObjectTypeSemicolon(),a&&!this.match(8)&&!this.match(9)&&this.raise(ut.UnexpectedExplicitInexactInObject,a)}this.expect(a),r&&(o.inexact=u);let c=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=s,c}flowParseObjectTypeProperty(e,t,r,n,i,s,o){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(s?o||this.raise(ut.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ut.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(ut.InexactVariance,n),null):(s||this.raise(ut.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=r&&this.unexpected(r),n&&this.raise(ut.SpreadVariance,n),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=i;let o=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=r&&this.unexpected(r),n&&this.unexpected(n.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),("get"===i||"set"===i)&&this.flowCheckGetterSetterParams(e),!s&&"constructor"===e.key.name&&e.value.this&&this.raise(ut.ThisParamBannedInConstructor,e.value.this)):("init"!==i&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=n),e.optional=o,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let t="get"===e.kind?0:1,r=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?ut.GetterMayNotHaveThisParam:ut.SetterMayNotHaveThisParam,e.value.this),r!==t&&this.raise("get"===e.kind?y.BadGetterArity:y.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(y.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);let r=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let t=this.startNodeAt(e);t.qualification=r,t.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(t,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,t){let r=this.startNodeAt(e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,r=!1,n=null,i=this.startNode(),s=this.lookahead(),o=78===this.state.type;return 14===s.type||17===s.type?(o&&!e&&this.raise(ut.ThisParamMustBeFirst,i),t=this.parseIdentifier(o),this.eat(17)&&(r=!0,o&&this.raise(ut.ThisParamMayNotBeOptional,i)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),i.name=t,i.optional=r,i.typeAnnotation=n,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){let t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let t=null,r=null;for(this.match(78)&&(r=this.flowParseFunctionTypeParam(!0),r.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:r}}flowIdentToTypeAnnotation(e,t,r){switch(r.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(r.name),this.flowParseGenericType(e,r)}}flowParsePrimaryType(){let e,t,r=this.state.startLoc,n=this.startNode(),i=!1,s=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,t=this.flowParseTupleType(),this.state.noAnonFunctionType=s,t;case 47:{let t=this.startNode();return t.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),e=this.flowParseFunctionTypeParams(),t.params=e.params,t.rest=e.rest,t.this=e._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),this.finishNode(t,"FunctionTypeAnnotation")}case 10:{let r=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Z(this.state.type)||this.match(78)){let e=this.lookahead().type;i=17!==e&&14!==e}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,t=this.flowParseType(),this.state.noAnonFunctionType=s,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),t;this.eat(12)}return e=t?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(t)]):this.flowParseFunctionTypeParams(),r.params=e.params,r.rest=e.rest,r.this=e._this,this.expect(11),this.expect(19),r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation")}case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return n.value=this.match(85),this.next(),this.finishNode(n,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",n);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",n);throw this.raise(ut.UnexpectedSubtractionOperand,this.state.startLoc)}return void this.unexpected();case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(n,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(n,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(n,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(n,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(U(this.state.type)){let e=Y(this.state.type);return this.next(),super.createIdentifier(n,e)}if(Z(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,n,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,t=this.flowParsePrimaryType(),r=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let n=this.startNodeAt(e),i=this.eat(18);r=r||i,this.expect(0),!i&&this.match(3)?(n.elementType=t,this.next(),t=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=t,n.indexType=this.flowParseType(),this.expect(3),r?(n.optional=i,t=this.finishNode(n,"OptionalIndexedAccessType")):t=this.finishNode(n,"IndexedAccessType"))}return t}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){let e=this.startNode();this.eat(43);let t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){let e=this.state.inType;this.state.inType=!0;let t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){let e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){let t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,t,r=!1){t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,r))):super.parseFunctionBody(e,!1,r)}parseFunctionBodyAndFinish(e,t,r=!1){if(this.match(14)){let t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,r)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(q(this.lookahead().type)){let e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}let t=super.parseStatementLike(e);return void 0===this.flowPragma&&!this.isValidDirective(t)&&(this.flowPragma=null),t}parseExpressionStatement(e,t,r){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||Z(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(Z(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){let{type:e}=this.state;return V(e)||this.shouldParseEnums()&&126===e?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return V(e)||this.shouldParseEnums()&&126===e?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(r),e}this.expect(17);let n=this.state.clone(),i=this.state.noArrowAt,s=this.startNodeAt(t),{consequent:o,failed:a}=this.tryParseConditionalConsequent(),[l,u]=this.getArrowLikeExpressions(o);if(a||u.length>0){let e=[...i];if(u.length>0){this.state=n,this.state.noArrowAt=e;for(let t=0;t<u.length;t++)e.push(u[t].start);({consequent:o,failed:a}=this.tryParseConditionalConsequent()),[l,u]=this.getArrowLikeExpressions(o)}a&&l.length>1&&this.raise(ut.AmbiguousConditionalArrow,n.startLoc),a&&1===l.length&&(this.state=n,e.push(l[0].start),this.state.noArrowAt=e,({consequent:o,failed:a}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=i,this.expect(14),s.test=e,s.consequent=o,s.alternate=this.forwardNoArrowParamsConversionAt(s,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(s,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){let r=[e],n=[];for(;0!==r.length;){let e=r.pop();"ArrowFunctionExpression"===e.type&&"BlockStatement"!==e.body.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):n.push(e),r.push(e.body)):"ConditionalExpression"===e.type&&(r.push(e.consequent),r.push(e.alternate))}return t?(n.forEach((e=>this.finishArrowValidation(e))),[n,[]]):function(e,t){let r=[],n=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?r:n).push(e[i]);return[r,n]}(n,(e=>e.params.every((e=>this.isAssignable(e,!0)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let r;return this.state.noArrowParamsConversionAt.includes(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r}parseParenItem(e,t){let r=super.parseParenItem(e,t);if(this.eat(17)&&(r.optional=!0,this.resetEndLocation(e)),this.match(14)){let e=this.startNodeAt(t);return e.expression=r,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,"TypeCastExpression")}return r}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";let t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(131)){e.exportKind="type";let t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(129)){e.exportKind="type";let t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.shouldParseEnums()&&this.isContextual(126)){e.exportKind="value";let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){let{startLoc:t}=this.state,r=super.maybeParseExportNamespaceSpecifier(e);return r&&"type"===e.exportKind&&this.unexpected(t),r}parseClassId(e,t,r){super.parseClassId(e,t,r),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,r){let{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,r),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(ut.DeclareClassElement,n):t.value&&this.raise(ut.DeclareClassFieldInitializer,t.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){let e=super.readWord1(),t="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(y.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){let t=this.input.charCodeAt(this.state.pos+1);123===e&&124===t?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(18,2):this.finishOp(17,1):function(e,t,r){return 64===e&&64===t&&se(r)}(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e):this.finishOp(62===e?48:47,1)}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){!t&&"AssignmentExpression"===e.type&&"TypeCastExpression"===e.left.type&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){let r=e[t];"TypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}toReferencedList(e,t){for(let n=0;n<e.length;n++){var r;let i=e[n];i&&"TypeCastExpression"===i.type&&(null==(r=i.extra)||!r.parenthesized)&&(e.length>1||!t)&&this.raise(ut.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,t,r,n){let i=super.parseArrayLike(e,t,r,n);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(e,t,r){return"TypeCastExpression"===e||super.isValidLVal(e,t,r)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,n,i,s){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,r,n,i,s),t.params&&i){let e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(ut.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&i&&t.value.params){let e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(ut.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,r,n){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,r,n)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();let t=e.implements=[];do{let e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let t=this.getObjectOrClassMethodParams(e);if(t.length>0){let r=t[0];this.isThisParam(r)&&"get"===e.kind?this.raise(ut.GetterMayNotHaveThisParam,r):this.isThisParam(r)&&this.raise(ut.SetterMayNotHaveThisParam,r)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,r,n,i,s,o){let a;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!s&&(a=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let l=super.parseObjPropValue(e,t,r,n,i,s,o);return a&&((l.value||l).typeParameters=a),l}parseAssignableListItemTypes(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(ut.PatternIsOptional,e),this.isThisParam(e)&&this.raise(ut.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(ut.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(ut.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){let r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(ut.TypeBeforeInitializer,r.typeAnnotation),r}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(ut.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,r){t.local=ct(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;let t=this.lookaheadCharCode();return 123===t||42===t}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,n){if(super.applyImportPhase(e,t,r,n),t){if(!r&&this.match(65))return;e.exportKind="type"===r?r:"value"}else"type"===r&&this.match(55)&&this.unexpected(),e.importKind="type"===r||"typeof"===r?r:"value"}parseImportSpecifier(e,t,r,n,i){let s=e.imported,o=null;"Identifier"===s.type&&("type"===s.name?o="type":"typeof"===s.name&&(o="typeof"));let a=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let t=this.parseIdentifier(!0);null===o||q(this.state.type)?(e.imported=s,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=o,e.local=st(t))}else{if(null!==o&&q(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=o;else{if(t)throw this.raise(y.ImportBindingIsString,e,{importName:s.value});e.imported=s,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(a=!0,e.local=st(e.imported))}let l=ct(e);return r&&l&&this.raise(ut.ImportTypeShorthandOnlyInPureImport,e),(r||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),a&&!r&&!l&&this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){let r=e.kind;"get"!==r&&"set"!==r&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var r;let n,i=null;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(i=this.state.clone(),n=this.tryParse((()=>super.parseMaybeAssign(e,t)),i),!n.error)return n.node;let{context:r}=this.state,s=r[r.length-1];(s===w.j_oTag||s===w.j_expr)&&r.pop()}if(null!=(r=n)&&r.error||this.match(47)){var s,o;i=i||this.state.clone();let r,a=this.tryParse((n=>{var i;r=this.flowParseTypeParameterDeclaration();let s=this.forwardNoArrowParamsConversionAt(r,(()=>{let n=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(n,r),n}));null!=(i=s.extra)&&i.parenthesized&&n();let o=this.maybeUnwrapTypeCastExpression(s);return"ArrowFunctionExpression"!==o.type&&n(),o.typeParameters=r,this.resetStartLocationFromNode(o,r),s}),i),l=null;if(a.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(a.node).type){if(!a.error&&!a.aborted)return a.node.async&&this.raise(ut.UnexpectedTypeParameterBeforeAsyncArrowFunction,r),a.node;l=a.node}if(null!=(s=n)&&s.node)return this.state=n.failState,n.node;if(l)return this.state=a.failState,l;throw null!=(o=n)&&o.thrown?n.error:a.thrown?a.error:this.raise(ut.UnexpectedTokenAfterTypeParameter,r)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse((()=>{let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r}));if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){this.state.noArrowParamsConversionAt.includes(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,r,n=!0){if(!r||!this.state.noArrowParamsConversionAt.includes(e.start)){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(ut.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,r,n)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.state.start))}parseSubscripts(e,t,r){if("Identifier"===e.type&&"async"===e.name&&this.state.noArrowAt.includes(t.index)){this.next();let r=this.startNodeAt(t);r.callee=e,r.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(r,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){let n=this.state.clone(),i=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),n);if(!i.error&&!i.aborted)return i.node;let s=this.tryParse((()=>super.parseSubscripts(e,t,r)),n);if(s.node&&!s.error)return s.node;if(i.node)return this.state=i.failState,i.node;if(s.node)return this.state=s.failState,s.node;throw i.error||s.error}return super.parseSubscripts(e,t,r)}parseSubscript(e,t,r,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,r)return n.stop=!0,e;this.next();let i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11,!1),i.optional=!0,this.finishCallExpression(i,!0)}if(!r&&this.shouldParseTypes()&&this.match(47)){let r=this.startNodeAt(t);r.callee=e;let i=this.tryParse((()=>(r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),r.arguments=super.parseCallExpressionArguments(11,!1),n.optionalChainMember&&(r.optional=!1),this.finishCallExpression(r,n.optionalChainMember))));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){let t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){let t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,t){let r=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(ut.UnterminatedFlowComment,this.state.curPosition()),r}skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/");{if(this.state.hasFlowComment)throw this.raise(ut.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0)}}skipFlowComment(){let{pos:e}=this.state,t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;let r=this.input.charCodeAt(t+e),n=this.input.charCodeAt(t+e+1);return 58===r&&58===n?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==n&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(y.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(ut.EnumBooleanMemberNotInitialized,e,{memberName:r,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?ut.EnumInvalidMemberInitializerSymbolType:ut.EnumInvalidMemberInitializerPrimaryType:ut.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(ut.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(ut.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){let e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{let r=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 133:{let r=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 85:case 86:{let r=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,r){let{explicitType:n}=t;null!==n&&n!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){let r=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}let s=this.startNode(),{id:o,init:a}=this.flowEnumMemberRaw(),l=o.name;if(""===l)continue;/^[a-z]/.test(l)&&this.raise(ut.EnumInvalidMemberName,o,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:e}),r.has(l)&&this.raise(ut.EnumDuplicateMemberName,o,{memberName:l,enumName:e}),r.add(l);let u={enumName:e,explicitType:t,memberName:l};switch(s.id=o,a.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(a.loc,u,"boolean"),s.init=a.value,n.booleanMembers.push(this.finishNode(s,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(a.loc,u,"number"),s.init=a.value,n.numberMembers.push(this.finishNode(s,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(a.loc,u,"string"),s.init=a.value,n.stringMembers.push(this.finishNode(s,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(a.loc,u);case"none":switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(a.loc,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(a.loc,u);break;default:n.defaultedMembers.push(this.finishNode(s,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:n,hasUnknownMembers:i}}flowEnumStringMembers(e,t,{enumName:r}){if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(let t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:r});return t}for(let e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:r});return e}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!Z(this.state.type))throw this.raise(ut.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:t}=this.state;return this.next(),"boolean"!==t&&"number"!==t&&"string"!==t&&"symbol"!==t&&this.raise(ut.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){let r=t.name,n=t.loc.start,i=this.flowEnumParseExplicitType({enumName:r});this.expect(5);let{members:s,hasUnknownMembers:o}=this.flowEnumMembers({enumName:r,explicitType:i});switch(e.hasUnknownMembers=o,i){case"boolean":return e.explicitType=!0,e.members=s.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=s.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(s.stringMembers,s.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=s.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let i=s.booleanMembers.length,o=s.numberMembers.length,a=s.stringMembers.length,l=s.defaultedMembers.length;if(!(i||o||a||l))return t();if(!i&&!o)return e.members=this.flowEnumStringMembers(s.stringMembers,s.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!o&&!a&&i>=l){for(let e of s.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name});return e.members=s.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!i&&!a&&o>=l){for(let e of s.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name});return e.members=s.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(ut.EnumInconsistentMemberValues,n,{enumName:r}),t()}}}flowParseEnumDeclaration(e){let t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){let e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){let t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class extends e{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:vt.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:vt.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:vt.InvalidModifierOnTypeParameter})}getScopeHandler(){return yt}tsIsIdentifier(){return Z(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,t){if(!Z(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;let r=this.state.value;if(e.includes(r)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:r,errorTemplate:n=vt.InvalidModifierOnTypeMember},i){let s=(e,t,r,n)=>{t===r&&i[n]&&this.raise(vt.InvalidModifiersOrder,e,{orderedModifiers:[r,n]})},o=(e,t,r,n)=>{(i[r]&&t===n||i[n]&&t===r)&&this.raise(vt.IncompatibleModifiers,e,{modifiers:[r,n]})};for(;;){let{startLoc:a}=this.state,l=this.tsParseModifier(e.concat(t??[]),r);if(!l)break;wt(l)?i.accessibility?this.raise(vt.DuplicateAccessibilityModifier,a,{modifier:l}):(s(a,l,l,"override"),s(a,l,l,"static"),s(a,l,l,"readonly"),i.accessibility=l):Dt(l)?(i[l]&&this.raise(vt.DuplicateModifier,a,{modifier:l}),i[l]=!0,s(a,l,"in","out")):(hasOwnProperty.call(i,l)?this.raise(vt.DuplicateModifier,a,{modifier:l}):(s(a,l,"static","readonly"),s(a,l,"static","override"),s(a,l,"override","readonly"),s(a,l,"abstract","override"),o(a,l,"declare","override"),o(a,l,"static","abstract")),i[l]=!0),null!=t&&t.includes(l)&&this.raise(n,a,{modifier:l})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){let r=[];for(;!this.tsIsListTerminator(e);)r.push(t());return r}tsParseDelimitedList(e,t,r){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,r))}tsParseDelimitedListWorker(e,t,r,n){let i=[],s=-1;for(;!this.tsIsListTerminator(e);){s=-1;let n=t();if(null==n)return;if(i.push(n),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(12))}s=this.state.lastTokStartLoc.index}return n&&(n.value=s),i}tsParseBracketedList(e,t,r,n,i){n||(r?this.expect(0):this.expect(47));let s=this.tsParseDelimitedList(e,t,i);return r?this.expect(3):this.expect(48),s}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(vt.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(e.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(e.options=super.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e=!0){let t=this.parseIdentifier(e);for(;this.eat(16);){let r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdentifier(e),t=this.finishNode(r,"TSQualifiedName")}return t}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){let t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let t=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();let r={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,r),0===t.params.length&&this.raise(vt.EmptyTypeParameters,t),-1!==r.value&&this.addExtra(t,"trailingComma",r.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){let r=19===e;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(r||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let t of e){let{type:e}=t;("AssignmentPattern"===e||"TSParameterProperty"===e)&&this.raise(vt.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!Z(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);let t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);let r=e;if(this.match(10)||this.match(47)){t&&this.raise(vt.ReadonlyForMethodSignature,e);let n=r;n.kind&&this.match(47)&&this.raise(vt.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let i="parameters",s="typeAnnotation";if("get"===n.kind)n[i].length>0&&(this.raise(y.BadGetterArity,this.state.curPosition()),this.isThisParam(n[i][0])&&this.raise(vt.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===n.kind){if(1!==n[i].length)this.raise(y.BadSetterArity,this.state.curPosition());else{let e=n[i][0];this.isThisParam(e)&&this.raise(vt.AccesorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===e.type&&e.optional&&this.raise(vt.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===e.type&&this.raise(vt.SetAccesorCannotHaveRestParameter,this.state.curPosition())}n[s]&&this.raise(vt.SetAccesorCannotHaveReturnType,n[s])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}{let e=r;t&&(e.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){let t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!(!this.match(0)||(this.next(),!this.tsIsIdentifier()))&&(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){let e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach((e=>{let{type:r}=e;t&&"TSRestType"!==r&&"TSOptionalType"!==r&&!("TSNamedTupleMember"===r&&e.optional)&&this.raise(vt.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===r&&e.optional||"TSOptionalType"===r)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let e,t,r,n,{startLoc:i}=this.state,s=this.eat(21),o=q(this.state.type)?this.lookaheadCharCode():null;if(58===o)e=!0,r=!1,t=this.parseIdentifier(!0),this.expect(14),n=this.tsParseType();else if(63===o){r=!0;let i=this.state.startLoc,s=this.state.value,o=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(e=!0,t=this.createIdentifier(this.startNodeAt(i),s),this.expect(17),this.expect(14),n=this.tsParseType()):(e=!1,n=o,this.expect(17))}else n=this.tsParseType(),r=this.eat(17),e=this.eat(14);if(e){let e;t?(e=this.startNodeAtNode(t),e.optional=r,e.label=t,e.elementType=n,this.eat(17)&&(e.optional=!0,this.raise(vt.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAtNode(n),e.optional=r,this.raise(vt.InvalidTupleMemberLabel,n),e.label=n,e.elementType=this.tsParseType()),n=this.finishNode(e,"TSNamedTupleMember")}else if(r){let e=this.startNodeAtNode(n);e.typeAnnotation=n,n=this.finishNode(e,"TSOptionalType")}if(s){let e=this.startNodeAt(i);e.typeAnnotation=n,n=this.finishNode(e,"TSRestType")}return n}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){let r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,r))),this.finishNode(r,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){let e=this.startNode(),t=this.lookahead();return 134!==t.type&&135!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(Z(e)||88===e||84===e){let t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){let e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{let t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(){let e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(vt.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(115);let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return function(e){return e>=121&&e<=123}(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(e,t,r){let n=this.startNode(),i=this.eat(r),s=[];do{s.push(t())}while(this.eat(r));return 1!==s.length||i?(n.types=s,this.finishNode(n,e)):s[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Z(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{let t=this.startNode();this.expect(e);let r=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(r.parameterName=e,r.asserts=!0,r.typeAnnotation=null,e=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(e,r),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return n?(r.parameterName=this.parseIdentifier(),r.asserts=n,r.typeAnnotation=null,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);let s=this.tsParseTypeAnnotation(!1);return r.parameterName=i,r.typeAnnotation=s,r.asserts=n,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;let e=this.state.containsEsc;return this.next(),!(!Z(this.state.type)&&!this.match(78)||(e&&this.raise(y.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),0))}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType((()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){bt(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(vt.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()))),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let t=this.state.startLoc,r=this.tsParseDelimitedList("HeritageClauseElement",(()=>{let e=this.startNode();return e.expression=this.tsParseEntityName(),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}));return r.length||this.raise(vt.EmptyHeritageClauseType,t,{token:e}),r}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),Z(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(vt.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType((()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&16!==this.lookahead().type){let e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){let t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType((()=>(this.expect(e),this.tsParseType())))}tsNextThenParseType(){return this.tsInType((()=>(this.next(),this.tsParseType())))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){let t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.global=!0,e.id=this.parseIdentifier()):this.match(133)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,r){e.isExport=r||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let n=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==n.type&&this.raise(vt.ImportAliasHasImportType,n),e.moduleReference=n,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let t=this.state.clone(),r=e();return this.state=t,r}tsTryParseAndCatch(e){let t=this.tryParse((t=>e()||t()));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){let t=this.state.clone(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,r=this.state.type;return this.isContextual(100)&&(r=74,t="let"),this.tsInAmbientContext((()=>{switch(r){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,t||this.state.value,!0));case 129:{let t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(Z(r))return this.tsParseDeclaration(e,this.state.value,!0,null)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,r){switch(t.name){case"declare":{let t=this.tsTryParseDeclare(e);return t&&(t.declare=!0),t}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let r=e;return r.global=!0,r.id=t,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,r)}}tsParseDeclaration(e,t,r,n){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||Z(this.state.type)))return this.tsParseAbstractDeclaration(e,n);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(e);if(Z(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&Z(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&Z(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let r=this.tsTryParseAndCatch((()=>{let t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t}));return this.state.maybeInArrowParameters=t,r?super.parseArrowExpression(r,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length?this.raise(vt.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===w.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return function(e){return e>=124&&e<=130}(this.state.type)}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){let r=this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let i=n.accessibility,s=n.override,o=n.readonly;!(4&e)&&(i||o||s)&&this.raise(vt.UnexpectedParameterModifier,r);let a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a,e);let l=this.parseMaybeDefault(a.loc.start,a);if(i||o||s){let e=this.startNodeAt(r);return t.length&&(e.decorators=t),i&&(e.accessibility=i),o&&(e.readonly=o),s&&(e.override=s),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(vt.UnsupportedParameterPropertyKind,e),e.parameter=l,this.finishNode(e,"TSParameterProperty")}return t.length&&(a.decorators=t),l}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(vt.PatternIsOptional,t)}setArrowFunctionParameters(e,t,r){super.setArrowFunctionParameters(e,t,r),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,r=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let n="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,n):"TSDeclareFunction"===n&&this.state.isAmbientContext&&(this.raise(vt.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,n,r):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,r))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(vt.UnexpectedTypeAnnotation,e.typeAnnotation)}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,r,n){let i=super.parseArrayLike(e,t,r,n);return"ArrayExpression"===i.type&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,t,r,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let r=this.startNodeAt(t);return r.expression=e,this.finishNode(r,"TSNonNullExpression")}let i=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(r)return n.stop=!0,e;n.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let s,o=this.tsTryParseAndCatch((()=>{if(!r&&this.atPossibleAsyncArrow(e)){let e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return e}let o=this.tsParseTypeArgumentsInExpression();if(!o)return;if(i&&!this.match(10))return void(s=this.state.curPosition());if(G(this.state.type)){let r=super.parseTaggedTemplateExpression(e,t,n);return r.typeParameters=o,r}if(!r&&this.eat(10)){let r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(r.arguments),r.typeParameters=o,n.optionalChainMember&&(r.optional=i),this.finishCallExpression(r,n.optionalChainMember)}let a=this.state.type;if(48===a||52===a||10!==a&&X(a)&&!this.hasPrecedingLineBreak())return;let l=this.startNodeAt(t);return l.expression=e,l.typeParameters=o,this.finishNode(l,"TSInstantiationExpression")}));if(s&&this.unexpected(s,10),o)return"TSInstantiationExpression"===o.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(vt.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),o}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){var t;super.parseNewCallee(e);let{callee:r}=e;"TSInstantiationExpression"===r.type&&(null==(t=r.extra)||!t.parenthesized)&&(e.typeParameters=r.typeParameters,e.callee=r.expression)}parseExprOp(e,t,r){let n;if(z(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){let i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(n&&this.raise(y.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(i,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,t,r)}return super.parseExprOp(e,t,r)}checkReservedWord(e,t,r,n){this.state.isAmbientContext||super.checkReservedWord(e,t,r,n)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(vt.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){let t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,n){super.applyImportPhase(e,t,r,n),t?e.exportKind="type"===r?"type":"value":e.importKind="type"===r||"typeof"===r?r:"value"}parseImport(e){if(this.match(133))return e.importKind="value",super.parseImport(e);let t;if(Z(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){let r=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,r);t=super.parseImportSpecifiersAndAfter(e,r)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(vt.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){this.next();let t=e,r=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?r=this.parseMaybeImportPhase(t,!1):t.importKind="value",this.tsParseImportEqualsDeclaration(t,r,!0)}if(this.eat(29)){let t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExportAssignment")}if(this.eatContextual(93)){let t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,r=!1){let{isAmbientContext:n}=this.state,i=super.parseVarStatement(e,t,r||n);if(!n)return i;for(let{id:e,init:r}of i.declarations)r&&("const"!==t||e.typeAnnotation?this.raise(vt.InitializerNotAllowedInAmbientContext,r):kt(r,this.hasPlugin("estree"))||this.raise(vt.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,r));return i}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){let e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>wt(t)?e.accessibility===t:!!e[t]))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,t,r){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:vt.InvalidModifierOnTypeParameterPositions},t);let i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,n)&&this.raise(vt.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,r,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,r,n){let i=this.tsTryParseIndexSignature(t);if(i)return e.body.push(i),t.abstract&&this.raise(vt.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(vt.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(vt.IndexSignatureHasDeclare,t),void(t.override&&this.raise(vt.IndexSignatureHasOverride,t));!this.state.inAbstractClass&&t.abstract&&this.raise(vt.NonAbstractClassHasAbstractMethod,t),t.override&&(r.hadSuperClass||this.raise(vt.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,r,n)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(vt.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(vt.ClassMethodHasDeclare,e)}parseExpressionStatement(e,t,r){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t,r):void 0)||super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,r){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,r);let n=this.tryParse((()=>super.parseConditional(e,t)));return n.node?(n.error&&(this.state=n.failState),n.node):(n.error&&super.setOptionalParametersError(r,n.error),e)}parseParenItem(e,t){let r=super.parseParenItem(e,t);if(this.eat(17)&&(r.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)));let t=this.state.startLoc,r=this.eatContextual(125);if(r&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(vt.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let n=Z(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?(("TSInterfaceDeclaration"===n.type||"TSTypeAliasDeclaration"===n.type||r)&&(e.exportKind="type"),r&&(this.resetStartLocation(n,t),n.declare=!0),n):null}parseClassId(e,t,r,n){if((!t||r)&&this.isContextual(113))return;super.parseClassId(e,t,r,e.declare?1024:8331);let i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(vt.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:t}=e;this.raise(vt.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(t.start,t.end)}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(vt.PrivateElementHasAbstract,e),e.accessibility&&this.raise(vt.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(vt.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,r,n,i,s){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&i&&this.raise(vt.ConstructorHasTypeParameters,o);let{declare:a=!1,kind:l}=t;a&&("get"===l||"set"===l)&&this.raise(vt.DeclareAccessor,t,{kind:l}),o&&(t.typeParameters=o),super.pushClassMethod(e,t,r,n,i,s)}pushClassPrivateMethod(e,t,r,n){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,r,n)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"!==e.type&&("MethodDefinition"===e.type&&!hasOwnProperty.call(e.value,"body")||super.declareClassPrivateMethodInScope(e,t))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,r,n,i,s,o){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);return a&&(e.typeParameters=a),super.parseObjPropValue(e,t,r,n,i,s,o)}parseFunctionParams(e,t){let r=this.tsTryParseTypeParameters(this.tsParseConstModifier);r&&(e.typeParameters=r),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var r,n,i,s,o;let a,l,u;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(a=this.state.clone(),l=this.tryParse((()=>super.parseMaybeAssign(e,t)),a),!l.error)return l.node;let{context:r}=this.state,n=r[r.length-1];(n===w.j_oTag||n===w.j_expr)&&r.pop()}if(!(null!=(r=l)&&r.error||this.match(47)))return super.parseMaybeAssign(e,t);(!a||a===this.state)&&(a=this.state.clone());let c,h=this.tryParse((r=>{var n,i;c=this.tsParseTypeParameters(this.tsParseConstModifier);let s=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==s.type||null!=(n=s.extra)&&n.parenthesized)&&r(),0!==(null==(i=c)?void 0:i.params.length)&&this.resetStartLocationFromNode(s,c),s.typeParameters=c,s}),a);if(!h.error&&!h.aborted)return c&&this.reportReservedArrowTypeParam(c),h.node;if(!l&&(bt(!this.hasPlugin("jsx")),u=this.tryParse((()=>super.parseMaybeAssign(e,t)),a),!u.error))return u.node;if(null!=(n=l)&&n.node)return this.state=l.failState,l.node;if(h.node)return this.state=h.failState,c&&this.reportReservedArrowTypeParam(c),h.node;if(null!=(i=u)&&i.node)return this.state=u.failState,u.node;throw(null==(s=l)?void 0:s.error)||h.error||(null==(o=u)?void 0:o.error)}reportReservedArrowTypeParam(e){var t;1===e.params.length&&!e.params[0].constraint&&(null==(t=e.extra)||!t.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(vt.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse((e=>{let t=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&e(),t}));if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,t){if(!(2&t))return e;this.eat(17)&&(e.optional=!0);let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(vt.UnexpectedTypeCastInParameter,e):this.raise(vt.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":!t&&"TSTypeCastExpression"===e.left.type&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,r){return((e,t)=>hasOwnProperty.call(e,t)&&e[t])({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSInstantiationExpression:"expression",TSAsExpression:(64!==r||!t)&&["expression",!0],TSSatisfiesExpression:(64!==r||!t)&&["expression",!0],TSTypeAssertion:(64!==r||!t)&&["expression",!0]},e)||super.isValidLVal(e,t,r)}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){let t=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let r=super.parseMaybeDecoratorArguments(e);return r.typeParameters=t,r}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){let r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(vt.TypeAnnotationAfterAssign,r.typeAnnotation),r}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){let r=e[t];"TSTypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every((e=>this.isAssignable(e,!0))):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let t=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let t=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?t+1:t}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:t,strict:r}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=r}}parseClass(e,t,r){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,r)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(vt.NonClassMethodPropertyHasAbstractModifer,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,r,n,i,s,o){let a=super.parseMethod(e,t,r,n,i,s,o);if(a.abstract&&(this.hasPlugin("estree")?a.value.body:a.body)){let{key:e}=a;this.raise(vt.AbstractMethodHasImplementation,a,{methodName:"Identifier"!==e.type||a.computed?`[${this.input.slice(e.start,e.end)}]`:e.name})}return a}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,r,n){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!1,r),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,r,n))}parseImportSpecifier(e,t,r,n,i){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!0,r),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,r,n,r?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,r){let n,i=t?"imported":"local",s=t?"local":"exported",o=e[i],a=!1,l=!0,u=o.loc.start;if(this.isContextual(93)){let e=this.parseIdentifier();if(this.isContextual(93)){let r=this.parseIdentifier();q(this.state.type)?(a=!0,o=e,n=t?this.parseIdentifier():this.parseModuleExportName(),l=!1):(n=r,l=!1)}else q(this.state.type)?(l=!1,n=t?this.parseIdentifier():this.parseModuleExportName()):(a=!0,o=e)}else q(this.state.type)&&(a=!0,t?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());a&&r&&this.raise(t?vt.TypeModifierIsUsedInTypeImports:vt.TypeModifierIsUsedInTypeExports,u),e[i]=o,e[s]=n,e[t?"importKind":"exportKind"]=a?"type":"value",l&&this.eatContextual(93)&&(e[s]=t?this.parseIdentifier():this.parseModuleExportName()),e[s]||(e[s]=st(e[i])),t&&this.checkIdentifier(e[s],a?4098:4096)}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,t=this.startNode();if(this.next(),Z(this.state.type)){let e=this.parseIdentifierName(),r=this.createIdentifier(t,e);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(144)){let t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let r=e;return(!r.expectedNode||!r.type)&&(r=this.finishNode(r,"Placeholder")),r.expectedNode=t,r}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(144,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,r,n){void 0!==e&&super.checkReservedWord(e,t,r,n)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,r){return"Placeholder"===e||super.isValidLVal(e,t,r)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){return!(!super.chStartsBindingIdentifier(e,t)&&144!==this.lookahead().type)}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var r;if("Placeholder"!==t.type||null!=(r=t.extra)&&r.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){let r=e;return r.label=this.finishPlaceholder(t,"Identifier"),this.next(),r.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(r,"LabeledStatement")}this.semicolon();let n=e;return n.name=t.name,this.finishPlaceholder(n,"Statement")}parseBlock(e,t,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,r)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,r){let n=t?"ClassDeclaration":"ClassExpression";this.next();let i=this.state.strict,s=this.parsePlaceholder("Identifier");if(s){if(!(this.match(81)||this.match(144)||this.match(5))){if(r||!t)return e.id=null,e.body=this.finishPlaceholder(s,"ClassBody"),this.finishNode(e,n);throw this.raise(Tt.ClassNameIsRequired,this.state.startLoc)}e.id=s}else this.parseClassId(e,t,r);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,i),this.finishNode(e,n)}parseExport(e,t){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(e,t);let n=e;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(r,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let i=this.startNode();return i.exported=r,n.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],super.parseExport(n,t)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(Y(144),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var r;return!(null==(r=e.specifiers)||!r.length)||super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){let{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter((e=>"Placeholder"===e.exported.type))),super.checkExport(e),e.specifiers=t}parseImport(e){let t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Tt.UnexpectedSpace,this.state.lastTokEndLoc)}}},Bt=Object.keys(It),Nt={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0},$t=class extends xt{checkProto(e,t,r,n){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return;let i=e.key;if("__proto__"===("Identifier"===i.type?i.name:i.value)){if(t)return void this.raise(y.RecordNoProto,i);r.used&&(n?null===n.doubleProtoLoc&&(n.doubleProtoLoc=i.loc.start):this.raise(y.DuplicateProto,i)),r.used=!0}}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}getExpression(){this.enterInitialScopes(),this.nextToken();let e=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd((()=>this.parseExpressionBase(t))):this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){let t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){let n=this.startNodeAt(t);for(n.expressions=[r];this.eat(12);)n.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t)))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMaybeAssign(e,t)))}setOptionalParametersError(e,t){var r;e.optionalParametersLoc=null!=(r=null==t?void 0:t.loc)?r:this.state.startLoc}parseMaybeAssign(e,t){let r,n=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let e=this.parseYield();return t&&(e=t.call(this,e,n)),e}e?r=!1:(e=new rt,r=!0);let{type:i}=this.state;(10===i||Z(i))&&(this.state.potentialArrowAt=this.state.start);let s=this.parseMaybeConditional(e);if(t&&(s=t.call(this,s,n)),(o=this.state.type)>=29&&o<=33){let t=this.startNodeAt(n),r=this.state.value;if(t.operator=r,this.match(29)){this.toAssignable(s,!0),t.left=s;let r=n.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else t.left=s;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(s,{in:this.finishNode(t,"AssignmentExpression")}),t}var o;return r&&this.checkExpressionErrors(e,!0),s}parseMaybeConditional(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprOps(e);return this.shouldExitDescending(n,r)?n:this.parseConditional(n,t,e)}parseConditional(e,t,r){if(this.eat(17)){let r=this.startNodeAt(t);return r.test=e,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(n,r)?n:this.parseExprOp(n,t,-1)}parseExprOp(e,t,r){if(this.isPrivateName(e)){let t=this.getPrivateNameSV(e);(r>=z(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(y.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}let n=this.state.type;if((i=n)>=39&&i<=59&&(this.prodParam.hasIn||!this.match(58))){let i=z(n);if(i>r){if(39===n){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let s=this.startNodeAt(t);s.left=e,s.operator=this.state.value;let o=41===n||42===n,a=40===n;if(a&&(i=z(42)),this.next(),39===n&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(y.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);s.right=this.parseExprOpRightExpr(n,i);let l=this.finishNode(s,o||a?"LogicalExpression":"BinaryExpression"),u=this.state.type;if(a&&(41===u||42===u)||o&&40===u)throw this.raise(y.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,r)}}var i;return e}parseExprOpRightExpr(e,t){let r=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(y.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),r)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){let r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,57===e?t-1:t)}parseHackPipeBody(){var e;let{startLoc:t}=this.state,r=this.parseMaybeAssign();return c.has(r.type)&&!(null!=(e=r.extra)&&e.parenthesized)&&this.raise(y.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(y.PipeTopicUnused,t),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(y.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let r=this.state.startLoc,n=this.isContextual(96);if(n&&this.isAwaitAllowed()){this.next();let e=this.parseAwait(r);return t||this.checkExponentialAfterUnary(e),e}let i=this.match(34),s=this.startNode();if(o=this.state.type,L[o]){s.operator=this.state.value,s.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let r=this.match(89);if(this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&r){let e=s.argument;"Identifier"===e.type?this.raise(y.StrictDelete,s):this.hasPropertyAsPrivateName(e)&&this.raise(y.DeletePrivateField,s)}if(!i)return t||this.checkExponentialAfterUnary(s),this.finishNode(s,"UnaryExpression")}var o;let a=this.parseUpdate(s,i,e);if(n){let{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?X(e):X(e)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(y.AwaitNotInAsyncContext,r),this.parseAwait(r)}return a}parseUpdate(e,t,r){if(t){let t=e;return this.checkLVal(t.argument,{in:this.finishNode(t,"UpdateExpression")}),e}let n=this.state.startLoc,i=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return i;for(;34===this.state.type&&!this.canInsertSemicolon();){let e=this.startNodeAt(n);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,{in:i=this.finishNode(e,"UpdateExpression")})}return i}parseExprSubscripts(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprAtom(e);return this.shouldExitDescending(n,r)?n:this.parseSubscripts(n,t)}parseSubscripts(e,t,r){let n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,n),n.maybeAsyncArrow=!1}while(!n.stop);return e}parseSubscript(e,t,r,n){let{type:i}=this.state;if(!r&&15===i)return this.parseBind(e,t,r,n);if(G(i))return this.parseTaggedTemplateExpression(e,t,n);let s=!1;if(18===i){if(r&&(this.raise(y.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return n.stop=!0,e;n.optionalChainMember=s=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,n,s);{let r=this.eat(0);return r||s||this.eat(16)?this.parseMember(e,t,n,r,s):(n.stop=!0,e)}}parseMember(e,t,r,n,i){let s=this.startNodeAt(t);return s.object=e,s.computed=n,n?(s.property=this.parseExpression(),this.expect(3)):this.match(138)?("Super"===e.type&&this.raise(y.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),r.optionalChainMember?(s.optional=i,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")}parseBind(e,t,r,n){let i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,n){let i=this.state.maybeInArrowParameters,s=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(t);o.callee=e;let{maybeAsyncArrow:a,optionalChainMember:l}=r;a&&(this.expressionScope.enter(new Ge(2)),s=new rt),l&&(o.optional=n),o.arguments=n?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,o,s);let u=this.finishCallExpression(o,l);return a&&this.shouldParseAsyncArrow()&&!n?(r.stop=!0,this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),u=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),u)):(a&&(this.checkExpressionErrors(s,!0),this.expressionScope.exit()),this.toReferencedArguments(u)),this.state.maybeInArrowParameters=i,u}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){let n=this.startNodeAt(t);return n.tag=e,n.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(y.OptionalChainingNoTemplate,t),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),0===e.arguments.length||e.arguments.length>2)this.raise(y.ImportCallArity,e,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let t of e.arguments)"SpreadElement"===t.type&&this.raise(y.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r,n,i){let s=[],o=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){t&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(y.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),n&&this.addTrailingCommaExtraToNode(n),this.next();break}s.push(this.parseExprListItem(!1,i,r))}return this.state.inFSharpPipelineDirectBody=a,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(r=t.extra)?void 0:r.trailingCommaLoc),t.innerComments&&De(e,t.innerComments),t.callee.trailingComments&&De(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,r=null,{type:n}=this.state;switch(n){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):this.match(10)?this.options.createImportExpressions?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(y.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;let e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(y.UnsupportedBind,e)}case 138:return this.raise(y.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{let e=this.input.codePointAt(this.nextTokenStart());se(e)||62===e?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(Z(n)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();let e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,r=this.parseIdentifier();if(!t&&"async"===r.name&&!this.canInsertSemicolon()){let{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(r),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(r));if(Z(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r)):r;if(90===e)return this.resetPreviousNodeTrailingComments(r),this.parseDo(this.startNodeAtNode(r),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=i(this.state.endLoc,-1),this.parseTopicReference(r);this.unexpected()}parseTopicReference(e){let t=this.startNode(),r=this.state.startLoc,n=this.state.type;return this.next(),this.finishTopicReference(t,r,e,n)}finishTopicReference(e,t,r,n){if(this.testTopicReferenceConfiguration(r,t,n)){let n="smart"===r?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===r?y.PrimaryTopicNotAllowed:y.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,n)}throw this.raise(y.PipeTopicUnconfiguredToken,t,{token:Y(n)})}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Y(r)}]);case"smart":return 27===r;default:throw this.raise(y.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(et(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(y.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();let r=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=r,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(y.UnexpectedSuper,e):this.raise(y.SuperNotAllowed,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(y.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(i(this.state.startLoc,1)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t;let n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(y.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r}),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){let t=this.createIdentifier(this.startNodeAtNode(e),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(y.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let t=this.isContextual(105);if(t||this.unexpected(),this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(y.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}return this.parseMetaProperty(e,t,"meta")}parseLiteralAtNode(e,t,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(r.start,this.state.end)),r.value=e,this.next(),this.finishNode(r,t)}parseLiteral(e,t){let r=this.startNode();return this.parseLiteralAtNode(e,t,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let t=this.startNode();return this.addExtra(t,"raw",this.input.slice(t.start,this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,"RegExpLiteral")}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let t,r=this.state.startLoc;this.next(),this.expressionScope.enter(new Ge(1));let n=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let s,o,a=this.state.startLoc,l=[],u=new rt,c=!0;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,null===u.optionalParametersLoc?null:u.optionalParametersLoc),this.match(11)){o=this.state.startLoc;break}if(this.match(21)){let e=this.state.startLoc;if(s=this.state.startLoc,l.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else l.push(this.parseMaybeAssignAllowIn(u,this.parseParenItem))}let h=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=i;let p=this.startNodeAt(r);return e&&this.shouldParseArrow(l)&&(p=this.parseArrow(p))?(this.checkDestructuringPrivate(u),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(p,l,!1),p):(this.expressionScope.exit(),l.length||this.unexpected(this.state.lastTokStartLoc),o&&this.unexpected(o),s&&this.unexpected(s),this.checkExpressionErrors(u,!0),this.toReferencedListDeep(l,!0),l.length>1?(t=this.startNodeAt(a),t.expressions=l,this.finishNode(t,"SequenceExpression"),this.resetEndLocation(t,h)):t=l[0],this.wrapParenthesis(r,t))}wrapParenthesis(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let r=this.parseMetaProperty(e,t,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(y.UnexpectedNewTarget,r),r}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let t=this.match(83),r=this.parseNoCallExpr();e.callee=r,t&&("Import"===r.type||"ImportExpression"===r.type)&&this.raise(y.ImportCallNotNewExpression,r)}parseTemplateElement(e){let{start:t,startLoc:r,end:n,value:s}=this.state,o=t+1,a=this.startNodeAt(i(r,1));null===s&&(e||this.raise(y.InvalidEscapeSequenceTemplate,i(this.state.firstInvalidTemplateEscapePos,1)));let l=this.match(24),u=l?-1:-2,c=n+u;a.value={raw:this.input.slice(o,c).replace(/\r\n?/g,"\n"),cooked:null===s?null:s.slice(1,u)},a.tail=l,this.next();let h=this.finishNode(a,"TemplateElement");return this.resetEndLocation(h,i(this.state.lastTokEndLoc,u)),h}parseTemplate(e){let t=this.startNode(),r=this.parseTemplateElement(e),n=[r],i=[];for(;!r.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),n.push(r=this.parseTemplateElement(e));return t.expressions=i,t.quasis=n,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=Object.create(null),o=!0,a=this.startNode();for(a.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(a);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(n),this.checkProto(i,r,s,n)),r&&!this.isObjectProperty(i)&&"SpreadElement"!==i.type&&this.raise(y.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,"shorthand",!0),a.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let l="ObjectExpression";return t?l="ObjectPattern":r&&(l="RecordExpression"),this.finishNode(a,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(y.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());let r,n=this.startNode(),i=!1,s=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(r=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let a=this.state.containsEsc;if(this.parsePropertyName(n,e),!o&&!a&&this.maybeAsyncOrAccessorProp(n)){let{key:e}=n,t=e.name;"async"===t&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(e),o=this.eat(55),this.parsePropertyName(n)),("get"===t||"set"===t)&&(s=!0,this.resetPreviousNodeTrailingComments(e),n.kind=t,this.match(55)&&(o=!0,this.raise(y.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,r,o,i,!1,s,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;let r=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==r&&this.raise("get"===e.kind?y.BadGetterArity:y.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=n[n.length-1])?void 0:t.type)&&this.raise(y.BadSetterRestParameter,e)}parseObjectMethod(e,t,r,n,i){if(i){let r=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(r),r}if(r||t||this.match(10))return n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,r,n){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(n),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,st(e.key));else if(this.match(29)){let r=this.state.startLoc;null!=n?null===n.shorthandAssignLoc&&(n.shorthandAssignLoc=r):this.raise(y.InvalidCoverInitializedName,r),e.value=this.parseMaybeDefault(t,st(e.key))}else e.value=st(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,t,r,n,i,s,o){let a=this.parseObjectMethod(e,r,n,i,s)||this.parseObjectProperty(e,t,i,o);return a||this.unexpected(),a}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let r,{type:n,value:i}=this.state;if(q(n))r=this.parseIdentifier(!0);else switch(n){case 134:r=this.parseNumericLiteral(i);break;case 133:r=this.parseStringLiteral(i);break;case 135:r=this.parseBigIntLiteral(i);break;case 136:r=this.parseDecimalLiteral(i);break;case 138:{let e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(y.UnexpectedPrivateField,e),r=this.parsePrivateName();break}default:this.unexpected()}e.key=r,138!==n&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,n,i,s,o=!1){this.initFunction(e,r),e.generator=t,this.scope.enter(18|(o?64:0)|(i?32:0)),this.prodParam.enter(et(r,e.generator)),this.parseFunctionParams(e,n);let a=this.parseFunctionBodyAndFinish(e,s,!0);return this.prodParam.exit(),this.scope.exit(),a}parseArrayLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!r,n,s),this.state.inFSharpPipelineDirectBody=i,this.finishNode(s,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,n){this.scope.enter(6);let i=et(r,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,r);let s=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,n)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=s,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){this.toAssignableList(t,r,!1),e.params=t}parseFunctionBodyAndFinish(e,t,r=!1){return this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t,r=!1){let n=t&&!this.match(5);if(this.expressionScope.enter(Je()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let n=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(i=>{let s=!this.isSimpleParamList(e.params);i&&s&&this.raise(y.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);let o=!n&&this.state.strict;this.checkParams(e,!(this.state.strict||t||r||s),t,o),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,o)})),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,r,n=!0){let i=!t&&new Set,s={type:"FormalParameters"};for(let t of e.params)this.checkLVal(t,{in:s,binding:5,checkClashes:i,strictModeChanged:n})}parseExprList(e,t,r,n){let i=[],s=!0;for(;!this.eat(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}i.push(this.parseExprListItem(t,r))}return i}parseExprListItem(e,t,r){let n;if(this.match(12))e||this.raise(y.UnexpectedToken,this.state.curPosition(),{unexpected:","}),n=null;else if(this.match(21)){let e=this.state.startLoc;n=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),r||this.raise(y.UnexpectedArgumentPlaceholder,this.state.startLoc);let e=this.startNode();this.next(),n=this.finishNode(e,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return n}parseIdentifier(e){let t=this.startNode(),r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e){let t,{startLoc:r,type:n}=this.state;q(n)?t=this.state.value:this.unexpected();let i=n<=92;return e?i&&this.replaceToken(132):this.checkReservedWord(t,r,i,!1),this.next(),t}checkReservedWord(e,t,r,n){if(!(e.length>10)&&(i=e,ge.has(i)))if(r&&function(e){return ue.has(e)}(e))this.raise(y.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?n?me:de:pe)(e,this.inModule))this.raise(y.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(y.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(y.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(y.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(y.ArgumentsInClass,t);var i}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(y.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(y.ObsoleteAwaitStar,t),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return 53===e||10===e||0===e||G(e)||102===e&&!this.state.containsEsc||137===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(){let e=this.startNode();this.expressionScope.recordParameterInitializerError(y.YieldInParameter,e),this.next();let t=!1,r=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:r=this.parseMaybeAssign()}return e.delegate=t,e.argument=r,this.finishNode(e,"YieldExpression")}parseImportCall(e){return this.next(),e.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(e.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(e.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(y.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}{let r=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),r.expression=e,this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(y.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(y.PipelineTopicUnused,e)}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();{let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,n}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}},Qt={kind:1},Lt={kind:2},Mt=/[\uD800-\uDFFF]/u,Rt=/in(?:stanceof)?/y,jt=class extends $t{parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.comments,this.options.tokens&&(e.tokens=function(e,t){for(let r=0;r<e.length;r++){let n=e[r],{type:s}=n;if("number"==typeof s){if(138===s){let{loc:t,start:s,value:o,end:a}=n,l=s+1,u=i(t.start,1);e.splice(r,1,new Xe({type:H(27),value:"#",start:s,end:l,startLoc:t.start,endLoc:u}),new Xe({type:H(132),value:o,start:l,end:a,startLoc:u,endLoc:t.end})),r++;continue}if(G(s)){let o,a,l,u,c,{loc:h,start:p,value:d,end:f}=n,m=p+1,g=i(h.start,1);o=96===t.charCodeAt(p)?new Xe({type:H(22),value:"`",start:p,end:m,startLoc:h.start,endLoc:g}):new Xe({type:H(8),value:"}",start:p,end:m,startLoc:h.start,endLoc:g}),24===s?(l=f-1,u=i(h.end,-1),a=null===d?null:d.slice(1,-1),c=new Xe({type:H(22),value:"`",start:l,end:f,startLoc:u,endLoc:h.end})):(l=f-2,u=i(h.end,-2),a=null===d?null:d.slice(1,-2),c=new Xe({type:H(23),value:"${",start:l,end:f,startLoc:u,endLoc:h.end})),e.splice(r,1,o,new Xe({type:H(20),value:a,start:m,end:l,startLoc:g,endLoc:u}),c),r+=2;continue}n.type=H(s)}}return e}(this.tokens,this.input)),this.finishNode(e,"File")}parseProgram(e,t=139,r=this.options.sourceType){if(e.sourceType=r,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[e,t]of Array.from(this.scope.undefinedExports))this.raise(y.ModuleExportUndefined,t,{localName:e});let n;return n=139===t?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",i(this.state.startLoc,-1)),n}stmtToDirective(e){let t=e;t.type="Directive",t.value=t.expression,delete t.expression;let r=t.value,n=r.value,i=this.input.slice(r.start,r.end),s=r.value=i.slice(1,-1);return this.addExtra(r,"raw",i),this.addExtra(r,"rawValue",s),this.addExtra(r,"expressionValue",n),r.type="DirectiveLiteral",t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}chStartsBindingIdentifier(e,t){if(se(e)){if(Rt.lastIndex=t,Rt.test(this.input)){let e=this.codePointAtPos(Rt.lastIndex);if(!oe(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return 123===t||this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){let{type:e,containsEsc:t}=this.lookahead();return!(102===e&&!t)&&(Z(e)&&!this.hasFollowingLineBreak()?(this.expectPlugin("explicitResourceManagement"),!0):void 0)}startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){let r=this.state.type,n=this.startNode(),i=!!(2&e),s=!!(4&e),o=1&e;switch(r){case 60:return this.parseBreakContinueStatement(n,!0);case 63:return this.parseBreakContinueStatement(n,!1);case 64:return this.parseDebuggerStatement(n);case 90:return this.parseDoWhileStatement(n);case 91:return this.parseForStatement(n);case 68:if(46===this.lookaheadCharCode())break;return s||this.raise(this.state.strict?y.StrictFunction:this.options.annexB?y.SloppyFunctionAnnexB:y.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(n,!1,!i&&s);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,n),!0);case 69:return this.parseIfStatement(n);case 70:return this.parseReturnStatement(n);case 71:return this.parseSwitchStatement(n);case 72:return this.parseThrowStatement(n);case 73:return this.parseTryStatement(n);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?i||this.raise(y.UnexpectedLexicalDeclaration,n):this.raise(y.AwaitUsingNotInAsyncContext,n),this.next(),this.parseVarStatement(n,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(y.UnexpectedUsingDeclaration,this.state.startLoc):i||this.raise(y.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(n,"using");case 100:{if(this.state.containsEsc)break;let e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(t,e)&&123!==t))break}case 75:i||this.raise(y.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let e=this.state.value;return this.parseVarStatement(n,e)}case 92:return this.parseWhileStatement(n);case 76:return this.parseWithStatement(n);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(n);case 83:{let e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return!this.options.allowImportExportEverywhere&&!o&&this.raise(y.UnexpectedImportExport,this.state.startLoc),this.next(),83===r?(e=this.parseImport(n),"ImportDeclaration"===e.type&&(!e.importKind||"value"===e.importKind)&&(this.sawUnambiguousESM=!0)):(e=this.parseExport(n,t),("ExportNamedDeclaration"===e.type&&(!e.exportKind||"value"===e.exportKind)||"ExportAllDeclaration"===e.type&&(!e.exportKind||"value"===e.exportKind)||"ExportDefaultDeclaration"===e.type)&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(y.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(n,!0,!i&&s)}let a=this.state.value,l=this.parseExpression();return Z(r)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(n,a,l,e):this.parseExpressionStatement(n,l,t)}assertModuleNodeAllowed(e){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(y.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,r){return e&&(t.decorators&&t.decorators.length>0?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(y.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(y.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(y.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let t,r=this.state.startLoc;if(this.match(10)){let r=this.state.startLoc;this.next(),t=this.parseExpression(),this.expect(11),t=this.wrapParenthesis(r,t);let n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==t&&this.raise(y.DecoratorArgumentsOutsideParentheses,n)}else{for(t=this.parseIdentifier(!1);this.eat(16);){let e=this.startNodeAt(r);e.object=t,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,t=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(10)){let t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let r;for(r=0;r<this.state.labels.length;++r){let n=this.state.labels[r];if((null==e.label||n.name===e.label.name)&&(null!=n.kind&&(t||1===n.kind)||e.label&&t))break}if(r===this.state.labels.length){let r=t?"BreakStatement":"ContinueStatement";this.raise(y.IllegalBreakContinue,e,{type:r})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Qt),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Qt);let t=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(t=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);let r=this.isContextual(100);{let n=this.isContextual(96)&&this.startsAwaitUsing(),i=n||this.isContextual(107)&&this.startsUsingForOf(),s=r&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||s){let r,s=this.startNode();n?(r="await using",this.isAwaitAllowed()||this.raise(y.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):r=this.state.value,this.next(),this.parseVar(s,!0,r);let o=this.finishNode(s,"VariableDeclaration"),a=this.match(58);return a&&i&&this.raise(y.ForInUsing,o),(a||this.isContextual(102))&&1===o.declarations.length?this.parseForIn(e,o,t):(null!==t&&this.unexpected(t),this.parseFor(e,o))}}let n=this.isContextual(95),i=new rt,s=this.parseExpression(!0,i),o=this.isContextual(102);if(o&&(r&&this.raise(y.ForOfLet,s),null===t&&n&&"Identifier"===s.type&&this.raise(y.ForOfAsync,s)),o||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(s,!0);let r=o?"ForOfStatement":"ForInStatement";return this.checkLVal(s,{in:{type:r}}),this.parseForIn(e,s,t)}return this.checkExpressionErrors(i,!0),null!==t&&this.unexpected(t),this.parseFor(e,s)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(y.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let t,r=e.cases=[];this.expect(5),this.state.labels.push(Lt),this.scope.enter(0);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){let n=this.match(61);t&&this.finishNode(t,"SwitchCase"),r.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(e&&this.raise(y.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,t.test=null),this.expect(14)}else t?t.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(y.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{in:{type:"CatchClause"},binding:9}),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(y.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t,r=!1){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Qt),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(y.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,n){for(let e of this.state.labels)e.name===t&&this.raise(y.LabelRedeclaration,r,{labelName:t});let i=(s=this.state.type)>=90&&s<=92?1:this.match(71)?2:null;var s;for(let t=this.state.labels.length-1;t>=0;t--){let r=this.state.labels[t];if(r.statementStart!==e.start)break;r.statementStart=this.state.start,r.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.state.start}),e.body=8&n?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,r){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,r){let n=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(n,e,!1,8,r),t&&this.scope.exit(),this.finishNode(n,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,n,i){let s=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?o:void 0,r,n,i)}parseBlockOrModuleBlockBody(e,t,r,n,i){let s=this.state.strict,o=!1,a=!1;for(;!this.match(n);){let n=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!a){if(this.isValidDirective(n)){let e=this.stmtToDirective(n);t.push(e),!o&&"use strict"===e.value.value&&(o=!0,this.setStrict(!0));continue}a=!0,this.state.strictErrors.clear()}e.push(n)}null==i||i.call(this,o),s||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,r){let n=this.match(58);return this.next(),n?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||!this.options.annexB||this.state.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(y.ForInOfLoopInitializer,t,{type:n?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(y.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")}parseVar(e,t,r,n=!1){let i=e.declarations=[];for(e.kind=r;;){let e=this.startNode();if(this.parseVarId(e,r),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null===e.init&&!n&&("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(102))?("const"===r||"using"===r||"await using"===r)&&!(this.match(58)||this.isContextual(102))&&this.raise(y.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r}):this.raise(y.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){let r=this.parseBindingAtom();("using"===t||"await using"===t)&&("ArrayPattern"===r.type||"ObjectPattern"===r.type)&&this.raise(y.UsingDeclarationHasBindingPattern,r.loc.start),this.checkLVal(r,{in:{type:"VariableDeclarator"},binding:"var"===t?5:8201}),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let r=2&t,n=!!(1&t),i=n&&!(4&t),s=!!(8&t);this.initFunction(e,s),this.match(55)&&(r&&this.raise(y.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(i));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(et(s,e.generator)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),n&&!r&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||Z(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new ze(3)),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,r){this.next();let n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,n),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let r={hadConstructor:!1,hadSuperClass:e},n=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(n.length>0)throw this.raise(y.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){n.push(this.parseDecorator());continue}let e=this.startNode();n.length&&(e.decorators=n,this.resetStartLocationFromNode(e,n[0]),n=[]),this.parseClassMember(i,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(y.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),n.length)throw this.raise(y.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){let r=this.parseIdentifier(!0);if(this.isClassMethod()){let n=t;return n.kind="method",n.computed=!1,n.key=r,n.static=!1,this.pushClassMethod(e,n,!1,!1,!1,!1),!0}if(this.isClassProperty()){let n=t;return n.computed=!1,n.key=r,n.static=!1,e.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(r),!1}parseClassMember(e,t,r){let n=this.isContextual(106);if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,n)}parseClassMemberWithIsStatic(e,t,r,n){let i=t,s=t,o=t,a=t,l=t,u=i,c=i;if(t.static=n,this.parsePropertyNamePrefixOperator(t),this.eat(55)){u.kind="method";let t=this.match(138);return this.parseClassElementName(u),t?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(y.ConstructorIsGenerator,i.key),void this.pushClassMethod(e,i,!0,!1,!1,!1))}let h=!this.state.containsEsc&&Z(this.state.type),p=this.parseClassElementName(t),d=h?p.name:null,f=this.isPrivateName(p),m=this.state.startLoc;if(this.parsePostMemberNameModifiers(c),this.isClassMethod()){if(u.kind="method",f)return void this.pushClassPrivateMethod(e,s,!1,!1);let n=this.isNonstaticConstructor(i),o=!1;n&&(i.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(y.DuplicateConstructor,p),n&&this.hasPlugin("typescript")&&t.override&&this.raise(y.OverrideOnConstructor,p),r.hadConstructor=!0,o=r.hadSuperClass),this.pushClassMethod(e,i,!1,!1,n,o)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,o);else if("async"!==d||this.isLineTerminator())if("get"!==d&&"set"!==d||this.match(55)&&this.isLineTerminator())if("accessor"!==d||this.isLineTerminator())this.isLineTerminator()?f?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,o):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(p);let t=this.match(138);this.parseClassElementName(o),this.pushClassAccessorProperty(e,l,t)}else{this.resetPreviousNodeTrailingComments(p),u.kind=d;let t=this.match(138);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(y.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else{this.resetPreviousNodeTrailingComments(p);let t=this.eat(55);c.optional&&this.unexpected(m),u.kind="method";let r=this.match(138);this.parseClassElementName(u),this.parsePostMemberNameModifiers(c),r?this.pushClassPrivateMethod(e,s,t,!0):(this.isNonstaticConstructor(i)&&this.raise(y.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}}parseClassElementName(e){let{type:t,value:r}=this.state;if((132===t||133===t)&&e.static&&"prototype"===r&&this.raise(y.StaticPrototype,this.state.startLoc),138===t){"constructor"===r&&this.raise(y.ConstructorClassPrivateField,this.state.startLoc);let t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var r;this.scope.enter(208);let n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(y.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(y.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(e,t,r){!r&&!t.computed&&this.nameIsConstructor(t.key)&&this.raise(y.ConstructorClassField,t.key);let n=this.parseClassAccessorProperty(t);e.body.push(n),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassMethod(e,t,r,n,i,s){e.body.push(this.parseMethod(t,r,n,i,s,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,n){let i=this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);let s="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,s)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(Je()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r,n=8331){if(Z(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,n);else{if(!r&&t)throw this.raise(y.MissingClassName,this.state.startLoc);e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let r=this.parseMaybeImportPhase(e,!0),n=this.maybeParseExportDefaultSpecifier(e,r),i=!n||this.eat(12),s=i&&this.eatExportStar(e),o=s&&this.maybeParseExportNamespaceSpecifier(e),a=i&&(!o||this.eat(12)),l=n||s;if(s&&!o){if(n&&this.unexpected(),t)throw this.raise(y.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}let u,c=this.maybeParseExportNamedSpecifiers(e);if(n&&i&&!s&&!c&&this.unexpected(null,5),o&&a&&this.unexpected(null,98),l||c){if(u=!1,t)throw this.raise(y.UnsupportedDecoratorExport,e);this.parseExportFrom(e,l)}else u=this.maybeParseExportDeclaration(e);if(l||c||u){var h;let r=e;if(this.checkExport(r,!0,!1,!!r.source),"ClassDeclaration"===(null==(h=r.declaration)?void 0:h.type))this.maybeTakeDecorators(t,r.declaration,r);else if(t)throw this.raise(y.UnsupportedDecoratorExport,e);return this.finishNode(r,"ExportNamedDeclaration")}if(this.eat(65)){let r=e,n=this.parseExportDefaultExpression();if(r.declaration=n,"ClassDeclaration"===n.type)this.maybeTakeDecorators(t,n,r);else if(t)throw this.raise(y.UnsupportedDecoratorExport,e);return this.checkExport(r,!0,!0),this.finishNode(r,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);let r=t||this.parseIdentifier(!0),n=this.startNodeAtNode(r);return n.exported=r,e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t;null!=(t=e).specifiers||(t.specifiers=[]);let r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let t=e;t.specifiers||(t.specifiers=[]);let r="type"===t.exportKind;return t.specifiers.push(...this.parseExportSpecifiers(r)),t.source=null,t.declaration=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(y.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(y.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(Z(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){let{type:e}=this.lookahead();if(Z(e)&&98!==e||5===e)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),r=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||Z(this.state.type)&&r)return!0;if(this.match(65)&&r){let e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(y.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)||this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(y.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,n){var i;if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var s;let t=e.declaration;"Identifier"===t.type&&"from"===t.name&&t.end-t.start==4&&(null==(s=t.extra)||!s.parenthesized)&&this.raise(y.ExportDefaultFromAsIdentifier,t)}}else if(null!=(i=e.specifiers)&&i.length)for(let t of e.specifiers){let{exported:e}=t,r="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,r),!n&&t.local){let{local:e}=t;"Identifier"!==e.type?this.raise(y.ExportBindingIsString,t,{localName:e.value,exportName:r}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration){let t=e.declaration;if("FunctionDeclaration"===t.type||"ClassDeclaration"===t.type){let{id:r}=t;if(!r)throw new Error("Assertion failure");this.checkDuplicateExports(e,r.name)}else if("VariableDeclaration"===t.type)for(let e of t.declarations)this.checkDeclaration(e.id)}}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(let t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(let t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(y.DuplicateDefaultExport,e):this.raise(y.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;let n=this.isContextual(130),i=this.match(133),s=this.startNode();s.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(s,i,e,n))}return t}parseExportSpecifier(e,t,r,n){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=ot(e.local):e.exported||(e.exported=st(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){let e=this.parseStringLiteral(this.state.value),t=Mt.exec(e.value);return t&&this.raise(y.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some((({key:e,value:t})=>"json"===t.value&&("Identifier"===e.type?"type"===e.name:"type"===e.value)))}checkImportReflection(e){let{specifiers:t}=e,r=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==r&&this.raise(y.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==r&&this.raise(y.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var n;"ImportDefaultSpecifier"!==r&&this.raise(y.ImportReflectionNotBinding,t[0].loc.start),(null==(n=e.assertions)?void 0:n.length)>0&&this.raise(y.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){let{specifiers:t}=e;if(null!=t){let e=t.find((e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value}));void 0!==e&&this.raise(y.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,t,r,n){t||("module"===r?(this.expectPlugin("importReflection",n),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===r?(this.expectPlugin("sourcePhaseImports",n),e.phase="source"):"defer"===r?(this.expectPlugin("deferredImportEvaluation",n),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;let r=this.parseIdentifier(!0),{type:n}=this.state;return(q(n)?98!==n||102===this.lookaheadCharCode():12!==n)?(this.resetPreviousIdentifierLeadingComments(r),this.applyImportPhase(e,t,r.name,r.loc.start),null):(this.applyImportPhase(e,t,null),r)}isPrecedingIdImportPhase(e){let{type:t}=this.state;return Z(t)?98!==t||102===this.lookaheadCharCode():12!==t}parseImport(e){return this.match(133)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let r=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),n=r&&this.maybeParseStarImportSpecifier(e);return r&&!n&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t,r=8201){return this.checkLVal(e.local,{in:{type:t},binding:r}),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);let e=[],t=new Set;do{if(this.match(8))break;let r=this.startNode(),n=this.state.value;if(t.has(n)&&this.raise(y.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:n}),t.add(n),this.match(133)?r.key=this.parseStringLiteral(n):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(y.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],t=new Set;do{let r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(y.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(y.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(133))throw this.raise(y.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t,r=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?t=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),t=this.parseImportAttributes()),r=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(!0!==this.getPluginOption("importAttributes","deprecatedAssertSyntax")&&this.raise(y.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),t=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))t=[];else{if(!this.hasPlugin("moduleAttributes"))return;t=[]}!r&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}return!!q(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(y.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let r=this.startNode(),n=this.match(133),i=this.isContextual(130);r.imported=this.parseModuleExportName();let s=this.parseImportSpecifier(r,n,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(s)}}parseImportSpecifier(e,t,r,n,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:r}=e;if(t)throw this.raise(y.ImportBindingIsString,e,{importName:r.value});this.checkReservedWord(r.name,e.loc.start,!0,!0),e.local||(e.local=st(r))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}},Zt=class extends jt{constructor(e,t){super(e=function(e){if(null==e)return Object.assign({},Nt);if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");let t={};for(let n of Object.keys(Nt)){var r;t[n]=null!=(r=e[n])?r:Nt[n]}return t}(e),t),this.options=e,this.initializeScopes(),this.plugins=function(e){let t=new Map;for(let r of e){let[e,n]=Array.isArray(r)?r:[r,{}];t.has(e)||t.set(e,n||{})}return t}(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return Oe}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}},qt=function(e){let t={};for(let r of Object.keys(e))t[r]=H(e[r]);return t}(j);function Wt(e,t){let r=Zt;return null!=e&&e.plugins&&(function(e){if(Pt(e,"decorators")){if(Pt(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=At(e,"decorators","decoratorsBeforeExport");if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=At(e,"decorators","allowCallParenthesized");if(null!=r&&"boolean"!=typeof r)throw new Error("'allowCallParenthesized' must be a boolean.")}if(Pt(e,"flow")&&Pt(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(Pt(e,"placeholders")&&Pt(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(Pt(e,"pipelineOperator")){let t=At(e,"pipelineOperator","proposal");if(!Ft.includes(t)){let e=Ft.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}let r=["recordAndTuple",{syntaxType:"hash"}],n=Pt(e,r);if("hack"===t){if(Pt(e,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(Pt(e,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let t=At(e,"pipelineOperator","topicToken");if(!_t.includes(t)){let e=_t.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if("#"===t&&n)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(r)}\`.`)}else if("smart"===t&&n)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(r)}\`.`)}if(Pt(e,"moduleAttributes")){if(Pt(e,"importAssertions")||Pt(e,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if("may-2020"!==At(e,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(Pt(e,"importAssertions")&&Pt(e,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(Pt(e,"recordAndTuple")){let t=At(e,"recordAndTuple","syntaxType");if(null!=t){let e=["hash","bar"];if(!e.includes(t))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+e.map((e=>`'${e}'`)).join(", "))}}if(Pt(e,"asyncDoExpressions")&&!Pt(e,"doExpressions")){let e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(Pt(e,"optionalChainingAssign")&&"2023-07"!==At(e,"optionalChainingAssign","version"))throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}(e.plugins),r=function(e){let t=Bt.filter((t=>Pt(e,t))),r=t.join("/"),n=Xt[r];if(!n){n=Zt;for(let e of t)n=It[e](n);Xt[r]=n}return n}(e.plugins)),new r(e,t)}var Xt={};e.parse=function(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return Wt(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";let r=Wt(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",Wt(t,e).parse()}catch{}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",Wt(t,e).parse()}catch{}throw r}},e.parseExpression=function(e,t){let r=Wt(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()},e.tokTypes=qt},()=>(t||e((t={exports:{}}).exports,t),t.exports)),h={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(h,{parsers:()=>xe});var p=u(c(),1);function d(e){return(t,r,n)=>{let i=!(null==n||!n.backwards);if(!1===r)return!1;let{length:s}=t,o=r;for(;o>=0&&o<s;){let r=t.charAt(o);if(e instanceof RegExp){if(!e.test(r))return o}else if(!e.includes(r))return o;i?o--:o++}return(-1===o||o===s)&&o}}d(/\s/u);var f=d(" \t"),m=(d(",; \t"),d(/[^\n\r]/u));var g=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2;return t};var y=function(e,t,r){let n=!(null==r||!r.backwards);if(!1===t)return!1;let i=e.charAt(t);if(n){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t};var O=function(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?m(e,t):t)};var x=function(e,t){let r=null,n=t;for(;n!==r;)r=n,n=f(e,n),n=g(e,n),n=O(e,n),n=y(e,n);return n};var b=function(e){let t=[];for(let r of e)try{return r()}catch(e){t.push(e)}throw Object.assign(new Error("All combinations failed"),{errors:t})};var v=function(e){if(!e.startsWith("#!"))return"";let t=e.indexOf("\n");return-1===t?e:e.slice(0,t)},w=(e,t,r)=>{if(!e||null!=t)return Array.isArray(t)||"string"==typeof t?t[r<0?t.length+r:r]:t.at(r)};var D=function(e){return Array.isArray(e)&&e.length>0};function S(e){var t,r,n;let i=(null==(t=e.range)?void 0:t[0])??e.start,s=null==(n=(null==(r=e.declaration)?void 0:r.decorators)??e.decorators)?void 0:n[0];return s?Math.min(S(s),i):i}function k(e){var t;return(null==(t=e.range)?void 0:t[1])??e.end}var E=function(e){let t=new Set(e);return e=>t.has(null==e?void 0:e.type)}(["Block","CommentBlock","MultiLine"]);var C=function(e){let t=`*${e.value}*`.split("\n");return t.length>1&&t.every((e=>"*"===e.trimStart()[0]))};var T=function(e){return E(e)&&"*"===e.value[0]&&/@(?:type|satisfies)\b/u.test(e.value)},P=null;function A(e){if(null!==P&&(P.property,1)){let e=P;return P=A.prototype=null,e}return P=A.prototype=e??Object.create(null),new A}for(let e=0;e<=10;e++)A();var F=function(e,t="type"){return function(e){A(e)}(e),function(r){let n=r[t],i=e[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return i}}({ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]});var _=function e(t,r){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t)){for(let n=0;n<t.length;n++)t[n]=e(t[n],r);return t}let n=F(t);for(let i=0;i<n.length;i++)t[n[i]]=e(t[n[i]],r);return r(t)||t};function I(e){return"LogicalExpression"===e.type&&"LogicalExpression"===e.right.type&&e.operator===e.right.operator}function B(e){return I(e)?B({type:"LogicalExpression",operator:e.operator,left:B({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[S(e.left),k(e.right.left)]}),right:e.right.right,range:[S(e),k(e)]}):e}var N=function(e,t){let{parser:r,text:n}=t;if("File"===e.type&&e.program.interpreter){let{program:{interpreter:t},comments:r}=e;delete e.program.interpreter,r.unshift(t)}if("babel"===r){let t=new Set;e=_(e,(e=>{var r;null!=(r=e.leadingComments)&&r.some(T)&&t.add(S(e))})),e=_(e,(e=>{if("ParenthesizedExpression"===e.type){let{expression:r}=e;if("TypeCastExpression"===r.type)return r.range=[...e.range],r;let n=S(e);if(!t.has(n))return r.extra={...r.extra,parenthesized:!0},r}}))}if(e=_(e,(t=>{var i;switch(t.type){case"LogicalExpression":if(I(t))return B(t);break;case"VariableDeclaration":{let e=w(!1,t.declarations,-1);null!=e&&e.init&&";"!==n[k(e)]&&(t.range=[S(t),k(e)]);break}case"TSParenthesizedType":return t.typeAnnotation;case"TSTypeParameter":if("string"==typeof t.name){let e=S(t);t.name={type:"Identifier",name:t.name,range:[e,e+t.name.length]}}break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":if("meriyah"===r&&"Identifier"===(null==(i=t.exported)?void 0:i.type)){let{exported:e}=t,r=n.slice(S(e),k(e));(r.startsWith('"')||r.startsWith("'"))&&(t.exported={...t.exported,type:"Literal",value:t.exported.name,raw:r})}break;case"TSUnionType":case"TSIntersectionType":if(1===t.types.length)return t.types[0]}})),D(e.comments)){let t=w(!1,e.comments,-1);for(let r=e.comments.length-2;r>=0;r--){let n=e.comments[r];k(n)===S(t)&&E(n)&&E(t)&&C(n)&&C(t)&&(e.comments.splice(r+1,1),n.value+="*//*"+t.value,n.range=[S(n),k(t)]),t=n}}return"Program"===e.type&&(e.range=[0,n.length]),e};var $=function(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)};var Q=function(e){let{message:t,loc:{line:r,column:n},reasonCode:i}=e,s=e;("MissingPlugin"===i||"MissingOneOfPlugins"===i)&&(t="Unexpected token.",s=void 0);let o=` (${r}:${n})`;return t.endsWith(o)&&(t=t.slice(0,-o.length)),$(t,{loc:{start:{line:r,column:n+1}},cause:s})},L=(e,t,r,n)=>{if(!e||null!=t)return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},M=/\*\/$/,R=/^\/\*\*?/,j=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Z=/(^|\s+)\/\/([^\n\r]*)/g,q=/^(\r?\n)+/,W=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,X=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,V=/(\r?\n|^) *\* ?/g,U=[];function Y(e){let t=v(e);t&&(e=e.slice(t.length+1));let r=function(e){let t=e.match(j);return t?t[0].trimStart():""}(e),{pragmas:n,comments:i}=function(e){e=L(!1,e.replace(R,"").replace(M,""),V,"$1");let t="";for(;t!==e;)t=e,e=L(!1,e,W,"\n$1 $2\n");e=e.replace(q,"").trimEnd();let r,n=Object.create(null),i=L(!1,e,X,"").replace(q,"").trimEnd();for(;r=X.exec(e);){let e=L(!1,r[2],Z,"");if("string"==typeof n[r[1]]||Array.isArray(n[r[1]])){let t=n[r[1]];n[r[1]]=[...U,...Array.isArray(t)?t:[t],e]}else n[r[1]]=e}return{comments:i,pragmas:n}}(r);return{shebang:t,text:e,pragmas:n,comments:i}}function z(e){let{pragmas:t}=Y(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}var G=function(e){return e="function"==typeof e?{parse:e}:e,{astFormat:"estree",hasPragma:z,locStart:S,locEnd:k,...e}};var H=function(e){let{filepath:t}=e;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs"))return"script";if(t.endsWith(".mjs"))return"module"}};var J=function(e,t){let{type:r="JsExpressionRoot",rootMarker:n,text:i}=t,{tokens:s,comments:o}=e;return delete e.tokens,delete e.comments,{tokens:s,comments:o,type:r,node:e,range:[0,i.length],rootMarker:n}},K=e=>G(function({isExpression:e=!1,optionsCombinations:t}){return(r,n={})=>{if(("babel"===n.parser||"__babel_estree"===n.parser)&&function(e,t){var r;if(null!=(r=t.filepath)&&r.endsWith(".js.flow"))return!0;let n=v(e);n&&(e=e.slice(n.length));let i=x(e,0);return!1!==i&&(e=e.slice(0,i)),ie.test(e)}(r,n))return n.parser="babel-flow",he.parse(r,n);let i=t;"script"===(n.__babelSourceType??H(n))&&(i=i.map((e=>({...e,sourceType:"script"}))));let s=/%[A-Z]/u.test(r);r.includes("|>")?i=(s?[...re,te]:re).flatMap((e=>i.map((t=>ne([e],t))))):s&&(i=i.map((e=>ne([te],e))));let o,a=e?p.parseExpression:p.parse;try{o=b(i.map((e=>()=>function(e,t,r){let n=e(t,r),i=n.errors.find((e=>!se.has(e.reasonCode)));if(i)throw i;return n}(a,r,e))))}catch({errors:[e]}){throw Q(e)}return e&&(o=J(o,{text:r,rootMarker:n.rootMarker})),N(o,{parser:"babel",text:r})}}(e)),ee={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,createImportExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","decimal","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","importReflection","explicitResourceManagement",["importAttributes",{deprecatedAssertSyntax:!0}],"sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],"recordAndTuple"],tokens:!0,ranges:!0},te="v8intrinsic",re=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],ne=(e,t=ee)=>({...t,plugins:[...t.plugins,...e]}),ie=/@(?:no)?flow\b/u;var se=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),oe=[ne(["jsx"])],ae=K({optionsCombinations:oe}),le=K({optionsCombinations:[ne(["jsx","typescript"]),ne(["typescript"])]}),ue=K({isExpression:!0,optionsCombinations:[ne(["jsx"])]}),ce=K({isExpression:!0,optionsCombinations:[ne(["typescript"])]}),he=K({optionsCombinations:[ne(["jsx",["flow",{all:!0,enums:!0}],"flowComments"])]}),pe=K({optionsCombinations:oe.map((e=>ne(["estree"],e)))}),de={babel:ae,"babel-flow":he,"babel-ts":le,__js_expression:ue,__ts_expression:ce,__vue_expression:ue,__vue_ts_expression:ce,__vue_event_binding:ae,__vue_ts_event_binding:le,__babel_estree:pe},fe=u(c(),1);function me(e={}){let{allowComments:t=!0}=e;return function(e){let r;try{r=(0,fe.parseExpression)(e,{tokens:!0,ranges:!0,attachComment:!1})}catch(e){throw Q(e)}if(!t&&D(r.comments))throw ge(r.comments[0],"Comment");return ye(r),J(r,{type:"JsonRoot",text:e})}}function ge(e,t){let[r,n]=[e.loc.start,e.loc.end].map((({line:e,column:t})=>({line:e,column:t+1})));return $(`${t} is not allowed in JSON.`,{loc:{start:r,end:n}})}function ye(e){switch(e.type){case"ArrayExpression":for(let t of e.elements)null!==t&&ye(t);return;case"ObjectExpression":for(let t of e.properties)ye(t);return;case"ObjectProperty":if(e.computed)throw ge(e.key,"Computed key");if(e.shorthand)throw ge(e.key,"Shorthand property");return"Identifier"!==e.key.type&&ye(e.key),void ye(e.value);case"UnaryExpression":{let{operator:t,argument:r}=e;if("+"!==t&&"-"!==t)throw ge(e,`Operator '${e.operator}'`);if("NumericLiteral"===r.type||"Identifier"===r.type&&("Infinity"===r.name||"NaN"===r.name))return;throw ge(r,`Operator '${t}' before '${r.type}'`)}case"Identifier":if("Infinity"!==e.name&&"NaN"!==e.name&&"undefined"!==e.name)throw ge(e,`Identifier '${e.name}'`);return;case"TemplateLiteral":if(D(e.expressions))throw ge(e.expressions[0],"'TemplateLiteral' with expression");for(let t of e.quasis)ye(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw ge(e,`'${e.type}'`)}}var Oe=me(),xe={...de,...{json:G({parse:Oe,hasPragma:()=>!0}),json5:G(Oe),jsonc:G(Oe),"json-stringify":G({parse:me({allowComments:!1}),astFormat:"estree-json"})}};return(e=>l(n({},"__esModule",{value:!0}),e))(h)}()).default||t},6833:e=>{var t;e.exports=(t=function(){"use strict";var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,i=e=>{throw TypeError(e)},s=(t,r)=>{for(var n in r)e(t,n,{get:r[n],enumerable:!0})},o=(e,t,r)=>t.has(e)||i("Cannot "+r),a=(e,t,r)=>(o(e,t,"read from private field"),r?r.call(e):t.get(e)),l={};s(l,{languages:()=>Na,options:()=>Ia,printers:()=>Ba});var u={};s(u,{canAttachComment:()=>pn,embed:()=>Yn,experimentalFeatures:()=>Da,getCommentChildNodes:()=>dn,getVisitorKeys:()=>M,handleComments:()=>dr,insertPragma:()=>ai,isBlockComment:()=>j,isGap:()=>mn,massageAstNode:()=>ut,print:()=>wa,printComment:()=>pr,willPrintOwnComments:()=>fn});var c=(e,t,r,n)=>{if(!e||null!=t)return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},h=(e,t,r)=>{if(!e||null!=t)return Array.isArray(t)||"string"==typeof t?t[r<0?t.length+r:r]:t.at(r)};var p=function(e){return null!==e&&"object"==typeof e};function*d(e,t){let{getVisitorKeys:r,filter:n=(()=>!0)}=t,i=e=>p(e)&&n(e);for(let t of r(e)){let r=e[t];if(Array.isArray(r))for(let e of r)i(e)&&(yield e);else i(r)&&(yield r)}}function f(e,{getVisitorKeys:t,predicate:r}){for(let n of function*(e,t){let r=[e];for(let e=0;e<r.length;e++){let n=r[e];for(let e of d(n,t))yield e,r.push(e)}}(e,{getVisitorKeys:t}))if(r(n))return!0;return!1}var m=e=>!(function(e){return 12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510}(e)||function(e){return e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9800&&e<=9811||9855===e||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}(e)),g=/[^\x20-\x7F]/u;var y=function(e){if(!e)return 0;if(!g.test(e))return e.length;e=e.replace(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g," ");let t=0;for(let r of e){let e=r.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||(t+=m(e)?1:2)}return t};function O(e){return(t,r,n)=>{let i=!(null==n||!n.backwards);if(!1===r)return!1;let{length:s}=t,o=r;for(;o>=0&&o<s;){let r=t.charAt(o);if(e instanceof RegExp){if(!e.test(r))return o}else if(!e.includes(r))return o;i?o--:o++}return(-1===o||o===s)&&o}}O(/\s/u);var x=O(" \t"),b=O(",; \t"),v=O(/[^\n\r]/u);var w=function(e,t,r){let n=!(null==r||!r.backwards);if(!1===t)return!1;let i=e.charAt(t);if(n){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t};var D=function(e,t,r={}){let n=x(e,r.backwards?t-1:t,r);return n!==w(e,n,r)};var S=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2;return t};var k=function(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?v(e,t):t)};var E=function(e,t){let r=null,n=t;for(;n!==r;)r=n,n=b(e,n),n=S(e,n),n=x(e,n);return n=k(e,n),n=w(e,n),!1!==n&&D(e,n)};var C=function(e){return Array.isArray(e)&&e.length>0},T="'";var P=function(e,t){let r=!0===t||t===T?T:'"',n=r===T?'"':T,i=0,s=0;for(let t of e)t===r?i++:t===n&&s++;return i>s?n:r};var A=function(e,t,r){let n='"'===t?"'":'"',i=c(!1,e,/\\(.)|(["'])/gsu,((e,i,s)=>i===n?i:s===t?"\\"+s:s||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(i)?i:"\\"+i)));return t+i+t};var F=function(e,t){let r=e.slice(1,-1),n="json"===t.parser||"jsonc"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":P(r,t.singleQuote);return A(r,n,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))};function _(e){var t,r,n;let i=(null==(t=e.range)?void 0:t[0])??e.start,s=null==(n=(null==(r=e.declaration)?void 0:r.decorators)??e.decorators)?void 0:n[0];return s?Math.min(_(s),i):i}function I(e){var t;return(null==(t=e.range)?void 0:t[1])??e.end}function B(e,t){let r=_(e);return Number.isInteger(r)&&r===_(t)}function N(e,t){return B(e,t)&&function(e,t){let r=I(e);return Number.isInteger(r)&&r===I(t)}(e,t)}var $=null;function Q(e){if(null!==$&&($.property,1)){let e=$;return $=Q.prototype=null,e}return $=Q.prototype=e??Object.create(null),new Q}for(let e=0;e<=10;e++)Q();var L=function(e,t="type"){return function(e){Q(e)}(e),function(r){let n=r[t],i=e[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return i}},M=L({ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]});var R=function(e){let t=new Set(e);return e=>t.has(null==e?void 0:e.type)},j=R(["Block","CommentBlock","MultiLine"]),Z=R(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]);var q=function(e,t){return t.some((t=>function(e,t){let r=t.split(".");for(let t=r.length-1;t>=0;t--){let n=r[t];if(0===t)return"Identifier"===e.type&&e.name===n;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==n)return!1;e=e.object}}(e,t)))};var W=function({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")};function X(e,t){return t(e)||f(e,{getVisitorKeys:M,predicate:t})}function V(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||Oe(e)||xe(e)||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||nt(e)||"TSNonNullExpression"===e.type||"ChainExpression"===e.type}function U(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function Y(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var z=R(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),G=R(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),H=R(["ArrayExpression","TupleExpression"]),J=R(["ObjectExpression","RecordExpression"]);function K(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function ee(e){return"UnaryExpression"===e.type&&("+"===e.operator||"-"===e.operator)&&K(e.argument)}function te(e){return!(!e||"StringLiteral"!==e.type&&("Literal"!==e.type||"string"!=typeof e.value))}function re(e){return"RegExpLiteral"===e.type||"Literal"===e.type&&!!e.regex}var ne=R(["Literal","BooleanLiteral","BigIntLiteral","DecimalLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),ie=R(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier","Import"]),se=R(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),oe=R(["FunctionExpression","ArrowFunctionExpression"]);function ae(e){return Oe(e)&&"Identifier"===e.callee.type&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var le=R(["JSXElement","JSXFragment"]);function ue(e){return e.method&&"init"===e.kind||"get"===e.kind||"set"===e.kind}function ce(e){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||e.static||e.method||"get"===e.kind||"set"===e.kind||"FunctionTypeAnnotation"!==e.value.type)}var he=R(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function pe(e){return xe(e)||"BindExpression"===e.type&&!!e.object}var de=R(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function fe(e){return W(e)||Z(e)||de(e)||("GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type)&&!e.typeParameters&&!e.typeArguments}var me=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function ge(e,t){if("CallExpression"!==(null==e?void 0:e.type)||e.optional)return!1;let r=Xe(e);if(1===r.length){if(ae(e)&&ge(t))return oe(r[0]);if(function(e){return"Identifier"===e.type&&("beforeEach"===e.name||"beforeAll"===e.name||"afterEach"===e.name||"afterAll"===e.name)}(e.callee))return ae(r[0])}else if((2===r.length||3===r.length)&&("TemplateLiteral"===r[0].type||te(r[0]))&&function(e){return q(e,me)}(e.callee))return!(r[2]&&!K(r[2]))&&((2===r.length?oe(r[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(r[1])&&qe(r[1]).length<=1)||ae(r[1]));return!1}var ye=e=>t=>("ChainExpression"===(null==t?void 0:t.type)&&(t=t.expression),e(t)),Oe=ye(R(["CallExpression","OptionalCallExpression"])),xe=ye(R(["MemberExpression","OptionalMemberExpression"]));function be(e,t=5){return ve(e,t)<=t}function ve(e,t){let r=0;for(let n in e){let i=e[n];if(i&&"object"==typeof i&&"string"==typeof i.type&&(r++,r+=ve(i,t-r)),r>t)return r}return r}var we=.25;function De(e,t){let{printWidth:r}=t;if(Je(e))return!1;let n=r*we;if("ThisExpression"===e.type||"Identifier"===e.type&&e.name.length<=n||ee(e)&&!Je(e.argument))return!0;let i="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;return i?i.length<=n:te(e)?F(Fe(e),t).length<=n:"TemplateLiteral"===e.type?0===e.expressions.length&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes("\n"):"UnaryExpression"===e.type?De(e.argument,{printWidth:r}):"CallExpression"===e.type&&0===e.arguments.length&&"Identifier"===e.callee.type?e.callee.name.length<=n-2:ne(e)}function Se(e,t){return le(t)?ze(t):Je(t,Ge.Leading,(t=>D(e,I(t))))}function ke(e){return e.quasis.some((e=>e.value.raw.includes("\n")))}function Ee(e,t){return("TemplateLiteral"===e.type&&ke(e)||"TaggedTemplateExpression"===e.type&&ke(e.quasi))&&!D(t,_(e),{backwards:!0})}function Ce(e){if(!Je(e))return!1;let t=h(!1,Ke(e,Ge.Dangling),-1);return t&&!j(t)}function Te(e){let{node:t,parent:r,key:n}=e;return"callee"===n&&Oe(t)&&Oe(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var Pe=new Set(["!","-","+","~"]);function Ae(e,t=2){if(t<=0)return!1;if("ChainExpression"===e.type||"TSNonNullExpression"===e.type)return Ae(e.expression,t);let r=e=>Ae(e,t-1);if(re(e))return y(e.pattern??e.regex.pattern)<=5;if(ne(e)||ie(e)||"ArgumentPlaceholder"===e.type)return!0;if("TemplateLiteral"===e.type)return e.quasis.every((e=>!e.value.raw.includes("\n")))&&e.expressions.every(r);if(J(e))return e.properties.every((e=>!e.computed&&(e.shorthand||e.value&&r(e.value))));if(H(e))return e.elements.every((e=>null===e||r(e)));if(tt(e)){if("ImportExpression"===e.type||Ae(e.callee,t)){let n=Xe(e);return n.length<=t&&n.every(r)}return!1}return xe(e)?Ae(e.object,t)&&Ae(e.property,t):!!("UnaryExpression"===e.type&&Pe.has(e.operator)||"UpdateExpression"===e.type)&&Ae(e.argument,t)}function Fe(e){var t;return(null==(t=e.extra)?void 0:t.raw)??e.raw}function _e(e){return e}function Ie(e,t="es5"){return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)}function Be(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return Be(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return Be(e.object,t);case"TaggedTemplateExpression":return"FunctionExpression"!==e.tag.type&&Be(e.tag,t);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==e.callee.type&&Be(e.callee,t);case"ConditionalExpression":return Be(e.test,t);case"UpdateExpression":return!e.prefix&&Be(e.argument,t);case"BindExpression":return e.object&&Be(e.object,t);case"SequenceExpression":return Be(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Be(e.expression,t);default:return t(e)}}var Ne={"==":!0,"!=":!0,"===":!0,"!==":!0},$e={"*":!0,"/":!0,"%":!0},Qe={">>":!0,">>>":!0,"<<":!0};function Le(e,t){return!(Re(t)!==Re(e)||"**"===e||Ne[e]&&Ne[t]||"%"===t&&$e[e]||"%"===e&&$e[t]||t!==e&&$e[t]&&$e[e]||Qe[e]&&Qe[t])}var Me=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap(((e,t)=>e.map((e=>[e,t])))));function Re(e){return Me.get(e)}function je(e){var t;if(e.rest)return!0;let r=qe(e);return"RestElement"===(null==(t=h(!1,r,-1))?void 0:t.type)}var Ze=new WeakMap;function qe(e){if(Ze.has(e))return Ze.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),Ze.set(e,t),t}var We=new WeakMap;function Xe(e){if(We.has(e))return We.get(e);if("ChainExpression"===e.type)return Xe(e.expression);let t=e.arguments;return"ImportExpression"===e.type&&(t=[e.source],e.attributes&&t.push(e.attributes),e.options&&t.push(e.options)),We.set(e,t),t}function Ve(e,t){let{node:r}=e;if("ChainExpression"===r.type)return e.call((()=>Ve(e,t)),"expression");"ImportExpression"===r.type?(e.call((e=>t(e,0)),"source"),r.attributes&&e.call((e=>t(e,1)),"attributes"),r.options&&e.call((e=>t(e,1)),"options")):e.each(t,"arguments")}function Ue(e,t){let r=[];if("ChainExpression"===e.type&&(e=e.expression,r.push("expression")),"ImportExpression"===e.type){if(0===t||t===(e.attributes||e.options?-2:-1))return[...r,"source"];if(e.attributes&&(1===t||-1===t))return[...r,"attributes"];if(e.options&&(1===t||-1===t))return[...r,"options"];throw new RangeError("Invalid argument index")}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw new RangeError("Invalid argument index");return[...r,"arguments",t]}function Ye(e){return"prettier-ignore"===e.value.trim()&&!e.unignore}function ze(e){return(null==e?void 0:e.prettierIgnore)||Je(e,Ge.PrettierIgnore)}var Ge={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},He=(e,t)=>{if("function"==typeof e&&(t=e,e=0),e||t)return(r,n,i)=>!(e&Ge.Leading&&!r.leading||e&Ge.Trailing&&!r.trailing||e&Ge.Dangling&&(r.leading||r.trailing)||e&Ge.Block&&!j(r)||e&Ge.Line&&!z(r)||e&Ge.First&&0!==n||e&Ge.Last&&n!==i.length-1||e&Ge.PrettierIgnore&&!Ye(r)||t&&!t(r))};function Je(e,t,r){if(!C(null==e?void 0:e.comments))return!1;let n=He(t,r);return!n||e.comments.some(n)}function Ke(e,t,r){if(!Array.isArray(null==e?void 0:e.comments))return[];let n=He(t,r);return n?e.comments.filter(n):e.comments}var et=(e,{originalText:t})=>E(t,I(e));function tt(e){return Oe(e)||"NewExpression"===e.type||"ImportExpression"===e.type}function rt(e){return e&&("ObjectProperty"===e.type||"Property"===e.type&&!ue(e))}var nt=R(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),it=R(["UnionTypeAnnotation","TSUnionType"]),st=R(["IntersectionTypeAnnotation","TSIntersectionType"]),ot=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),at=e=>{for(let t of e.quasis)delete t.value};function lt(e,t,r){var n,i;if("Program"===e.type&&delete t.sourceType,("BigIntLiteral"===e.type||"BigIntLiteralTypeAnnotation"===e.type)&&e.value&&(t.value=e.value.toLowerCase()),("BigIntLiteral"===e.type||"Literal"===e.type)&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),"DecimalLiteral"===e.type&&(t.value=Number(e.value)),"Literal"===e.type&&t.decimal&&(t.decimal=Number(e.decimal)),"EmptyStatement"===e.type||"JSXText"===e.type||"JSXExpressionContainer"===e.type&&("Literal"===e.expression.type||"StringLiteral"===e.expression.type)&&" "===e.expression.value)return null;if(("Property"===e.type||"ObjectProperty"===e.type||"MethodDefinition"===e.type||"ClassProperty"===e.type||"ClassMethod"===e.type||"PropertyDefinition"===e.type||"TSDeclareMethod"===e.type||"TSPropertySignature"===e.type||"ObjectTypeProperty"===e.type||"ImportAttribute"===e.type)&&e.key&&!e.computed){let{key:r}=e;te(r)||K(r)?t.key=String(r.value):"Identifier"===r.type&&(t.key=r.name)}if("JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some((e=>"JSXAttribute"===e.type&&"jsx"===e.name.name)))for(let{type:e,expression:r}of t.children)"JSXExpressionContainer"===e&&"TemplateLiteral"===r.type&&at(r);"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&at(t.value.expression),"JSXAttribute"===e.type&&"Literal"===(null==(n=e.value)?void 0:n.type)&&/["']|&quot;|&apos;/u.test(e.value.value)&&(t.value.value=c(!1,e.value.value,/["']|&quot;|&apos;/gu,'"'));let s=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===s.type&&"Component"===s.callee.name&&1===s.arguments.length){let r=e.expression.arguments[0].properties;for(let[e,n]of t.expression.arguments[0].properties.entries())switch(r[e].key.name){case"styles":H(n.value)&&at(n.value.elements[0]);break;case"template":"TemplateLiteral"===n.value.type&&at(n.value)}}"TaggedTemplateExpression"===e.type&&("MemberExpression"===e.tag.type||"Identifier"===e.tag.type&&("gql"===e.tag.name||"graphql"===e.tag.name||"css"===e.tag.name||"md"===e.tag.name||"markdown"===e.tag.name||"html"===e.tag.name)||"CallExpression"===e.tag.type)&&at(t.quasi),"TemplateLiteral"===e.type&&(null!=(i=e.leadingComments)&&i.some((e=>j(e)&&["GraphQL","HTML"].some((t=>e.value===` ${t} `))))||"CallExpression"===r.type&&"graphql"===r.callee.name||!e.leadingComments)&&at(t),"ChainExpression"===e.type&&"TSNonNullExpression"===e.expression.type&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression"),"TSMappedType"===e.type&&(delete t.key,delete t.constraint),"TSEnumDeclaration"===e.type&&delete t.body}lt.ignoredProperties=ot;var ut=lt,ct="string",ht="array",pt="cursor",dt="indent",ft="align",mt="trim",gt="group",yt="fill",Ot="if-break",xt="indent-if-break",bt="line-suffix",vt="line-suffix-boundary",wt="line",Dt="label",St="break-parent",kt=new Set([pt,dt,ft,mt,gt,yt,Ot,xt,bt,vt,wt,Dt,St]);var Et=function(e){if("string"==typeof e)return ct;if(Array.isArray(e))return ht;if(!e)return;let{type:t}=e;return kt.has(t)?t:void 0};function Ct(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', \nExpected it to be 'string' or 'object'.`;if(Et(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if("[object Object]"!==r)return`Unexpected doc '${r}'.`;let n=(e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e))([...kt].map((e=>`'${e}'`)));return`Unexpected doc.type '${e.type}'.\nExpected it to be ${n}.`}var Tt=class extends Error{name="InvalidDocError";constructor(e){super(Ct(e)),this.doc=e}},Pt={};var At=function(e,t,r,n){let i=[e];for(;i.length>0;){let e=i.pop();if(e===Pt){r(i.pop());continue}r&&i.push(e,Pt);let s=Et(e);if(!s)throw new Tt(e);if(!1!==(null==t?void 0:t(e)))switch(s){case ht:case yt:{let t=s===ht?e:e.parts;for(let e=t.length-1;e>=0;--e)i.push(t[e]);break}case Ot:i.push(e.flatContents,e.breakContents);break;case gt:if(n&&e.expandedStates)for(let t=e.expandedStates.length-1;t>=0;--t)i.push(e.expandedStates[t]);else i.push(e.contents);break;case ft:case dt:case xt:case Dt:case bt:i.push(e.contents);break;case ct:case pt:case mt:case vt:case wt:case St:break;default:throw new Tt(e)}}},Ft=()=>{},_t=Ft,It=Ft;function Bt(e){return _t(e),{type:dt,contents:e}}function Nt(e,t){return _t(t),{type:ft,contents:t,n:e}}function $t(e,t={}){return _t(e),It(t.expandedStates,!0),{type:gt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Qt(e){return Nt(Number.NEGATIVE_INFINITY,e)}function Lt(e){return Nt(-1,e)}function Mt(e,t){return $t(e[0],{...t,expandedStates:e})}function Rt(e){return It(e),{type:yt,parts:e}}function jt(e,t="",r={}){return _t(e),""!==t&&_t(t),{type:Ot,breakContents:e,flatContents:t,groupId:r.groupId}}function Zt(e,t){return _t(e),{type:xt,contents:e,groupId:t.groupId,negate:t.negate}}function qt(e){return _t(e),{type:bt,contents:e}}var Wt={type:vt},Xt={type:St},Vt={type:wt,hard:!0},Ut={type:wt},Yt={type:wt,soft:!0},zt=[Vt,Xt],Gt=[{type:wt,hard:!0,literal:!0},Xt],Ht={type:pt};function Jt(e,t){_t(e),It(t);let r=[];for(let n=0;n<t.length;n++)0!==n&&r.push(e),r.push(t[n]);return r}function Kt(e,t){return _t(t),e?{type:Dt,label:e,contents:t}:t}function er(e,t){if("string"==typeof e)return t(e);let r=new Map;return n(e);function n(e){if(r.has(e))return r.get(e);let i=function(e){switch(Et(e)){case ht:return t(e.map(n));case yt:return t({...e,parts:e.parts.map(n)});case Ot:return t({...e,breakContents:n(e.breakContents),flatContents:n(e.flatContents)});case gt:{let{expandedStates:r,contents:i}=e;return r?(r=r.map(n),i=r[0]):i=n(i),t({...e,contents:i,expandedStates:r})}case ft:case dt:case xt:case Dt:case bt:return t({...e,contents:n(e.contents)});case ct:case pt:case mt:case vt:case wt:case St:return t(e);default:throw new Tt(e)}}(e);return r.set(e,i),i}}function tr(e,t,r){let n=r,i=!1;return At(e,(function(e){if(i)return!1;let r=t(e);void 0!==r&&(i=!0,n=r)})),n}function rr(e){if(e.type===gt&&e.break||e.type===wt&&e.hard||e.type===St)return!0}function nr(e){return tr(e,rr,!1)}function ir(e){if(e.length>0){let t=h(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function sr(e){return e.type!==wt||e.hard?e.type===Ot?e.flatContents:e:e.soft?"":" "}function or(e){return er(e,sr)}function ar(e){return er(e,(e=>function(e){switch(Et(e)){case yt:if(e.parts.every((e=>""===e)))return"";break;case gt:if(!(e.contents||e.id||e.break||e.expandedStates))return"";if(e.contents.type===gt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case ft:case dt:case xt:case bt:if(!e.contents)return"";break;case Ot:if(!e.flatContents&&!e.breakContents)return"";break;case ht:{let t=[];for(let r of e){if(!r)continue;let[e,...n]=Array.isArray(r)?r:[r];"string"==typeof e&&"string"==typeof h(!1,t,-1)?t[t.length-1]+=e:t.push(e),t.push(...n)}return 0===t.length?"":1===t.length?t[0]:t}case ct:case pt:case mt:case vt:case wt:case Dt:case St:break;default:throw new Tt(e)}return e}(e)))}function lr(e,t=Gt){return er(e,(e=>"string"==typeof e?Jt(t,e.split("\n")):e))}function ur(e){if(e.type===wt)return!0}function cr(e,t){return e.type===Dt?{...e,contents:t(e.contents)}:t(e)}var hr=function(e){let t=`*${e.value}*`.split("\n");return t.length>1&&t.every((e=>"*"===e.trimStart()[0]))};function pr(e,t){let r=e.node;if(z(r))return t.originalText.slice(_(r),I(r)).trimEnd();if(j(r))return hr(r)?function(e){let t=e.value.split("\n");return["/*",Jt(zt,t.map(((e,r)=>0===r?e.trimEnd():" "+(r<t.length-1?e.trim():e.trimStart())))),"*/"]}(r):["/*",lr(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}var dr={};function fr(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}(e)}function mr(e,t){t.leading=!0,t.trailing=!1,fr(e,t)}function gr(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),fr(e,t)}function yr(e,t){t.leading=!1,t.trailing=!0,fr(e,t)}s(dr,{endOfLine:()=>Dr,ownLine:()=>wr,remaining:()=>Sr});var Or=function(e,t){let r=null,n=t;for(;n!==r;)r=n,n=x(e,n),n=S(e,n),n=k(e,n),n=w(e,n);return n};var xr=function(e,t){let r=Or(e,t);return!1===r?"":e.charAt(r)};var br=function(e,t,r){for(let n=t;n<r;++n)if("\n"===e.charAt(n))return!0;return!1};var vr=function(e){return j(e)&&"*"===e.value[0]&&/@(?:type|satisfies)\b/u.test(e.value)};function wr(e){return[sn,Ir,Wr,qr,Fr,Tr,Pr,Ar,$r,Hr,Yr,Gr,Jr,Kr,Lr,Xr,Vr,_r,un].some((t=>t(e)))}function Dr(e){return[Cr,Wr,Ir,Jr,Tr,Pr,Ar,$r,Xr,Ur,zr,Gr,rn,Vr,an,ln].some((t=>t(e)))}function Sr(e){return[sn,Tr,Pr,Br,Zr,Lr,Gr,jr,Rr,on,Vr,nn].some((t=>t(e)))}function kr(e,t){let r=(e.body||e.properties).find((({type:e})=>"EmptyStatement"!==e));r?mr(r,t):gr(e,t)}function Er(e,t){"BlockStatement"===e.type?kr(e,t):mr(e,t)}function Cr({comment:e,followingNode:t}){return!(!t||!vr(e)||(mr(t,e),0))}function Tr({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){if("IfStatement"!==(null==r?void 0:r.type)||!n)return!1;if(")"===xr(i,I(e)))return yr(t,e),!0;if(t===r.consequent&&n===r.alternate){if("BlockStatement"===t.type)yr(t,e);else{let n=z(e)||e.loc.start.line===e.loc.end.line,i=e.loc.start.line===t.loc.start.line;n&&i?yr(t,e):gr(r,e)}return!0}return"BlockStatement"===n.type?(kr(n,e),!0):"IfStatement"===n.type?(Er(n.consequent,e),!0):r.consequent===n&&(mr(n,e),!0)}function Pr({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){return!("WhileStatement"!==(null==r?void 0:r.type)||!n||(")"===xr(i,I(e))?(yr(t,e),0):"BlockStatement"===n.type?(kr(n,e),0):r.body!==n||(mr(n,e),0)))}function Ar({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return!("TryStatement"!==(null==r?void 0:r.type)&&"CatchClause"!==(null==r?void 0:r.type)||!n||("CatchClause"===r.type&&t?(yr(t,e),0):"BlockStatement"===n.type?(kr(n,e),0):"TryStatement"===n.type?(Er(n.finalizer,e),0):"CatchClause"!==n.type||(Er(n.body,e),0)))}function Fr({comment:e,enclosingNode:t,followingNode:r}){return!(!xe(t)||"Identifier"!==(null==r?void 0:r.type)||(mr(t,e),0))}function _r({comment:e,enclosingNode:t,followingNode:r,options:n}){return!(!n.experimentalTernaries||"ConditionalExpression"!==(null==t?void 0:t.type)&&"ConditionalTypeAnnotation"!==(null==t?void 0:t.type)&&"TSConditionalType"!==(null==t?void 0:t.type)||"ConditionalExpression"!==(null==r?void 0:r.type)&&"ConditionalTypeAnnotation"!==(null==r?void 0:r.type)&&"TSConditionalType"!==(null==r?void 0:r.type)||(gr(t,e),0))}function Ir({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i,options:s}){let o=t&&!br(i,I(t),_(e));return!(t&&o||"ConditionalExpression"!==(null==r?void 0:r.type)&&"ConditionalTypeAnnotation"!==(null==r?void 0:r.type)&&"TSConditionalType"!==(null==r?void 0:r.type)||!n||(!s.experimentalTernaries||r.alternate!==n||j(e)&&!br(s.originalText,_(e),I(e))?(mr(n,e),0):(gr(r,e),0)))}function Br({comment:e,precedingNode:t,enclosingNode:r}){return!(!rt(r)||!r.shorthand||r.key!==t||"AssignmentPattern"!==r.value.type||(yr(r.value.left,e),0))}var Nr=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function $r({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){if(Nr.has(null==r?void 0:r.type)){if(C(r.decorators)&&"Decorator"!==(null==n?void 0:n.type))return yr(h(!1,r.decorators,-1),e),!0;if(r.body&&n===r.body)return kr(r.body,e),!0;if(n){if(r.superClass&&n===r.superClass&&t&&(t===r.id||t===r.typeParameters))return yr(t,e),!0;for(let i of["implements","extends","mixins"])if(r[i]&&n===r[i][0])return!t||t!==r.id&&t!==r.typeParameters&&t!==r.superClass?gr(r,e,i):yr(t,e),!0}}return!1}var Qr=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function Lr({comment:e,precedingNode:t,enclosingNode:r,text:n}){return(r&&t&&"("===xr(n,I(e))&&("Property"===r.type||"TSDeclareMethod"===r.type||"TSAbstractMethodDefinition"===r.type)&&"Identifier"===t.type&&r.key===t&&":"!==xr(n,I(t))||!("Decorator"!==(null==t?void 0:t.type)||!Qr.has(null==r?void 0:r.type)))&&(yr(t,e),!0)}var Mr=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function Rr({comment:e,precedingNode:t,enclosingNode:r,text:n}){return!("("!==xr(n,I(e))||!t||!Mr.has(null==r?void 0:r.type)||(yr(t,e),0))}function jr({comment:e,enclosingNode:t,text:r}){if("ArrowFunctionExpression"!==(null==t?void 0:t.type))return!1;let n=Or(r,I(e));return!1!==n&&"=>"===r.slice(n,n+2)&&(gr(t,e),!0)}function Zr({comment:e,enclosingNode:t,text:r}){return!(")"!==xr(r,I(e))||(t&&(cn(t)&&0===qe(t).length||tt(t)&&0===Xe(t).length)?(gr(t,e),0):"MethodDefinition"!==(null==t?void 0:t.type)&&"TSAbstractMethodDefinition"!==(null==t?void 0:t.type)||0!==qe(t.value).length||(gr(t.value,e),0)))}function qr({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){return"ComponentTypeParameter"!==(null==t?void 0:t.type)||"DeclareComponent"!==(null==r?void 0:r.type)&&"ComponentTypeAnnotation"!==(null==r?void 0:r.type)||"ComponentTypeParameter"===(null==n?void 0:n.type)?("ComponentParameter"===(null==t?void 0:t.type)||"RestElement"===(null==t?void 0:t.type))&&"ComponentDeclaration"===(null==r?void 0:r.type)&&")"===xr(i,I(e))&&(yr(t,e),!0):(yr(t,e),!0)}function Wr({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){return"FunctionTypeParam"===(null==t?void 0:t.type)&&"FunctionTypeAnnotation"===(null==r?void 0:r.type)&&"FunctionTypeParam"!==(null==n?void 0:n.type)?(yr(t,e),!0):"Identifier"!==(null==t?void 0:t.type)&&"AssignmentPattern"!==(null==t?void 0:t.type)&&"ObjectPattern"!==(null==t?void 0:t.type)&&"ArrayPattern"!==(null==t?void 0:t.type)&&"RestElement"!==(null==t?void 0:t.type)&&"TSParameterProperty"!==(null==t?void 0:t.type)||!cn(r)||")"!==xr(i,I(e))?!(j(e)||"FunctionDeclaration"!==(null==r?void 0:r.type)&&"FunctionExpression"!==(null==r?void 0:r.type)&&"ObjectMethod"!==(null==r?void 0:r.type)||"BlockStatement"!==(null==n?void 0:n.type)||r.body!==n||Or(i,I(e))!==_(n)||(kr(n,e),0)):(yr(t,e),!0)}function Xr({comment:e,enclosingNode:t}){return"LabeledStatement"===(null==t?void 0:t.type)&&(mr(t,e),!0)}function Vr({comment:e,enclosingNode:t}){return!("ContinueStatement"!==(null==t?void 0:t.type)&&"BreakStatement"!==(null==t?void 0:t.type)||t.label||(yr(t,e),0))}function Ur({comment:e,precedingNode:t,enclosingNode:r}){return!!(Oe(r)&&t&&r.callee===t&&r.arguments.length>0)&&(mr(r.arguments[0],e),!0)}function Yr({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return it(r)?(Ye(e)&&(n.prettierIgnore=!0,e.unignore=!0),!!t&&(yr(t,e),!0)):(it(n)&&Ye(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function zr({comment:e,enclosingNode:t}){return!!rt(t)&&(mr(t,e),!0)}function Gr({comment:e,enclosingNode:t,ast:r,isLastComment:n}){var i;return 0===(null==(i=null==r?void 0:r.body)?void 0:i.length)?(n?gr(r,e):mr(r,e),!0):"Program"===(null==t?void 0:t.type)&&0===t.body.length&&!C(t.directives)&&(n?gr(t,e):mr(t,e),!0)}function Hr({comment:e,enclosingNode:t}){return("ForInStatement"===(null==t?void 0:t.type)||"ForOfStatement"===(null==t?void 0:t.type))&&(mr(t,e),!0)}function Jr({comment:e,precedingNode:t,enclosingNode:r,text:n}){if("ImportSpecifier"===(null==r?void 0:r.type)||"ExportSpecifier"===(null==r?void 0:r.type))return mr(r,e),!0;let i="ImportSpecifier"===(null==t?void 0:t.type)&&"ImportDeclaration"===(null==r?void 0:r.type),s="ExportSpecifier"===(null==t?void 0:t.type)&&"ExportNamedDeclaration"===(null==r?void 0:r.type);return!(!i&&!s||!D(n,I(e))||(yr(t,e),0))}function Kr({comment:e,enclosingNode:t}){return"AssignmentPattern"===(null==t?void 0:t.type)&&(mr(t,e),!0)}var en=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),tn=new Set(["ObjectExpression","RecordExpression","ArrayExpression","TupleExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function rn({comment:e,enclosingNode:t,followingNode:r}){return!(!en.has(null==t?void 0:t.type)||!r||!tn.has(r.type)&&!j(e)||(mr(r,e),0))}function nn({comment:e,enclosingNode:t,followingNode:r,text:n}){return!(r||"TSMethodSignature"!==(null==t?void 0:t.type)&&"TSDeclareFunction"!==(null==t?void 0:t.type)&&"TSAbstractMethodDefinition"!==(null==t?void 0:t.type)||";"!==xr(n,I(e))||(yr(t,e),0))}function sn({comment:e,enclosingNode:t,followingNode:r}){if(Ye(e)&&"TSMappedType"===(null==t?void 0:t.type)&&"TSTypeParameter"===(null==r?void 0:r.type)&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function on({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return!("TSMappedType"!==(null==r?void 0:r.type)||("TSTypeParameter"===(null==n?void 0:n.type)&&n.name?(mr(n.name,e),0):"TSTypeParameter"!==(null==t?void 0:t.type)||!t.constraint||(yr(t.constraint,e),0)))}function an({comment:e,enclosingNode:t,followingNode:r}){return!(!t||"SwitchCase"!==t.type||t.test||!r||r!==t.consequent[0]||("BlockStatement"===r.type&&z(e)?kr(r,e):gr(t,e),0))}function ln({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return!(!it(t)||("TSArrayType"!==r.type&&"ArrayTypeAnnotation"!==r.type||n)&&!st(r)||(yr(h(!1,t.types,-1),e),0))}function un({comment:e,enclosingNode:t,precedingNode:r,followingNode:n}){if(("ObjectPattern"===(null==t?void 0:t.type)||"ArrayPattern"===(null==t?void 0:t.type))&&"TSTypeAnnotation"===(null==n?void 0:n.type))return r?yr(r,e):gr(t,e),!0}var cn=R(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),hn=new Set(["EmptyStatement","TemplateElement","Import","TSEmptyBodyFunctionExpression","ChainExpression"]);function pn(e){return!hn.has(e.type)}function dn(e,t){var r;if(("typescript"===t.parser||"flow"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser)&&"MethodDefinition"===e.type&&"FunctionExpression"===(null==(r=e.value)?void 0:r.type)&&0===qe(e.value).length&&!e.value.returnType&&!C(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}function fn(e){let{node:t,parent:r}=e;return(le(t)||r&&("JSXSpreadAttribute"===r.type||"JSXSpreadChild"===r.type||it(r)||("ClassDeclaration"===r.type||"ClassExpression"===r.type)&&r.superClass===t))&&(!ze(t)||it(r))}function mn(e,{parser:t}){if("flow"===t||"babel-flow"===t)return""===(e=c(!1,e,/[\s(]/gu,""))||"/*"===e||"/*::"===e}var gn=Symbol("MODE_BREAK"),yn=Symbol("MODE_FLAT"),On=Symbol("cursor");function xn(e,t){return vn(e,{type:"indent"},t)}function bn(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||{value:"",length:0,queue:[]}:t<0?vn(e,{type:"dedent"},r):t?"root"===t.type?{...e,root:e}:vn(e,{type:"string"==typeof t?"stringAlign":"numberAlign",n:t},r):e}function vn(e,t,r){let n="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t],i="",s=0,o=0,a=0;for(let e of n)switch(e.type){case"indent":c(),r.useTabs?l(1):u(r.tabWidth);break;case"stringAlign":c(),i+=e.n,s+=e.n.length;break;case"numberAlign":o+=1,a+=e.n;break;default:throw new Error(`Unexpected type '${e.type}'`)}return h(),{...e,value:i,length:s,queue:n};function l(e){i+="\t".repeat(e),s+=r.tabWidth*e}function u(e){i+=" ".repeat(e),s+=e}function c(){r.useTabs?(o>0&&l(o),p()):h()}function h(){a>0&&u(a),p()}function p(){o=0,a=0}}function wn(e){let t=0,r=0,n=e.length;e:for(;n--;){let i=e[n];if(i!==On)for(let r=i.length-1;r>=0;r--){let s=i[r];if(" "!==s&&"\t"!==s){e[n]=i.slice(0,r+1);break e}t++}else r++}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(On);return t}function Dn(e,t,r,n,i,s){if(r===Number.POSITIVE_INFINITY)return!0;let o=t.length,a=[e],l=[];for(;r>=0;){if(0===a.length){if(0===o)return!0;a.push(t[--o]);continue}let{mode:e,doc:u}=a.pop(),c=Et(u);switch(c){case ct:l.push(u),r-=y(u);break;case ht:case yt:{let t=c===ht?u:u.parts;for(let r=t.length-1;r>=0;r--)a.push({mode:e,doc:t[r]});break}case dt:case ft:case xt:case Dt:a.push({mode:e,doc:u.contents});break;case mt:r+=wn(l);break;case gt:{if(s&&u.break)return!1;let t=u.break?gn:e,r=u.expandedStates&&t===gn?h(!1,u.expandedStates,-1):u.contents;a.push({mode:t,doc:r});break}case Ot:{let t=(u.groupId?i[u.groupId]||yn:e)===gn?u.breakContents:u.flatContents;t&&a.push({mode:e,doc:t});break}case wt:if(e===gn||u.hard)return!0;u.soft||(l.push(" "),r--);break;case bt:n=!0;break;case vt:if(n)return!1}}return!1}function Sn(e,t){let r={},n=t.printWidth,i=function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}(t.endOfLine),s=0,o=[{ind:{value:"",length:0,queue:[]},mode:gn,doc:e}],a=[],l=!1,u=[],p=0;for(function(e){let t=new Set,r=[];At(e,(function(e){if(e.type===St&&ir(r),e.type===gt){if(r.push(e),t.has(e))return!1;t.add(e)}}),(function(e){e.type===gt&&r.pop().break&&ir(r)}),!0)}(e);o.length>0;){let{ind:e,mode:d,doc:f}=o.pop();switch(Et(f)){case ct:{let e="\n"!==i?c(!1,f,"\n",i):f;a.push(e),o.length>0&&(s+=y(e));break}case ht:for(let t=f.length-1;t>=0;t--)o.push({ind:e,mode:d,doc:f[t]});break;case pt:if(p>=2)throw new Error("There are too many 'cursor' in doc.");a.push(On),p++;break;case dt:o.push({ind:xn(e,t),mode:d,doc:f.contents});break;case ft:o.push({ind:bn(e,f.n,t),mode:d,doc:f.contents});break;case mt:s-=wn(a);break;case gt:switch(d){case yn:if(!l){o.push({ind:e,mode:f.break?gn:yn,doc:f.contents});break}case gn:{l=!1;let t={ind:e,mode:yn,doc:f.contents},i=n-s,a=u.length>0;if(!f.break&&Dn(t,o,i,a,r))o.push(t);else if(f.expandedStates){let t=h(!1,f.expandedStates,-1);if(f.break){o.push({ind:e,mode:gn,doc:t});break}for(let n=1;n<f.expandedStates.length+1;n++){if(n>=f.expandedStates.length){o.push({ind:e,mode:gn,doc:t});break}{let t=f.expandedStates[n],s={ind:e,mode:yn,doc:t};if(Dn(s,o,i,a,r)){o.push(s);break}}}}else o.push({ind:e,mode:gn,doc:f.contents});break}}f.id&&(r[f.id]=h(!1,o,-1).mode);break;case yt:{let t=n-s,{parts:i}=f;if(0===i.length)break;let[a,l]=i,c={ind:e,mode:yn,doc:a},h={ind:e,mode:gn,doc:a},p=Dn(c,[],t,u.length>0,r,!0);if(1===i.length){p?o.push(c):o.push(h);break}let m={ind:e,mode:yn,doc:l},g={ind:e,mode:gn,doc:l};if(2===i.length){p?o.push(m,c):o.push(g,h);break}i.splice(0,2);let y={ind:e,mode:d,doc:Rt(i)},O=i[0];Dn({ind:e,mode:yn,doc:[a,l,O]},[],t,u.length>0,r,!0)?o.push(y,m,c):p?o.push(y,g,c):o.push(y,g,h);break}case Ot:case xt:{let t=f.groupId?r[f.groupId]:d;if(t===gn){let t=f.type===Ot?f.breakContents:f.negate?f.contents:Bt(f.contents);t&&o.push({ind:e,mode:d,doc:t})}if(t===yn){let t=f.type===Ot?f.flatContents:f.negate?Bt(f.contents):f.contents;t&&o.push({ind:e,mode:d,doc:t})}break}case bt:u.push({ind:e,mode:d,doc:f.contents});break;case vt:u.length>0&&o.push({ind:e,mode:d,doc:Vt});break;case wt:switch(d){case yn:if(!f.hard){f.soft||(a.push(" "),s+=1);break}l=!0;case gn:if(u.length>0){o.push({ind:e,mode:d,doc:f},...u.reverse()),u.length=0;break}f.literal?e.root?(a.push(i,e.root.value),s=e.root.length):(a.push(i),s=0):(s-=wn(a),a.push(i+e.value),s=e.length)}break;case Dt:o.push({ind:e,mode:d,doc:f.contents});break;case St:break;default:throw new Tt(f)}0===o.length&&u.length>0&&(o.push(...u.reverse()),u.length=0)}let d=a.indexOf(On);if(-1!==d){let e=a.indexOf(On,d+1),t=a.slice(0,d).join(""),r=a.slice(d+1,e).join("");return{formatted:t+r+a.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:r}}return{formatted:a.join("")}}var kn=function(e,t,r=0){let n=0;for(let i=r;i<e.length;++i)"\t"===e[i]?n=n+t-n%t:n++;return n};var En=function(e,t){let r=e.lastIndexOf("\n");return-1===r?0:kn(e.slice(r+1).match(/^[\t ]*/u)[0],t)};function Cn(e,t,r){let{node:n}=e;if("TemplateLiteral"===n.type&&function({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/u;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&r.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&r.test(t.tag.object.object.name))}(e)){let n=function(e,t,r){let{node:n}=e,i=n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(i.length>1||i.some((e=>e.length>0))){t.__inJestEach=!0;let s=e.map(r,"expressions");t.__inJestEach=!1;let o=[],a=s.map((e=>"${"+Sn(e,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}")),l=[{hasLineBreak:!1,cells:[]}];for(let e=1;e<n.quasis.length;e++){let t=h(!1,l,-1),r=a[e-1];t.cells.push(r),r.includes("\n")&&(t.hasLineBreak=!0),n.quasis[e].value.raw.includes("\n")&&l.push({hasLineBreak:!1,cells:[]})}let u=Math.max(i.length,...l.map((e=>e.cells.length))),c=Array.from({length:u}).fill(0),p=[{cells:i},...l.filter((e=>e.cells.length>0))];for(let{cells:e}of p.filter((e=>!e.hasLineBreak)))for(let[t,r]of e.entries())c[t]=Math.max(c[t],y(r));return o.push(Wt,"`",Bt([zt,Jt(zt,p.map((e=>Jt(" | ",e.cells.map(((t,r)=>e.hasLineBreak?t:t+" ".repeat(c[r]-y(t))))))))]),zt,"`"),o}}(e,r,t);if(n)return n}let i="expressions";"TSTemplateLiteralType"===n.type&&(i="types");let s=[],o=e.map(t,i);s.push(Wt,"`");let a=0;return e.each((({index:e,node:l})=>{if(s.push(t()),l.tail)return;let{tabWidth:u}=r,c=l.value.raw,h=c.includes("\n")?En(c,u):a;a=h;let p=o[e],d=n[i][e],f=br(r.originalText,I(l),_(n.quasis[e+1]));if(!f){let e=Sn(p,{...r,printWidth:Number.POSITIVE_INFINITY}).formatted;e.includes("\n")?f=!0:p=e}f&&(Je(d)||"Identifier"===d.type||xe(d)||"ConditionalExpression"===d.type||"SequenceExpression"===d.type||nt(d)||he(d))&&(p=[Bt([Yt,p]),Yt]);let m=0===h&&c.endsWith("\n")?Nt(Number.NEGATIVE_INFINITY,p):function(e,t,r){_t(e);let n=e;if(t>0){for(let e=0;e<Math.floor(t/r);++e)n=Bt(n);n=Nt(t%r,n),n=Nt(Number.NEGATIVE_INFINITY,n)}return n}(p,h,u);s.push($t(["${",m,Wt,"}"]))}),"quasis"),s.push("`"),s}function Tn(e,t){return e.map((e=>function(e,t){let{node:r}=e,n=t();return Je(r)&&(n=$t([Bt([Yt,n]),Yt])),["${",n,Wt,"}"]}(e,t)),"expressions")}function Pn(e,t){return er(e,(e=>"string"==typeof e?t?c(!1,e,/(\\*)`/gu,"$1$1\\`"):An(e):e))}function An(e){return c(!1,e,/([\\`]|\$\{)/gu,String.raw`\$1`)}var Fn=[(e,t)=>"ObjectExpression"===e.type&&"properties"===t,(e,t)=>"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t,(e,t)=>"Decorator"===e.type&&"expression"===t];function _n(e,t){return Je(e,Ge.Block|Ge.Leading,(({value:e})=>e===` ${t} `))}function In({node:e,parent:t},r){return _n(e,r)||function(e){return"AsConstExpression"===e.type||"TSAsExpression"===e.type&&"TSTypeReference"===e.typeAnnotation.type&&"Identifier"===e.typeAnnotation.typeName.type&&"const"===e.typeAnnotation.typeName.name}(t)&&_n(t,r)||"ExpressionStatement"===t.type&&_n(t,r)}async function Bn(e,t,r){let{node:n}=r,i=n.quasis.map((e=>e.value.raw)),s=0,o=i.reduce(((e,t,r)=>0===r?t:e+"@prettier-placeholder-"+s+++"-id"+t),""),a=function(e,t){if(!C(t))return e;let r=0,n=er(ar(e),(e=>"string"==typeof e&&e.includes("@prettier-placeholder")?e.split(/@prettier-placeholder-(\d+)-id/u).map(((e,n)=>n%2==0?lr(e):(r++,t[e]))):e));return t.length===r?n:null}(await e(o,{parser:"scss"}),Tn(r,t));if(!a)throw new Error("Couldn't insert all the expressions");return["`",Bt([zt,a]),Yt,"`"]}function Nn(e){return"Identifier"===e.type&&"styled"===e.name}function $n(e){return/^[A-Z]/u.test(e.object.name)&&"extend"===e.property.name}var Qn=function(e){if(function({node:e,parent:t,grandparent:r}){return r&&e.quasis&&"JSXExpressionContainer"===t.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some((e=>"JSXAttribute"===e.type&&"jsx"===e.name.name))||"TaggedTemplateExpression"===(null==t?void 0:t.type)&&"Identifier"===t.tag.type&&"css"===t.tag.name||"TaggedTemplateExpression"===(null==t?void 0:t.type)&&"MemberExpression"===t.tag.type&&"css"===t.tag.object.name&&("global"===t.tag.property.name||"resolve"===t.tag.property.name)}(e)||function({parent:e}){if(!e||"TaggedTemplateExpression"!==e.type)return!1;let t="ParenthesizedExpression"===e.tag.type?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return Nn(t.object)||$n(t);case"CallExpression":return Nn(t.callee)||"MemberExpression"===t.callee.type&&("MemberExpression"===t.callee.object.type&&(Nn(t.callee.object.object)||$n(t.callee.object))||"CallExpression"===t.callee.object.type&&Nn(t.callee.object.callee));case"Identifier":return"css"===t.name;default:return!1}}(e)||function({parent:e,grandparent:t}){return"JSXAttribute"===(null==t?void 0:t.type)&&"JSXExpressionContainer"===e.type&&"JSXIdentifier"===t.name.type&&"css"===t.name.name}(e)||function(e){let t=e=>"TemplateLiteral"===e.type,r=(e,t)=>rt(e)&&!e.computed&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t;return e.match(t,((e,t)=>H(e)&&"elements"===t),r,...Fn)||e.match(t,r,...Fn)}(e))return Bn};async function Ln(e,t,r){let{node:n}=r,i=n.quasis.length,s=Tn(r,t),o=[];for(let t=0;t<i;t++){let r=0===t,a=t===i-1,l=n.quasis[t].value.cooked,u=l.split("\n"),c=u.length,h=s[t],p=c>2&&""===u[0].trim()&&""===u[1].trim(),d=c>2&&""===u[c-1].trim()&&""===u[c-2].trim(),f=u.every((e=>/^\s*(?:#[^\n\r]*)?$/u.test(e)));if(!a&&/#[^\n\r]*$/u.test(u[c-1]))return null;let m=null;m=f?Mn(u):await e(l,{parser:"graphql"}),m?(m=Pn(m,!1),!r&&p&&o.push(""),o.push(m),!a&&d&&o.push("")):!r&&!a&&p&&o.push(""),h&&o.push(h)}return["`",Bt([zt,Jt(zt,o)]),zt,"`"]}function Mn(e){let t=[],r=!1,n=e.map((e=>e.trim()));for(let[e,i]of n.entries())""!==i&&(""===n[e-1]&&r?t.push([zt,i]):t.push(i),r=!0);return 0===t.length?null:Jt(zt,t)}var Rn=function(e){if(function({node:e,parent:t}){return In({node:e,parent:t},"GraphQL")||t&&("TaggedTemplateExpression"===t.type&&("MemberExpression"===t.tag.type&&"graphql"===t.tag.object.name&&"experimental"===t.tag.property.name||"Identifier"===t.tag.type&&("gql"===t.tag.name||"graphql"===t.tag.name))||"CallExpression"===t.type&&"Identifier"===t.callee.type&&"graphql"===t.callee.name)}(e))return Ln},jn=0;async function Zn(e,t,r,n,i){let{node:s}=n,o=jn;jn=jn+1>>>0;let a=e=>`PRETTIER_HTML_PLACEHOLDER_${e}_${o}_IN_JS`,l=s.quasis.map(((e,t,r)=>t===r.length-1?e.value.cooked:e.value.cooked+a(t))).join(""),u=Tn(n,r),h=new RegExp(a(String.raw`(\d+)`),"gu"),p=0,d=er(await t(l,{parser:e,__onHtmlRoot(e){p=e.children.length}}),(e=>{if("string"!=typeof e)return e;let t=[],r=e.split(h);for(let e=0;e<r.length;e++){let n=r[e];if(e%2==0){n&&(n=An(n),i.__embeddedInHtml&&(n=c(!1,n,/<\/(?=script\b)/giu,String.raw`<\/`)),t.push(n));continue}let s=Number(n);t.push(u[s])}return t})),f=/^\s/u.test(l)?" ":"",m=/\s$/u.test(l)?" ":"",g="ignore"===i.htmlWhitespaceSensitivity?zt:f&&m?Ut:null;return g?$t(["`",Bt([g,$t(d)]),g,"`"]):Kt({hug:!1},$t(["`",f,p>1?Bt($t(d)):$t(d),m,"`"]))}var qn=Zn.bind(void 0,"html"),Wn=Zn.bind(void 0,"angular");var Xn=function(e){return function(e){return In(e,"HTML")||e.match((e=>"TemplateLiteral"===e.type),((e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t))}(e)?qn:function(e){return e.match((e=>"TemplateLiteral"===e.type),((e,t)=>rt(e)&&!e.computed&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t),...Fn)}(e)?Wn:void 0};async function Vn(e,t,r){let{node:n}=r,i=c(!1,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,((e,t)=>"\\".repeat(t.length/2)+"`")),s=function(e){let t=e.match(/^([^\S\n]*)\S/mu);return null===t?"":t[1]}(i),o=""!==s;o&&(i=c(!1,i,new RegExp(`^${s}`,"gmu"),""));let a=Pn(await e(i,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",o?Bt([Yt,a]):[Gt,Qt(a)],Yt,"`"]}var Un=function(e){if(function({node:e,parent:t}){return"TaggedTemplateExpression"===(null==t?void 0:t.type)&&1===e.quasis.length&&"Identifier"===t.tag.type&&("md"===t.tag.name||"markdown"===t.tag.name)}(e))return Vn};var Yn=function(e){let t,{node:r}=e;if("TemplateLiteral"===r.type&&!function({quasis:e}){return e.some((({value:{cooked:e}})=>null===e))}(r))for(let n of[Qn,Rn,Xn,Un])if(t=n(e),t)return 1===r.quasis.length&&""===r.quasis[0].value.raw.trim()?"``":async(...e)=>{let r=await t(...e);return r&&Kt({embed:!0,...r.label},r)}},zn=/\*\/$/,Gn=/^\/\*\*?/,Hn=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Jn=/(^|\s+)\/\/([^\n\r]*)/g,Kn=/^(\r?\n)+/,ei=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ti=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,ri=/(\r?\n|^) *\* ?/g,ni=[];function ii(e,t){return[...ni,...Array.isArray(t)?t:[t]].map((t=>`@${e} ${t}`.trim()))}var si=function(e){if(!e.startsWith("#!"))return"";let t=e.indexOf("\n");return-1===t?e:e.slice(0,t)};function oi(e){let t=si(e);t&&(e=e.slice(t.length+1));let r=function(e){let t=e.match(Hn);return t?t[0].trimStart():""}(e),{pragmas:n,comments:i}=function(e){e=c(!1,e.replace(Gn,"").replace(zn,""),ri,"$1");let t="";for(;t!==e;)t=e,e=c(!1,e,ei,"\n$1 $2\n");e=e.replace(Kn,"").trimEnd();let r,n=Object.create(null),i=c(!1,e,ti,"").replace(Kn,"").trimEnd();for(;r=ti.exec(e);){let e=c(!1,r[2],Jn,"");if("string"==typeof n[r[1]]||Array.isArray(n[r[1]])){let t=n[r[1]];n[r[1]]=[...ni,...Array.isArray(t)?t:[t],e]}else n[r[1]]=e}return{comments:i,pragmas:n}}(r);return{shebang:t,text:e,pragmas:n,comments:i}}function ai(e){let{shebang:t,text:r,pragmas:n,comments:i}=oi(e),s=function(e){let t=e.match(Hn),r=null==t?void 0:t[0];return null==r?e:e.slice(r.length)}(r);return(t?`${t}\n`:"")+function({comments:e="",pragmas:t={}}){let r="\n",n=" *",i=Object.keys(t),s=i.flatMap((e=>ii(e,t[e]))).map((e=>`${n} ${e}${r}`)).join("");if(!e){if(0===i.length)return"";if(1===i.length&&!Array.isArray(t[i[0]])){let e=t[i[0]];return`/** ${ii(i[0],e)[0]} */`}}let o=e.split(r).map((e=>`${n} ${e}`)).join(r)+r;return"/**\n"+(e?o:"")+(e&&i.length>0?n+r:"")+s+" */"}({pragmas:{format:"",...n},comments:i.trimStart()})+(s.startsWith("\n")?"\n":"\n\n")+s}var li=function(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:i,locEnd:s,[Symbol.for("printedComments")]:o}=t,{node:a}=e,l=i(a),u=s(a);for(let e of n)i(e)>=l&&s(e)<=u&&o.add(e);return r.slice(l,u)};function ui(e,t){var r,n,i,s,o,a,l,u,c;if(e.isRoot)return!1;let{node:h,key:p,parent:d}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(e){return J(e)}(h)&&hi(e))return!0;if(ci(h))return!1;if("Identifier"===h.type){if(null!=(r=h.extra)&&r.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(h.name)||"left"===p&&("async"===h.name&&!d.await||"let"===h.name)&&"ForOfStatement"===d.type)return!0;if("let"===h.name){let t=null==(n=e.findAncestor((e=>"ForOfStatement"===e.type)))?void 0:n.left;if(t&&Be(t,(e=>e===h)))return!0}if("object"===p&&"let"===h.name&&"MemberExpression"===d.type&&d.computed&&!d.optional){let t=e.findAncestor((e=>"ExpressionStatement"===e.type||"ForStatement"===e.type||"ForInStatement"===e.type)),r=t?"ExpressionStatement"===t.type?t.expression:"ForStatement"===t.type?t.init:t.left:void 0;if(r&&Be(r,(e=>e===h)))return!0}if("expression"===p)switch(h.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let t=e.findAncestor((e=>!nt(e)));if(t!==d&&"ExpressionStatement"===t.type)return!0}}return!1}if("ObjectExpression"===h.type||"FunctionExpression"===h.type||"ClassExpression"===h.type||"DoExpression"===h.type){let t=null==(i=e.findAncestor((e=>"ExpressionStatement"===e.type)))?void 0:i.expression;if(t&&Be(t,(e=>e===h)))return!0}if("ObjectExpression"===h.type){let t=null==(s=e.findAncestor((e=>"ArrowFunctionExpression"===e.type)))?void 0:s.body;if(t&&"SequenceExpression"!==t.type&&"AssignmentExpression"!==t.type&&Be(t,(e=>e===h)))return!0}switch(d.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if("superClass"===p&&("ArrowFunctionExpression"===h.type||"AssignmentExpression"===h.type||"AwaitExpression"===h.type||"BinaryExpression"===h.type||"ConditionalExpression"===h.type||"LogicalExpression"===h.type||"NewExpression"===h.type||"ObjectExpression"===h.type||"SequenceExpression"===h.type||"TaggedTemplateExpression"===h.type||"UnaryExpression"===h.type||"UpdateExpression"===h.type||"YieldExpression"===h.type||"TSNonNullExpression"===h.type||"ClassExpression"===h.type&&C(h.decorators)))return!0;break;case"ExportDefaultDeclaration":return pi(e,t)||"SequenceExpression"===h.type;case"Decorator":if("expression"===p&&!function(e){return"ChainExpression"===e.type&&(e=e.expression),di(e)||Oe(e)&&!e.optional&&di(e.callee)}(h))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,((e,t)=>"returnType"===t&&"ArrowFunctionExpression"===e.type))&&function(e){return X(e,(e=>"ObjectTypeAnnotation"===e.type&&X(e,(e=>"FunctionTypeAnnotation"===e.type))))}(h))return!0;break;case"BinaryExpression":if("left"===p&&("in"===d.operator||"instanceof"===d.operator)&&"UnaryExpression"===h.type)return!0;break;case"VariableDeclarator":if("init"===p&&e.match(void 0,void 0,((e,t)=>"declarations"===t&&"VariableDeclaration"===e.type),((e,t)=>"left"===t&&"ForInStatement"===e.type)))return!0}switch(h.type){case"UpdateExpression":if("UnaryExpression"===d.type)return h.prefix&&("++"===h.operator&&"+"===d.operator||"--"===h.operator&&"-"===d.operator);case"UnaryExpression":switch(d.type){case"UnaryExpression":return h.operator===d.operator&&("+"===h.operator||"-"===h.operator);case"BindExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===p;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===p;case"BinaryExpression":return"left"===p&&"**"===d.operator;default:return!1}case"BinaryExpression":if("UpdateExpression"===d.type||"in"===h.operator&&function(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if("ForStatement"===(null==n?void 0:n.type)&&n.init===r)return!0;r=n}return!1}(e))return!0;if("|>"===h.operator&&null!=(o=h.extra)&&o.parenthesized){let t=e.grandparent;if("BinaryExpression"===t.type&&"|>"===t.operator)return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(d.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!nt(h);case"ConditionalExpression":return nt(h)||function(e){return"LogicalExpression"===e.type&&"??"===e.operator}(h);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===p;case"ClassExpression":case"ClassDeclaration":return"superClass"===p;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===p;case"AssignmentExpression":case"AssignmentPattern":return"left"===p&&("TSTypeAssertion"===h.type||nt(h));case"LogicalExpression":if("LogicalExpression"===h.type)return d.operator!==h.operator;case"BinaryExpression":{let{operator:e,type:t}=h;if(!e&&"TSTypeAssertion"!==t)return!0;let r=Re(e),n=d.operator,i=Re(n);return i>r||"right"===p&&i===r||i===r&&!Le(n,e)||(i<r&&"%"===e?"+"===n||"-"===n:!!function(e){return!!Qe[e]||"|"===e||"^"===e||"&"===e}(n))}default:return!1}case"SequenceExpression":switch(d.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==p;case"ArrowFunctionExpression":return"body"!==p;default:return!0}case"YieldExpression":if("AwaitExpression"===d.type||"TSTypeAssertion"===d.type)return!0;case"AwaitExpression":switch(d.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===p;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===p;case"ConditionalExpression":return"test"===p;case"BinaryExpression":return!(!h.argument&&"|>"===d.operator);default:return!1}case"TSFunctionType":if(e.match((e=>"TSFunctionType"===e.type),((e,t)=>"typeAnnotation"===t&&"TSTypeAnnotation"===e.type),((e,t)=>"returnType"===t&&"ArrowFunctionExpression"===e.type)))return!0;case"TSConditionalType":case"TSConstructorType":if("extendsType"===p&&"TSConditionalType"===d.type){if("TSConditionalType"===h.type)return!0;let{typeAnnotation:e}=h.returnType||h.typeAnnotation;if("TSTypePredicate"===e.type&&e.typeAnnotation&&(e=e.typeAnnotation.typeAnnotation),"TSInferType"===e.type&&e.typeParameter.constraint)return!0}if("checkType"===p&&"TSConditionalType"===d.type)return!0;case"TSUnionType":case"TSIntersectionType":if(("TSUnionType"===d.type||"TSIntersectionType"===d.type)&&d.types.length>1&&(!h.types||h.types.length>1))return!0;case"TSInferType":if("TSInferType"===h.type){if("TSRestType"===d.type)return!1;if("types"===p&&("TSUnionType"===d.type||"TSIntersectionType"===d.type)&&"TSTypeParameter"===h.typeParameter.type&&h.typeParameter.constraint)return!0}case"TSTypeOperator":return"TSArrayType"===d.type||"TSOptionalType"===d.type||"TSRestType"===d.type||"objectType"===p&&"TSIndexedAccessType"===d.type||"TSTypeOperator"===d.type||"TSTypeAnnotation"===d.type&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return"objectType"===p&&"TSIndexedAccessType"===d.type||"elementType"===p&&"TSArrayType"===d.type;case"TypeOperator":return"ArrayTypeAnnotation"===d.type||"NullableTypeAnnotation"===d.type||"objectType"===p&&("IndexedAccessType"===d.type||"OptionalIndexedAccessType"===d.type)||"TypeOperator"===d.type;case"TypeofTypeAnnotation":return"objectType"===p&&("IndexedAccessType"===d.type||"OptionalIndexedAccessType"===d.type)||"elementType"===p&&"ArrayTypeAnnotation"===d.type;case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===d.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"TypeOperator"===d.type||"ArrayTypeAnnotation"===d.type||"NullableTypeAnnotation"===d.type||"IntersectionTypeAnnotation"===d.type||"UnionTypeAnnotation"===d.type||"objectType"===p&&("IndexedAccessType"===d.type||"OptionalIndexedAccessType"===d.type);case"InferTypeAnnotation":case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===d.type||"objectType"===p&&("IndexedAccessType"===d.type||"OptionalIndexedAccessType"===d.type);case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if("ComponentTypeAnnotation"===h.type&&(null===h.rendersType||void 0===h.rendersType))return!1;if(e.match(void 0,((e,t)=>"typeAnnotation"===t&&"TypeAnnotation"===e.type),((e,t)=>"returnType"===t&&"ArrowFunctionExpression"===e.type))||e.match(void 0,((e,t)=>"typeAnnotation"===t&&"TypePredicate"===e.type),((e,t)=>"typeAnnotation"===t&&"TypeAnnotation"===e.type),((e,t)=>"returnType"===t&&"ArrowFunctionExpression"===e.type)))return!0;let t="NullableTypeAnnotation"===d.type?e.grandparent:d;return"UnionTypeAnnotation"===t.type||"IntersectionTypeAnnotation"===t.type||"ArrayTypeAnnotation"===t.type||"objectType"===p&&("IndexedAccessType"===t.type||"OptionalIndexedAccessType"===t.type)||"checkType"===p&&"ConditionalTypeAnnotation"===d.type||"extendsType"===p&&"ConditionalTypeAnnotation"===d.type&&"InferTypeAnnotation"===(null==(a=h.returnType)?void 0:a.type)&&(null==(l=h.returnType)?void 0:l.typeParameter.bound)||"NullableTypeAnnotation"===t.type||"FunctionTypeParam"===d.type&&null===d.name&&qe(h).some((e=>{var t;return"NullableTypeAnnotation"===(null==(t=e.typeAnnotation)?void 0:t.type)}))}case"ConditionalTypeAnnotation":if("extendsType"===p&&"ConditionalTypeAnnotation"===d.type&&"ConditionalTypeAnnotation"===h.type||"checkType"===p&&"ConditionalTypeAnnotation"===d.type)return!0;case"OptionalIndexedAccessType":return"objectType"===p&&"IndexedAccessType"===d.type;case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof h.value&&"ExpressionStatement"===d.type&&!d.directive){let t=e.grandparent;return"Program"===t.type||"BlockStatement"===t.type}return"object"===p&&"MemberExpression"===d.type&&"number"==typeof h.value;case"AssignmentExpression":{let t=e.grandparent;return"body"===p&&"ArrowFunctionExpression"===d.type||("key"!==p||"ClassProperty"!==d.type&&"PropertyDefinition"!==d.type||!d.computed)&&("init"!==p&&"update"!==p||"ForStatement"!==d.type)&&("ExpressionStatement"===d.type?"ObjectPattern"===h.left.type:!("key"===p&&"TSPropertySignature"===d.type||"AssignmentExpression"===d.type||"SequenceExpression"===d.type&&"ForStatement"===t.type&&(t.init===d||t.update===d)||"value"===p&&"Property"===d.type&&"ObjectPattern"===t.type&&t.properties.includes(d)||"NGChainedExpression"===d.type))}case"ConditionalExpression":switch(d.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===p;case"ConditionalExpression":return!t.experimentalTernaries&&"test"===p;case"MemberExpression":case"OptionalMemberExpression":return"object"===p;default:return!1}case"FunctionExpression":switch(d.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===p;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(d.type){case"BinaryExpression":return"|>"!==d.operator||(null==(u=h.extra)?void 0:u.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===p;case"MemberExpression":case"OptionalMemberExpression":return"object"===p;case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===p;default:return!1}case"ClassExpression":return"NewExpression"===d.type&&"callee"===p;case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(function(e){let{node:t,parent:r,grandparent:n,key:i}=e;return!!(("OptionalMemberExpression"===t.type||"OptionalCallExpression"===t.type)&&("object"===i&&"MemberExpression"===r.type||"callee"===i&&("CallExpression"===r.type||"NewExpression"===r.type)||"TSNonNullExpression"===r.type&&"MemberExpression"===n.type&&n.object===r)||e.match((()=>"CallExpression"===t.type||"MemberExpression"===t.type),((e,t)=>"expression"===t&&"ChainExpression"===e.type))&&(e.match(void 0,void 0,((e,t)=>"callee"===t&&("CallExpression"===e.type&&!e.optional||"NewExpression"===e.type)||"object"===t&&"MemberExpression"===e.type&&!e.optional))||e.match(void 0,void 0,((e,t)=>"expression"===t&&"TSNonNullExpression"===e.type),((e,t)=>"object"===t&&"MemberExpression"===e.type)))||e.match((()=>"CallExpression"===t.type||"MemberExpression"===t.type),((e,t)=>"expression"===t&&"TSNonNullExpression"===e.type),((e,t)=>"expression"===t&&"ChainExpression"===e.type),((e,t)=>"object"===t&&"MemberExpression"===e.type)))}(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if("callee"===p&&("BindExpression"===d.type||"NewExpression"===d.type)){let e=h;for(;e;)switch(e.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":e=e.object;break;case"TaggedTemplateExpression":e=e.tag;break;case"TSNonNullExpression":e=e.expression;break;default:return!1}}return!1;case"BindExpression":return"callee"===p&&("BindExpression"===d.type||"NewExpression"===d.type)||"object"===p&&xe(d);case"NGPipeExpression":return!("NGRoot"===d.type||"NGMicrosyntaxExpression"===d.type||"ObjectProperty"===d.type&&(null==(c=h.extra)||!c.parenthesized)||H(d)||"arguments"===p&&Oe(d)||"right"===p&&"NGPipeExpression"===d.type||"property"===p&&"MemberExpression"===d.type||"AssignmentExpression"===d.type);case"JSXFragment":case"JSXElement":return"callee"===p||"left"===p&&"BinaryExpression"===d.type&&"<"===d.operator||!H(d)&&"ArrowFunctionExpression"!==d.type&&"AssignmentExpression"!==d.type&&"AssignmentPattern"!==d.type&&"BinaryExpression"!==d.type&&"NewExpression"!==d.type&&"ConditionalExpression"!==d.type&&"ExpressionStatement"!==d.type&&"JsExpressionRoot"!==d.type&&"JSXAttribute"!==d.type&&"JSXElement"!==d.type&&"JSXExpressionContainer"!==d.type&&"JSXFragment"!==d.type&&"LogicalExpression"!==d.type&&!Oe(d)&&!rt(d)&&"ReturnStatement"!==d.type&&"ThrowStatement"!==d.type&&"TypeCastExpression"!==d.type&&"VariableDeclarator"!==d.type&&"YieldExpression"!==d.type;case"TSInstantiationExpression":return"object"===p&&xe(d)}return!1}var ci=R(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function hi(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if("arguments"===r&&e.isLast)return e.callParent(hi);break;case"ObjectProperty":if("value"===r)return e.callParent((()=>"properties"===e.key&&e.isLast));break;case"BinaryExpression":case"LogicalExpression":if("right"===r)return e.callParent(hi);break;case"ConditionalExpression":if("alternate"===r)return e.callParent(hi);break;case"UnaryExpression":if(t.prefix)return e.callParent(hi)}return!1}function pi(e,t){let{node:r,parent:n}=e;return"FunctionExpression"===r.type||"ClassExpression"===r.type?"ExportDefaultDeclaration"===n.type||!ui(e,t):!(!V(r)||"ExportDefaultDeclaration"!==n.type&&ui(e,t))&&e.call((()=>pi(e,t)),...Y(r))}function di(e){return"Identifier"===e.type||!!xe(e)&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&di(e.object)}var fi=ui;var mi=function(e,t){let r=t-1;return r=x(e,r,{backwards:!0}),r=w(e,r,{backwards:!0}),r=x(e,r,{backwards:!0}),r!==w(e,r,{backwards:!0})},gi=()=>!0;function yi(e,t){return e.node.printed=!0,t.printer.printComment(e,t)}function Oi(e,t,r={}){let{node:n}=e;if(!C(null==n?void 0:n.comments))return"";let{indent:i=!1,marker:s,filter:o=gi}=r,a=[];if(e.each((({node:r})=>{r.leading||r.trailing||r.marker!==s||!o(r)||a.push(yi(e,t))}),"comments"),0===a.length)return"";let l=Jt(zt,a);return i?Bt([zt,l]):l}function xi(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if(0===(r.comments||[]).filter((e=>!n.has(e))).length)return{leading:"",trailing:""};let i,s=[],o=[];return e.each((()=>{let r=e.node;if(null!=n&&n.has(r))return;let{leading:a,trailing:l}=r;a?s.push(function(e,t){var r;let n=e.node,i=[yi(e,t)],{printer:s,originalText:o,locStart:a,locEnd:l}=t;if(null==(r=s.isBlockComment)?void 0:r.call(s,n)){let e=D(o,l(n))?D(o,a(n),{backwards:!0})?zt:Ut:" ";i.push(e)}else i.push(zt);let u=w(o,x(o,l(n)));return!1!==u&&D(o,u)&&i.push(zt),i}(e,t)):l&&(i=function(e,t,r){var n;let i=e.node,s=yi(e,t),{printer:o,originalText:a,locStart:l}=t,u=null==(n=o.isBlockComment)?void 0:n.call(o,i);if(null!=r&&r.hasLineSuffix&&(null==r||!r.isBlock)||D(a,l(i),{backwards:!0})){let e=mi(a,l(i));return{doc:qt([zt,e?zt:"",s]),isBlock:u,hasLineSuffix:!0}}return!u||null!=r&&r.hasLineSuffix?{doc:[qt([" ",s]),Xt],isBlock:u,hasLineSuffix:!0}:{doc:[" ",s],isBlock:u,hasLineSuffix:!1}}(e,t,i),o.push(i.doc))}),"comments"),{leading:s,trailing:o}}function bi(e,t,r){let{leading:n,trailing:i}=xi(e,r);return n||i?cr(t,(e=>[n,e,i])):t}var vi=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}};var wi;wi=new WeakMap;var Di=new class{constructor(e){((e,t,r)=>{t.has(e)?i("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r)})(this,wi),((e,t,r,n)=>{o(e,t,"write to private field"),n?n.call(e,r):t.set(e,r)})(this,wi,new Set(e))}getLeadingWhitespaceCount(e){let t=a(this,wi),r=0;for(let n=0;n<e.length&&t.has(e.charAt(n));n++)r++;return r}getTrailingWhitespaceCount(e){let t=a(this,wi),r=0;for(let n=e.length-1;n>=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return a(this,wi).has(e.charAt(0))}hasTrailingWhitespace(e){return a(this,wi).has(h(!1,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}([...a(this,wi)].join(""))}]+`,n=new RegExp(t?`(${r})`:r,"u");return e.split(n)}hasWhitespaceCharacter(e){let t=a(this,wi);return Array.prototype.some.call(e,(e=>t.has(e)))}hasNonWhitespaceCharacter(e){let t=a(this,wi);return Array.prototype.some.call(e,(e=>!t.has(e)))}isWhitespaceOnly(e){let t=a(this,wi);return Array.prototype.every.call(e,(e=>t.has(e)))}}(" \n\r\t"),Si=e=>""===e||e===Ut||e===zt||e===Yt;function ki(e,t,r){var n,i,s;let{node:o}=e;if("JSXElement"===o.type&&function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;let t=e.children[0];return"JSXText"===t.type&&!_i(t)}(o))return[r("openingElement"),r("closingElement")];let a="JSXElement"===o.type?r("openingElement"):r("openingFragment"),l="JSXElement"===o.type?r("closingElement"):r("closingFragment");if(1===o.children.length&&"JSXExpressionContainer"===o.children[0].type&&("TemplateLiteral"===o.children[0].expression.type||"TaggedTemplateExpression"===o.children[0].expression.type))return[a,...e.map(r,"children"),l];o.children=o.children.map((e=>function(e){return"JSXExpressionContainer"===e.type&&te(e.expression)&&" "===e.expression.value&&!Je(e.expression)}(e)?{type:"JSXText",value:" ",raw:" "}:e));let u=o.children.some(le),c=o.children.filter((e=>"JSXExpressionContainer"===e.type)).length>1,p="JSXElement"===o.type&&o.openingElement.attributes.length>1,d=nr(a)||u||p||c,f="mdx"===e.parent.rootMarker,m=t.singleQuote?"{' '}":'{" "}',g=f?" ":jt([m,Yt]," "),y=function(e,t,r,n,i){let s=[];return e.each((({node:e,next:t})=>{if("JSXText"===e.type){let r=Fe(e);if(_i(e)){let o,a=Di.split(r,!0);if(""===a[0]&&(s.push(""),a.shift(),/\n/u.test(a[0])?s.push(Ci(i,a[1],e,t)):s.push(n),a.shift()),""===h(!1,a,-1)&&(a.pop(),o=a.pop()),0===a.length)return;for(let[e,t]of a.entries())e%2==1?s.push(Ut):s.push(t);void 0!==o?/\n/u.test(o)?s.push(Ci(i,h(!1,s,-1),e,t)):s.push(n):s.push(Ei(i,h(!1,s,-1),e,t))}else/\n/u.test(r)?r.match(/\n/gu).length>1&&s.push("",zt):s.push("",n)}else{let n=r();if(s.push(n),t&&_i(t)){let r=Di.trim(Fe(t)),[n]=Di.split(r);s.push(Ei(i,n,e,t))}else s.push(zt)}}),"children"),s}(e,0,r,g,"fbt"===(null==(i=null==(n=o.openingElement)?void 0:n.name)?void 0:i.name)),O=o.children.some((e=>_i(e)));for(let e=y.length-2;e>=0;e--){let t=""===y[e]&&""===y[e+1],r=y[e]===zt&&""===y[e+1]&&y[e+2]===zt,n=(y[e]===Yt||y[e]===zt)&&""===y[e+1]&&y[e+2]===g,i=y[e]===g&&""===y[e+1]&&(y[e+2]===Yt||y[e+2]===zt),s=y[e]===g&&""===y[e+1]&&y[e+2]===g,o=y[e]===Yt&&""===y[e+1]&&y[e+2]===zt||y[e]===zt&&""===y[e+1]&&y[e+2]===Yt;r&&O||t||n||s||o?y.splice(e,2):i&&y.splice(e+1,2)}for(;y.length>0&&Si(h(!1,y,-1));)y.pop();for(;y.length>1&&Si(y[0])&&Si(y[1]);)y.shift(),y.shift();let x=[];for(let[e,t]of y.entries()){if(t===g){if(1===e&&""===y[e-1]){if(2===y.length){x.push(m);continue}x.push([m,zt]);continue}if(e===y.length-1){x.push(m);continue}if(""===y[e-1]&&y[e-2]===zt){x.push(m);continue}}x.push(t),nr(t)&&(d=!0)}let b=O?Rt(x):$t(x,{shouldBreak:!0});if("JSXText"===(null==(s=t.cursorNode)?void 0:s.type)&&o.children.includes(t.cursorNode)&&(b=[Ht,b,Ht]),f)return b;let v=$t([a,Bt([zt,b]),zt,l]);return d?v:Mt([$t([a,...y,l]),v])}function Ei(e,t,r,n){return e?"":"JSXElement"===r.type&&!r.closingElement||"JSXElement"===(null==n?void 0:n.type)&&!n.closingElement?1===t.length?Yt:zt:Yt}function Ci(e,t,r,n){return e?zt:1===t.length?"JSXElement"===r.type&&!r.closingElement||"JSXElement"===(null==n?void 0:n.type)&&!n.closingElement?zt:Yt:zt}var Ti=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function Pi(e,t,r){return e.selfClosing?[Ut,"/>"]:function(e,t,r){let n=e.attributes.length>0&&Je(h(!1,e.attributes,-1),Ge.Trailing);return 0===e.attributes.length&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}(e,t,r)?[">"]:[Yt,">"]}function Ai(e,t,r){return function(e,t,r){let{parent:n}=e;if(Ti.has(n.type))return t;let i=e.match(void 0,(e=>"ArrowFunctionExpression"===e.type),Oe,(e=>"JSXExpressionContainer"===e.type)),s=fi(e,r);return $t([s?"":jt("("),Bt([Yt,t]),Yt,s?"":jt(")")],{shouldBreak:i})}(e,bi(e,ki(e,t,r),t),t)}function Fi(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return function(e,t,r){let{node:n}=e,i=[];if(i.push(r("name")),n.value){let s;if(te(n.value)){let r=Fe(n.value),i=c(!1,c(!1,r.slice(1,-1),"&apos;","'"),"&quot;",'"'),o=P(i,t.jsxSingleQuote);i='"'===o?c(!1,i,'"',"&quot;"):c(!1,i,"'","&apos;"),s=e.call((()=>bi(e,lr(o+i+o),t)),"value")}else s=r("value");i.push("=",s)}return i}(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return Jt(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return Jt(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return function(e,t,r){let{node:n}=e;return["{",e.call((({node:n})=>{let i=["...",r()];return Je(n)&&fn(e)?[Bt([Yt,bi(e,i,t)]),Yt]:i}),"JSXSpreadAttribute"===n.type?"argument":"expression"),"}"]}(e,t,r);case"JSXExpressionContainer":return function(e,t,r){let{node:n}=e,i=(e,t)=>"JSXEmptyExpression"===e.type||!Je(e)&&(H(e)||J(e)||"ArrowFunctionExpression"===e.type||"AwaitExpression"===e.type&&(i(e.argument,e)||"JSXElement"===e.argument.type)||Oe(e)||"ChainExpression"===e.type&&Oe(e.expression)||"FunctionExpression"===e.type||"TemplateLiteral"===e.type||"TaggedTemplateExpression"===e.type||"DoExpression"===e.type||le(t)&&("ConditionalExpression"===e.type||he(e)));return i(n.expression,e.parent)?$t(["{",r("expression"),Wt,"}"]):$t(["{",Bt([Yt,r("expression")]),Yt,Wt,"}"])}(e,0,r);case"JSXFragment":case"JSXElement":return Ai(e,t,r);case"JSXOpeningElement":return function(e,t,r){var n,i;let{node:s}=e,o=Je(s.name)||Je(s.typeParameters)||Je(s.typeArguments);if(s.selfClosing&&0===s.attributes.length&&!o)return["<",r("name"),s.typeArguments?r("typeArguments"):r("typeParameters")," />"];if(1===(null==(n=s.attributes)?void 0:n.length)&&te(s.attributes[0].value)&&!s.attributes[0].value.value.includes("\n")&&!o&&!Je(s.attributes[0]))return $t(["<",r("name"),s.typeArguments?r("typeArguments"):r("typeParameters")," ",...e.map(r,"attributes"),s.selfClosing?" />":">"]);let a=null==(i=s.attributes)?void 0:i.some((e=>te(e.value)&&e.value.value.includes("\n"))),l=t.singleAttributePerLine&&s.attributes.length>1?zt:Ut;return $t(["<",r("name"),s.typeArguments?r("typeArguments"):r("typeParameters"),Bt(e.map((()=>[l,r()]),"attributes")),...Pi(s,t,o)],{shouldBreak:a})}(e,t,r);case"JSXClosingElement":return function(e,t,r){let{node:n}=e,i=[];i.push("</");let s=r("name");return Je(n.name,Ge.Leading|Ge.Line)?i.push(Bt([zt,s]),zt):Je(n.name,Ge.Leading|Ge.Block)?i.push(" ",s):i.push(s),i.push(">"),i}(e,0,r);case"JSXOpeningFragment":case"JSXClosingFragment":return function(e,t){let{node:r}=e,n=Je(r),i=Je(r,Ge.Line),s="JSXOpeningFragment"===r.type;return[s?"<":"</",Bt([i?zt:n&&!s?" ":"",Oi(e,t)]),i?zt:"",">"]}(e,t);case"JSXEmptyExpression":return function(e,t){let{node:r}=e,n=Je(r,Ge.Line);return[Oi(e,t,{indent:n}),n?zt:""]}(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new vi(n,"JSX")}}function _i(e){return"JSXText"===e.type&&(Di.hasNonWhitespaceCharacter(Fe(e))||!/\n/u.test(Fe(e)))}var Ii=function(e){return ze(e.node)||function(e){let{node:t,parent:r}=e;if(!le(t)||!le(r))return!1;let n,{index:i,siblings:s}=e;for(let e=i;e>0;e--){let t=s[e-1];if("JSXText"!==t.type||_i(t)){n=t;break}}return"JSXExpressionContainer"===(null==n?void 0:n.type)&&"JSXEmptyExpression"===n.expression.type&&ze(n.expression)}(e)},Bi=0;function Ni(e,t,r){var n;let{node:i,parent:s,grandparent:o,key:a}=e,l="body"!==a&&("IfStatement"===s.type||"WhileStatement"===s.type||"SwitchStatement"===s.type||"DoWhileStatement"===s.type),u="|>"===i.operator&&(null==(n=e.root.extra)?void 0:n.__isUsingHackPipeline),c=$i(e,r,t,!1,l);if(l)return c;if(u)return $t(c);if(Oe(s)&&s.callee===i||"UnaryExpression"===s.type||xe(s)&&!s.computed)return $t([Bt([Yt,...c]),Yt]);let p="ReturnStatement"===s.type||"ThrowStatement"===s.type||"JSXExpressionContainer"===s.type&&"JSXAttribute"===o.type||"|"!==i.operator&&"JsExpressionRoot"===s.type||"NGPipeExpression"!==i.type&&("NGRoot"===s.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===s.type&&"NGMicrosyntax"===o.type&&1===o.body.length)||i===s.body&&"ArrowFunctionExpression"===s.type||i!==s.body&&"ForStatement"===s.type||"ConditionalExpression"===s.type&&"ReturnStatement"!==o.type&&"ThrowStatement"!==o.type&&!Oe(o)||"TemplateLiteral"===s.type,d="AssignmentExpression"===s.type||"VariableDeclarator"===s.type||"ClassProperty"===s.type||"PropertyDefinition"===s.type||"TSAbstractPropertyDefinition"===s.type||"ClassPrivateProperty"===s.type||rt(s),f=he(i.left)&&Le(i.operator,i.left.operator);if(p||Qi(i)&&!f||!Qi(i)&&d)return $t(c);if(0===c.length)return"";let m=le(i.right),g=c.findIndex((e=>"string"!=typeof e&&!Array.isArray(e)&&e.type===gt)),y=c.slice(0,-1===g?1:g+1),O=c.slice(y.length,m?-1:void 0),x=Symbol("logicalChain-"+ ++Bi),b=$t([...y,Bt(O)],{id:x});return m?$t([b,Zt(h(!1,c,-1),{groupId:x})]):b}function $i(e,t,r,n,i){var s;let{node:o}=e;if(!he(o))return[$t(t())];let a=[];Le(o.operator,o.left.operator)?a=e.call((e=>$i(e,t,r,!0,i)),"left"):a.push($t(t("left")));let l,u=Qi(o),c=("|>"===o.operator||"NGPipeExpression"===o.type||function(e,t){return("__vue_expression"===t.parser||"__vue_ts_expression"===t.parser)&&Li(e.node)&&!e.hasAncestor((e=>!Li(e)&&"JsExpressionRoot"!==e.type))}(e,r))&&!Se(r.originalText,o.right),h="NGPipeExpression"===o.type?"|":o.operator,p="NGPipeExpression"===o.type&&o.arguments.length>0?$t(Bt([Yt,": ",Jt([Ut,": "],e.map((()=>Nt(2,$t(t()))),"arguments"))])):"";if(u)l=[h," ",t("right"),p];else{let n="|>"===h&&(null==(s=e.root.extra)?void 0:s.__isUsingHackPipeline)?e.call((e=>$i(e,t,r,!0,i)),"right"):t("right");l=[c?Ut:"",h,c?" ":Ut,n,p]}let{parent:d}=e,f=Je(o.left,Ge.Trailing|Ge.Line),m=f||!(i&&"LogicalExpression"===o.type)&&d.type!==o.type&&o.left.type!==o.type&&o.right.type!==o.type;if(a.push(c?"":" ",m?$t(l,{shouldBreak:f}):l),n&&Je(o)){let t=ar(bi(e,a,r));return t.type===yt?t.parts:Array.isArray(t)?t:[t]}return a}function Qi(e){return"LogicalExpression"===e.type&&!!(J(e.right)&&e.right.properties.length>0||H(e.right)&&e.right.elements.length>0||le(e.right))}var Li=e=>"BinaryExpression"===e.type&&"|"===e.operator;function Mi(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return[r("node"),Je(n.node)?" //"+Ke(n.node)[0].value.trimEnd():""];case"NGPipeExpression":return Ni(e,t,r);case"NGChainedExpression":return $t(Jt([";",Ut],e.map((()=>function({node:e}){return X(e,ji)}(e)?r():["(",r(),")"]),"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map((()=>[e.isFirst?"":Ri(e)?" ":[";",Ut],r()]),"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),null===n.alias?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:t,parent:i}=e,s=Ri(e)||(1===t&&("then"===n.key.name||"else"===n.key.name||"as"===n.key.name)||(2===t||3===t)&&("else"===n.key.name&&"NGMicrosyntaxKeyedExpression"===i.body[t-1].type&&"then"===i.body[t-1].key.name||"track"===n.key.name))&&"NGMicrosyntaxExpression"===i.body[0].type;return[r("key"),s?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),null===n.value?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new vi(n,"Angular")}}function Ri({node:e,index:t}){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t}var ji=R(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function Zi(e,t,r){let{node:n}=e;return $t([Jt(Ut,e.map(r,"decorators")),Wi(n,t)?zt:Ut])}function qi(e,t,r){return Xi(e.node)?[Jt(zt,e.map(r,"declaration","decorators")),zt]:""}function Wi(e,t){return e.decorators.some((e=>D(t.originalText,I(e))))}function Xi(e){var t;if("ExportDefaultDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type&&"DeclareExportDeclaration"!==e.type)return!1;let r=null==(t=e.declaration)?void 0:t.decorators;return C(r)&&B(e,r[0])}var Vi=class extends Error{name="ArgExpansionBailout"};function Ui(e,t=!1){return J(e)&&(e.properties.length>0||Je(e))||H(e)&&(e.elements.length>0||Je(e))||"TSTypeAssertion"===e.type&&Ui(e.expression)||nt(e)&&Ui(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type||function(e){return"BlockStatement"===e.type&&(e.body.some((e=>"EmptyStatement"!==e.type))||Je(e,Ge.Dangling))}(e.body))&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type&&Ui(e.body,!0)||J(e.body)||H(e.body)||!t&&(Oe(e.body)||"ConditionalExpression"===e.body.type)||le(e.body))||"DoExpression"===e.type||"ModuleExpression"===e.type}function Yi(e){if("ParenthesizedExpression"===e.type)return Yi(e.expression);if(nt(e)||"TypeCastExpression"===e.type){let{typeAnnotation:t}=e;if("TypeAnnotation"===t.type&&(t=t.typeAnnotation),"TSArrayType"===t.type&&(t=t.elementType,"TSArrayType"===t.type&&(t=t.elementType)),"GenericTypeAnnotation"===t.type||"TSTypeReference"===t.type){let e=t.typeArguments??t.typeParameters;1===(null==e?void 0:e.params.length)&&(t=e.params[0])}return fe(t)&&Ae(e.expression,1)}return!(tt(e)&&Xe(e).length>1)&&(he(e)?Ae(e.left,1)&&Ae(e.right,1):re(e)||Ae(e))}function zi(e,t){let r=e[t],n=e[t+1];return"ArrowFunctionExpression"===r.type&&0===qe(r).length&&"BlockStatement"===r.body.type&&"ArrayExpression"===n.type&&!e.some((e=>Je(e)))}var Gi=function(e,t,r){let{node:n}=e,i=Xe(n);if(0===i.length)return["(",Oi(e,t),")"];let s=i.length-1;if(function(e){return 2===e.length?zi(e,0):3===e.length&&"Identifier"===e[0].type&&zi(e,1)}(i)){let t=["("];return Ve(e,((e,n)=>{t.push(r()),n!==s&&t.push(", ")})),t.push(")"),t}let o=!1,a=[];Ve(e,(({node:e},n)=>{let i=r();n===s||(et(e,t)?(o=!0,i=[i,",",zt,zt]):i=[i,",",Ut]),a.push(i)}));let l="ImportExpression"===n.type||"Import"===n.callee.type,u=t.parser.startsWith("__ng_")||l||!Ie(t,"all")?"":",";function c(){return $t(["(",Bt([Ut,...a]),u,Ut,")"],{shouldBreak:!0})}if(o||"Decorator"!==e.parent.type&&function(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(oe(r)){if(t+=1,t>1)return!0}else if(Oe(r))for(let e of Xe(r))if(oe(e))return!0;return!1}(i))return c();if(function(e){if(2!==e.length)return!1;let[t,r]=e;return!("ModuleExpression"!==t.type||!function(e){return"ObjectExpression"===e.type&&1===e.properties.length&&rt(e.properties[0])&&"Identifier"===e.properties[0].key.type&&"type"===e.properties[0].key.name&&te(e.properties[0].value)&&"module"===e.properties[0].value.value}(r))||!Je(t)&&("FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type&&"BlockStatement"===t.body.type)&&"FunctionExpression"!==r.type&&"ArrowFunctionExpression"!==r.type&&"ConditionalExpression"!==r.type&&Yi(r)&&!Ui(r)}(i)){let e,t=a.slice(1);if(t.some(nr))return c();try{e=r(Ue(n,0),{expandFirstArg:!0})}catch(e){if(e instanceof Vi)return c();throw e}return nr(e)?[Xt,Mt([["(",$t(e,{shouldBreak:!0}),", ",...t,")"],c()])]:Mt([["(",e,", ",...t,")"],["(",$t(e,{shouldBreak:!0}),", ",...t,")"],c()])}if(function(e,t,r){var n,i;let s=h(!1,e,-1);if(1===e.length){let e=h(!1,t,-1);if(null!=(n=e.label)&&n.embed&&!1!==(null==(i=e.label)?void 0:i.hug))return!0}let o=h(!1,e,-2);return!Je(s,Ge.Leading)&&!Je(s,Ge.Trailing)&&Ui(s)&&(!o||o.type!==s.type)&&(2!==e.length||"ArrowFunctionExpression"!==o.type||!H(s))&&!(e.length>1&&Ws(s,r))}(i,a,t)){let e,t=a.slice(0,-1);if(t.some(nr))return c();try{e=r(Ue(n,-1),{expandLastArg:!0})}catch(e){if(e instanceof Vi)return c();throw e}return nr(e)?[Xt,Mt([["(",...t,$t(e,{shouldBreak:!0}),")"],c()])]:Mt([["(",...t,e,")"],["(",...t,$t(e,{shouldBreak:!0}),")"],c()])}let p=["(",Bt([Yt,...a]),jt(u),Yt,")"];return Te(e)?p:$t(p,{shouldBreak:a.some(nr)||o})},Hi=e=>(("ChainExpression"===e.type||"TSNonNullExpression"===e.type)&&(e=e.expression),Oe(e)&&Xe(e).length>0);function Ji(e,t,r){let n=r("property"),{node:i}=e,s=_s(e);return i.computed?!i.property||K(i.property)?[s,"[",n,"]"]:$t([s,"[",Bt([Yt,n]),Yt,"]"]):[s,".",n]}var Ki=function e(t,r,n){if("ChainExpression"===t.node.type)return t.call((()=>e(t,r,n)),"expression");let{parent:i}=t,s=!i||"ExpressionStatement"===i.type,o=[];function a(e){let{originalText:t}=r,n=Or(t,I(e));return")"===t.charAt(n)?!1!==n&&E(t,n+1):et(e,r)}function l(e){let{node:t}=e;if("ChainExpression"===t.type)return e.call((()=>l(e)),"expression");if(Oe(t)&&(pe(t.callee)||Oe(t.callee))){let i=a(t);o.unshift({node:t,hasTrailingEmptyLine:i,printed:[bi(e,[_s(e),Ls(e,0,n),Gi(e,r,n)],r),i?zt:""]}),e.call((e=>l(e)),"callee")}else pe(t)?(o.unshift({node:t,needsParens:fi(e,r),printed:bi(e,xe(t)?Ji(e,0,n):Ms(0,0,n),r)}),e.call((e=>l(e)),"object")):"TSNonNullExpression"===t.type?(o.unshift({node:t,printed:bi(e,"!",r)}),e.call((e=>l(e)),"expression")):o.unshift({node:t,printed:n()})}let{node:u}=t;o.unshift({node:u,printed:[_s(t),Ls(t,0,n),Gi(t,r,n)]}),u.callee&&t.call((e=>l(e)),"callee");let c=[],p=[o[0]],d=1;for(;d<o.length&&("TSNonNullExpression"===o[d].node.type||Oe(o[d].node)||xe(o[d].node)&&o[d].node.computed&&K(o[d].node.property));++d)p.push(o[d]);if(!Oe(o[0].node))for(;d+1<o.length&&pe(o[d].node)&&pe(o[d+1].node);++d)p.push(o[d]);c.push(p),p=[];let f=!1;for(;d<o.length;++d){if(f&&pe(o[d].node)){if(o[d].node.computed&&K(o[d].node.property)){p.push(o[d]);continue}c.push(p),p=[],f=!1}(Oe(o[d].node)||"ImportExpression"===o[d].node.type)&&(f=!0),p.push(o[d]),Je(o[d].node,Ge.Trailing)&&(c.push(p),p=[],f=!1)}function m(e){return/^[A-Z]|^[$_]+$/u.test(e)}p.length>0&&c.push(p);let g=c.length>=2&&!Je(c[1][0].node)&&function(e){var t;let n=null==(t=e[1][0])?void 0:t.node.computed;if(1===e[0].length){let t=e[0][0].node;return"ThisExpression"===t.type||"Identifier"===t.type&&(m(t.name)||s&&function(e){return e.length<=r.tabWidth}(t.name)||n)}let i=h(!1,e[0],-1).node;return xe(i)&&"Identifier"===i.property.type&&(m(i.property.name)||n)}(c);function y(e){let t=e.map((e=>e.printed));return e.length>0&&h(!1,e,-1).needsParens?["(",...t,")"]:t}let O=c.map(y),x=O,b=g?3:2,v=c.flat(),w=v.slice(1,-1).some((e=>Je(e.node,Ge.Leading)))||v.slice(0,-1).some((e=>Je(e.node,Ge.Trailing)))||c[b]&&Je(c[b][0].node,Ge.Leading);if(c.length<=b&&!w&&!c.some((e=>h(!1,e,-1).hasTrailingEmptyLine)))return Te(t)?x:$t(x);let D,S=h(!1,c[g?1:0],-1).node,k=!Oe(S)&&a(S),C=[y(c[0]),g?c.slice(1,2).map(y):"",k?zt:"",(P=c.slice(g?2:1),0===P.length?"":Bt([zt,Jt(zt,P.map(y))]))],T=o.map((({node:e})=>e)).filter(Oe);var P;return D=w||T.length>2&&T.some((e=>!e.arguments.every((e=>Ae(e)))))||O.slice(0,-1).some(nr)||function(){let e=h(!1,h(!1,c,-1),-1).node,t=h(!1,O,-1);return Oe(e)&&nr(t)&&T.slice(0,-1).some((e=>e.arguments.some(oe)))}()?$t(C):[nr(x)||k?Xt:"",Mt([x,C])],Kt({memberChain:!0},D)};function es(e,t,r){var n;let{node:i}=e,s="NewExpression"===i.type,o="ImportExpression"===i.type,a=_s(e),l=Xe(i),u=1===l.length&&Ee(l[0],t.originalText);if(u||function(e){let{node:t}=e;if("CallExpression"!==t.type||t.optional||"Identifier"!==t.callee.type)return!1;let r=Xe(t);return"require"===t.callee.name?1===r.length&&te(r[0])||r.length>1:"define"===t.callee.name&&"ExpressionStatement"===e.parent.type&&(1===r.length||2===r.length&&"ArrayExpression"===r[0].type||3===r.length&&te(r[0])&&"ArrayExpression"===r[1].type)}(e)||ge(i,e.parent)){let t=[];if(Ve(e,(()=>{t.push(r())})),!u||null==(n=t[0].label)||!n.embed)return[s?"new ":"",ts(e,r),a,Ls(e,0,r),"(",Jt(", ",t),")"]}if(!o&&!s&&pe(i.callee)&&!e.call((e=>fi(e,t)),"callee",..."ChainExpression"===i.callee.type?["expression"]:[]))return Ki(e,t,r);let c=[s?"new ":"",ts(e,r),a,Ls(e,0,r),Gi(e,t,r)];return o||Oe(i.callee)?$t(c):c}function ts(e,t){let{node:r}=e;return"ImportExpression"===r.type?"import"+(r.phase?`.${r.phase}`:""):t("callee")}function rs(e,t,r,n,i,s){let o=function(e,t,r,n,i){let{node:s}=e,o=s[i];if(!o)return"only-left";let a=!ns(o);if(e.match(ns,is,(e=>!a||"ExpressionStatement"!==e.type&&"VariableDeclaration"!==e.type)))return a?"ArrowFunctionExpression"===o.type&&"ArrowFunctionExpression"===o.body.type?"chain-tail-arrow-chain":"chain-tail":"chain";if(!a&&ns(o.right)||Se(t.originalText,o))return"break-after-operator";if("ImportAttribute"===s.type||"CallExpression"===o.type&&"require"===o.callee.name||"json5"===t.parser||"jsonc"===t.parser||"json"===t.parser)return"never-break-after-operator";let l=function(e){return tr(e,ur,!1)}(n);if(function(e){if(is(e)){let t=e.left||e.id;return"ObjectPattern"===t.type&&t.properties.length>2&&t.properties.some((e=>{var t;return rt(e)&&(!e.shorthand||"AssignmentPattern"===(null==(t=e.value)?void 0:t.type))}))}return!1}(s)||function(e){if("VariableDeclarator"!==e.type)return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=ls(t.typeAnnotation);return C(r)&&r.length>1&&r.some((e=>C(ls(e))||"TSConditionalType"===e.type))}(s)||os(s)&&l)return"break-lhs";let u=function(e,t,r){return!!rt(e)&&"string"==typeof(t=ar(t))&&y(t)<r.tabWidth+3}(s,n,t);return e.call((()=>function(e,t,r,n){let i=e.node;if(he(i)&&!Qi(i))return!0;switch(i.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!function(e){function t(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!(e.typeArguments??e.typeParameters);default:return!1}}return t(e.checkType)||t(e.extendsType)}(i))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:e}=i;return he(e)&&!Qi(e)}let{consequent:e,alternate:r}=i;return"ConditionalExpression"===e.type||"ConditionalExpression"===r.type}case"ClassExpression":return C(i.decorators)}if(n)return!1;let s=i,o=[];for(;;)if("UnaryExpression"===s.type||"AwaitExpression"===s.type||"YieldExpression"===s.type&&null!==s.argument)s=s.argument,o.push("argument");else{if("TSNonNullExpression"!==s.type)break;s=s.expression,o.push("expression")}return!(!te(s)&&!e.call((()=>us(e,t,r)),...o))}(e,t,r,u)),i)?"break-after-operator":function(e){let t=function(e){var t;if(ss(e))return null==(t=e.typeParameters)?void 0:t.params}(e);if(C(t)){let r="TSTypeAliasDeclaration"===e.type?"constraint":"bound";if(t.length>1&&t.some((e=>e[r]||e.default)))return!0}return!1}(s)?"break-lhs":l||!u&&"TemplateLiteral"!==o.type&&"TaggedTemplateExpression"!==o.type&&"BooleanLiteral"!==o.type&&!K(o)&&"ClassExpression"!==o.type?"fluid":"never-break-after-operator"}(e,t,r,n,s),a=s?r(s,{assignmentLayout:o}):"";switch(o){case"break-after-operator":return $t([$t(n),i,$t(Bt([Ut,a]))]);case"never-break-after-operator":return $t([$t(n),i," ",a]);case"fluid":{let e=Symbol("assignment");return $t([$t(n),i,$t(Bt(Ut),{id:e}),Wt,Zt(a,{groupId:e})])}case"break-lhs":return $t([n,i," ",$t(a)]);case"chain":return[$t(n),i,Ut,a];case"chain-tail":return[$t(n),i,Bt([Ut,a])];case"chain-tail-arrow-chain":return[$t(n),i,a];case"only-left":return n}}function ns(e){return"AssignmentExpression"===e.type}function is(e){return ns(e)||"VariableDeclarator"===e.type}var ss=R(["TSTypeAliasDeclaration","TypeAlias"]);function os(e){var t;return"VariableDeclarator"===e.type&&"ArrowFunctionExpression"===(null==(t=e.init)?void 0:t.type)}var as=R(["TSTypeReference","GenericTypeAnnotation"]);function ls(e){var t;if(as(e))return null==(t=e.typeArguments??e.typeParameters)?void 0:t.params}function us(e,t,r,n=!1){var i;let{node:s}=e,o=()=>us(e,t,r,!0);if("ChainExpression"===s.type||"TSNonNullExpression"===s.type)return e.call(o,"expression");if(Oe(s)){if(null!=(i=es(e,t,r).label)&&i.memberChain)return!1;let n=Xe(s);return!(!(0===n.length||1===n.length&&De(n[0],t))||function(e,t){let r=function(e){var t;return null==(t=e.typeParameters??e.typeArguments)?void 0:t.params}(e);if(C(r)){if(r.length>1)return!0;if(1===r.length){let e=r[0];if(it(e)||st(e)||"TSTypeLiteral"===e.type||"ObjectTypeAnnotation"===e.type)return!0}if(nr(t(e.typeParameters?"typeParameters":"typeArguments")))return!0}return!1}(s,r))&&e.call(o,"callee")}return xe(s)?e.call(o,"object"):n&&("Identifier"===s.type||"ThisExpression"===s.type)}function cs(e,t,r,n,i){let s=e.node,o=qe(s),a=i?Ls(e,0,t):"";if(0===o.length)return[a,"(",Oi(e,r,{filter:e=>")"===xr(r.originalText,I(e))}),")"];let{parent:l}=e,u=ge(l),c=hs(s),h=[];if(function(e,t){let{node:r}=e,n=0,i=e=>t(e,n++);r.this&&e.call(i,"this"),Array.isArray(r.parameters)?e.each(i,"parameters"):Array.isArray(r.params)&&e.each(i,"params"),r.rest&&e.call(i,"rest")}(e,((e,n)=>{let i=n===o.length-1;i&&s.rest&&h.push("..."),h.push(t()),!i&&(h.push(","),u||c?h.push(" "):et(o[n],r)?h.push(zt,zt):h.push(Ut))})),n&&!function(e){return e.match((e=>"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type),((e,t)=>{if("CallExpression"===e.type&&"arguments"===t&&1===e.arguments.length&&"CallExpression"===e.callee.type){let t=e.callee.callee;return"Identifier"===t.type||"MemberExpression"===t.type&&!t.computed&&"Identifier"===t.object.type&&"Identifier"===t.property.type}return!1}),((e,t)=>"VariableDeclarator"===e.type&&"init"===t||"ExportDefaultDeclaration"===e.type&&"declaration"===t||"TSExportAssignment"===e.type&&"expression"===t||"AssignmentExpression"===e.type&&"right"===t&&"MemberExpression"===e.left.type&&"Identifier"===e.left.object.type&&"module"===e.left.object.name&&"Identifier"===e.left.property.type&&"exports"===e.left.property.name),(e=>"VariableDeclaration"!==e.type||"const"===e.kind&&1===e.declarations.length))}(e)){if(nr(a)||nr(h))throw new Vi;return $t([or(a),"(",or(h),")"])}let p=o.every((e=>!C(e.decorators)));return c&&p||u?[a,"(",...h,")"]:(ce(l)||function(e){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||B(e,e.typeAnnotation))}(l)||"TypeAlias"===l.type||"UnionTypeAnnotation"===l.type||"IntersectionTypeAnnotation"===l.type||"FunctionTypeAnnotation"===l.type&&l.returnType===s)&&1===o.length&&null===o[0].name&&s.this!==o[0]&&o[0].typeAnnotation&&null===s.typeParameters&&fe(o[0].typeAnnotation)&&!s.rest?"always"===r.arrowParens||"HookTypeAnnotation"===s.type?["(",...h,")"]:h:[a,"(",Bt([Yt,...h]),jt(!je(s)&&Ie(r,"all")?",":""),Yt,")"]}function hs(e){if(!e)return!1;let t=qe(e);if(1!==t.length)return!1;let[r]=t;return!Je(r)&&("ObjectPattern"===r.type||"ArrayPattern"===r.type||"Identifier"===r.type&&r.typeAnnotation&&("TypeAnnotation"===r.typeAnnotation.type||"TSTypeAnnotation"===r.typeAnnotation.type)&&se(r.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===r.type&&se(r.typeAnnotation)&&r!==e.rest||"AssignmentPattern"===r.type&&("ObjectPattern"===r.left.type||"ArrayPattern"===r.left.type)&&("Identifier"===r.right.type||J(r.right)&&0===r.right.properties.length||H(r.right)&&0===r.right.elements.length))}function ps(e,t){var r;let n=function(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}(e);if(!n)return!1;let i=null==(r=e.typeParameters)?void 0:r.params;if(i){if(i.length>1)return!1;if(1===i.length){let e=i[0];if(e.constraint||e.default)return!1}}return 1===qe(e).length&&(se(n)||nr(t))}var ds=R(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),fs=R(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function ms(e){return!(!fe(e)&&!se(e))||!!it(e)&&function(e){let{types:t}=e;if(t.some((e=>Je(e))))return!1;let r=t.find((e=>fs(e)));return!!r&&t.every((e=>e===r||ds(e)))}(e)}function gs(e,t,r){let n=t.semi?";":"",{node:i}=e,s=[Ns(e)];return s.push("type ",r("id"),r("typeParameters")),[rs(e,t,r,s," =","TSTypeAliasDeclaration"===i.type?"typeAnnotation":"right"),n]}function ys(e,t,r){let n=!1;return $t(e.map((({isFirst:e,previous:t,node:i,index:s})=>{let o=r();if(e)return o;let a=se(i),l=se(t);return l&&a?[" & ",n?Bt(o):o]:l||a?(s>1&&(n=!0),[" & ",s>1?Bt(o):o]):Bt([" &",Ut,o])}),"types"))}function Os(e,t,r){let{node:n}=e,{parent:i}=e,s=!("TypeParameterInstantiation"===i.type||"TSConditionalType"===i.type&&t.experimentalTernaries||"ConditionalTypeAnnotation"===i.type&&t.experimentalTernaries||"TSTypeParameterInstantiation"===i.type||"GenericTypeAnnotation"===i.type||"TSTypeReference"===i.type||"TSTypeAssertion"===i.type||"TupleTypeAnnotation"===i.type||"TSTupleType"===i.type||"FunctionTypeParam"===i.type&&!i.name&&e.grandparent.this!==i||("TypeAlias"===i.type||"VariableDeclarator"===i.type||"TSTypeAliasDeclaration"===i.type)&&Se(t.originalText,n)),o=ms(n),a=e.map((e=>{let n=r();return o||(n=Nt(2,n)),bi(e,n,t)}),"types");if(o)return Jt(" | ",a);let l=[jt([s&&!Se(t.originalText,n)?Ut:"","| "]),Jt([Ut,"| "],a)];return fi(e,t)?$t([Bt(l),Yt]):("TupleTypeAnnotation"===i.type||"TSTupleType"===i.type)&&i["TupleTypeAnnotation"===i.type&&i.types?"types":"elementTypes"].length>1?$t([Bt([jt(["(",Yt]),l]),Yt,jt(")")]):$t(s?Bt(l):l)}function xs(e,t,r){let{node:n}=e,i=[Qs(e)];("TSConstructorType"===n.type||"TSConstructSignatureDeclaration"===n.type)&&i.push("new ");let s=cs(e,r,t,!1,!0),o=[];return"FunctionTypeAnnotation"===n.type?o.push(function(e){var t;let{node:r,parent:n}=e;return"FunctionTypeAnnotation"===r.type&&(ce(n)||!(("ObjectTypeProperty"===n.type||"ObjectTypeInternalSlot"===n.type)&&!n.variance&&!n.optional&&B(n,r)||"ObjectTypeCallProperty"===n.type||"DeclareFunction"===(null==(t=e.getParentNode(2))?void 0:t.type)))}(e)?" => ":": ",r("returnType")):o.push(Es(e,r,n.returnType?"returnType":"typeAnnotation")),ps(n,o)&&(s=$t(s)),i.push(s,o),$t(i)}function bs(e,t,r){return[r("objectType"),_s(e),"[",r("indexType"),"]"]}function vs(e,t,r){return["infer ",r("typeParameter")]}function ws(e,t,r){let{node:n}=e;return[n.postfix?"":r,Es(e,t),n.postfix?r:""]}function Ds(e,t,r){let{node:n}=e;return["...",..."TupleTypeSpreadElement"===n.type&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function Ss(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}var ks=new WeakSet;function Es(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let i=!1;if("TSTypeAnnotation"===n.type||"TypeAnnotation"===n.type){let t=e.call(Cs,r);("=>"===t||":"===t&&Je(n,Ge.Leading))&&(i=!0),ks.add(n)}return i?[" ",t(r)]:t(r)}var Cs=e=>e.match((e=>"TSTypeAnnotation"===e.type),((e,t)=>!("returnType"!==t&&"typeAnnotation"!==t||"TSFunctionType"!==e.type&&"TSConstructorType"!==e.type)))?"=>":e.match((e=>"TSTypeAnnotation"===e.type),((e,t)=>"typeAnnotation"===t&&("TSJSDocNullableType"===e.type||"TSJSDocNonNullableType"===e.type||"TSTypePredicate"===e.type)))||e.match((e=>"TypeAnnotation"===e.type),((e,t)=>"typeAnnotation"===t&&"Identifier"===e.type),((e,t)=>"id"===t&&"DeclareFunction"===e.type))||e.match((e=>"TypeAnnotation"===e.type),((e,t)=>"typeAnnotation"===t&&"Identifier"===e.type),((e,t)=>"id"===t&&"DeclareHook"===e.type))||e.match((e=>"TypeAnnotation"===e.type),((e,t)=>"bound"===t&&"TypeParameter"===e.type&&e.usesExtendsBound))?"":":";function Ts(e,t,r){let n=Cs(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function Ps(e){return[e("elementType"),"[]"]}function As({node:e},t){let r="TSTypeQuery"===e.type?"exprName":"argument",n="TypeofTypeAnnotation"===e.type||e.typeArguments?"typeArguments":"typeParameters";return["typeof ",t(r),t(n)]}function Fs(e,t){let{node:r}=e;return["TSTypePredicate"===r.type&&r.asserts?"asserts ":"TypePredicate"===r.type&&r.kind?`${r.kind} `:"",t("parameterName"),r.typeAnnotation?[" is ",Es(e,t)]:""]}function _s(e){let{node:t}=e;return!t.optional||"Identifier"===t.type&&t===e.parent.key?"":Oe(t)||xe(t)&&t.computed||"OptionalIndexedAccessType"===t.type?"?.":"?"}function Is(e){return e.node.definite||e.match(void 0,((e,t)=>"id"===t&&"VariableDeclarator"===e.type&&e.definite))?"!":""}var Bs=new Set(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function Ns(e){let{node:t}=e;return t.declare||Bs.has(t.type)&&"DeclareExportDeclaration"!==e.parent.type?"declare ":""}var $s=new Set(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Qs({node:e}){return e.abstract||$s.has(e.type)?"abstract ":""}function Ls(e,t,r){let n=e.node;return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""}function Ms(e,t,r){return["::",r("callee")]}function Rs(e,t,r){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||r?[" ",t]:Bt([Ut,t])}function js(e,t){return["...",t("argument"),Es(e,t)]}function Zs(e){return e.accessibility?e.accessibility+" ":""}function qs(e,t,r){let{node:n}=e,i=[],s="TupleExpression"===n.type?"#[":"[",o="TupleTypeAnnotation"===n.type&&n.types?"types":"TSTupleType"===n.type||"TupleTypeAnnotation"===n.type?"elementTypes":"elements",a=n[o];if(0===a.length)i.push(function(e,t,r,n){let{node:i}=e,s=i.inexact?"...":"";return Je(i,Ge.Dangling)?$t([r,s,Oi(e,t,{indent:!0}),Yt,n]):[r,s,n]}(e,t,s,"]"));else{let l=h(!1,a,-1),u="RestElement"!==(null==l?void 0:l.type)&&!n.inexact,c=null===l,p=Symbol("array"),d=!t.__inJestEach&&a.length>1&&a.every(((e,t,r)=>{let n=null==e?void 0:e.type;if(!H(e)&&!J(e))return!1;let i=r[t+1];if(i&&n!==i.type)return!1;let s=H(e)?"elements":"properties";return e[s]&&e[s].length>1})),f=Ws(n,t),m=u?c?",":Ie(t)?f?jt(",","",{groupId:p}):jt(","):"":"";i.push($t([s,Bt([Yt,f?Us(e,t,r,m):[Vs(e,t,o,n.inexact,r),m],Oi(e,t)]),Yt,"]"],{shouldBreak:d,id:p}))}return i.push(_s(e),Es(e,r)),i}function Ws(e,t){return H(e)&&e.elements.length>1&&e.elements.every((e=>e&&(K(e)||ee(e)&&!Je(e.argument))&&!Je(e,Ge.Trailing|Ge.Line,(e=>!D(t.originalText,_(e),{backwards:!0})))))}function Xs({node:e},{originalText:t}){let r=e=>","===t[e]?e:r((e=>S(t,k(t,e)))(e+1));return E(t,r(I(e)))}function Vs(e,t,r,n,i){let s=[];return e.each((({node:r,isLast:o})=>{s.push(r?$t(i()):""),(!o||n)&&s.push([",",Ut,r&&Xs(e,t)?Yt:""])}),r),n&&s.push("..."),s}function Us(e,t,r,n){let i=[];return e.each((({isLast:s,next:o})=>{i.push([r(),s?n:","]),s||i.push(Xs(e,t)?[zt,zt]:Je(o,Ge.Leading|Ge.Line)?zt:Ut)}),"elements"),Rt(i)}var Ys=new Proxy((()=>{}),{get:()=>Ys}),zs=Ys,Gs=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,Hs=e=>Gs.test(e);var Js=function(e){return 1===e.length?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")},Ks=new WeakMap;function eo(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function to(e,t){return!("json"===t.parser||"jsonc"===t.parser||!te(e.key)||F(Fe(e.key),t).slice(1,-1)!==e.key.value||!(Hs(e.key.value)&&!("babel-ts"===t.parser&&"ClassProperty"===e.type||"typescript"===t.parser&&"PropertyDefinition"===e.type)||eo(e.key.value)&&String(Number(e.key.value))===e.key.value&&"ImportAttribute"!==e.type&&("babel"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser)))}function ro(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:i}=e,{key:s}=n;if("consistent"===t.quoteProps&&!Ks.has(i)){let r=e.siblings.some((e=>!e.computed&&te(e.key)&&!to(e,t)));Ks.set(i,r)}if(function(e,t){let{key:r}=e.node;return("Identifier"===r.type||K(r)&&eo(Js(Fe(r)))&&String(r.value)===Js(Fe(r))&&!("typescript"===t.parser||"babel-ts"===t.parser))&&("json"===t.parser||"jsonc"===t.parser||"consistent"===t.quoteProps&&Ks.get(e.parent))}(e,t)){let r=F(JSON.stringify("Identifier"===s.type?s.name:s.value.toString()),t);return e.call((e=>bi(e,r,t)),"key")}return to(n,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!Ks.get(i))?e.call((e=>bi(e,/^\d/u.test(s.value)?Js(s.value):s.value,t)),"key"):r("key")}function no(e,t,r){let{node:n}=e;return n.shorthand?r("value"):rs(e,t,r,ro(e,t,r),":","value")}var io=({node:e,key:t,parent:r})=>"value"===t&&"FunctionExpression"===e.type&&("ObjectMethod"===r.type||"ClassMethod"===r.type||"ClassPrivateMethod"===r.type||"MethodDefinition"===r.type||"TSAbstractMethodDefinition"===r.type||"TSDeclareMethod"===r.type||"Property"===r.type&&ue(r));function so(e,t,r,n){if(io(e))return ao(e,r,t);let{node:i}=e,s=!1;if(("FunctionDeclaration"===i.type||"FunctionExpression"===i.type)&&null!=n&&n.expandLastArg){let{parent:t}=e;Oe(t)&&(Xe(t).length>1||qe(i).every((e=>"Identifier"===e.type&&!e.typeAnnotation)))&&(s=!0)}let o=[Ns(e),i.async?"async ":"",`function${i.generator?"*":""} `,i.id?t("id"):""],a=cs(e,t,r,s),l=uo(e,t),u=ps(i,l);return o.push(Ls(e,0,t),$t([u?$t(a):a,l]),i.body?" ":"",t("body")),r.semi&&(i.declare||!i.body)&&o.push(";"),o}function oo(e,t,r){let{node:n}=e,{kind:i}=n,s=n.value||n,o=[];return i&&"init"!==i&&"method"!==i&&"constructor"!==i?(zs.ok("get"===i||"set"===i),o.push(i," ")):s.async&&o.push("async "),s.generator&&o.push("*"),o.push(ro(e,t,r),n.optional||n.key.optional?"?":"",n===s?ao(e,t,r):r("value")),o}function ao(e,t,r){let{node:n}=e,i=cs(e,r,t),s=uo(e,r),o=function(e){let t=qe(e);return t.length>1&&t.some((e=>"TSParameterProperty"===e.type))}(n),a=ps(n,s),l=[Ls(e,0,r),$t([o?$t(i,{shouldBreak:!0}):a?$t(i):i,s])];return n.body?l.push(" ",r("body")):l.push(t.semi?";":""),l}function lo(e,t){if("always"===t.arrowParens)return!1;if("avoid"===t.arrowParens){let{node:t}=e;return function(e){let t=qe(e);return!(1!==t.length||e.typeParameters||Je(e,Ge.Dangling)||"Identifier"!==t[0].type||t[0].typeAnnotation||Je(t[0])||t[0].optional||e.predicate||e.returnType)}(t)}return!1}function uo(e,t){let{node:r}=e,n=[Es(e,t,"returnType")];return r.predicate&&n.push(t("predicate")),n}function co(e,t,r){let{node:n}=e,i=t.semi?";":"",s=[];if(n.argument){let e=r("argument");!function(e,t){if(Se(e.originalText,t)||Je(t,Ge.Leading,(t=>br(e.originalText,_(t),I(t))))&&!le(t))return!0;if(V(t)){let r,n=t;for(;r=U(n);)if(n=r,Se(e.originalText,n))return!0}return!1}(t,n.argument)?(he(n.argument)||"SequenceExpression"===n.argument.type||t.experimentalTernaries&&"ConditionalExpression"===n.argument.type&&("ConditionalExpression"===n.argument.consequent.type||"ConditionalExpression"===n.argument.alternate.type))&&(e=$t([jt("("),Bt([Yt,e]),Yt,jt(")")])):e=["(",Bt([zt,e]),zt,")"],s.push(" ",e)}let o=Je(n,Ge.Dangling),a=i&&o&&Je(n,Ge.Last|Ge.Line);return a&&s.push(i),o&&s.push(" ",Oi(e,t)),a||s.push(i),s}var ho=new WeakMap;function po(e){return ho.has(e)||ho.set(e,"ConditionalExpression"===e.type&&!Be(e,(e=>"ObjectExpression"===e.type))),ho.get(e)}var fo=e=>"SequenceExpression"===e.type;function mo(e,t,r,n={}){let i,s,o=[],a=[],l=!1,u=!n.expandLastArg&&"ArrowFunctionExpression"===e.node.body.type;!function c(){let{node:h}=e,p=function(e,t,r,n){let{node:i}=e,s=[];if(i.async&&s.push("async "),lo(e,t))s.push(r(["params",0]));else{let i=n.expandLastArg||n.expandFirstArg,o=uo(e,r);if(i){if(nr(o))throw new Vi;o=$t(or(o))}s.push($t([cs(e,r,t,i,!0),o]))}let o=Oi(e,t,{filter(e){let r=Or(t.originalText,I(e));return!1!==r&&"=>"===t.originalText.slice(r,r+2)}});return o&&s.push(" ",o),s}(e,t,r,n);if(0===o.length)o.push(p);else{let{leading:r,trailing:n}=xi(e,t);o.push([r,p]),a.unshift(n)}u&&(l||(l=h.returnType&&qe(h).length>0||h.typeParameters||qe(h).some((e=>"Identifier"!==e.type)))),u&&"ArrowFunctionExpression"===h.body.type?e.call(c,"body"):(i=r("body",n),s=h.body)}();let c,h=!Se(t.originalText,s)&&(fo(s)||function(e,t,r){var n,i;return H(e)||J(e)||"ArrowFunctionExpression"===e.type||"DoExpression"===e.type||"BlockStatement"===e.type||le(e)||!1!==(null==(n=t.label)?void 0:n.hug)&&((null==(i=t.label)?void 0:i.embed)||Ee(e,r.originalText))}(s,i,t)||!l&&po(s)),p="callee"===e.key&&tt(e.parent),d=Symbol("arrow-chain"),f=function(e,t,{signatureDocs:r,shouldBreak:n}){if(1===r.length)return r[0];let{parent:i,key:s}=e;return"callee"!==s&&tt(i)||he(i)?$t([r[0]," =>",Bt([Ut,Jt([" =>",Ut],r.slice(1))])],{shouldBreak:n}):"callee"===s&&tt(i)||t.assignmentLayout?$t(Jt([" =>",Ut],r),{shouldBreak:n}):$t(Bt(Jt([" =>",Ut],r)),{shouldBreak:n})}(e,n,{signatureDocs:o,shouldBreak:l}),m=!1;return u&&(p||n.assignmentLayout)&&(m=!0,c="chain-tail-arrow-chain"===n.assignmentLayout||p&&!h),i=function(e,t,r,{bodyDoc:n,bodyComments:i,functionBody:s,shouldPutBodyOnSameLine:o}){let{node:a,parent:l}=e,u=r.expandLastArg&&Ie(t,"all")?jt(","):"",c=!r.expandLastArg&&"JSXExpressionContainer"!==l.type||Je(a)?"":Yt;return o&&po(s)?[" ",$t([jt("","("),Bt([Yt,n]),jt("",")"),u,c]),i]:(fo(s)&&(n=$t(["(",Bt([Yt,n]),Yt,")"])),o?[" ",n,i]:[Bt([Ut,n,i]),u,c])}(e,t,n,{bodyDoc:i,bodyComments:a,functionBody:s,shouldPutBodyOnSameLine:h}),$t([$t(m?Bt([Yt,f]):f,{shouldBreak:c,id:d})," =>",u?Zt(i,{groupId:d}):$t(i),u&&p?jt(Yt,"",{groupId:d}):""])}var go=(e,t,r)=>{if(!e||null!=t){if(t.findLast)return t.findLast(r);for(let e=t.length-1;e>=0;e--){let n=t[e];if(r(n,e,t))return n}}};function yo(e,t,r,n){let{node:i}=e,s=[],o=go(!1,i[n],(e=>"EmptyStatement"!==e.type));return e.each((({node:e})=>{"EmptyStatement"!==e.type&&(s.push(r()),e!==o&&(s.push(zt),et(e,t)&&s.push(zt)))}),n),s}function Oo(e,t,r){let n=function(e,t,r){let{node:n}=e,i=C(n.directives),s=n.body.some((e=>"EmptyStatement"!==e.type)),o=Je(n,Ge.Dangling);if(!i&&!s&&!o)return"";let a=[];return i&&(a.push(yo(e,t,r,"directives")),(s||o)&&(a.push(zt),et(h(!1,n.directives,-1),t)&&a.push(zt))),s&&a.push(yo(e,t,r,"body")),o&&a.push(Oi(e,t)),a}(e,t,r),{node:i,parent:s}=e;if("Program"===i.type&&"ModuleExpression"!==(null==s?void 0:s.type))return n?[n,zt]:"";let o=[];if("StaticBlock"===i.type&&o.push("static "),o.push("{"),n)o.push(Bt([zt,n]),zt);else{let t=e.grandparent;"ArrowFunctionExpression"===s.type||"FunctionExpression"===s.type||"FunctionDeclaration"===s.type||"ComponentDeclaration"===s.type||"HookDeclaration"===s.type||"ObjectMethod"===s.type||"ClassMethod"===s.type||"ClassPrivateMethod"===s.type||"ForStatement"===s.type||"WhileStatement"===s.type||"DoWhileStatement"===s.type||"DoExpression"===s.type||"ModuleExpression"===s.type||"CatchClause"===s.type&&!t.finalizer||"TSModuleDeclaration"===s.type||"StaticBlock"===i.type||o.push(zt)}return o.push("}"),o}var xo=function(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}};function bo(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function vo(e,t){return"+"===e||"-"===e?e+t:t}var wo=xo("typeParameters");function Do(e,t,r,n){let{node:i}=e;if(!i[n])return"";if(!Array.isArray(i[n]))return r(n);let s=ge(e.grandparent),o=e.match((e=>!(1===e[n].length&&se(e[n][0]))),void 0,((e,t)=>"typeAnnotation"===t),(e=>"Identifier"===e.type),os);if(0===i[n].length||!o&&(s||1===i[n].length&&("NullableTypeAnnotation"===i[n][0].type||ms(i[n][0]))))return["<",Jt(", ",e.map(r,n)),So(e,t),">"];let a="TSTypeParameterInstantiation"===i.type?"":function(e,t,r){let{node:n}=e;return 1===qe(n).length&&n.type.startsWith("TS")&&!n[r][0].constraint&&"ArrowFunctionExpression"===e.parent.type&&!(t.filepath&&/\.ts$/u.test(t.filepath))}(e,t,n)?",":Ie(t)?jt(","):"";return $t(["<",Bt([Yt,Jt([",",Ut],e.map(r,n))]),a,Yt,">"],{id:wo(i)})}function So(e,t){let{node:r}=e;if(!Je(r,Ge.Dangling))return"";let n=!Je(r,Ge.Line),i=Oi(e,t,{indent:!n});return n?i:[i,zt]}function ko(e,t,r){let{node:n,parent:i}=e,s=["TSTypeParameter"===n.type&&n.const?"const ":""],o="TSTypeParameter"===n.type?r("name"):n.name;if("TSMappedType"===i.type)return i.readonly&&s.push(vo(i.readonly,"readonly")," "),s.push("[",o),n.constraint&&s.push(" in ",r("constraint")),i.nameType&&s.push(" as ",e.callParent((()=>r("nameType")))),s.push("]"),s;if(n.variance&&s.push(r("variance")),n.in&&s.push("in "),n.out&&s.push("out "),s.push(o),n.bound&&(n.usesExtendsBound&&s.push(" extends "),s.push(Es(e,r,"bound"))),n.constraint){let e=Symbol("constraint");s.push(" extends",$t(Bt(Ut),{id:e}),Wt,Zt(r("constraint"),{groupId:e}))}return n.default&&s.push(" = ",r("default")),$t(s)}var Eo=R(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Co(e,t,r){let{node:n}=e,i=[Ns(e),Qs(e),"class"],s=Je(n.id,Ge.Trailing)||Je(n.typeParameters,Ge.Trailing)||Je(n.superClass)||C(n.extends)||C(n.mixins)||C(n.implements),o=[],a=[];if(n.id&&o.push(" ",r("id")),o.push(r("typeParameters")),n.superClass){let i=[_o(e,0,r),r(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],o=e.call((e=>["extends ",bi(e,i,t)]),"superClass");s?a.push(Ut,$t(o)):a.push(" ",o)}else a.push(Fo(e,t,r,"extends"));if(a.push(Fo(e,t,r,"mixins"),Fo(e,t,r,"implements")),s){let e;e=Ao(n)?[...o,Bt(a)]:Bt([...o,a]),i.push($t(e,{id:To(n)}))}else i.push(...o,...a);return i.push(" ",r("body")),i}var To=xo("heritageGroup");function Po(e){return jt(zt,"",{groupId:To(e)})}function Ao(e){return e.typeParameters&&!Je(e.typeParameters,Ge.Trailing|Ge.Line)&&!function(e){return["extends","mixins","implements"].reduce(((t,r)=>t+(Array.isArray(e[r])?e[r].length:0)),e.superClass?1:0)>1}(e)}function Fo(e,t,r,n){let{node:i}=e;if(!C(i[n]))return"";let s=Oi(e,t,{marker:n});return[Ao(i)?jt(" ",Ut,{groupId:wo(i.typeParameters)}):Ut,s,s&&zt,n,$t(Bt([Ut,Jt([",",Ut],e.map(r,n))]))]}function _o(e,t,r){let n=r("superClass"),{parent:i}=e;return"AssignmentExpression"===i.type?$t(jt(["(",Bt([Yt,n]),Yt,")"],n)):n}function Io(e,t,r){let{node:n}=e,i=[];return C(n.decorators)&&i.push(Zi(e,t,r)),i.push(Zs(n)),n.static&&i.push("static "),i.push(Qs(e)),n.override&&i.push("override "),i.push(oo(e,t,r)),i}function Bo(e,t,r){let{node:n}=e,i=[],s=t.semi?";":"";return C(n.decorators)&&i.push(Zi(e,t,r)),i.push(Zs(n),Ns(e)),n.static&&i.push("static "),i.push(Qs(e)),n.override&&i.push("override "),n.readonly&&i.push("readonly "),n.variance&&i.push(r("variance")),("ClassAccessorProperty"===n.type||"AccessorProperty"===n.type||"TSAbstractAccessorProperty"===n.type)&&i.push("accessor "),i.push(ro(e,t,r),_s(e),Is(e),Es(e,r)),[rs(e,t,r,i," =","TSAbstractPropertyDefinition"===n.type||"TSAbstractAccessorProperty"===n.type?void 0:"value"),s]}function No(e,t,r){let{node:n}=e,i=[];return e.each((({node:e,next:n,isLast:s})=>{i.push(r()),!t.semi&&Eo(e)&&function(e,t){var r;let{type:n,name:i}=e.key;if(!(e.computed||"Identifier"!==n||"static"!==i&&"get"!==i&&"set"!==i||e.value||e.typeAnnotation))return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let e=null==(r=t.key)?void 0:r.name;if("in"===e||"instanceof"===e)return!0}if(Eo(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||"get"===t.kind||"set"===t.kind)return!1;let e=t.value?t.value.generator:t.generator;return!(!t.computed&&!e)}case"TSIndexSignature":return!0}return!1}(e,n)&&i.push(";"),s||(i.push(zt),et(e,t)&&i.push(zt))}),"body"),Je(n,Ge.Dangling)&&i.push(Oi(e,t)),[C(n.body)?Po(e.parent):"","{",i.length>0?[Bt([zt,i]),zt]:"","}"]}function $o(e,t){if(t.semi||Lo(e,t)||Ro(e,t))return!1;let{node:r,key:n,parent:i}=e;return!("ExpressionStatement"!==r.type||("body"!==n||"Program"!==i.type&&"BlockStatement"!==i.type&&"StaticBlock"!==i.type&&"TSModuleBlock"!==i.type)&&("consequent"!==n||"SwitchCase"!==i.type)||!e.call((()=>Qo(e,t)),"expression"))}function Qo(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!lo(e,t))return!0;break;case"UnaryExpression":{let{prefix:e,operator:t}=r;if(e&&("+"===t||"-"===t))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(le(r))return!0}return!!fi(e,t)||!!V(r)&&e.call((()=>Qo(e,t)),...Y(r))}function Lo({node:e,parent:t},r){return("markdown"===r.parentParser||"mdx"===r.parentParser)&&"ExpressionStatement"===e.type&&le(e.expression)&&"Program"===t.type&&1===t.body.length}function Mo(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return Mo(e.object)}return!1;case"Identifier":return!0;default:return!1}}function Ro({node:e,parent:t},r){return("__vue_event_binding"===r.parser||"__vue_ts_event_binding"===r.parser)&&"ExpressionStatement"===e.type&&"Program"===t.type&&1===t.body.length}function jo(e,t,r){let n=[r("expression")];return Ro(e,t)?Mo(e.node.expression)&&n.push(";"):Lo(e,t)||t.semi&&n.push(";"),n}function Zo(e){return e.toLowerCase()}function qo({pattern:e,flags:t}){return`/${e}/${t=[...t].sort().join("")}`}function Wo(e,t){let r=e.slice(1,-1);if(r.includes('"')||r.includes("'"))return e;let n=t.singleQuote?"'":'"';return n+r+n}var Xo=function(e,t,r){let n=e.originalText.slice(t,r);for(let i of e[Symbol.for("comments")]){let e=_(i);if(e>r)break;let s=I(i);if(s<t)continue;let o=s-e;n=n.slice(0,e-t)+" ".repeat(o)+n.slice(s-t)}return n};var Vo=e=>"ExportDefaultDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&e.default;function Uo(e,t,r){let{node:n}=e,i=[qi(e,0,r),Ns(e),"export",Vo(n)?" default":""],{declaration:s,exported:o}=n;return Je(n,Ge.Dangling)&&(i.push(" ",Oi(e,t)),Ce(n)&&i.push(zt)),s?i.push(" ",r("declaration")):(i.push(function(e){return zo(e.exportKind)}(n)),"ExportAllDeclaration"===n.type||"DeclareExportAllDeclaration"===n.type?(i.push(" *"),o&&i.push(" as ",r("exported"))):i.push(Jo(e,t,r)),i.push(Ho(e,t,r),ea(e,t,r))),i.push(function(e,t){return t.semi&&(!e.declaration||Vo(e)&&!Yo(e.declaration))?";":""}(n,t)),i}var Yo=R(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function zo(e,t=!0){return e&&"value"!==e?`${t?" ":""}${e}${t?"":" "}`:""}function Go(e,t){return zo(e.importKind,t)}function Ho(e,t,r){let{node:n}=e;if(!n.source)return"";let i=[];return Ko(n,t)&&i.push(" from"),i.push(" ",r("source")),i}function Jo(e,t,r){let{node:n}=e;if(!Ko(n,t))return"";let i=[" "];if(C(n.specifiers)){let s=[],o=[];e.each((()=>{let t=e.node.type;if("ExportNamespaceSpecifier"===t||"ExportDefaultSpecifier"===t||"ImportNamespaceSpecifier"===t||"ImportDefaultSpecifier"===t)s.push(r());else{if("ExportSpecifier"!==t&&"ImportSpecifier"!==t)throw new vi(n,"specifier");o.push(r())}}),"specifiers"),i.push(Jt(", ",s)),o.length>0&&(s.length>0&&i.push(", "),o.length>1||s.length>0||n.specifiers.some((e=>Je(e)))?i.push($t(["{",Bt([t.bracketSpacing?Ut:Yt,Jt([",",Ut],o)]),jt(Ie(t)?",":""),t.bracketSpacing?Ut:Yt,"}"])):i.push(["{",t.bracketSpacing?" ":"",...o,t.bracketSpacing?" ":"","}"]))}else i.push("{}");return i}function Ko(e,t){return!("ImportDeclaration"===e.type&&!C(e.specifiers)&&"type"!==e.importKind)||Xo(t,_(e),_(e.source)).trimEnd().endsWith("from")}function ea(e,t,r){let{node:n}=e;if(!n.source)return"";let i=function(e,t){var r,n;if(null!=(r=e.extra)&&r.deprecatedAssertSyntax)return"assert";let i=Xo(t,I(e.source),null!=(n=e.attributes)&&n[0]?_(e.attributes[0]):I(e)).trimStart();return i.startsWith("assert")?"assert":i.startsWith("with")||C(e.attributes)?"with":void 0}(n,t);if(!i)return"";let s=[` ${i} {`];return C(n.attributes)&&(t.bracketSpacing&&s.push(" "),s.push(Jt(", ",e.map(r,"attributes"))),t.bracketSpacing&&s.push(" ")),s.push("}"),s}function ta(e,t,r){let{node:n}=e,{type:i}=n,s=i.startsWith("Import"),o=s?"imported":"local",a=s?"local":"exported",l=n[o],u=n[a],c="",h="";return"ExportNamespaceSpecifier"===i||"ImportNamespaceSpecifier"===i?c="*":l&&(c=r(o)),u&&!function(e){if("ImportSpecifier"!==e.type&&"ExportSpecifier"!==e.type)return!1;let{local:t,["ImportSpecifier"===e.type?"imported":"exported"]:r}=e;return!(t.type!==r.type||!N(t,r))&&(te(t)?t.value===r.value&&Fe(t)===Fe(r):"Identifier"===t.type&&t.name===r.name)}(n)&&(h=r(a)),[zo("ImportSpecifier"===i?n.importKind:n.exportKind,!1),c,c&&h?" as ":"",h]}function ra(e,t,r){var n;let i=t.semi?";":"",{node:s}=e,o="ObjectTypeAnnotation"===s.type,a="TSEnumDeclaration"===s.type||"EnumBooleanBody"===s.type||"EnumNumberBody"===s.type||"EnumBigIntBody"===s.type||"EnumStringBody"===s.type||"EnumSymbolBody"===s.type,l=["TSTypeLiteral"===s.type||a?"members":"TSInterfaceBody"===s.type?"body":"properties"];o&&l.push("indexers","callProperties","internalSlots");let u=l.flatMap((t=>e.map((({node:e})=>({node:e,printed:r(),loc:_(e)})),t)));l.length>1&&u.sort(((e,t)=>e.loc-t.loc));let{parent:c,key:p}=e,d=o&&"body"===p&&("InterfaceDeclaration"===c.type||"DeclareInterface"===c.type||"DeclareClass"===c.type),f="TSInterfaceBody"===s.type||a||d||"ObjectPattern"===s.type&&"FunctionDeclaration"!==c.type&&"FunctionExpression"!==c.type&&"ArrowFunctionExpression"!==c.type&&"ObjectMethod"!==c.type&&"ClassMethod"!==c.type&&"ClassPrivateMethod"!==c.type&&"AssignmentPattern"!==c.type&&"CatchClause"!==c.type&&s.properties.some((e=>e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)))||"ObjectPattern"!==s.type&&u.length>0&&br(t.originalText,_(s),u[0].loc),m=d?";":"TSInterfaceBody"===s.type||"TSTypeLiteral"===s.type?jt(i,";"):",",g="RecordExpression"===s.type?"#{":s.exact?"{|":"{",y=s.exact?"|}":"}",O=[],x=u.map((e=>{let r=[...O,$t(e.printed)];return O=[m,Ut],("TSPropertySignature"===e.node.type||"TSMethodSignature"===e.node.type||"TSConstructSignatureDeclaration"===e.node.type||"TSCallSignatureDeclaration"===e.node.type)&&Je(e.node,Ge.PrettierIgnore)&&O.shift(),et(e.node,t)&&O.push(zt),r}));if(s.inexact||s.hasUnknownMembers){let r;if(Je(s,Ge.Dangling)){let n=Je(s,Ge.Line);r=[Oi(e,t),n||D(t.originalText,I(h(!1,Ke(s),-1)))?zt:Ut,"..."]}else r=["..."];x.push([...O,...r])}let b,v=null==(n=h(!1,u,-1))?void 0:n.node,w=!(s.inexact||s.hasUnknownMembers||v&&("RestElement"===v.type||("TSPropertySignature"===v.type||"TSCallSignatureDeclaration"===v.type||"TSMethodSignature"===v.type||"TSConstructSignatureDeclaration"===v.type)&&Je(v,Ge.PrettierIgnore)));if(0===x.length){if(!Je(s,Ge.Dangling))return[g,y,Es(e,r)];b=$t([g,Oi(e,t,{indent:!0}),Yt,y,_s(e),Es(e,r)])}else b=[d&&C(s.properties)?Po(c):"",g,Bt([t.bracketSpacing?Ut:Yt,...x]),jt(w&&(","!==m||Ie(t))?m:""),t.bracketSpacing?Ut:Yt,y,_s(e),Es(e,r)];return e.match((e=>"ObjectPattern"===e.type&&!C(e.decorators)),na)||se(s)&&(e.match(void 0,((e,t)=>"typeAnnotation"===t),((e,t)=>"typeAnnotation"===t),na)||e.match(void 0,((e,t)=>"FunctionTypeParam"===e.type&&"typeAnnotation"===t),na))||!f&&e.match((e=>"ObjectPattern"===e.type),(e=>"AssignmentExpression"===e.type||"VariableDeclarator"===e.type))?b:$t(b,{shouldBreak:f})}function na(e,t){return("params"===t||"parameters"===t||"this"===t||"rest"===t)&&hs(e)}function ia(e,t,r){let{node:n}=e,i="ConditionalExpression"===n.type,s=i?"alternate":"falseType",{parent:o}=e,a=i?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return o.type===n.type&&o[s]===n?Nt(2,a):a}var sa=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function oa(e,t,r){let n,i,{node:s}=e,o="ConditionalExpression"===s.type,a=o?"consequent":"trueType",l=o?"alternate":"falseType",u=o?["test"]:["checkType","extendsType"],c=s[a],h=s[l],p=[],d=!1,{parent:f}=e,m=f.type===s.type&&u.some((e=>f[e]===s)),g=f.type===s.type&&!m,y=0;do{i=n||s,n=e.getParentNode(y),y++}while(n&&n.type===s.type&&u.every((e=>n[e]!==i)));let O=n||f,x=i;if(o&&(le(s[u[0]])||le(c)||le(h)||function(e){let t=[e];for(let e=0;e<t.length;e++){let r=t[e];for(let e of["test","consequent","alternate"]){let n=r[e];if(le(n))return!0;"ConditionalExpression"===n.type&&t.push(n)}}return!1}(x))){d=!0,g=!0;let e=e=>[jt("("),Bt([Yt,e]),Yt,jt(")")],t=e=>"NullLiteral"===e.type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name;p.push(" ? ",t(c)?r(a):e(r(a))," : ",h.type===s.type||t(h)?r(l):e(r(l)))}else{let e=e=>t.useTabs?Bt(r(e)):Nt(2,r(e)),n=[Ut,"? ",c.type===s.type?jt("","("):"",e(a),c.type===s.type?jt("",")"):"",Ut,": ",e(l)];p.push(f.type!==s.type||f[l]===s||m?n:t.useTabs?Lt(Bt(n)):Nt(Math.max(0,t.tabWidth-2),n))}let b=[a,l,...u].some((e=>Je(s[e],(e=>j(e)&&br(t.originalText,_(e),I(e)))))),v=!d&&(xe(f)||"NGPipeExpression"===f.type&&f.left===s)&&!f.computed,w=function(e){let{node:t}=e;if("ConditionalExpression"!==t.type)return!1;let r,n=t;for(let t=0;!r;t++){let i=e.getParentNode(t);"ChainExpression"===i.type&&i.expression===n||Oe(i)&&i.callee===n||xe(i)&&i.object===n||"TSNonNullExpression"===i.type&&i.expression===n?n=i:"NewExpression"===i.type&&i.callee===n||nt(i)&&i.expression===n?(r=e.getParentNode(t+1),n=i):r=i}return n!==t&&r[sa.get(r.type)]===n}(e),D=(S=[ia(e,0,r),g?p:Bt(p),o&&v&&!w?Yt:""],f===O?$t(S,{shouldBreak:b}):b?[S,Xt]:S);var S;return m||w?$t([Bt([Yt,D]),Yt]):D}var aa=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);var la=e=>[jt("("),Bt([Yt,e]),Yt,jt(")")];function ua(e,t,r,n){if(!t.experimentalTernaries)return oa(e,t,r);let i,s,{node:o}=e,a="ConditionalExpression"===o.type,l="TSConditionalType"===o.type||"ConditionalTypeAnnotation"===o.type,u=a?"consequent":"trueType",c=a?"alternate":"falseType",h=a?["test"]:["checkType","extendsType"],p=o[u],d=o[c],f=h.map((e=>o[e])),{parent:m}=e,g=m.type===o.type,y=g&&h.some((e=>m[e]===o)),O=g&&m[c]===o,x=p.type===o.type,b=d.type===o.type,v=b||O,w=t.tabWidth>2||t.useTabs,D=0;do{s=i||o,i=e.getParentNode(D),D++}while(i&&i.type===o.type&&h.every((e=>i[e]!==s)));let S=i||m,k=n&&n.assignmentLayout&&"break-after-operator"!==n.assignmentLayout&&("AssignmentExpression"===m.type||"VariableDeclarator"===m.type||"ClassProperty"===m.type||"PropertyDefinition"===m.type||"ClassPrivateProperty"===m.type||"ObjectProperty"===m.type||"Property"===m.type),E=("ReturnStatement"===m.type||"ThrowStatement"===m.type)&&!(x||b),C=a&&"JSXExpressionContainer"===S.type&&"JSXAttribute"!==e.grandparent.type,T=function(e){let{node:t}=e;if("ConditionalExpression"!==t.type)return!1;let r,n=t;for(let t=0;!r;t++){let i=e.getParentNode(t);"ChainExpression"===i.type&&i.expression===n||Oe(i)&&i.callee===n||xe(i)&&i.object===n||"TSNonNullExpression"===i.type&&i.expression===n?n=i:"NewExpression"===i.type&&i.callee===n||nt(i)&&i.expression===n?(r=e.getParentNode(t+1),n=i):r=i}return n!==t&&r[aa.get(r.type)]===n}(e),P=function(e,t){return(xe(t)||"NGPipeExpression"===t.type&&t.left===e)&&!t.computed}(o,m),A=l&&fi(e,t),F=w?t.useTabs?"\t":" ".repeat(t.tabWidth-1):"",B=function(e,t,r,n){return[...e.map((e=>Ke(e))),Ke(t),Ke(r)].flat().some((e=>j(e)&&br(n.originalText,_(e),I(e))))}(f,p,d,t)||x||b,N=!v&&!g&&!l&&(C?"NullLiteral"===p.type||"Literal"===p.type&&null===p.value:De(p,t)&&be(o.test,3)),$=v||O||l&&!g||g&&a&&be(o.test,1)||N,Q=[];!x&&Je(p,Ge.Dangling)&&e.call((e=>{Q.push(Oi(e,t),zt)}),"consequent");let L=[];Je(o.test,Ge.Dangling)&&e.call((e=>{L.push(Oi(e,t))}),"test"),!b&&Je(d,Ge.Dangling)&&e.call((e=>{L.push(Oi(e,t))}),"alternate"),Je(o,Ge.Dangling)&&L.push(Oi(e,t));let M=Symbol("test"),R=Symbol("consequent"),Z=Symbol("test-and-consequent"),q=a?[la(r("test")),"ConditionalExpression"===o.test.type?Xt:""]:[r("checkType")," ","extends"," ","TSConditionalType"===o.extendsType.type||"ConditionalTypeAnnotation"===o.extendsType.type||"TSMappedType"===o.extendsType.type?r("extendsType"):$t(la(r("extendsType")))],W=$t([q," ?"],{id:M}),X=r(u),V=Bt([x||C&&(le(p)||g||v)?zt:Ut,Q,X]),U=$?$t([W,v?V:jt(V,$t(V,{id:R}),{groupId:M})],{id:Z}):[W,V],Y=r(c),z=N?jt(Y,Lt(la(Y)),{groupId:Z}):Y,G=[U,L.length>0?[Bt([zt,L]),zt]:b?zt:N?jt(Ut," ",{groupId:Z}):Ut,":",b?" ":w?$?jt(F,jt(v||N?" ":F," "),{groupId:Z}):jt(F," "):" ",b?z:$t([Bt(z),C&&!N?Yt:""]),P&&!T?Yt:"",B?Xt:""];return k&&!B?$t(Bt([Yt,$t(G)])):k||E?$t(Bt(G)):T||l&&y?$t([Bt([Yt,G]),A?Yt:""]):m===S?$t(G):G}function ca(e,t,r,n){let{node:i}=e;if(ne(i))return function(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return qo(r);case"BigIntLiteral":return Zo(r.extra.raw);case"NumericLiteral":return Js(r.extra.raw);case"StringLiteral":return lr(F(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DecimalLiteral":return Js(r.value)+"m";case"DirectiveLiteral":return Wo(r.extra.raw,t);case"Literal":{if(r.regex)return qo(r.regex);if(r.bigint)return Zo(r.raw);if(r.decimal)return Js(r.decimal)+"m";let{value:n}=r;return"number"==typeof n?Js(r.raw):"string"==typeof n?function(e){if("expression"!==e.key)return;let{parent:t}=e;return"ExpressionStatement"===t.type&&t.directive}(e)?Wo(r.raw,t):lr(F(r.raw,t)):String(n)}}}(e,t);let s=t.semi?";":"",o=[];switch(i.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[r("node"),zt];case"File":return function(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(1===n.length)return n[0];let i=Jt([",",Ut],n);return t.__isVueForBindingLeft?["(",Bt([Yt,$t(i)]),Yt,")"]:i}if(t.__isEmbeddedTypescriptGenericParameters){let t=e.map(r,"program","body",0,"typeParameters","params");return Jt([",",Ut],t)}}(e,t,r)??r("program");case"EmptyStatement":return"";case"ExpressionStatement":return jo(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return Je(i.expression)||!J(i.expression)&&!H(i.expression)?$t(["(",Bt([Yt,r("expression")]),Yt,")"]):["(",r("expression"),")"];case"AssignmentExpression":return function(e,t,r){let{node:n}=e;return rs(e,t,r,r("left"),[" ",n.operator],"right")}(e,t,r);case"VariableDeclarator":return function(e,t,r){return rs(e,t,r,r("id")," =","init")}(e,t,r);case"BinaryExpression":case"LogicalExpression":return Ni(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return function(e,t,r){var n;let i=r("object"),s=Ji(e,0,r),{node:o}=e,a=e.findAncestor((e=>!(xe(e)||"TSNonNullExpression"===e.type))),l=e.findAncestor((e=>!("ChainExpression"===e.type||"TSNonNullExpression"===e.type))),u=a&&("NewExpression"===a.type||"BindExpression"===a.type||"AssignmentExpression"===a.type&&"Identifier"!==a.left.type)||o.computed||"Identifier"===o.object.type&&"Identifier"===o.property.type&&!xe(l)||("AssignmentExpression"===l.type||"VariableDeclarator"===l.type)&&(Hi(o.object)||(null==(n=i.label)?void 0:n.memberChain));return Kt(i.label,[i,u?s:$t(Bt([Yt,s]))])}(e,0,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return i.object&&o.push(r("object")),o.push($t(Bt([Yt,Ms(0,0,r)]))),o;case"Identifier":return[i.name,_s(e),Is(e),Es(e,r)];case"V8IntrinsicIdentifier":return["%",i.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadPropertyPattern":case"RestElement":return js(e,r);case"FunctionDeclaration":case"FunctionExpression":return so(e,r,t,n);case"ArrowFunctionExpression":return mo(e,t,r,n);case"YieldExpression":return o.push("yield"),i.delegate&&o.push("*"),i.argument&&o.push(" ",r("argument")),o;case"AwaitExpression":if(o.push("await"),i.argument){o.push(" ",r("argument"));let{parent:t}=e;if(Oe(t)&&t.callee===i||xe(t)&&t.object===i){o=[Bt([Yt,...o]),Yt];let t=e.findAncestor((e=>"AwaitExpression"===e.type||"BlockStatement"===e.type));if("AwaitExpression"!==(null==t?void 0:t.type)||!Be(t.argument,(e=>e===i)))return $t(o)}}return o;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return Uo(e,t,r);case"ImportDeclaration":return function(e,t,r){let{node:n}=e;return["import",n.module?" module":"",n.phase?` ${n.phase}`:"",Go(n),Jo(e,t,r),Ho(e,t,r),ea(e,t,r),t.semi?";":""]}(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return ta(e,0,r);case"ImportAttribute":case"ObjectProperty":return no(e,t,r);case"Import":return"import";case"Program":case"BlockStatement":case"StaticBlock":return Oo(e,t,r);case"ClassBody":return No(e,t,r);case"ThrowStatement":return function(e,t,r){return["throw",co(e,t,r)]}(e,t,r);case"ReturnStatement":return function(e,t,r){return["return",co(e,t,r)]}(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return es(e,t,r);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return ra(e,t,r);case"Property":return ue(i)?oo(e,t,r):no(e,t,r);case"ObjectMethod":return oo(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return qs(e,t,r);case"SequenceExpression":{let{parent:t}=e;if("ExpressionStatement"===t.type||"ForStatement"===t.type){let t=[];return e.each((({isFirst:e})=>{e?t.push(r()):t.push(",",Bt([Ut,r()]))}),"expressions"),$t(t)}return $t(Jt([",",Ut],e.map(r,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),s];case"UnaryExpression":return o.push(i.operator),/[a-z]$/u.test(i.operator)&&o.push(" "),Je(i.argument)?o.push($t(["(",Bt([Yt,r("argument")]),Yt,")"])):o.push(r("argument")),o;case"UpdateExpression":return[i.prefix?i.operator:"",r("argument"),i.prefix?"":i.operator];case"ConditionalExpression":return ua(e,t,r,n);case"VariableDeclaration":{let t,n=e.map(r,"declarations"),a=e.parent,l="ForStatement"===a.type||"ForInStatement"===a.type||"ForOfStatement"===a.type,u=i.declarations.some((e=>e.init));return 1!==n.length||Je(i.declarations[0])?n.length>0&&(t=Bt(n[0])):t=n[0],o=[Ns(e),i.kind,t?[" ",t]:"",Bt(n.slice(1).map((e=>[",",u&&!l?zt:Ut,e])))],l&&a.body!==i||o.push(s),$t(o)}case"WithStatement":return $t(["with (",r("object"),")",Rs(i.body,r("body"))]);case"IfStatement":{let n=Rs(i.consequent,r("consequent")),s=$t(["if (",$t([Bt([Yt,r("test")]),Yt]),")",n]);if(o.push(s),i.alternate){let n=Je(i.consequent,Ge.Trailing|Ge.Line)||Ce(i),s="BlockStatement"===i.consequent.type&&!n;o.push(s?" ":zt),Je(i,Ge.Dangling)&&o.push(Oi(e,t),n?zt:" "),o.push("else",$t(Rs(i.alternate,r("alternate"),"IfStatement"===i.alternate.type)))}return o}case"ForStatement":{let n=Rs(i.body,r("body")),s=Oi(e,t),o=s?[s,Yt]:"";return i.init||i.test||i.update?[o,$t(["for (",$t([Bt([Yt,r("init"),";",Ut,r("test"),";",Ut,r("update")]),Yt]),")",n])]:[o,$t(["for (;;)",n])]}case"WhileStatement":return $t(["while (",$t([Bt([Yt,r("test")]),Yt]),")",Rs(i.body,r("body"))]);case"ForInStatement":return $t(["for (",r("left")," in ",r("right"),")",Rs(i.body,r("body"))]);case"ForOfStatement":return $t(["for",i.await?" await":""," (",r("left")," of ",r("right"),")",Rs(i.body,r("body"))]);case"DoWhileStatement":return o=[$t(["do",Rs(i.body,r("body"))])],"BlockStatement"===i.body.type?o.push(" "):o.push(zt),o.push("while (",$t([Bt([Yt,r("test")]),Yt]),")",s),o;case"DoExpression":return[i.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return o.push("BreakStatement"===i.type?"break":"continue"),i.label&&o.push(" ",r("label")),o.push(s),o;case"LabeledStatement":return"EmptyStatement"===i.body.type?[r("label"),":;"]:[r("label"),": ",r("body")];case"TryStatement":return["try ",r("block"),i.handler?[" ",r("handler")]:"",i.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(i.param){let e=Je(i.param,(e=>!j(e)||e.leading&&D(t.originalText,I(e))||e.trailing&&D(t.originalText,_(e),{backwards:!0}))),n=r("param");return["catch ",e?["(",Bt([Yt,n]),Yt,") "]:["(",n,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[$t(["switch (",Bt([Yt,r("discriminant")]),Yt,")"])," {",i.cases.length>0?Bt([zt,Jt(zt,e.map((({node:e,isLast:n})=>[r(),!n&&et(e,t)?zt:""]),"cases"))]):"",zt,"}"];case"SwitchCase":{i.test?o.push("case ",r("test"),":"):o.push("default:"),Je(i,Ge.Dangling)&&o.push(" ",Oi(e,t));let n=i.consequent.filter((e=>"EmptyStatement"!==e.type));if(n.length>0){let i=yo(e,t,r,"consequent");o.push(1===n.length&&"BlockStatement"===n[0].type?[" ",i]:Bt([zt,i]))}return o}case"DebuggerStatement":return["debugger",s];case"ClassDeclaration":case"ClassExpression":return Co(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return Io(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return Bo(e,t,r);case"TemplateElement":return lr(i.value.raw);case"TemplateLiteral":return Cn(e,r,t);case"TaggedTemplateExpression":return function(e,t){let r=t("quasi");return Kt(r.label&&{tagged:!0,...r.label},[t("tag"),t(e.node.typeArguments?"typeArguments":"typeParameters"),Wt,r])}(e,r);case"PrivateIdentifier":return["#",i.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];default:throw new vi(i,"ESTree")}}function ha(e,t,r){let{parent:n,node:i,key:s}=e,o=[r("expression")];switch(i.type){case"AsConstExpression":o.push(" as const");break;case"AsExpression":case"TSAsExpression":o.push(" as ",r("typeAnnotation"));break;case"SatisfiesExpression":case"TSSatisfiesExpression":o.push(" satisfies ",r("typeAnnotation"))}return"callee"===s&&Oe(n)||"object"===s&&xe(n)?$t([Bt([Yt,...o]),Yt]):o}function pa(e,t,r){let{node:n}=e,i=[Ns(e),"component"];n.id&&i.push(" ",r("id")),i.push(r("typeParameters"));let s=function(e,t,r){let{node:n}=e,i=n.params;if(n.rest&&(i=[...i,n.rest]),0===i.length)return["(",Oi(e,r,{filter:e=>")"===xr(r.originalText,I(e))}),")"];let s=[];return function(e,t){let{node:r}=e,n=0,i=e=>t(e,n++);e.each(i,"params"),r.rest&&e.call(i,"rest")}(e,((e,o)=>{let a=o===i.length-1;a&&n.rest&&s.push("..."),s.push(t()),!a&&(s.push(","),et(i[o],r)?s.push(zt,zt):s.push(Ut))})),["(",Bt([Yt,...s]),jt(Ie(r,"all")&&!da(n,i)?",":""),Yt,")"]}(e,r,t);return n.rendersType?i.push($t([s," ",r("rendersType")])):i.push($t([s])),n.body&&i.push(" ",r("body")),t.semi&&"DeclareComponent"===n.type&&i.push(";"),i}function da(e,t){var r;return e.rest||"RestElement"===(null==(r=h(!1,t,-1))?void 0:r.type)}function fa(e,t,r){return ra(e,r,t)}function ma(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let i="";return r.initializer&&(i=t("initializer")),r.init&&(i=t("init")),i?[n," = ",i]:n}function ga(e,t,r){let{node:n}=e;return[Ns(e),n.const?"const ":"","enum ",t("id")," ","TSEnumDeclaration"===n.type?fa(e,t,r):t("body")]}function ya(e){var t;let{node:r}=e;return"HookTypeAnnotation"===r.type&&"DeclareHook"===(null==(t=e.getParentNode(2))?void 0:t.type)}function Oa(e,t,r){let{node:n}=e,i=[Ns(e),"interface"],s=[],o=[];"InterfaceTypeAnnotation"!==n.type&&s.push(" ",r("id"),r("typeParameters"));let a=n.typeParameters&&!Je(n.typeParameters,Ge.Trailing|Ge.Line);return C(n.extends)&&o.push(a?jt(" ",Ut,{groupId:wo(n.typeParameters)}):Ut,"extends ",(1===n.extends.length?_e:Bt)(Jt([",",Ut],e.map(r,"extends")))),Je(n.id,Ge.Trailing)||C(n.extends)?a?i.push($t([...s,Bt(o)])):i.push($t(Bt([...s,...o]))):i.push(...s,...o),i.push(" ",r("body")),$t(i)}function xa(e,t,r){let{node:n}=e;if(Z(n))return n.type.slice(0,-14).toLowerCase();let i=t.semi?";":"";switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return pa(e,t,r);case"ComponentParameter":return function(e,t,r){let{node:n}=e;return n.shorthand?r("local"):[r("name")," as ",r("local")]}(e,0,r);case"ComponentTypeParameter":return function(e,t,r){let{node:n}=e,i=[];return n.name&&i.push(r("name"),n.optional?"?: ":": "),i.push(r("typeAnnotation")),i}(e,0,r);case"HookDeclaration":return function(e,t,r){let{node:n}=e,i=["hook"];n.id&&i.push(" ",r("id"));let s=cs(e,r,t,!1,!0),o=uo(e,r),a=ps(n,o);return i.push($t([a?$t(s):s,o]),n.body?" ":"",r("body")),i}(e,t,r);case"DeclareHook":return function(e,t,r){let{node:n}=e,i=[Ns(e),"hook"];return n.id&&i.push(" ",r("id")),t.semi&&i.push(";"),i}(e,t,r);case"HookTypeAnnotation":return function(e,t,r){let{node:n}=e,i=[];i.push(ya(e)?"":"hook ");let s=cs(e,r,t,!1,!0),o=[];return o.push(ya(e)?": ":" => ",r("returnType")),ps(n,o)&&(s=$t(s)),i.push(s,o),$t(i)}(e,t,r);case"DeclareClass":return Co(e,t,r);case"DeclareFunction":return[Ns(e),"function ",r("id"),r("predicate"),i];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",Es(e,r),i];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[Ns(e),n.kind??"var"," ",r("id"),i];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return Uo(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return function(e,t,r){let n=t.semi?";":"",{node:i}=e,s=[Ns(e),"opaque type ",r("id"),r("typeParameters")];return i.supertype&&s.push(": ",r("supertype")),i.impltype&&s.push(" = ",r("impltype")),s.push(n),s}(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return gs(e,t,r);case"IntersectionTypeAnnotation":return ys(e,0,r);case"UnionTypeAnnotation":return Os(e,t,r);case"ConditionalTypeAnnotation":return ua(e,t,r);case"InferTypeAnnotation":return vs(0,0,r);case"FunctionTypeAnnotation":return xs(e,t,r);case"TupleTypeAnnotation":return qs(e,t,r);case"TupleTypeLabeledElement":return Ss(e,0,r);case"TupleTypeSpreadElement":return Ds(e,0,r);case"GenericTypeAnnotation":return[r("id"),Do(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return bs(e,0,r);case"TypeAnnotation":return Ts(e,0,r);case"TypeParameter":return ko(e,0,r);case"TypeofTypeAnnotation":return As(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return Ps(r);case"DeclareEnum":case"EnumDeclaration":return ga(e,r,t);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return function(e,t,r){let n,{node:i}=e;if("EnumSymbolBody"===i.type||i.explicitType)switch(i.type){case"EnumBooleanBody":n="boolean";break;case"EnumNumberBody":n="number";break;case"EnumBigIntBody":n="bigint";break;case"EnumStringBody":n="string";break;case"EnumSymbolBody":n="symbol"}return[n?`of ${n} `:"",fa(e,t,r)]}(e,r,t);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return ma(e,r);case"FunctionTypeParam":{let t=n.name?r("name"):e.parent.this===n?"this":"";return[t,_s(e),t?": ":"",r("typeAnnotation")]}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Oa(e,0,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:e}=n;return zs.ok("plus"===e||"minus"===e),"plus"===e?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value")];case"ObjectTypeMappedTypeProperty":return function(e,t,r){let{node:n}=e;return $t([n.variance?r("variance"):"","[",Bt([r("keyTparam")," in ",r("sourceType")]),"]",bo(n.optional),": ",r("propType")])}(e,0,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value")];case"ObjectTypeProperty":{let i="";return n.proto?i="proto ":n.static&&(i="static "),[i,"init"!==n.kind?n.kind+" ":"",n.variance?r("variance"):"",ro(e,t,r),_s(e),ue(n)?"":": ",r("value")]}case"ObjectTypeAnnotation":return ra(e,t,r);case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",_s(e),n.method?"":": ",r("value")];case"ObjectTypeSpreadProperty":return js(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return lr(F(Fe(n),t));case"NumberLiteralTypeAnnotation":return Js(n.raw??n.extra.raw);case"BigIntLiteralTypeAnnotation":return Zo(n.raw??n.extra.raw);case"TypeCastExpression":return["(",r("expression"),Es(e,r),")"];case"TypePredicate":return Fs(e,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return Do(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return["predicate"!==e.key||"DeclareFunction"===e.parent.type||e.parent.returnType?" ":": ","%checks",..."DeclaredPredicate"===n.type?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ha(e,0,r)}}function ba(e,t,r){var n;let{node:i}=e;if(!i.type.startsWith("TS"))return;if(W(i))return i.type.slice(2,-7).toLowerCase();let s=t.semi?";":"",o=[];switch(i.type){case"TSThisType":return"this";case"TSTypeAssertion":{let e=!(H(i.expression)||J(i.expression)),t=$t(["<",Bt([Yt,r("typeAnnotation")]),Yt,">"]),n=[jt("("),Bt([Yt,r("expression")]),Yt,jt(")")];return e?Mt([[t,r("expression")],[t,$t(n,{shouldBreak:!0})],[t,r("expression")]]):$t([t,r("expression")])}case"TSDeclareFunction":return so(e,r,t);case"TSExportAssignment":return["export = ",r("expression"),s];case"TSModuleBlock":return Oo(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return ra(e,t,r);case"TSTypeAliasDeclaration":return gs(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return Io(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return Bo(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSExpressionWithTypeArguments":case"TSInstantiationExpression":return[r("expression"),r(i.typeArguments?"typeArguments":"typeParameters")];case"TSTemplateLiteralType":return Cn(e,r,t);case"TSNamedTupleMember":return Ss(e,0,r);case"TSRestType":return Ds(e,0,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Oa(e,0,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Do(e,t,r,"params");case"TSTypeParameter":return ko(e,0,r);case"TSAsExpression":case"TSSatisfiesExpression":return ha(e,0,r);case"TSArrayType":return Ps(r);case"TSPropertySignature":return[i.readonly?"readonly ":"",ro(e,t,r),_s(e),Es(e,r)];case"TSParameterProperty":return[Zs(i),i.static?"static ":"",i.override?"override ":"",i.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return As(e,r);case"TSIndexSignature":{let n=i.parameters.length>1?jt(Ie(t)?",":""):"",o=$t([Bt([Yt,Jt([", ",Yt],e.map(r,"parameters"))]),n,Yt]),a="ClassBody"===e.parent.type&&"body"===e.key;return[a&&i.static?"static ":"",i.readonly?"readonly ":"","[",i.parameters?o:"","]",Es(e,r),a?s:""]}case"TSTypePredicate":return Fs(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[i.isTypeOf?"typeof ":"","import(",r("argument"),")",i.qualifier?[".",r("qualifier")]:"",Do(e,t,r,i.typeArguments?"typeArguments":"typeParameters")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return bs(e,0,r);case"TSTypeOperator":return[i.operator," ",r("typeAnnotation")];case"TSMappedType":return function(e,t,r){let{node:n}=e,i=br(t.originalText,_(n),_(n.typeParameter));return $t(["{",Bt([t.bracketSpacing?Ut:Yt,$t([r("typeParameter"),n.optional?vo(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?jt(";"):""]),Oi(e,t),t.bracketSpacing?Ut:Yt,"}"],{shouldBreak:i})}(e,t,r);case"TSMethodSignature":{let n=i.kind&&"method"!==i.kind?`${i.kind} `:"";o.push(Zs(i),n,i.computed?"[":"",r("key"),i.computed?"]":"",_s(e));let s=cs(e,r,t,!1,!0),a=i.returnType?"returnType":"typeAnnotation",l=i[a],u=l?Es(e,r,a):"",c=ps(i,u);return o.push(c?$t(s):s),l&&o.push($t(u)),$t(o)}case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return ga(e,r,t);case"TSEnumMember":return ma(e,r);case"TSImportEqualsDeclaration":return[i.isExport?"export ":"","import ",Go(i,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return["require(",r("expression"),")"];case"TSModuleDeclaration":{let{parent:a}=e,l="TSModuleDeclaration"===a.type,u="TSModuleDeclaration"===(null==(n=i.body)?void 0:n.type);if(l)o.push(".");else if(o.push(Ns(e)),"global"!==i.kind&&!i.global){let e=i.kind??(te(i.id)||Xo(t,_(i),_(i.id)).trim().endsWith("module")?"module":"namespace");o.push(e," ")}return o.push(r("id")),u?o.push(r("body")):i.body?o.push(" ",$t(r("body"))):o.push(s),o}case"TSConditionalType":return ua(e,t,r);case"TSInferType":return vs(0,0,r);case"TSIntersectionType":return ys(e,0,r);case"TSUnionType":return Os(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return xs(e,t,r);case"TSTupleType":return qs(e,t,r);case"TSTypeReference":return[r("typeName"),Do(e,t,r,i.typeArguments?"typeArguments":"typeParameters")];case"TSTypeAnnotation":return Ts(e,0,r);case"TSEmptyBodyFunctionExpression":return ao(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return ws(e,r,"?");case"TSJSDocNonNullableType":return ws(e,r,"!");default:throw new vi(i,"TypeScript")}}var va=R(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);var wa=function(e,t,r,n){var i;e.isRoot&&(null==(i=t.__onHtmlBindingRoot)||i.call(t,e.node,t));let s=function(e,t,r,n){if(Ii(e))return li(e,t);for(let i of[Mi,Fi,xa,ba,ca]){let s=i(e,t,r,n);if(void 0!==s)return s}}(e,t,r,n);if(!s)return"";let{node:o}=e;if(va(o))return s;let a=C(o.decorators),l=function(e,t,r){let{node:n,parent:i}=e,{decorators:s}=n;if(!C(s)||Xi(i)||Ii(e))return"";let o="ClassExpression"===n.type||"ClassDeclaration"===n.type||Wi(n,t);return["declaration"===e.key&&G(i)?zt:o?Xt:"",Jt(Ut,e.map(r,"decorators")),Ut]}(e,t,r),u="ClassExpression"===o.type;if(a&&!u)return cr(s,(e=>$t([l,e])));let c=fi(e,t),h=$o(e,t);return l||c||h?cr(s,(e=>[h?";":"",c?"(":"",c&&u&&a?[Bt([Ut,l,e]),Ut]:[l,e],c?")":""])):s},Da={avoidAstMutation:!0},Sa={};s(Sa,{getVisitorKeys:()=>ka,massageAstNode:()=>Pa,print:()=>Ea});var ka=L({JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]});function Ea(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),zt];case"ArrayExpression":{if(0===n.elements.length)return"[]";let t=e.map((()=>null===e.node?"null":r()),"elements");return["[",Bt([zt,Jt([",",zt],t)]),zt,"]"]}case"ObjectExpression":return 0===n.properties.length?"{}":["{",Bt([zt,Jt([",",zt],e.map(r,"properties"))]),zt,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return["+"===n.operator?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return Ca(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return Ca(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new vi(n,"JSON")}}function Ca(e){return"key"===e.key&&"ObjectProperty"===e.parent.type}var Ta=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function Pa(e,t){let{type:r}=e;if("ObjectProperty"!==r){if("UnaryExpression"===r&&"+"===e.operator)return t.argument;if("ArrayExpression"!==r)return"TemplateLiteral"===r?{type:"StringLiteral",value:e.quasis[0].value.cooked}:void 0;for(let[r,n]of e.elements.entries())null===n&&t.elements.splice(r,0,{type:"NullLiteral"})}else{let{key:r}=e;"Identifier"===r.type?t.key={type:"StringLiteral",value:r.name}:"NumericLiteral"===r.type&&(t.key={type:"StringLiteral",value:String(r.value)})}}Pa.ignoredProperties=Ta;var Aa,Fa={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},_a="JavaScript",Ia={arrowParens:{category:_a,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:Fa.bracketSameLine,bracketSpacing:Fa.bracketSpacing,jsxBracketSameLine:{category:_a,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:_a,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalTernaries:{category:_a,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:Fa.singleQuote,jsxSingleQuote:{category:_a,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:_a,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:_a,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Fa.singleAttributePerLine},Ba={estree:u,"estree-json":Sa},Na=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]},{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}];return Aa=l,((i,s,o,a)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let l of r(s))!n.call(i,l)&&l!==o&&e(i,l,{get:()=>s[l],enumerable:!(a=t(s,l))||a.enumerable});return i})(e({},"__esModule",{value:!0}),Aa)}()).default||t},940:e=>{var t;e.exports=(t=function(){"use strict";var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,i=e=>{throw TypeError(e)},s=(t,r)=>{for(var n in r)e(t,n,{get:r[n],enumerable:!0})},o=(e,t,r)=>t.has(e)||i("Cannot "+r),a=(e,t,r)=>(o(e,t,"read from private field"),r?r.call(e):t.get(e)),l={};s(l,{languages:()=>Er,options:()=>Pr,parsers:()=>Ar,printers:()=>pi});var u=(e,t,r,n)=>{if(!e||null!=t)return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},c="string",h="array",p="cursor",d="indent",f="align",m="trim",g="group",y="fill",O="if-break",x="indent-if-break",b="line-suffix",v="line-suffix-boundary",w="line",D="label",S="break-parent",k=new Set([p,d,f,m,g,y,O,x,b,v,w,D,S]);var E=function(e){if("string"==typeof e)return c;if(Array.isArray(e))return h;if(!e)return;let{type:t}=e;return k.has(t)?t:void 0};function C(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', \nExpected it to be 'string' or 'object'.`;if(E(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if("[object Object]"!==r)return`Unexpected doc '${r}'.`;let n=(e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e))([...k].map((e=>`'${e}'`)));return`Unexpected doc.type '${e.type}'.\nExpected it to be ${n}.`}var T=class extends Error{name="InvalidDocError";constructor(e){super(C(e)),this.doc=e}},P=()=>{},A=P,F=P;function _(e){return A(e),{type:d,contents:e}}function I(e,t){return A(t),{type:f,contents:t,n:e}}function B(e,t={}){return A(e),F(t.expandedStates,!0),{type:g,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function N(e){return F(e),{type:y,parts:e}}function $(e,t="",r={}){return A(e),""!==t&&A(t),{type:O,breakContents:e,flatContents:t,groupId:r.groupId}}var Q={type:S},L={type:w},M={type:w,soft:!0},R=[{type:w,hard:!0},Q],j=[{type:w,hard:!0,literal:!0},Q];function Z(e,t){A(e),F(t);let r=[];for(let n=0;n<t.length;n++)0!==n&&r.push(e),r.push(t[n]);return r}var q=(e,t,r)=>{if(!e||null!=t)return Array.isArray(t)||"string"==typeof t?t[r<0?t.length+r:r]:t.at(r)};function W(e,t){if("string"==typeof e)return t(e);let r=new Map;return n(e);function n(e){if(r.has(e))return r.get(e);let i=function(e){switch(E(e)){case h:return t(e.map(n));case y:return t({...e,parts:e.parts.map(n)});case O:return t({...e,breakContents:n(e.breakContents),flatContents:n(e.flatContents)});case g:{let{expandedStates:r,contents:i}=e;return r?(r=r.map(n),i=r[0]):i=n(i),t({...e,contents:i,expandedStates:r})}case f:case d:case x:case D:case b:return t({...e,contents:n(e.contents)});case c:case p:case m:case v:case w:case S:return t(e);default:throw new T(e)}}(e);return r.set(e,i),i}}function X(e){return W(e,(e=>function(e){switch(E(e)){case y:if(e.parts.every((e=>""===e)))return"";break;case g:if(!(e.contents||e.id||e.break||e.expandedStates))return"";if(e.contents.type===g&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case f:case d:case x:case b:if(!e.contents)return"";break;case O:if(!e.flatContents&&!e.breakContents)return"";break;case h:{let t=[];for(let r of e){if(!r)continue;let[e,...n]=Array.isArray(r)?r:[r];"string"==typeof e&&"string"==typeof q(!1,t,-1)?t[t.length-1]+=e:t.push(e),t.push(...n)}return 0===t.length?"":1===t.length?t[0]:t}case c:case p:case m:case v:case w:case D:case S:break;default:throw new T(e)}return e}(e)))}function V(e,t=j){return W(e,(e=>"string"==typeof e?Z(t,e.split("\n")):e))}var U="'";var Y=function(e,t){let r=!0===t||t===U?U:'"',n=r===U?'"':U,i=0,s=0;for(let t of e)t===r?i++:t===n&&s++;return i>s?n:r};var z;z=new WeakMap;var G=new class{constructor(e){((e,t,r)=>{t.has(e)?i("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r)})(this,z),((e,t,r,n)=>{o(e,t,"write to private field"),n?n.call(e,r):t.set(e,r)})(this,z,new Set(e))}getLeadingWhitespaceCount(e){let t=a(this,z),r=0;for(let n=0;n<e.length&&t.has(e.charAt(n));n++)r++;return r}getTrailingWhitespaceCount(e){let t=a(this,z),r=0;for(let n=e.length-1;n>=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return a(this,z).has(e.charAt(0))}hasTrailingWhitespace(e){return a(this,z).has(q(!1,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}([...a(this,z)].join(""))}]+`,n=new RegExp(t?`(${r})`:r,"u");return e.split(n)}hasWhitespaceCharacter(e){let t=a(this,z);return Array.prototype.some.call(e,(e=>t.has(e)))}hasNonWhitespaceCharacter(e){let t=a(this,z);return Array.prototype.some.call(e,(e=>!t.has(e)))}isWhitespaceOnly(e){let t=a(this,z);return Array.prototype.every.call(e,(e=>t.has(e)))}}(["\t","\n","\f","\r"," "]),H=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}};var J=function(e){return"front-matter"===(null==e?void 0:e.type)},K=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),ee=new Set(["if","else if","for","switch","case"]);function te(e,t){var r;if("text"===e.type||"comment"===e.type||J(e)||"yaml"===e.type||"toml"===e.type)return null;if("attribute"===e.type&&delete t.value,"docType"===e.type&&delete t.value,"angularControlFlowBlock"===e.type&&null!=(r=e.parameters)&&r.children)for(let r of t.parameters.children)ee.has(e.name)?delete r.expression:r.expression=r.expression.trim();"angularIcuExpression"===e.type&&(t.switchValue=e.switchValue.trim()),"angularLetDeclarationInitializer"===e.type&&delete t.value}te.ignoredProperties=K;var re=te;var ne=async function(e,t){if("yaml"===e.language){let r=e.value.trim(),n=r?await t(r,{parser:"yaml"}):"";return function(e){return I({type:"root"},e)}([e.startDelimiter,e.explicitLanguage,R,n,n?R:"",e.endDelimiter])}};function ie(e,t=!0){return[_([M,e]),t?M:""]}function se(e,t){let r="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;return r&&("ObjectExpression"===r.type||"ArrayExpression"===r.type||("__vue_expression"===t.parser||"__vue_ts_expression"===t.parser)&&("TemplateLiteral"===r.type||"StringLiteral"===r.type))}async function oe(e,t,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let i=!0;n&&(r.__onHtmlBindingRoot=(e,t)=>{i=n(e,t)});let s=await t(e,r,t);return i?B(s):ie(s)}var ae=function(e,t,r,n){let{node:i}=r,s=n.originalText.slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset);return/^\s*$/u.test(s)?"":oe(s,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},se)},le=e=>String(e).split(/[/\\]/u).pop();function ue(e,t){if(!t)return;let r=le(t).toLowerCase();return e.find((({filenames:e})=>null==e?void 0:e.some((e=>e.toLowerCase()===r))))??e.find((({extensions:e})=>null==e?void 0:e.some((e=>r.endsWith(e)))))}var ce=function(e,t){let r=e.plugins.flatMap((e=>e.languages??[])),n=function(e,t){if(t)return e.find((({name:e})=>e.toLowerCase()===t))??e.find((({aliases:e})=>null==e?void 0:e.includes(t)))??e.find((({extensions:e})=>null==e?void 0:e.includes(`.${t}`)))}(r,t.language)??ue(r,t.physicalFile)??ue(r,t.file)??void t.physicalFile;return null==n?void 0:n.parsers[0]},he="inline",pe={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",marquee:"inline-block",source:"block",track:"block",details:"block",summary:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},de="normal",fe={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};var me=function(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)},ge=e=>(e=>u(!1,e,/^[\t\f\r ]*\n/gu,""))(G.trimEnd(e)),ye=e=>{let t=e,r=G.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=G.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function Oe(e,t){return!!("ieConditionalComment"===e.type&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||"ieConditionalComment"===e.type&&!e.complete||Le(e)&&e.children.some((e=>"text"!==e.type&&"interpolation"!==e.type))||Ve(e,t)&&!ve(e)&&"interpolation"!==e.type)}function xe(e){return!("attribute"===e.type||!e.parent||!e.prev)&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.prev)}function be(e){return"text"===e.type||"comment"===e.type}function ve(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||"svg:script"===e.fullName||me(e)&&("script"===e.name||"style"===e.name))}function we(e){return Me(e).startsWith("pre")}function De(e,t){var r,n;let i=!(J(e)||"angularControlFlowBlock"===e.type||("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)&&(!e.parent||"none"===e.parent.cssDisplay||!Le(e.parent)&&(!e.prev&&("root"===e.parent.type||Le(e)&&e.parent||ve(e.parent)||We(e.parent,t)||!function(e){return!Qe(e)&&"inline-block"!==e}(e.parent.cssDisplay))||e.prev&&!function(e){return!Qe(e)}(e.prev.cssDisplay))));return i&&!e.prev&&null!=(n=null==(r=e.parent)?void 0:r.tagDefinition)&&n.ignoreFirstLf?"interpolation"===e.type:i}function Se(e,t){return!(J(e)||"angularControlFlowBlock"===e.type||("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)&&(!e.parent||"none"===e.parent.cssDisplay||!Le(e.parent)&&(!e.next&&("root"===e.parent.type||Le(e)&&e.parent||ve(e.parent)||We(e.parent,t)||!function(e){return!Qe(e)&&"inline-block"!==e}(e.parent.cssDisplay))||e.next&&!function(e){return!Qe(e)}(e.next.cssDisplay))))}function ke(e){return function(e){return!Qe(e)&&"inline-block"!==e}(e.cssDisplay)&&!ve(e)}function Ee(e){return J(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function Ce(e){return Te(e)||"element"===e.type&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some((e=>function(e){var t;return null==(t=e.children)?void 0:t.some((e=>"text"!==e.type))}(e))))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&Fe(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||_e(e.lastChild))}function Te(e){return"element"===e.type&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function Pe(e){return Ie(e)||e.prev&&function(e){return Ie(e)||"element"===e.type&&"br"===e.fullName||Ae(e)}(e.prev)||Ae(e)}function Ae(e){return Fe(e)&&_e(e)}function Fe(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:"root"===e.parent.type||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function _e(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Ie(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function Be(e){return e.lastChild?Be(e.lastChild):e}function Ne(e){if(e)switch(e){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(e.endsWith("json")||e.endsWith("importmap")||"speculationrules"===e)return"json"}}function $e(e,t){return function(e,t){let{name:r,attrMap:n}=e;if("script"!==r||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:i,lang:s}=e.attrMap;return s||i?ce(t,{language:s})??Ne(i):"babel"}(e,t)??function(e,t){if("style"!==e.name)return;let{lang:r}=e.attrMap;return r?ce(t,{language:r}):"css"}(e,t)??function(e,t){if(!Ve(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:i}=r;return ce(t,{language:i})??Ne(n)}(e,t)}function Qe(e){return"block"===e||"list-item"===e||e.startsWith("table")}function Le(e){return Me(e).startsWith("pre")}function Me(e){return"element"===e.type&&(!e.namespace||me(e))&&fe[e.name]||de}function Re(e,t=function(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split("\n")){if(0===r.length)continue;let e=G.getLeadingWhitespaceCount(r);if(0===e)return 0;r.length!==e&&e<t&&(t=e)}return t===Number.POSITIVE_INFINITY?0:t}(e)){return 0===t?e:e.split("\n").map((e=>e.slice(t))).join("\n")}function je(e){return u(!1,u(!1,e,"&apos;","'"),"&quot;",'"')}function Ze(e){return je(e.value)}var qe=new Set(["template","style","script"]);function We(e,t){return Xe(e,t)&&!qe.has(e.fullName)}function Xe(e,t){return"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&"html"!==e.fullName.toLowerCase()}function Ve(e,t){return Xe(e,t)&&(We(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}function Ue(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?V(t):V(Re(ge(t)),R):Z(L,G.split(t))}function Ye(e,t){return Xe(e,t)&&"script"===e.name}var ze=/\{\{(.+?)\}\}/su;function Ge({parser:e}){return(t,r,n)=>oe(Ze(n.node),t,{parser:e},se)}var He=Ge({parser:"__ng_action"}),Je=Ge({parser:"__ng_binding"}),Ke=Ge({parser:"__ng_directive"});var et=function(e,t){if("angular"!==t.parser)return;let{node:r}=e,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return He;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/u.test(n)||/^ng-(?:if|show|hide|class|style)$/u.test(n))return Je;if(n.startsWith("*"))return Ke;let i=Ze(r);return/^i18n(?:-.+)?$/u.test(n)?()=>ie(N(Ue(r,i.trim())),!i.includes("@@")):ze.test(i)?e=>async function(e,t){let r=[];for(let[n,i]of e.split(ze).entries())if(n%2==0)r.push(V(i));else try{r.push(B(["{{",_([L,await oe(i,t,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),L,"}}"]))}catch{r.push("{{",V(i),"}}")}return r}(i,e):void 0};var tt=function(e,t){let{node:r}=e,n=Ze(r);if("class"===r.fullName&&!t.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/u).join(" ")};function rt(e){return"\t"===e||"\n"===e||"\f"===e||"\r"===e||" "===e}var nt=/^[ \t\n\r\u000c]+/,it=/^[, \t\n\r\u000c]+/,st=/^[^ \t\n\r\u000c]+/,ot=/[,]+$/,at=/^\d+$/,lt=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;var ut=function(e){let t,r,n,i,s,o,a=e.length,l=0;function u(t){let r,n=t.exec(e.substring(l));if(n)return[r]=n,l+=r.length,r}let c=[];for(;;){if(u(it),l>=a){if(0===c.length)throw new Error("Must contain one or more image candidate strings.");return c}o=l,t=u(st),r=[],","===t.slice(-1)?(t=t.replace(ot,""),p()):h()}function h(){for(u(nt),n="",i="in descriptor";;){if(s=e.charAt(l),"in descriptor"===i)if(rt(s))n&&(r.push(n),n="",i="after descriptor");else{if(","===s)return l+=1,n&&r.push(n),void p();if("("===s)n+=s,i="in parens";else{if(""===s)return n&&r.push(n),void p();n+=s}}else if("in parens"===i)if(")"===s)n+=s,i="in descriptor";else{if(""===s)return r.push(n),void p();n+=s}else if("after descriptor"===i&&!rt(s)){if(""===s)return void p();i="in descriptor",l-=1}l+=1}}function p(){let n,i,s,a,l,u,h,p,d,f=!1,m={};for(a=0;a<r.length;a++)l=r[a],u=l[l.length-1],h=l.substring(0,l.length-1),p=parseInt(h,10),d=parseFloat(h),at.test(h)&&"w"===u?((n||i)&&(f=!0),0===p?f=!0:n=p):lt.test(h)&&"x"===u?((n||i||s)&&(f=!0),d<0?f=!0:i=d):at.test(h)&&"h"===u?((s||i)&&(f=!0),0===p?f=!0:s=p):f=!0;if(f)throw new Error(`Invalid srcset descriptor found in "${e}" at "${l}".`);m.source={value:t,startOffset:o},n&&(m.width={value:n}),i&&(m.density={value:i}),s&&(m.height={value:s}),c.push(m)}};var ct={width:"w",height:"h",density:"x"},ht=Object.keys(ct);var pt=function(e){if("srcset"===e.node.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return()=>function(e){let t=ut(e),r=ht.filter((e=>t.some((t=>Object.prototype.hasOwnProperty.call(t,e)))));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,i=ct[n],s=t.map((e=>e.source.value)),o=Math.max(...s.map((e=>e.length))),a=t.map((e=>e[n]?String(e[n].value):"")),l=a.map((e=>{let t=e.indexOf(".");return-1===t?e.length:t})),u=Math.max(...l);return ie(Z([",",L],s.map(((e,t)=>{let r=[e],n=a[t];if(n){let s=o-e.length+1,a=u-l[t],c=" ".repeat(s+a);r.push($(c," "),n+i)}return r}))))}(Ze(e.node))};function dt(e,t){let{node:r}=e,n=Ze(e.node).trim();if("style"===r.fullName&&!t.parentParser&&!n.includes("{{"))return async e=>ie(await e(n,{parser:"css",__isHTMLStyleAttribute:!0}))}var ft=new WeakMap;var mt=function(e,t){let{root:r}=e;return ft.has(r)||ft.set(r,r.children.some((e=>Ye(e,t)&&["ts","typescript"].includes(e.attrMap.lang)))),ft.get(r)};function gt(e,t,r){let{node:n}=r;return oe(`type T<${Ze(n)}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},se)}async function yt(e,t,r,n){let i=Ze(r.node),{left:s,operator:o,right:a}=function(e){let t=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,i=e.match(t);if(!i)return;let s={};if(s.for=i[3].trim(),!s.for)return;let o=u(!1,i[1].trim(),n,""),a=o.match(r);a?(s.alias=o.replace(r,""),s.iterator1=a[1].trim(),a[2]&&(s.iterator2=a[2].trim())):s.alias=o;let l=[s.alias,s.iterator1,s.iterator2];return l.some(((e,t)=>!e&&(0===t||l.slice(t+1).some(Boolean))))?void 0:{left:l.filter(Boolean).join(","),operator:i[2],right:s.for}}(i),l=mt(r,n);return[B(await oe(`function _(${s}) {}`,e,{parser:l?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",o," ",await oe(a,e,{parser:l?"__ts_expression":"__js_expression"})]}function Ot(e,t,{parseWithTs:r}){return oe(e,t,{parser:r?"__ts_expression":"__js_expression"},se)}var xt=function(e,t){if("vue"!==t.parser)return;let{node:r}=e,n=r.fullName;if("v-for"===n)return yt;if("generic"===n&&Ye(r.parent,t))return gt;let i=Ze(r),s=mt(e,t);return function(e){let t=e.fullName;return"#"===t.charAt(0)||"slot-scope"===t||"v-slot"===t||t.startsWith("v-slot:")}(r)||function(e,t){let r=e.parent;if(!Xe(r,t))return!1;let n=r.fullName,i=e.fullName;return"script"===n&&"setup"===i||"style"===n&&"vars"===i}(r,t)?e=>function(e,t,{parseWithTs:r}){return oe(`function _(${e}) {}`,t,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}(i,e,{parseWithTs:s}):n.startsWith("@")||n.startsWith("v-on:")?e=>function(e,t,{parseWithTs:r}){return function(e){let t=e.trim();return/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/u.test(t)||/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\]|\[[$_a-z][\w$]*\])*$/iu.test(t)}(e)?Ot(e,t,{parseWithTs:r}):oe(e,t,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},se)}(i,e,{parseWithTs:s}):n.startsWith(":")||n.startsWith("v-bind:")?e=>function(e,t,{parseWithTs:r}){return oe(e,t,{parser:r?"__vue_ts_expression":"__vue_expression"},se)}(i,e,{parseWithTs:s}):n.startsWith("v-")?e=>Ot(i,e,{parseWithTs:s}):void 0};function bt(e){return async(t,r,n,i)=>{let s=await e(t,r,n,i);if(s)return s=W(s,(e=>"string"==typeof e?u(!1,e,'"',"&quot;"):e)),[n.node.rawName,'="',B(s),'"']}}var vt=function(e,t){let{node:r}=e;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(t.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||"lwc"===t.parser&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let r of[pt,dt,tt,xt,et]){let n=r(e,t);if(n)return bt(n)}}},wt=new Proxy((()=>{}),{get:()=>wt}),Dt=wt;var St=function(e){return Array.isArray(e)&&e.length>0};function kt(e){return e.sourceSpan.start.offset}function Et(e){return e.sourceSpan.end.offset}function Ct(e,t){return[e.isSelfClosing?"":Tt(e,t),Pt(e,t)]}function Tt(e,t){return e.lastChild&&Qt(e.lastChild)?"":[At(e,t),_t(e,t)]}function Pt(e,t){return(e.next?Nt(e.next):$t(e.parent))?"":[It(e,t),Ft(e,t)]}function At(e,t){return $t(e)?It(e.lastChild,t):""}function Ft(e,t){return Qt(e)?_t(e.parent,t):Lt(e)?Xt(e.next):""}function _t(e,t){if(Dt(!e.isSelfClosing),Bt(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return`</${e.rawName}`}}function It(e,t){if(Bt(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]--\x3e";case"ieConditionalStartComment":return"]>\x3c!--\x3e";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function Bt(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(xe(e)||Oe(e.parent,t))}function Nt(e){return e.prev&&"docType"!==e.prev.type&&"angularControlFlowBlock"!==e.type&&!be(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function $t(e){var t;return(null==(t=e.lastChild)?void 0:t.isTrailingSpaceSensitive)&&!e.lastChild.hasTrailingSpaces&&!be(Be(e.lastChild))&&!Le(e)}function Qt(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&be(Be(e))}function Lt(e){return e.next&&!be(e.next)&&be(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Mt(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Rt(e,t,r){var n;let{node:i}=e;if(!St(i.attrs))return i.isSelfClosing?" ":"";let s="comment"===(null==(n=i.prev)?void 0:n.type)&&function(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return!!t&&(!t[1]||t[1].split(/\s+/u))}(i.prev.value),o="boolean"==typeof s?()=>s:Array.isArray(s)?e=>s.includes(e.rawName):()=>!1,a=e.map((({node:e})=>o(e)?V(t.originalText.slice(kt(e),Et(e))):r()),"attrs"),l="element"===i.type&&"script"===i.fullName&&1===i.attrs.length&&"src"===i.attrs[0].fullName&&0===i.children.length,u=t.singleAttributePerLine&&i.attrs.length>1&&!Xe(i,t)?R:L,c=[_([l?" ":L,Z(u,a)])];return i.firstChild&&Mt(i.firstChild)||i.isSelfClosing&&$t(i.parent)||l?c.push(i.isSelfClosing?" ":""):c.push(t.bracketSameLine?i.isSelfClosing?" ":"":i.isSelfClosing?L:M),c}function jt(e){return e.firstChild&&Mt(e.firstChild)?"":Vt(e)}function Zt(e,t,r){let{node:n}=e;return[qt(n,t),Rt(e,t,r),n.isSelfClosing?"":jt(n)]}function qt(e,t){return e.prev&&Lt(e.prev)?"":[Wt(e,t),Xt(e)]}function Wt(e,t){return Mt(e)?Vt(e.parent):Nt(e)?It(e.prev,t):""}function Xt(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return`\x3c!--[if ${e.condition}`;case"ieConditionalEndComment":return"\x3c!--<!";case"interpolation":return"{{";case"docType":return"html"===e.value?"<!doctype":"<!DOCTYPE";case"angularIcuExpression":return"{";case"element":if(e.condition)return`\x3c!--[if ${e.condition}]>\x3c!--\x3e<${e.rawName}`;default:return`<${e.rawName}`}}function Vt(e){switch(Dt(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--<![endif]--\x3e";default:return">"}}var Ut=function(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&Mt(e.firstChild)&&(r-=Vt(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&Qt(e.lastChild)?n+=_t(e,t).length:$t(e)&&(n-=It(e.lastChild,t).length),t.originalText.slice(r,n)},Yt=new Set(["if","else if","for","switch","case"]);var zt=function(e,t){let{node:r}=e;switch(r.type){case"element":if(ve(r)||"interpolation"===r.type)return;if(!r.isSelfClosing&&Ve(r,t)){let n=$e(r,t);return n?async(i,s)=>{let o=Ut(r,t),a=/^\s*$/u.test(o),l="";return a||(l=await i(ge(o),{parser:n,__embeddedInHtml:!0}),a=""===l),[Wt(r,t),B(Zt(e,t,s)),a?"":R,l,a?"":R,Ct(r,t),Ft(r,t)]}:void 0}break;case"text":if(ve(r.parent)){let e=$e(r.parent,t);if(e)return async n=>{let i="markdown"===e?Re(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,s={parser:e,__embeddedInHtml:!0};if("html"===t.parser&&"babel"===e){let e="script",{attrMap:t}=r.parent;t&&("module"===t.type||"text/babel"===t.type&&"module"===t["data-type"])&&(e="module"),s.__babelSourceType=e}return[Q,Wt(r,t),await n(i,s),Ft(r,t)]}}else if("interpolation"===r.parent.type)return async n=>{let i={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===t.parser?i.parser="__ng_interpolation":"vue"===t.parser?i.parser=mt(e,t)?"__vue_ts_expression":"__vue_expression":i.parser="__js_expression",[_([L,await n(r.value,i)]),r.parent.next&&Nt(r.parent.next)?" ":L]};break;case"attribute":return vt(e,t);case"front-matter":return e=>ne(r,e);case"angularControlFlowBlockParameters":return Yt.has(e.parent.name)?ae:void 0;case"angularLetDeclarationInitializer":return e=>oe(r.value,e,{parser:"__ng_binding",__isInHtmlAttribute:!1})}},Gt=null;function Ht(e){if(null!==Gt&&(Gt.property,1)){let e=Gt;return Gt=Ht.prototype=null,e}return Gt=Ht.prototype=e??Object.create(null),new Ht}for(let e=0;e<=10;e++)Ht();var Jt=function(e,t="type"){return function(e){Ht(e)}(e),function(r){let n=r[t],i=e[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return i}}({"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]});function Kt(e){return/^\s*<!--\s*@(?:format|prettier)\s*-->/u.test(e)}var er=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function tr(e){let t=Et(e);return"element"===e.type&&!e.endSourceSpan&&St(e.children)?Math.max(t,tr(q(!1,e.children,-1))):t}function rr(e,t,r){let n=e.node;if(xe(n)){let e=tr(n);return[Wt(n,t),V(G.trimEnd(t.originalText.slice(kt(n)+(n.prev&&Lt(n.prev)?Xt(n).length:0),e-(n.next&&Nt(n.next)?It(n,t).length:0)))),Ft(n,t)]}return r()}function nr(e,t){return be(e)&&be(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?Pe(t)?R:L:"":Pe(t)?R:M:Lt(e)&&(xe(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&t.attrs.length>0)||"element"===e.type&&e.isSelfClosing&&Nt(t)?"":!t.isLeadingSpaceSensitive||Pe(t)||Nt(t)&&e.lastChild&&Qt(e.lastChild)&&e.lastChild.lastChild&&Qt(e.lastChild.lastChild)?R:t.hasLeadingSpaces?L:M}function ir(e,t,r){let{node:n}=e;if(Te(n))return[Q,...e.map((e=>{let n=e.node,i=n.prev?nr(n.prev,n):"";return[i?[i,Ee(n.prev)?R:""]:"",rr(e,t,r)]}),"children")];let i=n.children.map((()=>Symbol("")));return e.map(((e,n)=>{let s=e.node;if(be(s)){if(s.prev&&be(s.prev)){let n=nr(s.prev,s);if(n)return Ee(s.prev)?[R,R,rr(e,t,r)]:[n,rr(e,t,r)]}return rr(e,t,r)}let o=[],a=[],l=[],u=[],c=s.prev?nr(s.prev,s):"",h=s.next?nr(s,s.next):"";return c&&(Ee(s.prev)?o.push(R,R):c===R?o.push(R):be(s.prev)?a.push(c):a.push($("",M,{groupId:i[n-1]}))),h&&(Ee(s)?be(s.next)&&u.push(R,R):h===R?be(s.next)&&u.push(R):l.push(h)),[...o,B([...a,B([rr(e,t,r),...l],{id:i[n]})]),...u]}),"children")}function sr(e,t,r){let{node:n}=e,i=[];(function(e){let{previous:t}=e;return"angularControlFlowBlock"===(null==t?void 0:t.type)&&!xe(t)&&!or(t)})(e)&&i.push("} "),i.push("@",n.name),n.parameters&&i.push(" (",B(r("parameters")),")"),i.push(" {");let s=or(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,i.push(_([R,ir(e,t,r)])),s&&i.push(R,"}")):s&&i.push("}"),B(i,{shouldBreak:!0})}function or(e){var t,r;return!("angularControlFlowBlock"===(null==(t=e.next)?void 0:t.type)&&null!=(r=er.get(e.name))&&r.has(e.next.name))}function ar(e,t,r){let{node:n}=e;if(Oe(n,t))return[Wt(n,t),B(Zt(e,t,r)),V(Ut(n,t)),...Ct(n,t),Ft(n,t)];let i=1===n.children.length&&("interpolation"===n.firstChild.type||"angularIcuExpression"===n.firstChild.type)&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id"),o=i=>B([B(Zt(e,t,r),{id:s}),i,Ct(n,t)]);return 0===n.children.length?o(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?L:""):o([Ce(n)?Q:"",(a=[i?$(M,"",{groupId:s}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?L:"text"===n.firstChild.type&&n.isWhitespaceSensitive&&n.isIndentationSensitive?function(e){return I(Number.NEGATIVE_INFINITY,e)}(M):M,ir(e,t,r)],i?function(e,t){return A(e),{type:x,contents:e,groupId:t.groupId,negate:t.negate}}(a,{groupId:s}):!ve(n)&&!We(n,t)||"root"!==n.parent.type||"vue"!==t.parser||t.vueIndentScriptAndStyle?_(a):a),(n.next?Nt(n.next):$t(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":i?$(M,"",{groupId:s}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?L:("comment"===n.lastChild.type||"text"===n.lastChild.type&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":M]);var a}function lr(e){return e>=9&&e<=32||160==e}function ur(e){return 48<=e&&e<=57}function cr(e){return e>=97&&e<=122||e>=65&&e<=90}function hr(e){return 10===e||13===e}function pr(e){return 48<=e&&e<=55}function dr(e){return 39===e||34===e||96===e}var fr=/-+([a-z0-9])/g;var mr,gr,yr=class e{constructor(e,t,r,n){this.file=e,this.offset=t,this.line=r,this.col=n}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){let r=this.file.content,n=r.length,i=this.offset,s=this.line,o=this.col;for(;i>0&&t<0;)if(i--,t++,10==r.charCodeAt(i)){s--;let e=r.substring(0,i-1).lastIndexOf(String.fromCharCode(10));o=e>0?i-e:i}else o--;for(;i<n&&t>0;){let e=r.charCodeAt(i);i++,t--,10==e?(s++,o=0):o++}return new e(this.file,i,s,o)}getContext(e,t){let r=this.file.content,n=this.offset;if(null!=n){n>r.length-1&&(n=r.length-1);let i=n,s=0,o=0;for(;s<e&&n>0&&(n--,s++,"\n"!=r[n]||++o!=t););for(s=0,o=0;s<e&&i<r.length-1&&(i++,s++,"\n"!=r[i]||++o!=t););return{before:r.substring(n,this.offset),after:r.substring(this.offset,i+1)}}return null}},Or=class{constructor(e,t){this.content=e,this.url=t}},xr=class{constructor(e,t,r=e,n=null){this.start=e,this.end=t,this.fullStart=r,this.details=n}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};(gr=mr||(mr={}))[gr.WARNING=0]="WARNING",gr[gr.ERROR=1]="ERROR";var br=class{constructor(e,t,r=mr.ERROR){this.span=e,this.msg=t,this.level=r}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${mr[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},vr=[function(e){e.walk((e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){let t=e.children[0];1===t.value.length?e.removeChild(t):t.value=t.value.slice(1)}}))},function(e){let t=e=>{var t,r;return"element"===e.type&&"ieConditionalStartComment"===(null==(t=e.prev)?void 0:t.type)&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&"ieConditionalEndComment"===(null==(r=e.firstChild)?void 0:r.type)&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset};e.walk((e=>{if(e.children)for(let r=0;r<e.children.length;r++){let n=e.children[r];if(!t(n))continue;let i=n.prev,s=n.firstChild;e.removeChild(i),r--;let o=new xr(i.sourceSpan.start,s.sourceSpan.end),a=new xr(o.start,n.sourceSpan.end);n.condition=i.condition,n.sourceSpan=a,n.startSourceSpan=o,n.removeChild(s)}}))},function(e){return function(e,t,r){e.walk((e=>{if(e.children)for(let n=0;n<e.children.length;n++){let i=e.children[n];if("text"!==i.type&&!t(i))continue;"text"!==i.type&&(i.type="text",i.value=r(i));let s=i.prev;!s||"text"!==s.type||(s.value+=i.value,s.sourceSpan=new xr(s.sourceSpan.start,i.sourceSpan.end),e.removeChild(i),n--)}}))}(e,(e=>"cdata"===e.type),(e=>`<![CDATA[${e.value}]]>`))},function(e,t){if("html"===t.parser)return;let r=/\{\{(.+?)\}\}/su;e.walk((e=>{if(function(e){return e.children&&!ve(e)}(e))for(let t of e.children){if("text"!==t.type)continue;let n=t.sourceSpan.start,i=null,s=t.value.split(r);for(let r=0;r<s.length;r++,n=i){let o=s[r];r%2!=0?(i=n.moveBy(o.length+4),e.insertChildBefore(t,{type:"interpolation",sourceSpan:new xr(n,i),children:0===o.length?[]:[{type:"text",value:o,sourceSpan:new xr(n.moveBy(2),i.moveBy(-2))}]})):(i=n.moveBy(o.length),o.length>0&&e.insertChildBefore(t,{type:"text",value:o,sourceSpan:new xr(n,i)}))}e.removeChild(t)}}))},function(e){e.walk((e=>{if(!e.children)return;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===G.trim(e.children[0].value).length)return e.hasDanglingSpaces=e.children.length>0,void(e.children=[]);let t=function(e){return ve(e)||"interpolation"===e.type||we(e)}(e),r=we(e);if(!t)for(let t=0;t<e.children.length;t++){let r=e.children[t];if("text"!==r.type)continue;let{leadingWhitespace:n,text:i,trailingWhitespace:s}=ye(r.value),o=r.prev,a=r.next;i?(r.value=i,r.sourceSpan=new xr(r.sourceSpan.start.moveBy(n.length),r.sourceSpan.end.moveBy(-s.length)),n&&(o&&(o.hasTrailingSpaces=!0),r.hasLeadingSpaces=!0),s&&(r.hasTrailingSpaces=!0,a&&(a.hasLeadingSpaces=!0))):(e.removeChild(r),t--,(n||s)&&(o&&(o.hasTrailingSpaces=!0),a&&(a.hasLeadingSpaces=!0)))}e.isWhitespaceSensitive=t,e.isIndentationSensitive=r}))},function(e,t){e.walk((e=>{e.cssDisplay=function(e,t){var r;if(Xe(e,t))return"block";if("comment"===(null==(r=e.prev)?void 0:r.type)){let t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(t)return t[1]}let n=!1;if("element"===e.type&&"svg"===e.namespace){if(!function(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}(e,(e=>"svg:foreignObject"===e.fullName)))return"svg"===e.name?"inline-block":"block";n=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"element"===e.type&&(!e.namespace||n||me(e))&&pe[e.name]||he}}(e,t)}))},function(e){e.walk((e=>{e.isSelfClosing=!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)}))},function(e,t){e.walk((e=>{"element"===e.type&&(e.hasHtmComponentClosingTag=e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset)))}))},function(e,t){e.walk((e=>{let{children:r}=e;if(r){if(0===r.length)return void(e.isDanglingSpaceSensitive=ke(e));for(let e of r)e.isLeadingSpaceSensitive=De(e,t),e.isTrailingSpaceSensitive=Se(e,t);for(let e=0;e<r.length;e++){let t=r[e];t.isLeadingSpaceSensitive=(0===e||t.prev.isTrailingSpaceSensitive)&&t.isLeadingSpaceSensitive,t.isTrailingSpaceSensitive=(e===r.length-1||t.next.isLeadingSpaceSensitive)&&t.isTrailingSpaceSensitive}}}))},function(e){let t=e=>{var t,r;return"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!G.hasWhitespaceCharacter(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&"text"===(null==(t=e.prev)?void 0:t.type)&&"text"===(null==(r=e.next)?void 0:r.type)};e.walk((e=>{if(e.children)for(let r=0;r<e.children.length;r++){let n=e.children[r];if(!t(n))continue;let i=n.prev,s=n.next;i.value+=`<${n.rawName}>`+n.firstChild.value+`</${n.rawName}>`+s.value,i.sourceSpan=new xr(i.sourceSpan.start,s.sourceSpan.end),i.isTrailingSpaceSensitive=s.isTrailingSpaceSensitive,i.hasTrailingSpaces=s.hasTrailingSpaces,e.removeChild(n),r--,e.removeChild(s)}}))}];var wr,Dr,Sr,kr={preprocess:function(e,t){for(let r of vr)r(e,t);return e},print:function(e,t,r){let{node:n}=e;switch(n.type){case"front-matter":return V(n.raw);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(n),[B(ir(e,t,r)),R];case"element":case"ieConditionalComment":return ar(e,t,r);case"angularControlFlowBlock":return sr(e,t,r);case"angularControlFlowBlockParameters":return function(e,t,r){return[_([M,Z([";",L],e.map(r,"children"))]),M]}(e,0,r);case"angularControlFlowBlockParameter":return G.trim(n.expression);case"angularLetDeclaration":return B(["@let ",B([n.id," =",B(_([L,r("init")]))]),";"]);case"angularLetDeclarationInitializer":return n.value;case"angularIcuExpression":return function(e,t,r){let{node:n}=e;return[qt(n,t),B([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",_([L,Z(L,e.map(r,"cases"))])]:"",M]),Pt(n,t)]}(e,t,r);case"angularIcuCase":return function(e,t,r){let{node:n}=e;return[n.value," {",B([_([M,e.map((({node:e})=>"text"!==e.type||G.trim(e.value)?r():""),"expression")]),M]),"}"]}(e,0,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[qt(n),Pt(n)];case"interpolation":return[qt(n,t),...e.map(r,"children"),Pt(n,t)];case"text":{if("interpolation"===n.parent.type){let e=/\n[^\S\n]*$/u,t=e.test(n.value);return[V(t?n.value.replace(e,""):n.value),t?R:""]}let e=X([Wt(n,t),...Ue(n),Ft(n,t)]);return Array.isArray(e)?N(e):e}case"docType":return[B([qt(n,t)," ",u(!1,n.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),Pt(n,t)];case"comment":return[Wt(n,t),V(t.originalText.slice(kt(n),Et(n))),Ft(n,t)];case"attribute":{if(null===n.value)return n.rawName;let e=je(n.value),t=Y(e,'"');return[n.rawName,"=",t,V('"'===t?u(!1,e,'"',"&quot;"):u(!1,e,"'","&apos;")),t]}default:throw new H(n,"HTML")}},insertPragma:function(e){return"\x3c!-- @format --\x3e\n\n"+e},massageAstNode:re,embed:zt,getVisitorKeys:Jt},Er=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],Cr={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Tr="HTML",Pr={bracketSameLine:Cr.bracketSameLine,htmlWhitespaceSensitivity:{category:Tr,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Cr.singleAttributePerLine,vueIndentScriptAndStyle:{category:Tr,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Ar={};s(Ar,{angular:()=>ui,html:()=>li,lwc:()=>hi,vue:()=>ci}),new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(wr||(wr={})),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(Dr||(Dr={})),function(e){e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"}(Sr||(Sr={}));var Fr,_r,Ir,Br,Nr="custom-elements",$r="no-errors-schema";function Qr(e,t=!0){if(":"!=e[0])return[null,e];let r=e.indexOf(":",1);if(-1===r){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,r),e.slice(r+1)]}function Lr(e){return"ng-container"===Qr(e)[1]}function Mr(e){return"ng-content"===Qr(e)[1]}function Rr(e){return null===e?null:Qr(e)[0]}function jr(e,t){return e?`:${e}:${t}`:t}function Zr(){return Br||(Br={},qr(Fr.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),qr(Fr.STYLE,["*|style"]),qr(Fr.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),qr(Fr.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),Br}function qr(e,t){for(let r of t)Br[r.toLowerCase()]=e}(function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"})(Fr||(Fr={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(_r||(_r={})),function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"}(Ir||(Ir={}));var Wr=class{},Xr=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],Vr=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),Ur=Array.from(Vr).reduce(((e,[t,r])=>(e.set(t,r),e)),new Map),Yr=class extends Wr{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,Xr.forEach((e=>{let t=new Map,r=new Set,[n,i]=e.split("|"),s=i.split(","),[o,a]=n.split("^");o.split(",").forEach((e=>{this._schema.set(e.toLowerCase(),t),this._eventSchema.set(e.toLowerCase(),r)}));let l=a&&this._schema.get(a.toLowerCase());if(l){for(let[e,r]of l)t.set(e,r);for(let e of this._eventSchema.get(a.toLowerCase()))r.add(e)}s.forEach((e=>{if(e.length>0)switch(e[0]){case"*":r.add(e.substring(1));break;case"!":t.set(e.substring(1),"boolean");break;case"#":t.set(e.substring(1),"number");break;case"%":t.set(e.substring(1),"object");break;default:t.set(e,"string")}}))}))}hasProperty(e,t,r){if(r.some((e=>e.name===$r)))return!0;if(e.indexOf("-")>-1){if(Lr(e)||Mr(e))return!1;if(r.some((e=>e.name===Nr)))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return!!(t.some((e=>e.name===$r))||e.indexOf("-")>-1&&(Lr(e)||Mr(e)||t.some((e=>e.name===Nr))))||this._schema.has(e.toLowerCase())}securityContext(e,t,r){r&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let n=Zr()[e+"|"+t];return n||(n=Zr()["*|"+t],n||Fr.NONE)}getMappedPropName(e){return Vr.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...\nIf '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map((e=>Ur.get(e)??e))}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return function(e){return e.replace(fr,((...e)=>e[1].toUpperCase()))}(e)}normalizeAnimationStyleValue(e,t,r){let n="",i=r.toString().trim(),s=null;if(function(e){switch(e){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}(e)&&0!==r&&"0"!==r)if("number"==typeof r)n="px";else{let e=r.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&(s=`Please provide a CSS unit value for ${t}:${r}`)}return{error:s,value:i+n}}};var zr,Gr,Hr=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:r=Ir.PARSABLE_DATA,closedByParent:n=!1,isVoid:i=!1,ignoreFirstLf:s=!1,preventNamespaceInheritance:o=!1,canSelfClose:a=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach((e=>this.closedByChildren[e]=!0)),this.isVoid=i,this.closedByParent=n||i,this.implicitNamespacePrefix=t||null,this.contentType=r,this.ignoreFirstLf=s,this.preventNamespaceInheritance=o,this.canSelfClose=a??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return"object"==typeof this.contentType?(void 0===e?void 0:this.contentType[e])??this.contentType.default:this.contentType}};function Jr(e){return Gr||(zr=new Hr({canSelfClose:!0}),Gr=Object.assign(Object.create(null),{base:new Hr({isVoid:!0}),meta:new Hr({isVoid:!0}),area:new Hr({isVoid:!0}),embed:new Hr({isVoid:!0}),link:new Hr({isVoid:!0}),img:new Hr({isVoid:!0}),input:new Hr({isVoid:!0}),param:new Hr({isVoid:!0}),hr:new Hr({isVoid:!0}),br:new Hr({isVoid:!0}),source:new Hr({isVoid:!0}),track:new Hr({isVoid:!0}),wbr:new Hr({isVoid:!0}),p:new Hr({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new Hr({closedByChildren:["tbody","tfoot"]}),tbody:new Hr({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Hr({closedByChildren:["tbody"],closedByParent:!0}),tr:new Hr({closedByChildren:["tr"],closedByParent:!0}),td:new Hr({closedByChildren:["td","th"],closedByParent:!0}),th:new Hr({closedByChildren:["td","th"],closedByParent:!0}),col:new Hr({isVoid:!0}),svg:new Hr({implicitNamespacePrefix:"svg"}),foreignObject:new Hr({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new Hr({implicitNamespacePrefix:"math"}),li:new Hr({closedByChildren:["li"],closedByParent:!0}),dt:new Hr({closedByChildren:["dt","dd"]}),dd:new Hr({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Hr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Hr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Hr({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Hr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Hr({closedByChildren:["optgroup"],closedByParent:!0}),option:new Hr({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Hr({ignoreFirstLf:!0}),listing:new Hr({ignoreFirstLf:!0}),style:new Hr({contentType:Ir.RAW_TEXT}),script:new Hr({contentType:Ir.RAW_TEXT}),title:new Hr({contentType:{default:Ir.ESCAPABLE_RAW_TEXT,svg:Ir.PARSABLE_DATA}}),textarea:new Hr({contentType:Ir.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),(new Yr).allKnownElementNames().forEach((e=>{!Gr[e]&&null===Rr(e)&&(Gr[e]=new Hr({canSelfClose:!1}))}))),Gr[e]??zr}var Kr=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},en=class extends Kr{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.type="text"}visit(e,t){return e.visitText(this,t)}},tn=class extends Kr{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.type="cdata"}visit(e,t){return e.visitCdata(this,t)}},rn=class extends Kr{constructor(e,t,r,n,i,s){super(n,s),this.switchValue=e,this.type=t,this.cases=r,this.switchValueSourceSpan=i}visit(e,t){return e.visitExpansion(this,t)}},nn=class{constructor(e,t,r,n,i){this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=i,this.type="expansionCase"}visit(e,t){return e.visitExpansionCase(this,t)}},sn=class extends Kr{constructor(e,t,r,n,i,s,o){super(r,o),this.name=e,this.value=t,this.keySpan=n,this.valueSpan=i,this.valueTokens=s,this.type="attribute"}visit(e,t){return e.visitAttribute(this,t)}get nameSpan(){return this.keySpan}},on=class extends Kr{constructor(e,t,r,n,i,s=null,o=null,a){super(n,a),this.name=e,this.attrs=t,this.children=r,this.startSourceSpan=i,this.endSourceSpan=s,this.nameSpan=o,this.type="element"}visit(e,t){return e.visitElement(this,t)}},an=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="comment"}visit(e,t){return e.visitComment(this,t)}},ln=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="docType"}visit(e,t){return e.visitDocType(this,t)}},un=class extends Kr{constructor(e,t,r,n,i,s,o=null,a){super(n,a),this.name=e,this.parameters=t,this.children=r,this.nameSpan=i,this.startSourceSpan=s,this.endSourceSpan=o,this.type="block"}visit(e,t){return e.visitBlock(this,t)}},cn=class{constructor(e,t){this.expression=e,this.sourceSpan=t,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitBlockParameter(this,t)}},hn=class{constructor(e,t,r,n,i){this.name=e,this.value=t,this.sourceSpan=r,this.nameSpan=n,this.valueSpan=i,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitLetDeclaration(this,t)}};function pn(e,t,r=null){let n=[],i=e.visit?t=>e.visit(t,r)||t.visit(e,r):t=>t.visit(e,r);return t.forEach((e=>{let t=i(e);t&&n.push(t)})),n}var dn=class{constructor(){}visitElement(e,t){this.visitChildren(t,(t=>{t(e.attrs),t(e.children)}))}visitAttribute(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,(t=>{t(e.cases)}))}visitExpansionCase(e,t){}visitBlock(e,t){this.visitChildren(t,(t=>{t(e.parameters),t(e.children)}))}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitChildren(e,t){let r=[],n=this;return t((function(t){t&&r.push(pn(n,t,e))})),Array.prototype.concat.apply([],r)}},fn={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",af:"",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"",setminus:"",setmn:"",smallsetminus:"",ssetmn:"",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"",Bscr:"",bernou:"",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"",DD:"",Cayleys:"",Cfr:"",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"",rsquo:"",rsquor:"",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"",complexes:"",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"",dd:"",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"",top:"",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"",expectation:"",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"",ee:"",exponentiale:"",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"",Fscr:"",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"",Poincareplane:"",HilbertSpace:"",Hscr:"",hamilt:"",Hopf:"",quaternions:"",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"",Im:"",image:"",imagpart:"",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"",ii:"",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"",ic:"",InvisibleTimes:"",it:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"",imagline:"",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"",Lscr:"",lagran:"",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:"",Mellintrf:"",Mscr:"",phmmat:"",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",ZeroWidthSpace:"",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",nbsp:" ",Nopf:"",naturals:"",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"",lsquo:"",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"",primes:"",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"",rationals:"",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"",Rfr:"",real:"",realpart:"",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"",reals:"",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"",realine:"",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:"",ThinSpace:"",thinsp:"",Tilde:"",sim:"",thicksim:"",thksim:"",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"",bigcup:"",xcup:"",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"",bigvee:"",xvee:"",Verbar:"‖",Vert:"‖",VerticalBar:"",mid:"",shortmid:"",smid:"",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:"",hairsp:"",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"",zeetrf:"",Zopf:"",integers:"",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"",bprime:"",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"",hyphen:"",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:"",emsp14:"",emsp:"",eng:"ŋ",ensp:"",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"",sbquo:"",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:"",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"",vee:"",ord:"⩝",order:"",orderof:"",oscr:"",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:"",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"",rbbrk:"",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""};fn.ngsp="";var mn=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];var gn=new class e{static fromArray(t){return t?(function(e,t){if(null!=t&&(!Array.isArray(t)||2!=t.length))throw new Error(`Expected '${e}' to be an array, [start, end].`);if(null!=t){let e=t[0],r=t[1];mn.forEach((t=>{if(t.test(e)||t.test(r))throw new Error(`['${e}', '${r}'] contains unusable interpolation symbol.`)}))}}("interpolation",t),new e(t[0],t[1])):gn}constructor(e,t){this.start=e,this.end=t}}("{{","}}"),yn=class extends br{constructor(e,t,r){super(r,e),this.tokenType=t}},On=class{constructor(e,t,r){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=r}};var xn,bn=/\r\n?/g;function vn(e){return`Unexpected character "${0===e?"EOF":String.fromCharCode(e)}"`}function wn(e){return`Unknown entity "${e}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}!function(e){e.HEX="hexadecimal",e.DEC="decimal"}(xn||(xn={}));var Dn=class{constructor(e){this.error=e}},Sn=class{constructor(e,t,r){this._getTagContentType=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._interpolationConfig=r.interpolationConfig||gn,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map((e=>e.codePointAt(0)||0)),this._canSelfClose=r.canSelfClose||!1,this._allowHtmComponentClosingTags=r.allowHtmComponentClosingTags||!1;let n=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new Bn(e,n):new In(e,n),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=r.tokenizeBlocks??!0,this._tokenizeLet=r.tokenizeLet??!0;try{this._cursor.init()}catch(e){this.handleError(e)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(bn,"\n")}tokenize(){for(;0!==this._cursor.peek();){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&64===this._cursor.peek()&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):!this._tokenizeBlocks||this._inInterpolation||this._isInExpansionCase()||this._isInExpansionForm()||!this._attemptCharCode(125)?this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,(()=>this._isTextEnd()),(()=>this._isTagStart())):this._consumeBlockEnd(e)}catch(e){this.handleError(e)}}this._beginToken(34),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn((t=>lr(t)?!e:!Fn(t)||(e=!0,!1))),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._beginToken(25,e);let t=this._endToken([this._getBlockName()]);if(40===this._cursor.peek()){if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(kn),!this._attemptCharCode(41))return void(t.type=29);this._attemptCharCodeUntilFn(kn)}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):t.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(_n);41!==this._cursor.peek()&&0!==this._cursor.peek();){this._beginToken(28);let e=this._cursor.clone(),t=null,r=0;for(;59!==this._cursor.peek()&&0!==this._cursor.peek()||null!==t;){let e=this._cursor.peek();if(92===e)this._cursor.advance();else if(e===t)t=null;else if(null===t&&dr(e))t=e;else if(40===e&&null===t)r++;else if(41===e&&null===t){if(0===r)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(_n)}}_consumeLetDeclaration(e){if(this._beginToken(30,e),!lr(this._cursor.peek()))return void(this._endToken([this._cursor.getChars(e)]).type=33);this._attemptCharCodeUntilFn(kn);let t=this._endToken([this._getLetDeclarationName()]);this._attemptCharCodeUntilFn(kn),this._attemptCharCode(61)?(this._attemptCharCodeUntilFn((e=>kn(e)&&!hr(e))),this._consumeLetDeclarationValue(),59===this._cursor.peek()?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(t.type=33,t.sourceSpan=this._cursor.getSpan(e))):t.type=33}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn((e=>!(cr(e)||36==e||95===e||t&&ur(e))||(t=!0,!1))),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(31,e);0!==this._cursor.peek();){let e=this._cursor.peek();if(59===e)break;dr(e)&&(this._cursor.advance(),this._attemptCharCodeUntilFn((t=>92===t?(this._cursor.advance(),!1):t===e))),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(function(e){return 125!==e}(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._cursor.peek()){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(null===this._currentTokenStart)throw new yn("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(null===this._currentTokenType)throw new yn("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let r={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}_createError(e,t){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');let r=new yn(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new Dn(r)}handleError(e){if(e instanceof Nn&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof Dn))throw e;this.errors.push(e.error)}_attemptCharCode(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(e){return!!function(e,t){return An(e)===An(t)}(this._cursor.peek(),e)&&(this._cursor.advance(),!0)}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(vn(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let r=this._cursor.clone();for(let n=0;n<t;n++)if(!this._attemptCharCode(e.charCodeAt(n)))return this._cursor=r,!1;return!0}_attemptStrCaseInsensitive(e){for(let t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0}_requireStr(e){let t=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(vn(this._cursor.peek()),this._cursor.getSpan(t))}_requireStrCaseInsensitive(e){let t=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(vn(this._cursor.peek()),this._cursor.getSpan(t))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,t){let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(r)<t)throw this._createError(vn(this._cursor.peek()),this._cursor.getSpan(r))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_consumeEntity(e){this._beginToken(9);let t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let e=this._attemptCharCode(120)||this._attemptCharCode(88),r=this._cursor.clone();if(this._attemptCharCodeUntilFn(Tn),59!=this._cursor.peek()){this._cursor.advance();let r=e?xn.HEX:xn.DEC;throw this._createError(function(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}(r,this._cursor.getChars(t)),this._cursor.getSpan())}let n=this._cursor.getChars(r);this._cursor.advance();try{let r=parseInt(n,e?16:10);this._endToken([String.fromCharCode(r),this._cursor.getChars(t)])}catch{throw this._createError(wn(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(Pn),59!=this._cursor.peek())this._beginToken(e,t),this._cursor=r,this._endToken(["&"]);else{let e=this._cursor.getChars(r);this._cursor.advance();let n=fn[e];if(!n)throw this._createError(wn(e),this._cursor.getSpan(t));this._endToken([n,`&${e};`])}}}_consumeRawText(e,t){this._beginToken(e?6:7);let r=[];for(;;){let n=this._cursor.clone(),i=t();if(this._cursor=n,i)break;e&&38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(r.join(""))]),r.length=0,this._consumeEntity(6),this._beginToken(6)):r.push(this._readChar())}this._endToken([this._processCarriageReturns(r.join(""))])}_consumeComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,(()=>this._attemptStr("--\x3e"))),this._beginToken(11),this._requireStr("--\x3e"),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,(()=>62===this._cursor.peek())),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._endToken([]),this._consumeRawText(!1,(()=>this._attemptStr("]]>"))),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e),this._endToken([]),this._consumeRawText(!1,(()=>62===this._cursor.peek())),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e,t=this._cursor.clone(),r="";for(;58!==this._cursor.peek()&&!Cn(this._cursor.peek());)this._cursor.advance();return 58===this._cursor.peek()?(r=this._cursor.getChars(t),this._cursor.advance(),e=this._cursor.clone()):e=t,this._requireCharCodeUntilFn(En,""===r?0:1),[r,this._cursor.getChars(e)]}_consumeTagOpen(e){let t,r,n,i=[];try{if(!cr(this._cursor.peek()))throw this._createError(vn(this._cursor.peek()),this._cursor.getSpan(e));for(n=this._consumeTagOpenStart(e),r=n.parts[0],t=n.parts[1],this._attemptCharCodeUntilFn(kn);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek()&&0!==this._cursor.peek();){let[e,t]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(kn),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(kn);let r=this._consumeAttributeValue();i.push({prefix:e,name:t,value:r})}else i.push({prefix:e,name:t});this._attemptCharCodeUntilFn(kn)}this._consumeTagOpenEnd()}catch(t){if(t instanceof Dn)return void(n?n.type=4:(this._beginToken(5,e),this._endToken(["<"])));throw t}if(this._canSelfClose&&2===this.tokens[this.tokens.length-1].type)return;let s=this._getTagContentType(t,r,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(r,t),s===Ir.RAW_TEXT?this._consumeRawTextWithTagClose(r,t,!1):s===Ir.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,t,!0)}_consumeRawTextWithTagClose(e,t,r){this._consumeRawText(r,(()=>!!(this._attemptCharCode(60)&&this._attemptCharCode(47)&&(this._attemptCharCodeUntilFn(kn),this._attemptStrCaseInsensitive(e?`${e}:${t}`:t)))&&(this._attemptCharCodeUntilFn(kn),this._attemptCharCode(62)))),this._beginToken(3),this._requireCharCodeUntilFn((e=>62===e),3),this._cursor.advance(),this._endToken([e,t]),this._handleFullNameStackForTagClose(e,t)}_consumeTagOpenStart(e){this._beginToken(0,e);let t=this._consumePrefixAndName();return this._endToken(t)}_consumeAttributeName(){let e=this._cursor.peek();if(39===e||34===e)throw this._createError(vn(e),this._cursor.getSpan());this._beginToken(14);let t=this._consumePrefixAndName();return this._endToken(t),t}_consumeAttributeValue(){let e;if(39===this._cursor.peek()||34===this._cursor.peek()){let t=this._cursor.peek();this._consumeQuote(t);let r=()=>this._cursor.peek()===t;e=this._consumeWithInterpolation(16,17,r,r),this._consumeQuote(t)}else{let t=()=>En(this._cursor.peek());e=this._consumeWithInterpolation(16,17,t,t)}return e}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._beginToken(3,e),this._attemptCharCodeUntilFn(kn),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(kn),this._requireCharCode(62),this._endToken([]);else{let[e,t]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(kn),this._requireCharCode(62),this._endToken([e,t]),this._handleFullNameStackForTagClose(e,t)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let r=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(r)}this._requireCharCode(44),this._attemptCharCodeUntilFn(kn),this._beginToken(7);let r=this._readUntil(44);this._endToken([r]),this._requireCharCode(44),this._attemptCharCodeUntilFn(kn)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(kn),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(kn),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(kn),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,r,n){this._beginToken(e);let i=[];for(;!r();){let r=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],r),i.length=0,this._consumeInterpolation(t,r,n),this._beginToken(e)):38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let s=this._processCarriageReturns(i.join(""));return this._endToken([s]),s}_consumeInterpolation(e,t,r){let n=[];this._beginToken(e,t),n.push(this._interpolationConfig.start);let i=this._cursor.clone(),s=null,o=!1;for(;0!==this._cursor.peek()&&(null===r||!r());){let e=this._cursor.clone();if(this._isTagStart())return this._cursor=e,n.push(this._getProcessedChars(i,e)),void this._endToken(n);if(null===s){if(this._attemptStr(this._interpolationConfig.end))return n.push(this._getProcessedChars(i,e)),n.push(this._interpolationConfig.end),void this._endToken(n);this._attemptStr("//")&&(o=!0)}let t=this._cursor.peek();this._cursor.advance(),92===t?this._cursor.advance():t===s?s=null:!o&&null===s&&dr(t)&&(s=t)}n.push(this._getProcessedChars(i,this._cursor)),this._endToken(n)}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||0===this._cursor.peek()||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||125===this._cursor.peek()&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||64===this._cursor.peek()||125===this._cursor.peek()))}_isTagStart(){if(60===this._cursor.peek()){let e=this._cursor.clone();e.advance();let t=e.peek();if(97<=t&&t<=122||65<=t&&t<=90||47===t||33===t)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&64===this._cursor.peek()){let e=this._cursor.clone();if(e.advance(),Fn(e.peek()))return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&22===this._expansionCaseStack[this._expansionCaseStack.length-1]}_isInExpansionForm(){return this._expansionCaseStack.length>0&&20===this._expansionCaseStack[this._expansionCaseStack.length-1]}isExpansionFormStart(){if(123!==this._cursor.peek())return!1;if(this._interpolationConfig){let e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0}_handleFullNameStackForTagOpen(e,t){let r=jr(e,t);(0===this._fullNameStack.length||this._fullNameStack[this._fullNameStack.length-1]===r)&&this._fullNameStack.push(r)}_handleFullNameStackForTagClose(e,t){let r=jr(e,t);0!==this._fullNameStack.length&&this._fullNameStack[this._fullNameStack.length-1]===r&&this._fullNameStack.pop()}};function kn(e){return!lr(e)||0===e}function En(e){return lr(e)||62===e||60===e||47===e||39===e||34===e||61===e||0===e}function Cn(e){return(e<97||122<e)&&(e<65||90<e)&&(e<48||e>57)}function Tn(e){return 59===e||0===e||!function(e){return e>=97&&e<=102||e>=65&&e<=70||ur(e)}(e)}function Pn(e){return 59===e||0===e||!cr(e)}function An(e){return e>=97&&e<=122?e-97+65:e}function Fn(e){return cr(e)||ur(e)||95===e}function _n(e){return 59!==e&&kn(e)}var In=class e{constructor(t,r){if(t instanceof e){this.file=t.file,this.input=t.input,this.end=t.end;let e=t.state;this.state={peek:e.peek,offset:e.offset,line:e.line,column:e.column}}else{if(!r)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=t,this.input=t.content,this.end=r.endPos,this.state={peek:-1,offset:r.startPos,line:r.startLine,column:r.startCol}}}clone(){return new e(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,t){let r=e=e||this;if(t)for(;this.diff(e)>0&&-1!==t.indexOf(e.peek());)r===e&&(e=e.clone()),e.advance();let n=this.locationFromCursor(e),i=this.locationFromCursor(this),s=r!==e?this.locationFromCursor(r):n;return new xr(n,i,s)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new Nn('Unexpected character "EOF"',this);let t=this.charAt(e.offset);10===t?(e.line++,e.column=0):hr(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new yr(e.file,e.state.offset,e.state.line,e.state.column)}},Bn=class e extends In{constructor(t,r){t instanceof e?(super(t),this.internalState={...t.internalState}):(super(t,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new e(this)}getChars(e){let t=e.clone(),r="";for(;t.internalState.offset<this.internalState.offset;)r+=String.fromCodePoint(t.peek()),t.advance();return r}processEscapeSequence(){let e=()=>this.internalState.peek;if(92===e())if(this.internalState={...this.state},this.advanceState(this.internalState),110===e())this.state.peek=10;else if(114===e())this.state.peek=13;else if(118===e())this.state.peek=11;else if(116===e())this.state.peek=9;else if(98===e())this.state.peek=8;else if(102===e())this.state.peek=12;else if(117===e())if(this.advanceState(this.internalState),123===e()){this.advanceState(this.internalState);let t=this.clone(),r=0;for(;125!==e();)this.advanceState(this.internalState),r++;this.state.peek=this.decodeHexDigits(t,r)}else{let e=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,4)}else if(120===e()){this.advanceState(this.internalState);let e=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,2)}else if(pr(e())){let t="",r=0,n=this.clone();for(;pr(e())&&r<3;)n=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),r++;this.state.peek=parseInt(t,8),this.internalState=n.internalState}else hr(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,t){let r=this.input.slice(e.internalState.offset,e.internalState.offset+t),n=parseInt(r,16);if(isNaN(n))throw e.state=e.internalState,new Nn("Invalid hexadecimal escape sequence",e);return n}},Nn=class{constructor(e,t){this.msg=e,this.cursor=t}},$n=class e extends br{static create(t,r,n){return new e(t,r,n)}constructor(e,t,r){super(t,r),this.elementName=e}},Qn=class{constructor(e,t){this.rootNodes=e,this.errors=t}},Ln=class{constructor(e){this.getTagDefinition=e}parse(e,t,r,n=!1,i){let s=e=>(t,...r)=>e(t.toLowerCase(),...r),o=n?this.getTagDefinition:s(this.getTagDefinition),a=e=>o(e).getContentType(),l=n?i:s(i),u=function(e,t,r,n={}){let i=new Sn(new Or(e,t),r,n);return i.tokenize(),new On(function(e){let t,r=[];for(let n=0;n<e.length;n++){let i=e[n];t&&5===t.type&&5===i.type||t&&16===t.type&&16===i.type?(t.parts[0]+=i.parts[0],t.sourceSpan.end=i.sourceSpan.end):(t=i,r.push(t))}return r}(i.tokens),i.errors,i.nonNormalizedIcuExpressions)}(e,t,i?(e,t,r,n)=>{let i=l(e,t,r,n);return void 0!==i?i:a(e)}:a,r),c=r&&r.canSelfClose||!1,h=r&&r.allowHtmComponentClosingTags||!1,p=new Mn(u.tokens,o,c,h,n);return p.build(),new Qn(p.rootNodes,u.errors.concat(p.errors))}},Mn=class e{constructor(e,t,r,n,i){this.tokens=e,this.getTagDefinition=t,this.canSelfClose=r,this.allowHtmComponentClosingTags=n,this.isTagNameCaseSensitive=i,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;34!==this._peek.type;)0===this._peek.type||4===this._peek.type?this._consumeStartTag(this._advance()):3===this._peek.type?(this._closeVoidElement(),this._consumeEndTag(this._advance())):12===this._peek.type?(this._closeVoidElement(),this._consumeCdata(this._advance())):10===this._peek.type?(this._closeVoidElement(),this._consumeComment(this._advance())):5===this._peek.type||7===this._peek.type||6===this._peek.type?(this._closeVoidElement(),this._consumeText(this._advance())):20===this._peek.type?this._consumeExpansion(this._advance()):25===this._peek.type?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):27===this._peek.type?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):29===this._peek.type?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):30===this._peek.type?(this._closeVoidElement(),this._consumeLet(this._advance())):18===this._peek.type?this._consumeDocType(this._advance()):33===this._peek.type?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let e of this._containerStack)e instanceof un&&this.errors.push($n.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){let t=this._advance(),r=this._getText(t),n=this._advanceIf(13);this._addToParent(new tn(r,new xr(e.sourceSpan.start,(n||t).sourceSpan.end),[t]))}_consumeComment(e){let t=this._advanceIf(7),r=this._advanceIf(11),n=null!=t?t.parts[0].trim():null,i=null==r?e.sourceSpan:new xr(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new an(n,i))}_consumeDocType(e){let t=this._advanceIf(7),r=this._advanceIf(19),n=null!=t?t.parts[0].trim():null,i=new xr(e.sourceSpan.start,(r||t||e).sourceSpan.end);this._addToParent(new ln(n,i))}_consumeExpansion(e){let t=this._advance(),r=this._advance(),n=[];for(;21===this._peek.type;){let e=this._parseExpansionCase();if(!e)return;n.push(e)}if(24!==this._peek.type)return void this.errors.push($n.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));let i=new xr(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new rn(t.parts[0],r.parts[0],n,i,t.sourceSpan)),this._advance()}_parseExpansionCase(){let t=this._advance();if(22!==this._peek.type)return this.errors.push($n.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let r=this._advance(),n=this._collectExpansionExpTokens(r);if(!n)return null;let i=this._advance();n.push({type:34,parts:[],sourceSpan:i.sourceSpan});let s=new e(n,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(s.build(),s.errors.length>0)return this.errors=this.errors.concat(s.errors),null;let o=new xr(t.sourceSpan.start,i.sourceSpan.end,t.sourceSpan.fullStart),a=new xr(r.sourceSpan.start,i.sourceSpan.end,r.sourceSpan.fullStart);return new nn(t.parts[0],s.rootNodes,o,t.sourceSpan,a)}_collectExpansionExpTokens(e){let t=[],r=[22];for(;;){if((20===this._peek.type||22===this._peek.type)&&r.push(this._peek.type),23===this._peek.type){if(!Rn(r,22))return this.errors.push($n.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(r.pop(),0===r.length)return t}if(24===this._peek.type){if(!Rn(r,20))return this.errors.push($n.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.pop()}if(34===this._peek.type)return this.errors.push($n.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}}_getText(e){let t=e.parts[0];if(t.length>0&&"\n"==t[0]){let e=this._getClosestParentElement();null!=e&&0==e.children.length&&this.getTagDefinition(e.name).ignoreFirstLf&&(t=t.substring(1))}return t}_consumeText(e){let t=[e],r=e.sourceSpan,n=e.parts[0];if(n.length>0&&"\n"===n[0]){let r=this._getContainer();null!=r&&0===r.children.length&&this.getTagDefinition(r.name).ignoreFirstLf&&(n=n.substring(1),t[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[n]})}for(;8===this._peek.type||5===this._peek.type||9===this._peek.type;)e=this._advance(),t.push(e),8===e.type?n+=e.parts.join("").replace(/&([^;]+);/g,jn):9===e.type?n+=e.parts[0]:n+=e.parts.join("");if(n.length>0){let i=e.sourceSpan;this._addToParent(new en(n,new xr(r.start,i.end,r.fullStart,r.details),t))}}_closeVoidElement(){let e=this._getContainer();e instanceof on&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[t,r]=e.parts,n=[];for(;14===this._peek.type;)n.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(t,r,this._getClosestParentElement()),s=!1;if(2===this._peek.type){this._advance(),s=!0;let t=this.getTagDefinition(i);this.canSelfClose||t.canSelfClose||null!==Rr(i)||t.isVoid||this.errors.push($n.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else 1===this._peek.type&&(this._advance(),s=!1);let o=this._peek.sourceSpan.fullStart,a=new xr(e.sourceSpan.start,o,e.sourceSpan.fullStart),l=new xr(e.sourceSpan.start,o,e.sourceSpan.fullStart),u=new xr(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),c=new on(i,n,[],a,l,void 0,u),h=this._getContainer();this._pushContainer(c,h instanceof on&&this.getTagDefinition(h.name).isClosedByChild(c.name)),s?this._popContainer(i,on,a):4===e.type&&(this._popContainer(i,on,null),this.errors.push($n.create(i,a,`Opening tag "${i}" not terminated.`)))}_pushContainer(e,t){t&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let t=this.allowHtmComponentClosingTags&&0===e.parts.length?null:this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(t&&this.getTagDefinition(t).isVoid)this.errors.push($n.create(t,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(t,on,e.sourceSpan)){let r=`Unexpected closing tag "${t}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push($n.create(t,e.sourceSpan,r))}}_popContainer(e,t,r){let n=!1;for(let i=this._containerStack.length-1;i>=0;i--){let s=this._containerStack[i];if(Rr(s.name)?s.name===e:(null==e||s.name.toLowerCase()===e.toLowerCase())&&s instanceof t)return s.endSourceSpan=r,s.sourceSpan.end=null!==r?r.end:s.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!n;(s instanceof un||s instanceof on&&!this.getTagDefinition(s.name).closedByParent)&&(n=!0)}return!1}_consumeAttr(e){let t,r=jr(e.parts[0],e.parts[1]),n=e.sourceSpan.end;15===this._peek.type&&(t=this._advance());let i,s,o="",a=[];if(16===this._peek.type)for(i=this._peek.sourceSpan,s=this._peek.sourceSpan.end;16===this._peek.type||17===this._peek.type||9===this._peek.type;){let e=this._advance();a.push(e),17===e.type?o+=e.parts.join("").replace(/&([^;]+);/g,jn):9===e.type?o+=e.parts[0]:o+=e.parts.join(""),s=n=e.sourceSpan.end}15===this._peek.type&&(s=n=this._advance().sourceSpan.end);let l=i&&s&&new xr((null==t?void 0:t.sourceSpan.start)??i.start,s,(null==t?void 0:t.sourceSpan.fullStart)??i.fullStart);return new sn(r,o,new xr(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,l,a.length>0?a:void 0,void 0)}_consumeBlockOpen(e){let t=[];for(;28===this._peek.type;){let e=this._advance();t.push(new cn(e.parts[0],e.sourceSpan))}26===this._peek.type&&this._advance();let r=this._peek.sourceSpan.fullStart,n=new xr(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new xr(e.sourceSpan.start,r,e.sourceSpan.fullStart),s=new un(e.parts[0],t,[],n,e.sourceSpan,i);this._pushContainer(s,!1)}_consumeBlockClose(e){this._popContainer(null,un,e.sourceSpan)||this.errors.push($n.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.'))}_consumeIncompleteBlock(e){let t=[];for(;28===this._peek.type;){let e=this._advance();t.push(new cn(e.parts[0],e.sourceSpan))}let r=this._peek.sourceSpan.fullStart,n=new xr(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new xr(e.sourceSpan.start,r,e.sourceSpan.fullStart),s=new un(e.parts[0],t,[],n,e.sourceSpan,i);this._pushContainer(s,!1),this._popContainer(null,un,null),this.errors.push($n.create(e.parts[0],n,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(e){let t,r,n=e.parts[0];if(31!==this._peek.type)return void this.errors.push($n.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${n}". Declaration must have a value.`));if(t=this._advance(),32!==this._peek.type)return void this.errors.push($n.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${n}". Declaration must be terminated with a semicolon.`));r=this._advance();let i=r.sourceSpan.fullStart,s=new xr(e.sourceSpan.start,i,e.sourceSpan.fullStart),o=e.sourceSpan.toString().lastIndexOf(n),a=e.sourceSpan.start.moveBy(o),l=new xr(a,e.sourceSpan.end),u=new hn(n,t.parts[0],s,l,t.sourceSpan);this._addToParent(u)}_consumeIncompleteLet(e){let t=e.parts[0]??"",r=t?` "${t}"`:"";if(t.length>0){let r=e.sourceSpan.toString().lastIndexOf(t),n=e.sourceSpan.start.moveBy(r),i=new xr(n,e.sourceSpan.end),s=new xr(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),o=new hn(t,"",e.sourceSpan,i,s);this._addToParent(o)}this.errors.push($n.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${r}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let e=this._containerStack.length-1;e>-1;e--)if(this._containerStack[e]instanceof on)return this._containerStack[e];return null}_addToParent(e){let t=this._getContainer();null===t?this.rootNodes.push(e):t.children.push(e)}_getElementFullName(e,t,r){if(""===e&&""===(e=this.getTagDefinition(t).implicitNamespacePrefix||"")&&null!=r){let t=Qr(r.name)[1];this.getTagDefinition(t).preventNamespaceInheritance||(e=Rr(r.name))}return jr(e,t)}};function Rn(e,t){return e.length>0&&e[e.length-1]===t}function jn(e,t){return void 0!==fn[t]?fn[t]||e:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e}var Zn=class extends Ln{constructor(){super(Jr)}parse(e,t,r,n=!1,i){return super.parse(e,t,r,n,i)}},qn=null,Wn=()=>(qn||(qn=new Zn),qn);function Xn(e,t={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:i=!1,getTagContentType:s,tokenizeAngularBlocks:o=!1,tokenizeAngularLetDeclaration:a=!1}=t;return Wn().parse(e,"angular-html-parser",{tokenizeExpansionForms:o,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:o,tokenizeLet:a},i,s)}var Vn=function(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)},Un=3;var Yn=function(e){let t=function(e){let t=e.slice(0,Un);if("---"!==t&&"+++"!==t)return;let r=e.indexOf("\n",Un);if(-1===r)return;let n=e.slice(Un,r).trim(),i=e.indexOf(`\n${t}`,r),s=n;if(s||(s="+++"===t?"toml":"yaml"),-1===i&&"---"===t&&"yaml"===s&&(i=e.indexOf("\n...",r)),-1===i)return;let o=i+1+Un,a=e.charAt(o+1);if(!/\s?/u.test(a))return;let l=e.slice(0,o);return{type:"front-matter",language:s,explicitLanguage:n,value:e.slice(r+1,i),startDelimiter:t,endDelimiter:l.slice(-Un),raw:l}}(e);if(!t)return{content:e};let{raw:r}=t;return{frontMatter:t,content:u(!1,r,/[^\n]/gu," ")+e.slice(r.length)}},zn={attrs:!0,children:!0,cases:!0,expression:!0},Gn=new Set(["parent"]),Hn=class e{constructor(e={}){for(let t of new Set([...Gn,...Object.keys(e)]))this.setProperty(t,e[t])}setProperty(e,t){if(this[e]!==t){if(e in zn&&(t=t.map((e=>this.createChild(e)))),!Gn.has(e))return void(this[e]=t);Object.defineProperty(this,e,{value:t,enumerable:!1,configurable:!0})}}map(t){let r;for(let n in zn){let i=this[n];if(i){let s=Jn(i,(e=>e.map(t)));r!==i&&(r||(r=new e({parent:this.parent})),r.setProperty(n,s))}}if(r)for(let e in this)e in zn||(r[e]=this[e]);return t(r||this)}walk(e){for(let t in zn){let r=this[t];if(r)for(let t=0;t<r.length;t++)r[t].walk(e)}e(this)}createChild(t){let r=t instanceof e?t.clone():new e(t);return r.setProperty("parent",this),r}insertChildBefore(e,t){this.children.splice(this.children.indexOf(e),0,this.createChild(t))}removeChild(e){this.children.splice(this.children.indexOf(e),1)}replaceChild(e,t){this.children[this.children.indexOf(e)]=this.createChild(t)}clone(){return new e(this)}get firstChild(){var e;return null==(e=this.children)?void 0:e[0]}get lastChild(){var e;return null==(e=this.children)?void 0:e[this.children.length-1]}get prev(){var e,t;return null==(t=null==(e=this.parent)?void 0:e.children)?void 0:t[this.parent.children.indexOf(this)-1]}get next(){var e,t;return null==(t=null==(e=this.parent)?void 0:e.children)?void 0:t[this.parent.children.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map((e=>[e.fullName,e.value])))}};function Jn(e,t){let r=e.map(t);return r.some(((t,r)=>t!==e[r]))?r:e}var Kn=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:function(e,t,r){let[,n,i,s]=r,o=4+n.length,a=e.sourceSpan.start.moveBy(o),l=a.moveBy(s.length),[c,h]=(()=>{try{return[!0,t(s,a).children]}catch{return[!1,[{type:"text",value:s,sourceSpan:new xr(a,l)}]]}})();return{type:"ieConditionalComment",complete:c,children:h,condition:u(!1,i.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan,startSourceSpan:new xr(e.sourceSpan.start,a),endSourceSpan:new xr(l,e.sourceSpan.end)}}},{regex:/^\[if([^\]]*)\]><!$/u,parse:function(e,t,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:u(!1,n.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan}}},{regex:/^<!\s*\[endif\]$/u,parse:function(e){return{type:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}}];var ei=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),ti=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);function ri(e,t,r){let{name:n,canSelfClose:i=!0,normalizeTagName:s=!1,normalizeAttributeName:o=!1,allowHtmComponentClosingTags:a=!1,isTagNameCaseSensitive:l=!1,shouldParseAsRawText:u}=t,{rootNodes:c,errors:h}=Xn(e,{canSelfClose:i,allowHtmComponentClosingTags:a,isTagNameCaseSensitive:l,getTagContentType:u?(...e)=>u(...e)?Ir.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:"angular"===n||void 0,tokenizeAngularLetDeclaration:"angular"===n||void 0});if("vue"===n){if(c.some((e=>"docType"===e.type&&"html"===e.value||"element"===e.type&&"html"===e.name.toLowerCase())))return ri(e,ai,r);let t,n=()=>t??(t=Xn(e,{canSelfClose:i,allowHtmComponentClosingTags:a,isTagNameCaseSensitive:l})),s=e=>n().rootNodes.find((({startSourceSpan:t})=>t&&t.start.offset===e.startSourceSpan.start.offset))??e;for(let[e,t]of c.entries()){let{endSourceSpan:i,startSourceSpan:o}=t;if(null===i)h=n().errors,c[e]=s(t);else if(ni(t,r)){let r=n().errors.find((e=>e.span.start.offset>o.start.offset&&e.span.start.offset<i.end.offset));r&&ii(r),c[e]=s(t)}}}h.length>0&&ii(h[0]);let p=e=>{let t=e.name.startsWith(":")?e.name.slice(1).split(":")[0]:null,r=e.nameSpan.toString(),n=null!==t&&r.startsWith(`${t}:`),i=n?r.slice(t.length+1):r;e.name=i,e.namespace=t,e.hasExplicitNamespace=n},d=(e,t)=>{let r=e.toLowerCase();return t(r)?r:e};return pn(new class extends dn{visitExpansionCase(e,t){"angular"===n&&this.visitChildren(t,(t=>{t(e.expression)}))}visit(e){(e=>{switch(e.type){case"element":p(e);for(let t of e.attrs)p(t),t.valueSpan?(t.value=t.valueSpan.toString(),/["']/u.test(t.value[0])&&(t.value=t.value.slice(1,-1))):t.value=null;break;case"comment":e.value=e.sourceSpan.toString().slice(4,-3);break;case"text":e.value=e.sourceSpan.toString()}})(e),(e=>{if("element"===e.type){let t=Jr(l?e.name:e.name.toLowerCase());!e.namespace||e.namespace===t.implicitNamespacePrefix||me(e)?e.tagDefinition=t:e.tagDefinition=Jr("")}})(e),(e=>{if("element"===e.type&&(s&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||me(e))&&(e.name=d(e.name,(e=>ti.has(e)))),o))for(let t of e.attrs)t.namespace||(t.name=d(t.name,(t=>ei.has(e.name)&&(ei.get("*").has(t)||ei.get(e.name).has(t)))))})(e),(e=>{e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new xr(e.sourceSpan.start,e.endSourceSpan.end))})(e)}},c),c}function ni(e,t){var r;if("element"!==e.type||"template"!==e.name)return!1;let n=null==(r=e.attrs.find((e=>"lang"===e.name)))?void 0:r.value;return!n||"html"===ce(t,{language:n})}function ii(e){let{msg:t,span:{start:r,end:n}}=e;throw Vn(t,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:e})}function si(e,t,r={},n=!0){let{frontMatter:i,content:s}=n?Yn(e):{frontMatter:null,content:e},o=new Or(e,r.filepath),a=new yr(o,0,0,0),l=a.moveBy(e.length),c={type:"root",sourceSpan:new xr(a,l),children:ri(s,t,r)};if(i){let e=new yr(o,0,0,0),t=e.moveBy(i.raw.length);i.sourceSpan=new xr(e,t),c.children.unshift(i)}let h=new Hn(c),p=(n,i)=>{let{offset:s}=i,o=si(u(!1,e.slice(0,s),/[^\n\r]/gu," ")+n,t,r,!1);o.sourceSpan=new xr(i,q(!1,o.children,-1).sourceSpan.end);let a=o.children[0];return a.length===s?o.children.shift():(a.sourceSpan=new xr(a.sourceSpan.start.moveBy(s),a.sourceSpan.end),a.value=a.value.slice(s)),o};return h.walk((e=>{if("comment"===e.type){let t=function(e,t){if(e.value)for(let{regex:r,parse:n}of Kn){let i=e.value.match(r);if(i)return n(e,t,i)}return null}(e,p);t&&e.parent.replaceChild(e,t)}(function(e){if("block"===e.type){if(e.name=u(!1,e.name.toLowerCase(),/\s+/gu," ").trim(),e.type="angularControlFlowBlock",!St(e.parameters))return void delete e.parameters;for(let t of e.parameters)t.type="angularControlFlowBlockParameter";e.parameters={type:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new xr(e.parameters[0].sourceSpan.start,q(!1,e.parameters,-1).sourceSpan.end)}}})(e),function(e){"letDeclaration"===e.type&&(e.type="angularLetDeclaration",e.id=e.name,e.init={type:"angularLetDeclarationInitializer",sourceSpan:new xr(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}(e),function(e){("plural"===e.type||"select"===e.type)&&(e.clause=e.type,e.type="angularIcuExpression"),"expansionCase"===e.type&&(e.type="angularIcuCase")}(e)})),h}function oi(e){return{parse:(t,r)=>si(t,e,r),hasPragma:Kt,astFormat:"html",locStart:kt,locEnd:Et}}var ai={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},li=oi(ai),ui=oi({name:"angular"}),ci=oi({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText:(e,t,r,n)=>"html"!==e.toLowerCase()&&!r&&("template"!==e||n.some((({name:e,value:t})=>"lang"===e&&"html"!==t&&""!==t&&void 0!==t)))}),hi=oi({name:"lwc",canSelfClose:!1}),pi={html:kr};return(i=>((i,s,o,a)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let l of r(s))!n.call(i,l)&&l!==o&&e(i,l,{get:()=>s[l],enumerable:!(a=t(s,l))||a.enumerable});return i})(e({},"__esModule",{value:!0}),i))(l)}()).default||t},6712:e=>{var t;e.exports=(t=function(){"use strict";var e=Object.create,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),a=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})},l=(e,i,o,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let l of n(i))!s.call(e,l)&&l!==o&&t(e,l,{get:()=>i[l],enumerable:!(a=r(i,l))||a.enumerable});return e},u=(r,n,s)=>(s=null!=r?e(i(r)):{},l(!n&&r&&r.__esModule?s:t(s,"default",{value:r,enumerable:!0}),r)),c=o(((e,t)=>{t.exports.isClean=Symbol("isClean"),t.exports.my=Symbol("my")})),h=o(((e,t)=>{var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r}};t.exports=n(),t.exports.createColors=n})),p=o((()=>{})),d=o(((e,t)=>{var r=h(),n=p(),i=class e extends Error{constructor(t,r,n,i,s,o){super(t),this.name="CssSyntaxError",this.reason=t,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),typeof r<"u"&&typeof n<"u"&&("number"==typeof r?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=r.isColorSupported),n&&e&&(t=n(t));let i,s,o=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),u=String(l).length;if(e){let{bold:e,gray:t,red:n}=r.createColors(!0);i=t=>e(n(t)),s=e=>t(e)}else i=s=e=>e;return o.slice(a,l).map(((e,t)=>{let r=a+1+t,n=" "+(" "+r).slice(-u)+" | ";if(r===this.line){let t=s(n.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+s(n)+e+"\n "+t+i("^")}return" "+s(n)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};t.exports=i,i.default=i})),f=o(((e,t)=>{var r={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var n=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)r+=t}return r}block(e,t){let r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let i=e.nodes[n],s=this.raw(i,"before");s&&this.builder(s),this.stringify(i,t!==n||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,n){let i;if(n||(n=t),t&&(i=e.raws[t],typeof i<"u"))return i;let s=e.parent;if("before"===n&&(!s||"root"===s.type&&s.first===e||s&&"document"===s.type))return"";if(!s)return r[n];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[n]<"u")return o.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let r="raw"+((a=n)[0].toUpperCase()+a.slice(1));this[r]?i=this[r](o,e):o.walk((e=>{if(i=e.raws[t],typeof i<"u")return!1}))}var a;return typeof i>"u"&&(i=r[n]),o.rawCache[n]=i,i}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&typeof e.raws.after<"u")return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments((e=>{if(typeof e.raws.before<"u")return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls((e=>{if(typeof e.raws.before<"u")return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,typeof t<"u"))return!1})),t}rawBeforeRule(e){let t;return e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(typeof e.raws.between<"u")return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,typeof t<"u"))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,typeof t<"u"))return!1})),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};t.exports=n,n.default=n})),m=o(((e,t)=>{var r=f();function n(e,t){new r(t).stringify(e)}t.exports=n,n.default=n})),g=o(((e,t)=>{var{isClean:r,my:n}=c(),i=d(),s=f(),o=m();function a(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)||"proxyCache"===n)continue;let i=e[n],s=typeof i;"parent"===n&&"object"===s?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map((e=>a(e,r))):("object"===s&&null!==i&&(i=a(i)),r[n]=i)}return r}var l=class{constructor(e={}){this.raws={},this[r]=!1,this[n]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=a(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new i(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty()),!0)}}markDirty(){if(this[r]){this[r]=!1;let e=this;for(;e=e.parent;)e[r]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(n=1,i+=1):n+=1;return{column:n,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return(new s).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},n=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let n=this[e];if(Array.isArray(n))r[e]=n.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof n&&n.toJSON)r[e]=n.toJSON(null,t);else if("source"===e){let s=t.get(n.input);null==s&&(s=i,t.set(n.input,i),i++),r[e]={end:n.end,inputId:s,start:n.start}}else r[e]=n}return n&&(r.inputs=[...t.keys()].map((e=>e.toJSON()))),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=o){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,r){let n={node:this};for(let e in r)n[e]=r[e];return e.warn(t,n)}get proxyOf(){return this}};t.exports=l,l.default=l})),y=o(((e,t)=>{var r=g(),n=class extends r{constructor(e){e&&typeof e.value<"u"&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};t.exports=n,n.default=n})),O=o(((e,t)=>{var r=g(),n=class extends r{constructor(e){super(e),this.type="comment"}};t.exports=n,n.default=n})),x=o(((e,t)=>{var r,n,i,s,{isClean:o,my:a}=c(),l=y(),u=O(),h=g();function p(e){return e.map((e=>(e.nodes&&(e.nodes=p(e.nodes)),delete e.source,e)))}function d(e){if(e[o]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)d(t)}var f=class e extends h{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map((e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e))):"every"===t||"some"===t?r=>e[t](((e,...t)=>r(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n+1,0,e);for(let e in this.indexes)r=this.indexes[e],n<r&&(this.indexes[e]=r+i.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),i=0===n&&"prepend",s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let e of s)this.proxyOf.nodes.splice(n,0,e);for(let e in this.indexes)r=this.indexes[e],n<=r&&(this.indexes[e]=r+s.length);return this.markDirty(),this}normalize(t,s){if("string"==typeof t)t=p(r(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new l(t)]}else if(t.selector)t=[new n(t)];else if(t.name)t=[new i(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new u(t)]}return t.map((t=>(t[a]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[o]&&d(t),typeof t.raws.before>"u"&&s&&typeof s.raws.before<"u"&&(t.raws.before=s.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls((n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{let n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("atrule"===e.type)return t(e,r)})))}walkComments(e){return this.walk(((t,r)=>{if("comment"===t.type)return e(t,r)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("decl"===e.type)return t(e,r)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("rule"===e.type)return t(e,r)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};f.registerParse=e=>{r=e},f.registerRule=e=>{n=e},f.registerAtRule=e=>{i=e},f.registerRoot=e=>{s=e},t.exports=f,f.default=f,f.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,i.prototype):"rule"===e.type?Object.setPrototypeOf(e,n.prototype):"decl"===e.type?Object.setPrototypeOf(e,l.prototype):"comment"===e.type?Object.setPrototypeOf(e,u.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[a]=!0,e.nodes&&e.nodes.forEach((e=>{f.rebuild(e)}))}})),b=o(((e,t)=>{var r=/[\t\n\f\r "#'()/;[\\\]{}]/g,n=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,s=/[\da-f]/i;t.exports=function(e,t={}){let o,a,l,u,c,h,p,d,f,m,g=e.css.valueOf(),y=t.ignoreErrors,O=g.length,x=0,b=[],v=[];function w(t){throw e.error("Unclosed "+t,x)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&x>=O},nextToken:function(e){if(v.length)return v.pop();if(x>=O)return;let t=!!e&&e.ignoreUnclosed;switch(o=g.charCodeAt(x),o){case 10:case 32:case 9:case 13:case 12:a=x;do{a+=1,o=g.charCodeAt(a)}while(32===o||10===o||9===o||13===o||12===o);m=["space",g.slice(x,a)],x=a-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(o);m=[e,e,x];break}case 40:if(d=b.length?b.pop()[1]:"",f=g.charCodeAt(x+1),"url"===d&&39!==f&&34!==f&&32!==f&&10!==f&&9!==f&&12!==f&&13!==f){a=x;do{if(h=!1,a=g.indexOf(")",a+1),-1===a){if(y||t){a=x;break}w("bracket")}for(p=a;92===g.charCodeAt(p-1);)p-=1,h=!h}while(h);m=["brackets",g.slice(x,a+1),x,a],x=a}else a=g.indexOf(")",x+1),u=g.slice(x,a+1),-1===a||i.test(u)?m=["(","(",x]:(m=["brackets",u,x,a],x=a);break;case 39:case 34:l=39===o?"'":'"',a=x;do{if(h=!1,a=g.indexOf(l,a+1),-1===a){if(y||t){a=x+1;break}w("string")}for(p=a;92===g.charCodeAt(p-1);)p-=1,h=!h}while(h);m=["string",g.slice(x,a+1),x,a],x=a;break;case 64:r.lastIndex=x+1,r.test(g),a=0===r.lastIndex?g.length-1:r.lastIndex-2,m=["at-word",g.slice(x,a+1),x,a],x=a;break;case 92:for(a=x,c=!0;92===g.charCodeAt(a+1);)a+=1,c=!c;if(o=g.charCodeAt(a+1),c&&47!==o&&32!==o&&10!==o&&9!==o&&13!==o&&12!==o&&(a+=1,s.test(g.charAt(a)))){for(;s.test(g.charAt(a+1));)a+=1;32===g.charCodeAt(a+1)&&(a+=1)}m=["word",g.slice(x,a+1),x,a],x=a;break;default:47===o&&42===g.charCodeAt(x+1)?(a=g.indexOf("*/",x+2)+1,0===a&&(y||t?a=g.length:w("comment")),m=["comment",g.slice(x,a+1),x,a],x=a):(n.lastIndex=x+1,n.test(g),a=0===n.lastIndex?g.length-1:n.lastIndex-2,m=["word",g.slice(x,a+1),x,a],b.push(m),x=a)}return x++,m},position:function(){return x}}}})),v=o(((e,t)=>{var r=x(),n=class extends r{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};t.exports=n,n.default=n,r.registerAtRule(n)})),w=o(((e,t)=>{var r,n,i=x(),s=class extends i{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t)if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of n)e.raws.before=t.raws.before;return n}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new r(new n,this,e).stringify()}};s.registerLazyResult=e=>{r=e},s.registerProcessor=e=>{n=e},t.exports=s,s.default=s,i.registerRoot(s)})),D=o(((e,t)=>{var r={comma:e=>r.split(e,[","],!0),space:e=>r.split(e,[" ","\n","\t"]),split(e,t,r){let n=[],i="",s=!1,o=0,a=!1,l="",u=!1;for(let r of e)u?u=!1:"\\"===r?u=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(s=!0),s?(""!==i&&n.push(i.trim()),i="",s=!1):i+=r;return(r||""!==i)&&n.push(i.trim()),n}};t.exports=r,r.default=r})),S=o(((e,t)=>{var r=x(),n=D(),i=class extends r{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return n.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};t.exports=i,i.default=i,r.registerRule(i)})),k=o(((e,t)=>{var r=y(),n=b(),i=O(),s=v(),o=w(),a=S(),l={empty:!0,space:!0};t.exports=class{constructor(e){this.input=e,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new s;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,n,i,o=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(r=(e=this.tokenizer.nextToken())[0],"("===r||"["===r?u.push("("===r?")":"]"):"{"===r&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),0===u.length){if(";"===r){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}if("{"===r){a=!0;break}if("}"===r){if(l.length>0){for(i=l.length-1,n=l[i];n&&"space"===n[0];)n=l[--i];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let i=t-1;i>=0&&(r=e[i],"space"===r[0]||(n+=1,2!==n));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(e){let t,r,n,i=0;for(let[s,o]of e.entries()){if(t=o,r=t[0],"("===r&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return s}this.doubleColon(t)}n=t}return!1}comment(e){let t=new i;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=n(this.input)}decl(e,t){let n=new r;this.init(n,e[0][2]);let i,s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(i=e.shift(),":"===i[0]){n.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),n.raws.between+=i[1]}("_"===n.prop[0]||"*"===n.prop[0])&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o,a=[];for(;e.length&&(o=e[0][0],"space"===o||"comment"===o);)a.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(i=e[t],"!important"===i[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===i[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==i[0]&&"comment"!==i[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=a.map((e=>e[1])).join(""),a=[]),this.raw(n,"value",a.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new a;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,i=null,s=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),s.push("("===r?")":"]");else if(o&&n&&"{"===r)i||(i=l),s.push("}");else if(0===s.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===s[s.length-1]&&(s.pop(),0===s.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(i),t&&n){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let i,s,o,a,u=r.length,c="",h=!0;for(let e=0;e<u;e+=1)i=r[e],s=i[0],"space"!==s||e!==u-1||n?"comment"===s?(a=r[e-1]?r[e-1][0]:"empty",o=r[e+1]?r[e+1][0]:"empty",l[a]||l[o]||","===c.slice(-1)?h=!1:c+=i[1]):c+=i[1]:h=!1;if(!h){let n=r.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:n,value:c}}e[t]=c}rule(e){e.pop();let t=new a;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}})),E=o((()=>{})),C=o(((e,t)=>{t.exports={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let n="",i=r;for(;i--;)n+=e[Math.random()*e.length|0];return n}}})),T=o(((e,t)=>{t.exports=class{}})),P=o(((e,t)=>{var{SourceMapConsumer:r,SourceMapGenerator:n}=E(),{fileURLToPath:i,pathToFileURL:s}={},{isAbsolute:o,resolve:a}={},{nanoid:l}=C(),u=p(),c=d(),h=T(),f=Symbol("fromOffsetCache"),m=!(!r||!n),g=!(!a||!o),y=class{constructor(e,t={}){if(null===e||typeof e>"u"||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!g||/^\w+:\/\//.test(t.from)||o(t.from)?this.file=t.from:this.file=a(t.from)),g&&m){let e=new h(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+l(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let i,o,a;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);o=e.line,a=e.col}else o=n.line,a=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let l=this.origin(t,r,o,a);return i=l?new c(e,void 0===l.endLine?l.line:{column:l.column,line:l.line},void 0===l.endLine?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,n.plugin):new c(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:a,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:a,endLine:o,line:t,source:this.css},this.file&&(s&&(i.input.url=s(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,r;if(this[f])r=this[f];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,i=e.length;n<i;n++)r[n]=t,t+=e[n].length+1;this[f]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,i=r.length-2;for(;n<i;)if(t=n+(i-n>>1),e<r[t])i=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:a(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let a,l,u=this.map.consumer(),c=u.originalPositionFor({column:t,line:e});if(!c.source)return!1;"number"==typeof r&&(a=u.originalPositionFor({column:n,line:r})),l=o(c.source)?s(c.source):new URL(c.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let h={column:c.column,endColumn:a&&a.column,endLine:a&&a.line,line:c.line,url:l.toString()};if("file:"===l.protocol){if(!i)throw new Error("file: protocol is not available in this PostCSS build");h.file=i(l)}let p=u.sourceContentFor(c.source);return p&&(h.source=p),h}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};t.exports=y,y.default=y,u&&u.registerInput&&u.registerInput(y)})),A=o(((e,t)=>{var r=x(),n=k(),i=P();function s(e,t){let r=new i(e,t),s=new n(r);try{s.parse()}catch(e){throw e}return s.root}t.exports=s,s.default=s,r.registerParse(s)})),F=o(((e,t)=>{var r=b(),n=P();t.exports={isInlineComment(e){if("word"===e[0]&&"//"===e[1].slice(0,2)){let t,i,s=e,o=[];for(;e;){if(/\r?\n/.test(e[1])){if(/['"].*\r?\n/.test(e[1])){o.push(e[1].substring(0,e[1].indexOf("\n"))),i=e[1].substring(e[1].indexOf("\n"));let r=this.input.css.valueOf().substring(this.tokenizer.position());i+=r,t=e[3]+r.length-i.length}else this.tokenizer.back(e);break}o.push(e[1]),t=e[2],e=this.tokenizer.nextToken({ignoreUnclosed:!0})}let a=["comment",o.join(""),s[2],t];return this.inlineComment(a),i&&(this.input=new n(i),this.tokenizer=r(this.input)),!0}if("/"===e[1]){let r=this.tokenizer.nextToken({ignoreUnclosed:!0});if("comment"===r[0]&&/^\/\*/.test(r[1]))return r[0]="word",r[1]=r[1].slice(1),e[1]="//",this.tokenizer.back(r),t.exports.isInlineComment.bind(this)(e)}return!1}}})),_=o(((e,t)=>{t.exports={interpolation(e){let t=[e,this.tokenizer.nextToken()],r=["word","}"];if(t[0][1].length>1||"{"!==t[1][0])return this.tokenizer.back(t[1]),!1;for(e=this.tokenizer.nextToken();e&&r.includes(e[0]);)t.push(e),e=this.tokenizer.nextToken();let n=t.map((e=>e[1])),[i]=t,s=t.pop(),o=["word",n.join(""),i[2],s[2]];return this.tokenizer.back(e),this.tokenizer.back(o),!0}}})),I=o(((e,t)=>{var r=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,n=/\.[0-9]/;t.exports={isMixinToken:e=>{let[,t]=e,[i]=t;return("."===i||"#"===i)&&!1===r.test(t)&&!1===n.test(t)}}})),B=o(((e,t)=>{var r=b(),n=/^url\((.+)\)/;t.exports=e=>{let{name:t,params:i=""}=e;if("import"===t&&i.length){e.import=!0;let t=r({css:i});for(e.filename=i.replace(n,"$1");!t.endOfFile();){let[r,n]=t.nextToken();if("word"===r&&"url"===n)return;if("brackets"===r){e.options=n,e.filename=i.replace(n,"").trim();break}}}}})),N=o(((e,t)=>{var r=/:$/,n=/^:(\s+)?/;t.exports=e=>{let{name:t,params:i=""}=e;if(":"===e.name.slice(-1)){if(r.test(t)){let[n]=t.match(r);e.name=t.replace(n,""),e.raws.afterName=n+(e.raws.afterName||""),e.variable=!0,e.value=e.params}if(n.test(i)){let[t]=i.match(n);e.value=i.replace(t,""),e.raws.afterName=(e.raws.afterName||"")+t,e.variable=!0}}}})),$=o(((e,t)=>{var r=O(),n=k(),{isInlineComment:i}=F(),{interpolation:s}=_(),{isMixinToken:o}=I(),a=B(),l=N(),u=/(!\s*important)$/i;t.exports=class extends n{constructor(...e){super(...e),this.lastNode=null}atrule(e){s.bind(this)(e)||(super.atrule(e),a(this.lastNode),l(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let t=e.findIndex((e=>"("===e[0])),r=e.reverse().find((e=>")"===e[0])),n=e.reverse().indexOf(r),i=e.splice(t,n).map((e=>e[1])).join("");for(let t of e.reverse())this.tokenizer.back(t);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=i}init(e,t,r){super.init(e,t,r),this.lastNode=e}inlineComment(e){let t=new r,n=e[1].slice(2);if(this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.inline=!0,t.raws.begin="//",/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*[^\s])(\s*)$/);[,t.raws.left,t.text,t.raws.right]=e}}mixin(e){let[t]=e,r=t[1].slice(0,1),n=e.findIndex((e=>"brackets"===e[0])),i=e.findIndex((e=>"("===e[0])),s="";if((n<0||n>3)&&i>0){let t=e.reduce(((e,t,r)=>")"===t[0]?r:e)),r=e.slice(i,t+i).map((e=>e[1])).join(""),[n]=e.slice(i),s=[n[2],n[3]],[o]=e.slice(t,t+1),a=[o[2],o[3]],l=["brackets",r].concat(s,a),u=e.slice(0,i),c=e.slice(t+1);(e=u).push(l),e=e.concat(c)}let o=[];for(let t of e)if(("!"===t[1]||o.length)&&o.push(t),"important"===t[1])break;if(o.length){let[t]=o,r=e.indexOf(t),n=o[o.length-1],i=[t[2],t[3]],s=[n[4],n[5]],a=["word",o.map((e=>e[1])).join("")].concat(i,s);e.splice(r,o.length,a)}let a=e.findIndex((e=>u.test(e[1])));a>0&&([,s]=e[a],e.splice(a,1));for(let t of e.reverse())this.tokenizer.back(t);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,s&&(this.lastNode.important=!0,this.lastNode.raws.important=s)}other(e){i.bind(this)(e)||super.other(e)}rule(e){let t=e[e.length-1],r=e[e.length-2];if("at-word"===r[0]&&"{"===t[0]&&(this.tokenizer.back(t),s.bind(this)(r))){let t=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([t]);for(let t of e.reverse())this.tokenizer.back(t)}else super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[t]=e;"each"!==e[0][1]||"("!==e[1][0]?o(t)?this.mixin(e):super.unknownWord(e):this.each(e)}}})),Q=o(((e,t)=>{var r=f();t.exports=class extends r{atrule(e,t){if(!e.mixin&&!e.variable&&!e.function)return void super.atrule(e,t);let r=`${e.function?"":e.raws.identifier||"@"}${e.name}`,n=e.params?this.rawValue(e,"params"):"",i=e.raws.important||"";if(e.variable&&(n=e.value),typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n+i);else{let s=(e.raws.between||"")+i+(t?";":"");this.builder(r+n+s,e)}}comment(e){if(e.inline){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${t}${e.text}${r}`,e)}else super.comment(e)}}})),L=o(((e,t)=>{var r=P(),n=$(),i=Q();t.exports={parse(e,t){let i=new r(e,t),s=new n(i);return s.parse(),s.root.walk((e=>{let t=i.css.lastIndexOf(e.source.input.css);if(0===t)return;if(t+e.source.input.css.length!==i.css.length)throw new Error("Invalid state detected in postcss-less");let r=t+e.source.start.offset,n=i.fromOffset(t+e.source.start.offset);if(e.source.start={offset:r,line:n.line,column:n.col},e.source.end){let r=t+e.source.end.offset,n=i.fromOffset(t+e.source.end.offset);e.source.end={offset:r,line:n.line,column:n.col}}})),s.root},stringify(e,t){new i(t).stringify(e)},nodeToString(e){let r="";return t.exports.stringify(e,(e=>{r+=e})),r}}})),M=o(((e,t)=>{t.exports=class{generate(){}}})),R=o(((e,t)=>{var r,n,i=x(),s=class extends i{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new r(new n,this,e).stringify()}};s.registerLazyResult=e=>{r=e},s.registerProcessor=e=>{n=e},t.exports=s,s.default=s})),j=o(((e,t)=>{var r={};t.exports=function(e){r[e]||(r[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}})),Z=o(((e,t)=>{var r=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};t.exports=r,r.default=r})),q=o(((e,t)=>{var r=Z(),n=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new r(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}};t.exports=n,n.default=n})),W=o(((e,t)=>{var{isClean:r,my:n}=c(),i=M(),s=m(),o=x(),a=R(),l=(j(),q()),u=A(),h=w(),p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},g=0;function y(e){return"object"==typeof e&&"function"==typeof e.then}function O(e){let t=!1,r=p[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,g,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,g,r+"Exit"]:[r,r+"Exit"]}function b(e){let t;return t="document"===e.type?["Document",g,"DocumentExit"]:"root"===e.type?["Root",g,"RootExit"]:O(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function v(e){return e[r]=!1,e.nodes&&e.nodes.forEach((e=>v(e))),e}var D={},S=class e{constructor(t,r,i){let s;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof e||r instanceof l)s=v(r.root),r.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=u;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{s=e(r,i)}catch(e){this.processed=!0,this.error=e}s&&!s[n]&&o.rebuild(s)}else s=v(r);this.result=new l(t,s,i),this.helpers={...D,postcss:D,result:this.result},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!d[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(y(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r];){e[r]=!0;let t=[b(e)];for(;t.length>0;){let e=this.visitTick(t);if(y(e))try{await e}catch(e){let r=t[t.length-1].node;throw this.handleError(e,r)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>r(e,this.helpers)));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return y(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=s;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new i(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(y(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r];)e[r]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,n]of e){let e;this.result.lastPlugin=r;try{e=n(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(y(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(i.length>0&&t.visitorIndex<i.length){let[e,r]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return r(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let i,s=t.iterator;for(;i=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!i[r])return i[r]=!0,void e.push(b(i));t.iterator=0,delete n.indexes[s]}let s=t.events;for(;t.eventIndex<s.length;){let e=s[t.eventIndex];if(t.eventIndex+=1,e===g)return void(n.nodes&&n.nodes.length&&(n[r]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[r]=!0;let t=O(e);for(let n of t)if(n===g)e.nodes&&e.each((e=>{e[r]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};S.registerPostcss=e=>{D=e},t.exports=S,S.default=S,h.registerLazyResult(S),a.registerLazyResult(S)})),X=o(((e,t)=>{var r=M(),n=m(),i=(j(),A()),s=q(),o=class{constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let o,a=n;this.result=new s(this._processor,o,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let u=new r(a,o,this._opts,t);if(u.isMap()){let[e,t]=u.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else u.clearAnnotation(),this.result.css=u.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=i;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};t.exports=o,o.default=o})),V=o(((e,t)=>{var r=X(),n=W(),i=R(),s=w(),o=class{constructor(e=[]){this.version="8.4.39",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new n(this,e,t):new r(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};t.exports=o,o.default=o,s.registerProcessor(o),i.registerProcessor(o)})),U=o(((e,t)=>{var r=y(),n=T(),i=O(),s=v(),o=P(),a=w(),l=S();function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:c,...h}=e;if(c){t=[];for(let e of c){let r={...e,__proto__:o.prototype};r.map&&(r.map={...r.map,__proto__:n.prototype}),t.push(r)}}if(h.nodes&&(h.nodes=e.nodes.map((e=>u(e,t)))),h.source){let{inputId:e,...r}=h.source;h.source=r,null!=e&&(h.source.input=t[e])}if("root"===h.type)return new a(h);if("decl"===h.type)return new r(h);if("rule"===h.type)return new l(h);if("comment"===h.type)return new i(h);if("atrule"===h.type)return new s(h);throw new Error("Unknown node type: "+e.type)}t.exports=u,u.default=u})),Y=o(((e,t)=>{var r=d(),n=y(),i=W(),s=x(),o=V(),a=m(),l=U(),u=R(),c=Z(),h=O(),p=v(),f=q(),b=P(),k=A(),E=D(),C=S(),T=w(),F=g();function _(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new o(e)}_.plugin=function(e,t){let r,n=!1;function i(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=(new o).version,i}return Object.defineProperty(i,"postcss",{get:()=>(r||(r=i()),r)}),i.process=function(e,t,r){return _([i(r)]).process(e,t)},i},_.stringify=a,_.parse=k,_.fromJSON=l,_.list=E,_.comment=e=>new h(e),_.atRule=e=>new p(e),_.decl=e=>new n(e),_.rule=e=>new C(e),_.root=e=>new T(e),_.document=e=>new u(e),_.CssSyntaxError=r,_.Declaration=n,_.Container=s,_.Processor=o,_.Document=u,_.Comment=h,_.Warning=c,_.AtRule=p,_.Result=f,_.Input=b,_.Rule=C,_.Root=T,_.Node=F,i.registerPostcss(_),t.exports=_,_.default=_})),z=o(((e,t)=>{var{Container:r}=Y();t.exports=class extends r{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}}})),G=o(((e,t)=>{var r=/[\t\n\f\r "#'()/;[\\\]{}]/g,n=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,s=/[\da-f]/i,o=/[\n\f\r]/g;t.exports=function(e,t={}){let a,l,u,c,h,p,d,f,m,g,y=e.css.valueOf(),O=t.ignoreErrors,x=y.length,b=0,v=[],w=[];function D(t){throw e.error("Unclosed "+t,b)}function S(){let e=1,t=!1,r=!1;for(;e>0;)l+=1,y.length<=l&&D("interpolation"),a=y.charCodeAt(l),f=y.charCodeAt(l+1),t?r||a!==t?92===a?r=!r:r&&(r=!1):(t=!1,r=!1):39===a||34===a?t=a:125===a?e-=1:35===a&&123===f&&(e+=1)}return{back:function(e){w.push(e)},endOfFile:function(){return 0===w.length&&b>=x},nextToken:function(e){if(w.length)return w.pop();if(b>=x)return;let t=!!e&&e.ignoreUnclosed;switch(a=y.charCodeAt(b),a){case 10:case 32:case 9:case 13:case 12:l=b;do{l+=1,a=y.charCodeAt(l)}while(32===a||10===a||9===a||13===a||12===a);m=["space",y.slice(b,l)],b=l-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(a);m=[e,e,b];break}case 44:m=["word",",",b,b+1];break;case 40:if(d=v.length?v.pop()[1]:"",f=y.charCodeAt(b+1),"url"===d&&39!==f&&34!==f){for(g=1,p=!1,l=b+1;l<=y.length-1;){if(f=y.charCodeAt(l),92===f)p=!p;else if(40===f)g+=1;else if(41===f&&(g-=1,0===g))break;l+=1}c=y.slice(b,l+1),m=["brackets",c,b,l],b=l}else l=y.indexOf(")",b+1),c=y.slice(b,l+1),-1===l||i.test(c)?m=["(","(",b]:(m=["brackets",c,b,l],b=l);break;case 39:case 34:for(u=a,l=b,p=!1;l<x&&(l++,l===x&&D("string"),a=y.charCodeAt(l),f=y.charCodeAt(l+1),p||a!==u);)92===a?p=!p:p?p=!1:35===a&&123===f&&S();m=["string",y.slice(b,l+1),b,l],b=l;break;case 64:r.lastIndex=b+1,r.test(y),l=0===r.lastIndex?y.length-1:r.lastIndex-2,m=["at-word",y.slice(b,l+1),b,l],b=l;break;case 92:for(l=b,h=!0;92===y.charCodeAt(l+1);)l+=1,h=!h;if(a=y.charCodeAt(l+1),h&&47!==a&&32!==a&&10!==a&&9!==a&&13!==a&&12!==a&&(l+=1,s.test(y.charAt(l)))){for(;s.test(y.charAt(l+1));)l+=1;32===y.charCodeAt(l+1)&&(l+=1)}m=["word",y.slice(b,l+1),b,l],b=l;break;default:f=y.charCodeAt(b+1),35===a&&123===f?(l=b,S(),c=y.slice(b,l+1),m=["word",c,b,l],b=l):47===a&&42===f?(l=y.indexOf("*/",b+2)+1,0===l&&(O||t?l=y.length:D("comment")),m=["comment",y.slice(b,l+1),b,l],b=l):47===a&&47===f?(o.lastIndex=b+1,o.test(y),l=0===o.lastIndex?y.length-1:o.lastIndex-2,c=y.slice(b,l+1),m=["comment",c,b,l,"inline"],b=l):(n.lastIndex=b+1,n.test(y),l=0===n.lastIndex?y.length-1:n.lastIndex-2,m=["word",y.slice(b,l+1),b,l],v.push(m),b=l)}return b++,m},position:function(){return b}}}})),H=o(((e,t)=>{var{Comment:r}=Y(),n=k(),i=z(),s=G();t.exports=class extends n{atrule(e){let t=e[1],r=e;for(;!this.tokenizer.endOfFile();){let e=this.tokenizer.nextToken();if("word"!==e[0]||e[2]!==r[3]+1){this.tokenizer.back(e);break}t+=e[1],r=e}super.atrule(["at-word",t,e[2],r[3]])}comment(e){if("inline"===e[4]){let t=new r;this.init(t,e[2]),t.raws.inline=!0;let n=this.input.fromOffset(e[3]);t.source.end={column:n.col,line:n.line,offset:e[3]+1};let i=e[1].slice(2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let e=i.match(/^(\s*)([^]*\S)(\s*)$/),r=e[2].replace(/(\*\/|\/\*)/g,"*//*");t.text=r,t.raws.left=e[1],t.raws.right=e[3],t.raws.text=e[2]}}else super.comment(e)}createTokenizer(){this.tokenizer=s(this.input)}raw(e,t,r,n){if(super.raw(e,t,r,n),e.raws[t]){let n=e.raws[t].raw;e.raws[t].raw=r.reduce(((e,t)=>"comment"===t[0]&&"inline"===t[4]?e+"/*"+t[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*")+"*/":e+t[1]),""),n!==e.raws[t].raw&&(e.raws[t].scss=n)}}rule(e){let t=!1,r=0,n="";for(let i of e)if(t)"comment"!==i[0]&&"{"!==i[0]&&(n+=i[1]);else{if("space"===i[0]&&i[1].includes("\n"))break;"("===i[0]?r+=1:")"===i[0]?r-=1:0===r&&":"===i[0]&&(t=!0)}if(!t||""===n.trim()||/^[#:A-Za-z-]/.test(n))super.rule(e);else{e.pop();let t,r,n=new i;this.init(n,e[0][2]);for(let r=e.length-1;r>=0;r--)if("space"!==e[r][0]){t=e[r];break}if(t[3]){let e=this.input.fromOffset(t[3]);n.source.end={column:e.col,line:e.line,offset:t[3]+1}}else{let e=this.input.fromOffset(t[2]);n.source.end={column:e.col,line:e.line,offset:t[2]+1}}for(;"word"!==e[0][0];)n.raws.before+=e.shift()[1];if(e[0][2]){let t=this.input.fromOffset(e[0][2]);n.source.start={column:t.col,line:t.line,offset:e[0][2]}}for(n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){n.raws.between+=r[1];break}n.raws.between+=r[1]}("_"===n.prop[0]||"*"===n.prop[0])&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1)),n.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let t=e.length-1;t>0;t--){if(r=e[t],"!important"===r[1]){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===r[1]){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}this.raw(n,"value",e),n.value.includes(":")&&this.checkMissedSemicolon(e),this.current=n}}}})),J=o(((e,t)=>{var{Input:r}=Y(),n=H();t.exports=function(e,t){let i=new r(e,t),s=new n(i);return s.parse(),s.root}})),K=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){this.after=e.after,this.before=e.before,this.type=e.type,this.value=e.value,this.sourceIndex=e.sourceIndex}})),ee=o((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t,r=(t=K())&&t.__esModule?t:{default:t};function n(e){var t=this;this.constructor(e),this.nodes=e.nodes,void 0===this.after&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),void 0===this.before&&(this.before=this.nodes.length>0?this.nodes[0].before:""),void 0===this.sourceIndex&&(this.sourceIndex=this.before.length),this.nodes.forEach((function(e){e.parent=t}))}n.prototype=Object.create(r.default.prototype),n.constructor=r.default,n.prototype.walk=function(e,t){for(var r="string"==typeof e||e instanceof RegExp,n=r?t:e,i="string"==typeof e?new RegExp(e):e,s=0;s<this.nodes.length;s++){var o=this.nodes[s];if((!r||i.test(o.type))&&n&&!1===n(o,s,this.nodes)||o.nodes&&!1===o.walk(e,t))return!1}return!0},n.prototype.each=function(){for(var e=arguments.length<=0||void 0===arguments[0]?function(){}:arguments[0],t=0;t<this.nodes.length;t++)if(!1===e(this.nodes[t],t,this.nodes))return!1;return!0},e.default=n})),te=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseMediaFeature=i,e.parseMediaQuery=s,e.parseMediaList=function(e){var n=[],i=0,o=0,a=/^(\s*)url\s*\(/.exec(e);if(null!==a){for(var l=a[0].length,u=1;u>0;){var c=e[l];"("===c&&u++,")"===c&&u--,l++}n.unshift(new t.default({type:"url",value:e.substring(0,l).trim(),sourceIndex:a[1].length,before:a[1],after:/^(\s*)/.exec(e.substring(l))[1]})),i=l}for(var h=i;h<e.length;h++){var p=e[h];if("("===p&&o++,")"===p&&o--,0===o&&","===p){var d=e.substring(i,h),f=/^(\s*)/.exec(d)[1];n.push(new r.default({type:"media-query",value:d.trim(),sourceIndex:i+f.length,nodes:s(d,i),before:f,after:/(\s*)$/.exec(d)[1]})),i=h+1}}var m=e.substring(i),g=/^(\s*)/.exec(m)[1];return n.push(new r.default({type:"media-query",value:m.trim(),sourceIndex:i+g.length,nodes:s(m,i),before:g,after:/(\s*)$/.exec(m)[1]})),n};var t=n(K()),r=n(ee());function n(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=[{mode:"normal",character:null}],r=[],n=0,i="",s=null,o=null,a=arguments.length<=1||void 0===arguments[1]?0:arguments[1],l=e;"("===e[0]&&")"===e[e.length-1]&&(l=e.substring(1,e.length-1),a++);for(var u=0;u<l.length;u++){var c=l[u];if(("'"===c||'"'===c)&&(!0===t[n].isCalculationEnabled?(t.push({mode:"string",isCalculationEnabled:!1,character:c}),n++):"string"===t[n].mode&&t[n].character===c&&"\\"!==l[u-1]&&(t.pop(),n--)),"{"===c?(t.push({mode:"interpolation",isCalculationEnabled:!0}),n++):"}"===c&&(t.pop(),n--),"normal"===t[n].mode&&":"===c){var h=l.substring(u+1);(o={type:"value",before:/^(\s*)/.exec(h)[1],after:/(\s*)$/.exec(h)[1],value:h.trim()}).sourceIndex=o.before.length+u+1+a,s={type:"colon",sourceIndex:u+a,after:o.before,value:":"};break}i+=c}return(i={type:"media-feature",before:/^(\s*)/.exec(i)[1],after:/(\s*)$/.exec(i)[1],value:i.trim()}).sourceIndex=i.before.length+a,r.push(i),null!==s&&(s.before=i.after,r.push(s)),null!==o&&r.push(o),r}function s(e){var n=arguments.length<=1||void 0===arguments[1]?0:arguments[1],s=[],o=0,a=!1,l=void 0;l={before:"",after:"",value:""};for(var u=0;u<e.length;u++){var c=e[u];a?(l.value+=c,("{"===c||"("===c)&&o++,(")"===c||"}"===c)&&o--):-1!==c.search(/\s/)?l.before+=c:("("===c&&(l.type="media-feature-expression",o++),l.value=c,l.sourceIndex=n+u,a=!0),a&&0===o&&(")"===c||u===e.length-1||-1!==e[u+1].search(/\s/))&&(-1!==["not","only","and"].indexOf(l.value)&&(l.type="keyword"),"media-feature-expression"===l.type&&(l.nodes=i(l.value,l.sourceIndex)),s.push(Array.isArray(l.nodes)?new r.default(l):new t.default(l)),l={before:"",after:"",value:""},a=!1)}for(var h=0;h<s.length;h++)if(l=s[h],h>0&&(s[h-1].after=l.before),void 0===l.type){if(h>0){if("media-feature-expression"===s[h-1].type){l.type="keyword";continue}if("not"===s[h-1].value||"only"===s[h-1].value){l.type="media-type";continue}if("and"===s[h-1].value){l.type="media-feature-expression";continue}"media-type"===s[h-1].type&&(s[h+1]?l.type="media-feature-expression"===s[h+1].type?"keyword":"media-feature-expression":l.type="media-feature-expression")}if(0===h){if(!s[h+1]){l.type="media-type";continue}if(s[h+1]&&("media-feature-expression"===s[h+1].type||"keyword"===s[h+1].type)){l.type="media-type";continue}if(s[h+2]){if("media-feature-expression"===s[h+2].type){l.type="media-type",s[h+1].type="keyword";continue}if("keyword"===s[h+2].type){l.type="keyword",s[h+1].type="media-type";continue}}if(s[h+3]&&"media-feature-expression"===s[h+3].type){l.type="keyword",s[h+1].type="media-type",s[h+2].type="keyword";continue}}}return s}})),re=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return new r.default({nodes:(0,n.parseMediaList)(e),type:"media-query-list",value:e.trim()})};var t,r=(t=ee())&&t.__esModule?t:{default:t},n=te()})),ne=o(((e,t)=>{t.exports=function(e,t){return(t="number"==typeof t?t:1/0)?function e(r,n){return r.reduce((function(r,i){return Array.isArray(i)&&n<t?r.concat(e(i,n+1)):r.concat(i)}),[])}(e,1):Array.isArray(e)?e.map((function(e){return e})):e}})),ie=o(((e,t)=>{t.exports=function(e,t){for(var r=-1,n=[];-1!==(r=e.indexOf(t,r+1));)n.push(r);return n}})),se=o(((e,t)=>{t.exports=function(e,t,r){return 0===e.length?e:t?(r||e.sort(t),function(e,t){for(var r=1,n=e.length,i=e[0],s=e[0],o=1;o<n;++o)if(s=i,t(i=e[o],s)){if(o===r){r++;continue}e[r++]=i}return e.length=r,e}(e,t)):(r||e.sort(),function(e){for(var t=1,r=e.length,n=e[0],i=e[0],s=1;s<r;++s,i=n)if(i=n,(n=e[s])!==i){if(s===t){t++;continue}e[t++]=n}return e.length=t,e}(e))}})),oe=o(((e,t)=>{e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var n=function e(t,n){if("object"!==(typeof t>"u"?"undefined":r(t)))return t;var i=new t.constructor;for(var s in t)if(t.hasOwnProperty(s)){var o=t[s],a=typeof o>"u"?"undefined":r(o);"parent"===s&&"object"===a?n&&(i[s]=n):i[s]=o instanceof Array?o.map((function(t){return e(t,i)})):e(o,i)}return i},i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var r in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t)this[r]=t[r];var n=t.spaces,i=(n=void 0===n?{}:n).before,s=void 0===i?"":i,o=n.after,a=void 0===o?"":o;this.spaces={before:s,after:a}}return e.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},e.prototype.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},e.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},e.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},e.prototype.clone=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n(this);for(var r in e)t[r]=e[r];return t},e.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},e}();e.default=i,t.exports=e.default})),ae=o((e=>{e.__esModule=!0,e.TAG="tag",e.STRING="string",e.SELECTOR="selector",e.ROOT="root",e.PSEUDO="pseudo",e.NESTING="nesting",e.ID="id",e.COMMENT="comment",e.COMBINATOR="combinator",e.CLASS="class",e.ATTRIBUTE="attribute",e.UNIVERSAL="universal"})),le=o(((e,t)=>{e.__esModule=!0;var r,n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=(r=oe())&&r.__esModule?r:{default:r},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(ae());var o=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.nodes||(n.nodes=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.append=function(e){return e.parent=this,this.nodes.push(e),this},t.prototype.prepend=function(e){return e.parent=this,this.nodes.unshift(e),this},t.prototype.at=function(e){return this.nodes[e]},t.prototype.index=function(e){return"number"==typeof e?e:this.nodes.indexOf(e)},t.prototype.removeChild=function(e){e=this.index(e),this.at(e).parent=void 0,this.nodes.splice(e,1);var t=void 0;for(var r in this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this},t.prototype.removeAll=function(){var e=this.nodes,t=Array.isArray(e),r=0;for(e=t?e:e[Symbol.iterator]();;){var n;if(t){if(r>=e.length)break;n=e[r++]}else{if((r=e.next()).done)break;n=r.value}n.parent=void 0}return this.nodes=[],this},t.prototype.empty=function(){return this.removeAll()},t.prototype.insertAfter=function(e,t){var r=this.index(e);this.nodes.splice(r+1,0,t);var n=void 0;for(var i in this.indexes)r<=(n=this.indexes[i])&&(this.indexes[i]=n+this.nodes.length);return this},t.prototype.insertBefore=function(e,t){var r=this.index(e);this.nodes.splice(r,0,t);var n=void 0;for(var i in this.indexes)r<=(n=this.indexes[i])&&(this.indexes[i]=n+this.nodes.length);return this},t.prototype.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var r=void 0,n=void 0;this.indexes[t]<this.length&&(r=this.indexes[t],!1!==(n=e(this.at(r),r)));)this.indexes[t]+=1;if(delete this.indexes[t],!1===n)return!1}},t.prototype.walk=function(e){return this.each((function(t,r){var n=e(t,r);if(!1!==n&&t.length&&(n=t.walk(e)),!1===n)return!1}))},t.prototype.walkAttributes=function(e){var t=this;return this.walk((function(r){if(r.type===s.ATTRIBUTE)return e.call(t,r)}))},t.prototype.walkClasses=function(e){var t=this;return this.walk((function(r){if(r.type===s.CLASS)return e.call(t,r)}))},t.prototype.walkCombinators=function(e){var t=this;return this.walk((function(r){if(r.type===s.COMBINATOR)return e.call(t,r)}))},t.prototype.walkComments=function(e){var t=this;return this.walk((function(r){if(r.type===s.COMMENT)return e.call(t,r)}))},t.prototype.walkIds=function(e){var t=this;return this.walk((function(r){if(r.type===s.ID)return e.call(t,r)}))},t.prototype.walkNesting=function(e){var t=this;return this.walk((function(r){if(r.type===s.NESTING)return e.call(t,r)}))},t.prototype.walkPseudos=function(e){var t=this;return this.walk((function(r){if(r.type===s.PSEUDO)return e.call(t,r)}))},t.prototype.walkTags=function(e){var t=this;return this.walk((function(r){if(r.type===s.TAG)return e.call(t,r)}))},t.prototype.walkUniversals=function(e){var t=this;return this.walk((function(r){if(r.type===s.UNIVERSAL)return e.call(t,r)}))},t.prototype.split=function(e){var t=this,r=[];return this.reduce((function(n,i,s){var o=e.call(t,i);return r.push(i),o?(n.push(r),r=[]):s===t.length-1&&n.push(r),n}),[])},t.prototype.map=function(e){return this.nodes.map(e)},t.prototype.reduce=function(e,t){return this.nodes.reduce(e,t)},t.prototype.every=function(e){return this.nodes.every(e)},t.prototype.some=function(e){return this.nodes.some(e)},t.prototype.filter=function(e){return this.nodes.filter(e)},t.prototype.sort=function(e){return this.nodes.sort(e)},t.prototype.toString=function(){return this.map(String).join("")},n(t,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),t}(i.default);e.default=o,t.exports=e.default})),ue=o(((e,t)=>{e.__esModule=!0;var r,n=(r=le())&&r.__esModule?r:{default:r},i=ae();var s=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=i.ROOT,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toString=function(){var e=this.reduce((function(e,t){var r=String(t);return r?e+r+",":""}),"").slice(0,-1);return this.trailingComma?e+",":e},t}(n.default);e.default=s,t.exports=e.default})),ce=o(((e,t)=>{e.__esModule=!0;var r,n=(r=le())&&r.__esModule?r:{default:r},i=ae();var s=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=i.SELECTOR,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default);e.default=s,t.exports=e.default})),he=o(((e,t)=>{e.__esModule=!0;var r=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var n,i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},r(t,[{key:"ns",get:function(){var e=this.namespace;return e?("string"==typeof e?e:"")+"|":""}}]),t}((n=oe(),n&&n.__esModule?n:{default:n}).default);e.default=i,t.exports=e.default})),pe=o(((e,t)=>{e.__esModule=!0;var r,n=(r=he())&&r.__esModule?r:{default:r},i=ae();var s=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=i.CLASS,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},t}(n.default);e.default=s,t.exports=e.default})),de=o(((e,t)=>{e.__esModule=!0;var r,n=(r=oe())&&r.__esModule?r:{default:r},i=ae();var s=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=i.COMMENT,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default);e.default=s,t.exports=e.default})),fe=o(((e,t)=>{e.__esModule=!0;var r,n=(r=he())&&r.__esModule?r:{default:r},i=ae();var s=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=i.ID,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},t}(n.default);e.default=s,t.exports=e.default})),me=o(((e,t)=>{e.__esModule=!0;var r,n=(r=he())&&r.__esModule?r:{default:r},i=ae();var s=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=i.TAG,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default);e.default=s,t.exports=e.default})),ge=o(((e,t)=>{e.__esModule=!0;var r,n=(r=oe())&&r.__esModule?r:{default:r},i=ae();var s=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=i.STRING,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default);e.default=s,t.exports=e.default})),ye=o(((e,t)=>{e.__esModule=!0;var r,n=(r=le())&&r.__esModule?r:{default:r},i=ae();var s=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=i.PSEUDO,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toString=function(){var e=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),e,this.spaces.after].join("")},t}(n.default);e.default=s,t.exports=e.default})),Oe=o(((e,t)=>{e.__esModule=!0;var r,n=(r=he())&&r.__esModule?r:{default:r},i=ae();var s=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=i.ATTRIBUTE,n.raws={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toString=function(){var e=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&e.push(this.operator),this.value&&e.push(this.value),this.raws.insensitive?e.push(this.raws.insensitive):this.insensitive&&e.push(" i"),e.push("]"),e.concat(this.spaces.after).join("")},t}(n.default);e.default=s,t.exports=e.default})),xe=o(((e,t)=>{e.__esModule=!0;var r,n=(r=he())&&r.__esModule?r:{default:r},i=ae();var s=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=i.UNIVERSAL,n.value="*",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default);e.default=s,t.exports=e.default})),be=o(((e,t)=>{e.__esModule=!0;var r,n=(r=oe())&&r.__esModule?r:{default:r},i=ae();var s=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=i.COMBINATOR,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default);e.default=s,t.exports=e.default})),ve=o(((e,t)=>{e.__esModule=!0;var r,n=(r=oe())&&r.__esModule?r:{default:r},i=ae();var s=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=i.NESTING,n.value="&",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default);e.default=s,t.exports=e.default})),we=o(((e,t)=>{e.__esModule=!0,e.default=function(e){return e.sort((function(e,t){return e-t}))},t.exports=e.default})),De=o(((e,t)=>{e.__esModule=!0,e.default=function(e){for(var t=[],C=e.css.valueOf(),T=void 0,P=void 0,A=void 0,F=void 0,_=void 0,I=void 0,B=void 0,N=void 0,$=void 0,Q=void 0,L=void 0,M=C.length,R=-1,j=1,Z=0,q=function(t,r){if(!e.safe)throw e.error("Unclosed "+t,j,Z-R,Z);P=(C+=r).length-1};Z<M;){switch((T=C.charCodeAt(Z))===o&&(R=Z,j+=1),T){case o:case a:case u:case c:case l:P=Z;do{P+=1,(T=C.charCodeAt(P))===o&&(R=P,j+=1)}while(T===a||T===o||T===u||T===c||T===l);t.push(["space",C.slice(Z,P),j,Z-R,Z]),Z=P-1;break;case h:case p:case d:case f:P=Z;do{P+=1,T=C.charCodeAt(P)}while(T===h||T===p||T===d||T===f);t.push(["combinator",C.slice(Z,P),j,Z-R,Z]),Z=P-1;break;case v:t.push(["*","*",j,Z-R,Z]);break;case D:t.push(["&","&",j,Z-R,Z]);break;case m:t.push([",",",",j,Z-R,Z]);break;case O:t.push(["[","[",j,Z-R,Z]);break;case x:t.push(["]","]",j,Z-R,Z]);break;case w:t.push([":",":",j,Z-R,Z]);break;case b:t.push([";",";",j,Z-R,Z]);break;case g:t.push(["(","(",j,Z-R,Z]);break;case y:t.push([")",")",j,Z-R,Z]);break;case r:case n:A=T===r?"'":'"',P=Z;do{for(Q=!1,-1===(P=C.indexOf(A,P+1))&&q("quote",A),L=P;C.charCodeAt(L-1)===i;)L-=1,Q=!Q}while(Q);t.push(["string",C.slice(Z,P+1),j,Z-R,j,P-R,Z]),Z=P;break;case S:k.lastIndex=Z+1,k.test(C),P=0===k.lastIndex?C.length-1:k.lastIndex-2,t.push(["at-word",C.slice(Z,P+1),j,Z-R,j,P-R,Z]),Z=P;break;case i:for(P=Z,B=!0;C.charCodeAt(P+1)===i;)P+=1,B=!B;T=C.charCodeAt(P+1),B&&T!==s&&T!==a&&T!==o&&T!==u&&T!==c&&T!==l&&(P+=1),t.push(["word",C.slice(Z,P+1),j,Z-R,j,P-R,Z]),Z=P;break;default:T===s&&C.charCodeAt(Z+1)===v?(0===(P=C.indexOf("*/",Z+2)+1)&&q("comment","*/"),(_=(F=(I=C.slice(Z,P+1)).split("\n")).length-1)>0?(N=j+_,$=P-F[_].length):(N=j,$=R),t.push(["comment",I,j,Z-R,N,P-$,Z]),R=$,j=N,Z=P):(E.lastIndex=Z+1,E.test(C),P=0===E.lastIndex?C.length-1:E.lastIndex-2,t.push(["word",C.slice(Z,P+1),j,Z-R,j,P-R,Z]),Z=P)}Z++}return t};var r=39,n=34,i=92,s=47,o=10,a=32,l=12,u=9,c=13,h=43,p=62,d=126,f=124,m=44,g=40,y=41,O=91,x=93,b=59,v=42,w=58,D=38,S=64,k=/[ \n\t\r\{\(\)'"\\;/]/g,E=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;t.exports=e.default})),Se=o(((e,t)=>{e.__esModule=!0;var r=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),n=v(ne()),i=v(ie()),s=v(se()),o=v(ue()),a=v(ce()),l=v(pe()),u=v(de()),c=v(fe()),h=v(me()),p=v(ge()),d=v(ye()),f=v(Oe()),m=v(xe()),g=v(be()),y=v(ve()),O=v(we()),x=v(De()),b=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(ae());function v(e){return e&&e.__esModule?e:{default:e}}var w=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.input=t,this.lossy=!1===t.options.lossless,this.position=0,this.root=new o.default;var r=new a.default;return this.root.append(r),this.current=r,this.lossy?this.tokens=(0,x.default)({safe:t.safe,css:t.css.trim()}):this.tokens=(0,x.default)(t),this.loop()}return e.prototype.attribute=function(){var e="",t=void 0,r=this.currToken;for(this.position++;this.position<this.tokens.length&&"]"!==this.currToken[0];)e+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~e.indexOf("]")&&this.error("Expected a closing square bracket.");var n=e.split(/((?:[*~^$|]?=))([^]*)/),i=n[0].split(/(\|)/g),s={operator:n[1],value:n[2],source:{start:{line:r[2],column:r[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:r[4]};if(i.length>1?(""===i[0]&&(i[0]=!0),s.attribute=this.parseValue(i[2]),s.namespace=this.parseNamespace(i[0])):s.attribute=this.parseValue(n[0]),t=new f.default(s),n[2]){var o=n[2].split(/(\s+i\s*?)$/),a=o[0].trim();t.value=this.lossy?a:o[0],o[1]&&(t.insensitive=!0,this.lossy||(t.raws.insensitive=o[1])),t.quoted="'"===a[0]||'"'===a[0],t.raws.unquoted=t.quoted?a.slice(1,-1):a}this.newNode(t),this.position++},e.prototype.combinator=function(){if("|"===this.currToken[1])return this.namespace();for(var e=new g.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&("space"===this.currToken[0]||"combinator"===this.currToken[0]);)this.nextToken&&"combinator"===this.nextToken[0]?(e.spaces.before=this.parseSpace(this.currToken[1]),e.source.start.line=this.nextToken[2],e.source.start.column=this.nextToken[3],e.source.end.column=this.nextToken[3],e.source.end.line=this.nextToken[2],e.sourceIndex=this.nextToken[4]):this.prevToken&&"combinator"===this.prevToken[0]?e.spaces.after=this.parseSpace(this.currToken[1]):"combinator"===this.currToken[0]?e.value=this.currToken[1]:"space"===this.currToken[0]&&(e.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(e)},e.prototype.comma=function(){if(this.position===this.tokens.length-1)return this.root.trailingComma=!0,void this.position++;var e=new a.default;this.current.parent.append(e),this.current=e,this.position++},e.prototype.comment=function(){var e=new u.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(e),this.position++},e.prototype.error=function(e){throw new this.input.error(e)},e.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},e.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},e.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},e.prototype.namespace=function(){var e=this.prevToken&&this.prevToken[1]||!0;return"word"===this.nextToken[0]?(this.position++,this.word(e)):"*"===this.nextToken[0]?(this.position++,this.universal(e)):void 0},e.prototype.nesting=function(){this.newNode(new y.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},e.prototype.parentheses=function(){var e=this.current.last;if(e&&e.type===b.PSEUDO){var t=new a.default,r=this.current;e.append(t),this.current=t;var n=1;for(this.position++;this.position<this.tokens.length&&n;)"("===this.currToken[0]&&n++,")"===this.currToken[0]&&n--,n?this.parse():(t.parent.source.end.line=this.currToken[2],t.parent.source.end.column=this.currToken[3],this.position++);n&&this.error("Expected closing parenthesis."),this.current=r}else{var i=1;for(this.position++,e.value+="(";this.position<this.tokens.length&&i;)"("===this.currToken[0]&&i++,")"===this.currToken[0]&&i--,e.value+=this.parseParenthesisToken(this.currToken),this.position++;i&&this.error("Expected closing parenthesis.")}},e.prototype.pseudo=function(){for(var e=this,t="",r=this.currToken;this.currToken&&":"===this.currToken[0];)t+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if("word"===this.currToken[0]){var n=void 0;this.splitWord(!1,(function(i,s){t+=i,n=new d.default({value:t,source:{start:{line:r[2],column:r[3]},end:{line:e.currToken[4],column:e.currToken[5]}},sourceIndex:r[4]}),e.newNode(n),s>1&&e.nextToken&&"("===e.nextToken[0]&&e.error("Misplaced parenthesis.")}))}else this.error('Unexpected "'+this.currToken[0]+'" found.')},e.prototype.space=function(){var e=this.currToken;0===this.position||","===this.prevToken[0]||"("===this.prevToken[0]?(this.spaces=this.parseSpace(e[1]),this.position++):this.position===this.tokens.length-1||","===this.nextToken[0]||")"===this.nextToken[0]?(this.current.last.spaces.after=this.parseSpace(e[1]),this.position++):this.combinator()},e.prototype.string=function(){var e=this.currToken;this.newNode(new p.default({value:this.currToken[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++},e.prototype.universal=function(e){var t=this.nextToken;if(t&&"|"===t[1])return this.position++,this.namespace();this.newNode(new m.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),e),this.position++},e.prototype.splitWord=function(e,t){for(var r=this,o=this.nextToken,a=this.currToken[1];o&&"word"===o[0];){this.position++;var u=this.currToken[1];if(a+=u,u.lastIndexOf("\\")===u.length-1){var p=this.nextToken;p&&"space"===p[0]&&(a+=this.parseSpace(p[1]," "),this.position++)}o=this.nextToken}var d=(0,i.default)(a,"."),f=(0,i.default)(a,"#"),m=(0,i.default)(a,"#{");m.length&&(f=f.filter((function(e){return!~m.indexOf(e)})));var g=(0,O.default)((0,s.default)((0,n.default)([[0],d,f])));g.forEach((function(n,i){var s=g[i+1]||a.length,o=a.slice(n,s);if(0===i&&t)return t.call(r,o,g.length);var u;u=~d.indexOf(n)?new l.default({value:o.slice(1),source:{start:{line:r.currToken[2],column:r.currToken[3]+n},end:{line:r.currToken[4],column:r.currToken[3]+(s-1)}},sourceIndex:r.currToken[6]+g[i]}):~f.indexOf(n)?new c.default({value:o.slice(1),source:{start:{line:r.currToken[2],column:r.currToken[3]+n},end:{line:r.currToken[4],column:r.currToken[3]+(s-1)}},sourceIndex:r.currToken[6]+g[i]}):new h.default({value:o,source:{start:{line:r.currToken[2],column:r.currToken[3]+n},end:{line:r.currToken[4],column:r.currToken[3]+(s-1)}},sourceIndex:r.currToken[6]+g[i]}),r.newNode(u,e)})),this.position++},e.prototype.word=function(e){var t=this.nextToken;return t&&"|"===t[1]?(this.position++,this.namespace()):this.splitWord(e)},e.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},e.prototype.parse=function(e){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":e&&this.missingParenthesis();break;case"[":this.attribute();break;case"]":this.missingSquareBracket();break;case"at-word":case"word":this.word();break;case":":this.pseudo();break;case";":this.missingBackslash();break;case",":this.comma();break;case"*":this.universal();break;case"&":this.nesting();break;case"combinator":this.combinator();break;case"string":this.string()}},e.prototype.parseNamespace=function(e){if(this.lossy&&"string"==typeof e){var t=e.trim();return!t.length||t}return e},e.prototype.parseSpace=function(e,t){return this.lossy?t||"":e},e.prototype.parseValue=function(e){return this.lossy&&e&&"string"==typeof e?e.trim():e},e.prototype.parseParenthesisToken=function(e){return this.lossy?"space"===e[0]?this.parseSpace(e[1]," "):this.parseValue(e[1]):e[1]},e.prototype.newNode=function(e,t){return t&&(e.namespace=this.parseNamespace(t)),this.spaces&&(e.spaces.before=this.spaces,this.spaces=""),this.current.append(e)},r(e,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),e}();e.default=w,t.exports=e.default})),ke=o(((e,t)=>{e.__esModule=!0;var r,n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=(r=Se())&&r.__esModule?r:{default:r};var s=function(){function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.func=t||function(){},this}return e.prototype.process=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new i.default({css:e,error:function(e){throw new Error(e)},options:t});return this.res=r,this.func(r),this},n(e,[{key:"result",get:function(){return String(this.res)}}]),e}();e.default=s,t.exports=e.default})),Ee=o(((e,t)=>{var r=function(e,t){let n=new e.constructor;for(let i in e){if(!e.hasOwnProperty(i))continue;let s=e[i],o=typeof s;"parent"===i&&"object"===o?t&&(n[i]=t):"source"===i?n[i]=s:s instanceof Array?n[i]=s.map((e=>r(e,n))):"before"!==i&&"after"!==i&&"between"!==i&&"semicolon"!==i&&("object"===o&&null!==s&&(s=r(s)),n[i]=s)}return n};t.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let t in e)this[t]=e[t]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(e){e=e||{};let t=r(this);for(let r in e)t[r]=e[r];return t}cloneBefore(e){e=e||{};let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e){e=e||{};let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let t of e)this.parent.insertBefore(this,t);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let t in this){if(!this.hasOwnProperty(t)||"parent"===t)continue;let r=this[t];r instanceof Array?e[t]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON():e)):"object"==typeof r&&r.toJSON?e[t]=r.toJSON():e[t]=r}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let t=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i<e;i++)"\n"===t[i]?(r=1,n+=1):r+=1;return{line:n,column:r}}positionBy(e){let t=this.source.start;if(Object(e).index)t=this.positionInside(e.index);else if(Object(e).word){let r=this.toString().indexOf(e.word);-1!==r&&(t=this.positionInside(r))}return t}}})),Ce=o(((e,t)=>{var r=Ee(),n=class extends r{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t,r,n=this.lastEach;if(this.indexes[n]=0,this.nodes){for(;this.indexes[n]<this.nodes.length&&(t=this.indexes[n],r=e(this.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}}walk(e){return this.each(((t,r)=>{let n=e(t,r);return!1!==n&&t.walk&&(n=t.walk(e)),n}))}walkType(e,t){if(!e||!t)throw new Error("Parameters {type} and {callback} are required.");let r="function"==typeof e;return this.walk(((n,i)=>{if(r&&n instanceof e||!r&&n.type===e)return t.call(this,n,i)}))}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertAfter(e,t){let r,n=this.index(e);this.nodes.splice(n+1,0,t);for(let e in this.indexes)r=this.indexes[e],n<=r&&(this.indexes[e]=r+this.nodes.length);return this}insertBefore(e,t){let r,n=this.index(e);this.nodes.splice(n,0,t);for(let e in this.indexes)r=this.indexes[e],n<=r&&(this.indexes[e]=r+this.nodes.length);return this}removeChild(e){let t;e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return"number"==typeof e?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};n.registerWalker=e=>{let t="walk"+e.name;t.lastIndexOf("s")!==t.length-1&&(t+="s"),!n.prototype[t]&&(n.prototype[t]=function(t){return this.walkType(e,t)})},t.exports=n})),Te=o(((e,t)=>{var r=Ce();t.exports=class extends r{constructor(e){super(e),this.type="root"}}})),Pe=o(((e,t)=>{var r=Ce();t.exports=class extends r{constructor(e){super(e),this.type="value",this.unbalanced=0}}})),Ae=o(((e,t)=>{var r=Ce(),n=class extends r{constructor(e){super(e),this.type="atword"}toString(){return this.quoted&&this.raws.quote,[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};r.registerWalker(n),t.exports=n})),Fe=o(((e,t)=>{var r=Ce(),n=Ee(),i=class extends n{constructor(e){super(e),this.type="colon"}};r.registerWalker(i),t.exports=i})),_e=o(((e,t)=>{var r=Ce(),n=Ee(),i=class extends n{constructor(e){super(e),this.type="comma"}};r.registerWalker(i),t.exports=i})),Ie=o(((e,t)=>{var r=Ce(),n=Ee(),i=class extends n{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};r.registerWalker(i),t.exports=i})),Be=o(((e,t)=>{var r=Ce(),n=class extends r{constructor(e){super(e),this.type="func",this.unbalanced=-1}};r.registerWalker(n),t.exports=n})),Ne=o(((e,t)=>{var r=Ce(),n=Ee(),i=class extends n{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};r.registerWalker(i),t.exports=i})),$e=o(((e,t)=>{var r=Ce(),n=Ee(),i=class extends n{constructor(e){super(e),this.type="operator"}};r.registerWalker(i),t.exports=i})),Qe=o(((e,t)=>{var r=Ce(),n=Ee(),i=class extends n{constructor(e){super(e),this.type="paren",this.parenType=""}};r.registerWalker(i),t.exports=i})),Le=o(((e,t)=>{var r=Ce(),n=Ee(),i=class extends n{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};r.registerWalker(i),t.exports=i})),Me=o(((e,t)=>{var r=Ce(),n=Ee(),i=class extends n{constructor(e){super(e),this.type="word"}};r.registerWalker(i),t.exports=i})),Re=o(((e,t)=>{var r=Ce(),n=Ee(),i=class extends n{constructor(e){super(e),this.type="unicode-range"}};r.registerWalker(i),t.exports=i})),je=o(((e,t)=>{var r=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while tokzenizing.","function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};t.exports=r})),Ze=o(((e,t)=>{var r=/[ \n\t\r\{\(\)'"\\;,/]/g,n=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,i=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,s=/^[a-z0-9]/i,o=/^[a-f0-9?\-]/i,a=je();t.exports=function(e,t){t=t||{};let l,u,c,h,p,d,f,m,g,y,O,x=[],b=e.valueOf(),v=b.length,w=-1,D=1,S=0,k=0,E=null;function C(e){throw new a(`Unclosed ${e} at line: ${D}, column: ${S-w}, token: ${S}`)}for(;S<v;){switch(l=b.charCodeAt(S),10===l&&(w=S,D+=1),l){case 10:case 32:case 9:case 13:case 12:u=S;do{u+=1,l=b.charCodeAt(u),10===l&&(w=u,D+=1)}while(32===l||10===l||9===l||13===l||12===l);x.push(["space",b.slice(S,u),D,S-w,D,u-w,S]),S=u-1;break;case 58:u=S+1,x.push(["colon",b.slice(S,u),D,S-w,D,u-w,S]),S=u-1;break;case 44:u=S+1,x.push(["comma",b.slice(S,u),D,S-w,D,u-w,S]),S=u-1;break;case 123:x.push(["{","{",D,S-w,D,u-w,S]);break;case 125:x.push(["}","}",D,S-w,D,u-w,S]);break;case 40:k++,E=!E&&1===k&&x.length>0&&"word"===x[x.length-1][0]&&"url"===x[x.length-1][1],x.push(["(","(",D,S-w,D,u-w,S]);break;case 41:k--,E=E&&k>0,x.push([")",")",D,S-w,D,u-w,S]);break;case 39:case 34:c=39===l?"'":'"',u=S;do{for(g=!1,u=b.indexOf(c,u+1),-1===u&&C("quote"),y=u;92===b.charCodeAt(y-1);)y-=1,g=!g}while(g);x.push(["string",b.slice(S,u+1),D,S-w,D,u-w,S]),S=u;break;case 64:r.lastIndex=S+1,r.test(b),u=0===r.lastIndex?b.length-1:r.lastIndex-2,x.push(["atword",b.slice(S,u+1),D,S-w,D,u-w,S]),S=u;break;case 92:u=S,l=b.charCodeAt(u+1),x.push(["word",b.slice(S,u+1),D,S-w,D,u-w,S]),S=u;break;case 43:case 45:case 42:if(u=S+1,O=b.slice(S+1,u+1),b.slice(S-1,S),45===l&&45===O.charCodeAt(0)){u++,x.push(["word",b.slice(S,u),D,S-w,D,u-w,S]),S=u-1;break}x.push(["operator",b.slice(S,u),D,S-w,D,u-w,S]),S=u-1;break;default:if(47===l&&(42===b.charCodeAt(S+1)||t.loose&&!E&&47===b.charCodeAt(S+1))){if(42===b.charCodeAt(S+1))u=b.indexOf("*/",S+2)+1,0===u&&C("comment");else{let e=b.indexOf("\n",S+2);u=-1!==e?e-1:v}d=b.slice(S,u+1),h=d.split("\n"),p=h.length-1,p>0?(f=D+p,m=u-h[p].length):(f=D,m=w),x.push(["comment",d,D,S-w,f,u-m,S]),w=m,D=f,S=u}else if(35!==l||s.test(b.slice(S+1,S+2)))if(117!==l&&85!==l||43!==b.charCodeAt(S+1))if(47===l)u=S+1,x.push(["operator",b.slice(S,u),D,S-w,D,u-w,S]),S=u-1;else{let e=n;if(l>=48&&l<=57&&(e=i),e.lastIndex=S+1,e.test(b),u=0===e.lastIndex?b.length-1:e.lastIndex-2,e===i||46===l){let e=b.charCodeAt(u),t=b.charCodeAt(u+1),r=b.charCodeAt(u+2);(101===e||69===e)&&(45===t||43===t)&&r>=48&&r<=57&&(i.lastIndex=u+2,i.test(b),u=0===i.lastIndex?b.length-1:i.lastIndex-2)}x.push(["word",b.slice(S,u+1),D,S-w,D,u-w,S]),S=u}else{u=S+2;do{u+=1,l=b.charCodeAt(u)}while(u<v&&o.test(b.slice(u,u+1)));x.push(["unicoderange",b.slice(S,u),D,S-w,D,u-w,S]),S=u-1}else u=S+1,x.push(["#",b.slice(S,u),D,S-w,D,u-w,S]),S=u-1}S++}return x}})),qe=o(((e,t)=>{var r=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.","function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};t.exports=r})),We=o(((e,t)=>{var r=Te(),n=Pe(),i=Ae(),s=Fe(),o=_e(),a=Ie(),l=Be(),u=Ne(),c=$e(),h=Qe(),p=Le(),d=Me(),f=Re(),m=Ze(),g=ne(),y=ie(),O=se(),x=qe();t.exports=class{constructor(e,t){this.cache=[],this.input=e,this.options=Object.assign({},{loose:!1},t),this.position=0,this.unbalanced=0,this.root=new r;let i=new n;this.root.append(i),this.current=i,this.tokens=m(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new s({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new o({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e,t=!1,r=this.currToken[1].replace(/\/\*|\*\//g,"");this.options.loose&&r.startsWith("//")&&(r=r.substring(2),t=!0),e=new a({value:r,inline:t,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(e),this.position++}error(e,t){throw new x(e+` at line: ${t[2]}, column ${t[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let e,t=this.currToken[1];if("+"===t||"-"===t)if(this.options.loose||this.position>0&&("func"===this.current.type&&"calc"===this.current.value?("space"!==this.prevToken[0]&&"("!==this.prevToken[0]||"space"!==this.nextToken[0]&&"word"!==this.nextToken[0]||"word"===this.nextToken[0]&&"operator"!==this.current.last.type&&"("!==this.current.last.value)&&this.error("Syntax Error",this.currToken):("space"===this.nextToken[0]||"operator"===this.nextToken[0]||"operator"===this.prevToken[0])&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&"operator"===this.current.last.type)&&"word"===this.nextToken[0])return this.word()}else if("word"===this.nextToken[0])return this.word();return e=new c({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(e)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":default:this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange()}}parenOpen(){let e,t=1,r=this.position+1,n=this.currToken;for(;r<this.tokens.length&&t;){let e=this.tokens[r];"("===e[0]&&t++,")"===e[0]&&t--,r++}if(t&&this.error("Expected closing parenthesis",n),e=this.current.last,e&&"func"===e.type&&e.unbalanced<0&&(e.unbalanced=0,this.current=e),this.current.unbalanced++,this.newNode(new h({value:n[1],source:{start:{line:n[2],column:n[3]},end:{line:n[4],column:n[5]}},sourceIndex:n[6]})),this.position++,"func"===this.current.type&&this.current.unbalanced&&"url"===this.current.value&&"string"!==this.currToken[0]&&")"!==this.currToken[0]&&!this.options.loose){let e=this.nextToken,t=this.currToken[1],r={line:this.currToken[2],column:this.currToken[3]};for(;e&&")"!==e[0]&&this.current.unbalanced;)this.position++,t+=this.currToken[1],e=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new d({value:t,source:{start:r,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let e=this.currToken;this.newNode(new h({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++,(!(this.position>=this.tokens.length-1)||this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||","===this.nextToken[0]||")"===this.nextToken[0]?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new f({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e,t,r=this.nextToken,n=this.currToken[1],s=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/;if(!/^(?!\#([a-z0-9]+))[\#\{\}]/gi.test(n))for(;r&&"word"===r[0];){this.position++;let e=this.currToken[1];n+=e,r=this.nextToken}var o;e=y(n,"@"),o=O(g([[0],e])),t=o.sort(((e,t)=>e-t)),t.forEach(((o,a)=>{let c,h=t[a+1]||n.length,p=n.slice(o,h);if(~e.indexOf(o))c=new i({value:p.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+o},end:{line:this.currToken[4],column:this.currToken[3]+(h-1)}},sourceIndex:this.currToken[6]+t[a]});else if(s.test(this.currToken[1])){let e=p.replace(s,"");c=new u({value:p.replace(e,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+o},end:{line:this.currToken[4],column:this.currToken[3]+(h-1)}},sourceIndex:this.currToken[6]+t[a],unit:e})}else c=new(r&&"("===r[0]?l:d)({value:p,source:{start:{line:this.currToken[2],column:this.currToken[3]+o},end:{line:this.currToken[4],column:this.currToken[3]+(h-1)}},sourceIndex:this.currToken[6]+t[a]}),"word"===c.type?(c.isHex=/^#(.+)/.test(p),c.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(p)):this.cache.push(this.current);this.newNode(c)})),this.position++}string(){let e,t=this.currToken,r=this.currToken[1],n=/^(\"|\')/,i=n.test(r),s="";i&&(s=r.match(n)[0],r=r.slice(1,r.length-1)),e=new p({value:r,source:{start:{line:t[2],column:t[3]},end:{line:t[4],column:t[5]}},sourceIndex:t[6],quoted:i}),e.raws.quote=s,this.newNode(e),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=""),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}})),Xe={};a(Xe,{languages:()=>Sn,options:()=>kn,parsers:()=>En,printers:()=>li});var Ve=(e,t,r,n)=>{if(!e||null!=t)return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},Ue="string",Ye="array",ze="cursor",Ge="indent",He="align",Je="trim",Ke="group",et="fill",tt="if-break",rt="indent-if-break",nt="line-suffix",it="line-suffix-boundary",st="line",ot="label",at="break-parent",lt=new Set([ze,Ge,He,Je,Ke,et,tt,rt,nt,it,st,ot,at]);var ut=function(e){if("string"==typeof e)return Ue;if(Array.isArray(e))return Ye;if(!e)return;let{type:t}=e;return lt.has(t)?t:void 0};function ct(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', \nExpected it to be 'string' or 'object'.`;if(ut(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if("[object Object]"!==r)return`Unexpected doc '${r}'.`;let n=(e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e))([...lt].map((e=>`'${e}'`)));return`Unexpected doc.type '${e.type}'.\nExpected it to be ${n}.`}var ht=class extends Error{name="InvalidDocError";constructor(e){super(ct(e)),this.doc=e}},pt=()=>{},dt=pt,ft=pt;function mt(e){return dt(e),{type:Ge,contents:e}}function gt(e,t){return dt(t),{type:He,contents:t,n:e}}function yt(e,t={}){return dt(e),ft(t.expandedStates,!0),{type:Ke,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Ot(e){return gt(-1,e)}function xt(e){return ft(e),{type:et,parts:e}}function bt(e,t="",r={}){return dt(e),""!==t&&dt(t),{type:tt,breakContents:e,flatContents:t,groupId:r.groupId}}var vt={type:at},wt={type:st},Dt={type:st,soft:!0},St=[{type:st,hard:!0},vt];function kt(e,t){dt(e),ft(t);let r=[];for(let n=0;n<t.length;n++)0!==n&&r.push(e),r.push(t[n]);return r}var Et=(e,t,r)=>{if(!e||null!=t)return Array.isArray(t)||"string"==typeof t?t[r<0?t.length+r:r]:t.at(r)};function Ct(e,t){if("string"==typeof e)return t(e);let r=new Map;return n(e);function n(e){if(r.has(e))return r.get(e);let i=function(e){switch(ut(e)){case Ye:return t(e.map(n));case et:return t({...e,parts:e.parts.map(n)});case tt:return t({...e,breakContents:n(e.breakContents),flatContents:n(e.flatContents)});case Ke:{let{expandedStates:r,contents:i}=e;return r?(r=r.map(n),i=r[0]):i=n(i),t({...e,contents:i,expandedStates:r})}case He:case Ge:case rt:case ot:case nt:return t({...e,contents:n(e.contents)});case Ue:case ze:case Je:case it:case st:case at:return t(e);default:throw new ht(e)}}(e);return r.set(e,i),i}}function Tt(e){return e.type!==st||e.hard?e.type===tt?e.flatContents:e:e.soft?"":" "}var Pt=function(e){return Array.isArray(e)&&e.length>0},At="'";var Ft=function(e,t){let r=!0===t||t===At?At:'"',n=r===At?'"':At,i=0,s=0;for(let t of e)t===r?i++:t===n&&s++;return i>s?n:r};var _t=function(e,t,r){let n='"'===t?"'":'"',i=Ve(!1,e,/\\(.)|(["'])/gsu,((e,i,s)=>i===n?i:s===t?"\\"+s:s||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(i)?i:"\\"+i)));return t+i+t};var It=function(e,t){let r=e.slice(1,-1),n="json"===t.parser||"jsonc"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Ft(r,t.singleQuote);return _t(r,n,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))},Bt=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}};var Nt=function(e){return"front-matter"===(null==e?void 0:e.type)},$t=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function Qt(e,t,r){if(Nt(e)&&"yaml"===e.language&&delete t.value,"css-comment"===e.type&&"css-root"===r.type&&r.nodes.length>0&&((r.nodes[0]===e||Nt(r.nodes[0])&&r.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/u.test(e.text))||"css-root"===r.type&&Et(!1,r.nodes,-1)===e))return null;if("value-root"===e.type&&delete t.text,("media-query"===e.type||"media-query-list"===e.type||"media-feature-expression"===e.type)&&delete t.value,"css-rule"===e.type&&delete t.params,("media-feature"===e.type||"media-keyword"===e.type||"media-type"===e.type||"media-unknown"===e.type||"media-url"===e.type||"media-value"===e.type||"selector-attribute"===e.type||"selector-string"===e.type||"selector-class"===e.type||"selector-combinator"===e.type||"value-string"===e.type)&&e.value&&(t.value=function(e){return Ve(!1,Ve(!1,e,"'",'"'),/\\([^\da-f])/giu,"$1")}(e.value)),"selector-combinator"===e.type&&(t.value=Ve(!1,t.value,/\s+/gu," ")),"media-feature"===e.type&&(t.value=Ve(!1,t.value," ","")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(e.value.toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=e.prop.toLowerCase()),("css-atrule"===e.type||"css-import"===e.type)&&(t.name=e.name.toLowerCase()),"value-number"===e.type&&(t.unit=e.unit.toLowerCase()),"value-unknown"===e.type&&(t.value=Ve(!1,t.value,/;$/gu,"")),"selector-attribute"===e.type&&(t.attribute=e.attribute.trim(),e.namespace&&"string"==typeof e.namespace&&(t.namespace=e.namespace.trim()||!0),e.value&&(t.value=Ve(!1,t.value.trim(),/^["']|["']$/gu,""),delete t.quoted)),("media-value"===e.type||"media-type"===e.type||"value-number"===e.type||"selector-root-invalid"===e.type||"selector-class"===e.type||"selector-combinator"===e.type||"selector-tag"===e.type)&&e.value&&(t.value=Ve(!1,t.value,/([\d+.e-]+)([a-z]*)/giu,((e,t,r)=>{let n=Number(t);return Number.isNaN(n)?e:n+r.toLowerCase()}))),"selector-tag"===e.type){let e=t.value.toLowerCase();["from","to"].includes(e)&&(t.value=e)}if("css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value,"value-comma_group"===e.type){let r=e.groups.findIndex((e=>"value-number"===e.type&&"..."===e.unit));-1!==r&&(t.groups[r].unit="",t.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}return"value-comma_group"===e.type&&e.groups.some((e=>"value-atword"===e.type&&e.value.endsWith("[")||"value-word"===e.type&&e.value.startsWith("]")))?{type:"value-atword",value:e.groups.map((e=>e.value)).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}:void 0}Qt.ignoredProperties=$t;var Lt=Qt;var Mt=async function(e,t){if("yaml"===e.language){let r=e.value.trim(),n=r?await t(r,{parser:"yaml"}):"";return function(e){return gt({type:"root"},e)}([e.startDelimiter,e.explicitLanguage,St,n,n?St:"",e.endDelimiter])}};function Rt(e){let{node:t}=e;if("front-matter"===t.type)return async e=>{let r=await Mt(t,e);return r?[r,St]:void 0}}Rt.getVisitorKeys=e=>"css-root"===e.type?["frontMatter"]:[];var jt=Rt,Zt=null;function qt(e){if(null!==Zt&&(Zt.property,1)){let e=Zt;return Zt=qt.prototype=null,e}return Zt=qt.prototype=e??Object.create(null),new qt}for(let e=0;e<=10;e++)qt();var Wt=function(e,t="type"){return function(e){qt(e)}(e),function(r){let n=r[t],i=e[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return i}}({"front-matter":[],"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":["nodes"],"media-query":["nodes"],"media-type":[],"media-feature-expression":["nodes"],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":["nodes"],"selector-selector":["nodes"],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":["nodes"],"selector-universal":[],"selector-pseudo":["nodes"],"selector-nesting":[],"selector-unknown":[],"value-value":["group"],"value-root":["group"],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":["group"],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]});var Xt=function(e,t){let r=0;for(let n=0;n<e.line-1;++n)r=t.indexOf("\n",r)+1;return r+e.column};function Vt(e){return(t,r,n)=>{let i=!(null==n||!n.backwards);if(!1===r)return!1;let{length:s}=t,o=r;for(;o>=0&&o<s;){let r=t.charAt(o);if(e instanceof RegExp){if(!e.test(r))return o}else if(!e.includes(r))return o;i?o--:o++}return(-1===o||o===s)&&o}}Vt(/\s/u);var Ut=Vt(" \t"),Yt=Vt(",; \t"),zt=Vt(/[^\n\r]/u);function Gt(e,t){var r,n,i;if("number"==typeof(null==(n=null==(r=e.source)?void 0:r.start)?void 0:n.offset))return e.source.start.offset;if("number"==typeof e.sourceIndex)return e.sourceIndex;if(null!=(i=e.source)&&i.start)return Xt(e.source.start,t);throw Object.assign(new Error("Can not locate node."),{node:e})}function Ht(e,t){var r,n;if("css-comment"===e.type&&e.inline)return zt(t,e.source.startOffset);if("number"==typeof(null==(n=null==(r=e.source)?void 0:r.end)?void 0:n.offset))return e.source.end.offset;if(e.source){if(e.source.end)return Xt(e.source.end,t);if(Pt(e.nodes))return Ht(Et(!1,e.nodes,-1),t)}return null}function Jt(e,t){e.source&&(e.source.startOffset=Gt(e,t),e.source.endOffset=Ht(e,t));for(let r in e){let n=e[r];"source"===r||!n||"object"!=typeof n||("value-root"===n.type||"value-unknown"===n.type?Kt(n,er(e),n.text||n.value):Jt(n,t))}}function Kt(e,t,r){e.source&&(e.source.startOffset=Gt(e,r)+t,e.source.endOffset=Ht(e,r)+t);for(let n in e){let i=e[n];"source"===n||!i||"object"!=typeof i||Kt(i,t,r)}}function er(e){var t;let r=e.source.startOffset;return"string"==typeof e.prop&&(r+=e.prop.length),"css-atrule"===e.type&&"string"==typeof e.name&&(r+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/u)[0].length),"css-atrule"!==e.type&&"string"==typeof(null==(t=e.raws)?void 0:t.between)&&(r+=e.raws.between.length),r}function tr(e){var t;return null==(t=e.source)?void 0:t.startOffset}function rr(e){var t;return null==(t=e.source)?void 0:t.endOffset}var nr=/\*\/$/,ir=/^\/\*\*?/,sr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,or=/(^|\s+)\/\/([^\n\r]*)/g,ar=/^(\r?\n)+/,lr=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ur=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,cr=/(\r?\n|^) *\* ?/g,hr=[];function pr(e,t){return[...hr,...Array.isArray(t)?t:[t]].map((t=>`@${e} ${t}`.trim()))}var dr=function(e){if(!e.startsWith("#!"))return"";let t=e.indexOf("\n");return-1===t?e:e.slice(0,t)};function fr(e){let t=dr(e);t&&(e=e.slice(t.length+1));let r=function(e){let t=e.match(sr);return t?t[0].trimStart():""}(e),{pragmas:n,comments:i}=function(e){e=Ve(!1,e.replace(ir,"").replace(nr,""),cr,"$1");let t="";for(;t!==e;)t=e,e=Ve(!1,e,lr,"\n$1 $2\n");e=e.replace(ar,"").trimEnd();let r,n=Object.create(null),i=Ve(!1,e,ur,"").replace(ar,"").trimEnd();for(;r=ur.exec(e);){let e=Ve(!1,r[2],or,"");if("string"==typeof n[r[1]]||Array.isArray(n[r[1]])){let t=n[r[1]];n[r[1]]=[...hr,...Array.isArray(t)?t:[t],e]}else n[r[1]]=e}return{comments:i,pragmas:n}}(r);return{shebang:t,text:e,pragmas:n,comments:i}}function mr(e){let{shebang:t,text:r,pragmas:n,comments:i}=fr(e),s=function(e){let t=e.match(sr),r=null==t?void 0:t[0];return null==r?e:e.slice(r.length)}(r);return(t?`${t}\n`:"")+function({comments:e="",pragmas:t={}}){let r="\n",n=" *",i=Object.keys(t),s=i.flatMap((e=>pr(e,t[e]))).map((e=>`${n} ${e}${r}`)).join("");if(!e){if(0===i.length)return"";if(1===i.length&&!Array.isArray(t[i[0]])){let e=t[i[0]];return`/** ${pr(i[0],e)[0]} */`}}let o=e.split(r).map((e=>`${n} ${e}`)).join(r)+r;return"/**\n"+(e?o:"")+(e&&i.length>0?n+r:"")+s+" */"}({pragmas:{format:"",...n},comments:i.trimStart()})+(s.startsWith("\n")?"\n":"\n\n")+s}var gr=3;var yr=function(e){let t=function(e){let t=e.slice(0,gr);if("---"!==t&&"+++"!==t)return;let r=e.indexOf("\n",gr);if(-1===r)return;let n=e.slice(gr,r).trim(),i=e.indexOf(`\n${t}`,r),s=n;if(s||(s="+++"===t?"toml":"yaml"),-1===i&&"---"===t&&"yaml"===s&&(i=e.indexOf("\n...",r)),-1===i)return;let o=i+1+gr,a=e.charAt(o+1);if(!/\s?/u.test(a))return;let l=e.slice(0,o);return{type:"front-matter",language:s,explicitLanguage:n,value:e.slice(r+1,i),startDelimiter:t,endDelimiter:l.slice(-gr),raw:l}}(e);if(!t)return{content:e};let{raw:r}=t;return{frontMatter:t,content:Ve(!1,r,/[^\n]/gu," ")+e.slice(r.length)}};var Or=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);var xr=new Set(["initial","inherit","unset","revert"]);function br(e,t){var r;let n=e.findAncestor((e=>"css-atrule"===e.type));return(null==(r=null==n?void 0:n.name)?void 0:r.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(t.toLowerCase())}function vr(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function wr(e,t){var r;let n=e.findAncestor((e=>"value-func"===e.type));return(null==(r=null==n?void 0:n.value)?void 0:r.toLowerCase())===t}function Dr(e){var t;let r=e.findAncestor((e=>"css-rule"===e.type)),n=null==(t=null==r?void 0:r.raws)?void 0:t.selector;return n&&(n.startsWith(":import")||n.startsWith(":export"))}function Sr(e,t){let r=Array.isArray(t)?t:[t],n=e.findAncestor((e=>"css-atrule"===e.type));return n&&r.includes(n.name.toLowerCase())}function kr(e){let{selector:t}=e;return!!t&&("string"==typeof t&&/^@.+:.*$/u.test(t)||t.value&&/^@.+:.*$/u.test(t.value))}function Er(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)}function Cr(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)}function Tr(e){return"value-word"===e.type&&"in"===e.value}function Pr(e){return"value-operator"===e.type&&"*"===e.value}function Ar(e){return"value-operator"===e.type&&"/"===e.value}function Fr(e){return"value-operator"===e.type&&"+"===e.value}function _r(e){return"value-operator"===e.type&&"-"===e.value}function Ir(e){return Pr(e)||Ar(e)||Fr(e)||_r(e)||function(e){return"value-operator"===e.type&&"%"===e.value}(e)}function Br(e){return"value-word"===e.type&&["==","!="].includes(e.value)}function Nr(e){return"value-word"===e.type&&["<",">","<=",">="].includes(e.value)}function $r(e,t){return"scss"===t.parser&&"css-atrule"===e.type&&["if","else","for","each","while"].includes(e.name)}function Qr(e){var t;return(null==(t=e.raws)?void 0:t.params)&&/^\(\s*\)$/u.test(e.raws.params)}function Lr(e){return e.name.startsWith("prettier-placeholder")}function Mr(e){return e.prop.startsWith("@prettier-placeholder")}function Rr(e,t){return"$$"===e.value&&"value-func"===e.type&&"value-word"===(null==t?void 0:t.type)&&!t.raws.before}function jr(e){var t,r,n;return"value-paren_group"===(null==(n=null==(r=null==(t=e.value)?void 0:t.group)?void 0:r.group)?void 0:n.type)&&null!==e.value.group.group.open&&null!==e.value.group.group.close}function Zr(e){var t;return""===(null==(t=e.raws)?void 0:t.before)}function qr(e){var t,r;return"value-comma_group"===e.type&&"value-colon"===(null==(r=null==(t=e.groups)?void 0:t[1])?void 0:r.type)}function Wr(e){var t;return"value-paren_group"===e.type&&(null==(t=e.groups)?void 0:t[0])&&qr(e.groups[0])}function Xr(e,t){var r;if("scss"!==t.parser)return!1;let{node:n}=e;if(0===n.groups.length)return!1;let i=e.grandparent;if(!(Wr(n)||i&&Wr(i)))return!1;let s=e.findAncestor((e=>"css-decl"===e.type));return!!(null!=(r=null==s?void 0:s.prop)&&r.startsWith("$")||Wr(i)||"value-func"===i.type)}function Vr(e){return"value-comment"===e.type&&e.inline}function Ur(e){return"value-word"===e.type&&"#"===e.value}function Yr(e){return"value-word"===e.type&&"{"===e.value}function zr(e){return"value-word"===e.type&&"}"===e.value}function Gr(e){return["value-word","value-atword"].includes(e.type)}function Hr(e){return"value-colon"===(null==e?void 0:e.type)}function Jr(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function Kr(e){return"value-func"===e.type&&Or.has(e.value.toLowerCase())}function en(e){return/\/\//u.test(e.split(/[\n\r]/u).pop())}function tn(e){return"value-atword"===(null==e?void 0:e.type)&&e.value.startsWith("prettier-placeholder-")}function rn(e){var t,r;return"value-paren_group"===e.type&&"("===(null==(t=e.open)?void 0:t.value)&&")"===(null==(r=e.close)?void 0:r.value)}var nn=function(e,t,r){var n;let{node:i}=e,s=e.parent,o=e.grandparent,a=function(e){var t,r;return null==(r=null==(t=e.findAncestor((e=>"css-decl"===e.type)))?void 0:t.prop)?void 0:r.toLowerCase()}(e),l=a&&"value-value"===s.type&&("grid"===a||a.startsWith("grid-template")),u=e.findAncestor((e=>"css-atrule"===e.type)),c=u&&$r(u,t),h=i.groups.some((e=>Vr(e))),p=e.map(r,"groups"),d=[],f=wr(e,"url"),m=!1,g=!1;for(let r=0;r<i.groups.length;++r){d.push(p[r]);let a=i.groups[r-1],h=i.groups[r],y=i.groups[r+1],O=i.groups[r+2];if(f){(y&&Fr(y)||Fr(h))&&d.push(" ");continue}if(Sr(e,"forward")&&"value-word"===h.type&&h.value&&void 0!==a&&"value-word"===a.type&&"as"===a.value&&"value-operator"===y.type&&"*"===y.value||!y||"value-word"===h.type&&h.value.endsWith("-")&&tn(y))continue;if("value-string"===h.type&&h.quoted){let e=h.value.lastIndexOf("#{"),t=h.value.lastIndexOf("}");-1!==e&&-1!==t?m=e>t:-1!==e?m=!0:-1!==t&&(m=!1)}if(m||Hr(h)||Hr(y)||"value-atword"===h.type&&(""===h.value||h.value.endsWith("["))||"value-word"===y.type&&y.value.startsWith("]")||"~"===h.value||"value-string"!==h.type&&h.value&&h.value.includes("\\")&&y&&"value-comment"!==y.type||null!=a&&a.value&&a.value.indexOf("\\")===a.value.length-1&&"value-operator"===h.type&&"/"===h.value||"\\"===h.value||Rr(h,y)||Ur(h)||Yr(h)||zr(y)||Yr(y)&&Zr(y)||zr(h)&&Zr(y)||"--"===h.value&&Ur(y))continue;let x=Ir(h),b=Ir(y);if((x&&Ur(y)||b&&zr(h))&&Zr(y)||!a&&Ar(h)||wr(e,"calc")&&(Fr(h)||Fr(y)||_r(h)||_r(y))&&Zr(y))continue;let v=(Fr(h)||_r(h))&&0===r&&("value-number"===y.type||y.isHex)&&o&&Kr(o)&&!Zr(y),w="value-func"===(null==O?void 0:O.type)||O&&Gr(O)||"value-func"===h.type||Gr(h),D="value-func"===y.type||Gr(y)||"value-func"===(null==a?void 0:a.type)||a&&Gr(a);if("scss"===t.parser&&x&&"-"===h.value&&"value-func"===y.type&&rr(h)!==tr(y))d.push(" ");else if((Pr(y)||Pr(h)||wr(e,"calc")||v||!(Ar(y)&&!w||Ar(h)&&!D||Fr(y)&&!w||Fr(h)&&!D||_r(y)||_r(h))||!(Zr(y)||x&&(!a||a&&Ir(a))))&&("scss"!==t.parser&&"less"!==t.parser||!x||"-"!==h.value||!rn(y)||rr(h)!==tr(y.open)||"("!==y.open.value)){if(Vr(h)){if("value-paren_group"===s.type){d.push(Ot(St));continue}d.push(St);continue}if(c&&(Br(y)||Nr(y)||Cr(y)||Tr(h)||Er(h))){d.push(" ");continue}if(u&&"namespace"===u.name.toLowerCase()){d.push(" ");continue}if(l){h.source&&y.source&&h.source.start.line!==y.source.start.line?(d.push(St),g=!0):d.push(" ");continue}if(b){d.push(" ");continue}if(!("..."===(null==y?void 0:y.value)||tn(h)&&tn(y)&&rr(h)===tr(y))){if(tn(h)&&rn(y)&&rr(h)===tr(y.open)){d.push(Dt);continue}if("with"===h.value&&rn(y)){d.push(" ");continue}null!=(n=h.value)&&n.endsWith("#")&&"{"===y.value&&rn(y.group)||d.push(wt)}}}return h&&d.push(vt),g&&d.unshift(St),c?yt(mt(d)):function(e){var t;let{node:r}=e;return"url"===r.groups[0].value&&2===r.groups.length&&"import"===(null==(t=e.findAncestor((e=>"css-atrule"===e.type)))?void 0:t.name)}(e)?yt(xt(d)):yt(mt(xt(d)))};var sn=function(e){return 1===e.length?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")},on=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"]]);function an(e){let t=e.toLowerCase();return on.has(t)?on.get(t):e}var ln=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,un=new RegExp(ln.source+`|(${/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu.source})?(${/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu.source})(${/[a-z]+/giu.source})?`,"giu");function cn(e,t){return Ve(!1,e,ln,(e=>It(e,t)))}function hn(e,t){let r=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:r+e+r}function pn(e){return Ve(!1,e,un,((e,t,r,n,i)=>!r&&n?dn(n)+vr(i||""):e))}function dn(e){return sn(e).replace(/\.0(?=$|e)/u,"")}var fn=function(e,t,r){let n=!(null==r||!r.backwards);if(!1===t)return!1;let i=e.charAt(t);if(n){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t};var mn=function(e,t,r={}){let n=Ut(e,r.backwards?t-1:t,r);return n!==fn(e,n,r)};var gn=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2;return t};var yn=function(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?zt(e,t):t)};var On=function(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Yt(e,n),n=gn(e,n),n=Ut(e,n);return n=yn(e,n),n=fn(e,n),!1!==n&&mn(e,n)};function xn(e,t){return function(e){return"value-func"===e.type&&"var"===e.value.toLowerCase()}(e.grandparent)&&function({node:e,parent:t},r){return!(!e.source||!r.originalText.slice(tr(e),tr(t.close)).trimEnd().endsWith(","))}(e,t)?",":"value-comment"===e.node.type||"value-comma_group"===e.node.type&&e.node.groups.every((e=>"value-comment"===e.type))||!function(e){return"es5"===e.trailingComma||"all"===e.trailingComma}(t)||!e.callParent((()=>Xr(e,t)))?"":bt(",")}function bn(e,t,r){let{node:n,parent:i}=e,s=e.map((({node:e})=>"string"==typeof e?e:r()),"groups");if(i&&function(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()}(i)&&(1===n.groups.length||n.groups.length>0&&"value-comma_group"===n.groups[0].type&&n.groups[0].groups.length>0&&"value-word"===n.groups[0].groups[0].type&&n.groups[0].groups[0].value.startsWith("data:")))return[n.open?r("open"):"",kt(",",s),n.close?r("close"):""];if(!n.open){let t=vn(e),r=kt([",",t?St:wt],s);return mt(t?[St,r]:yt(xt(r)))}let o=e.map((({node:r,isLast:n,index:i})=>{var o;let a=s[i];if(qr(r)&&"value-comma_group"===r.type&&r.groups&&"value-paren_group"!==r.groups[0].type&&"value-paren_group"===(null==(o=r.groups[2])?void 0:o.type)){let{parts:e}=a.contents.contents;e[1]=yt(e[1]),a=yt(Ot(a))}let l=[a,n?xn(e,t):","];if(!n&&"value-comma_group"===r.type&&Pt(r.groups)){let e=Et(!1,r.groups,-1);!e.source&&e.close&&(e=e.close),e.source&&On(t.originalText,rr(e))&&l.push(St)}return l}),"groups"),a=function(e,t){if(!qr(t))return!1;let{groups:r}=t,n=r.indexOf(e);return-1!==n&&Hr(r[n+1])}(n,i),l=function(e,t){var r,n;if("("!==(null==(r=e.open)?void 0:r.value)||")"!==(null==(n=e.close)?void 0:n.value)||e.groups.some((e=>"value-comma_group"!==e.type)))return!1;if("value-comma_group"===t.type){let r=t.groups.indexOf(e)-1,n=t.groups[r];if("value-word"===(null==n?void 0:n.type)&&"with"===n.value)return!0}return!1}(n,i),u=Xr(e,t),c=l||u&&!a,h=l||a,p=yt([n.open?r("open"):"",mt([Dt,kt(wt,o)]),Dt,n.close?r("close"):""],{shouldBreak:c});return h?Ot(p):p}function vn(e){return e.match((e=>"value-paren_group"===e.type&&!e.open&&e.groups.some((e=>"value-comma_group"===e.type))),((e,t)=>"group"===t&&"value-value"===e.type),((e,t)=>"group"===t&&"value-root"===e.type),((e,t)=>"value"===t&&("css-decl"===e.type&&!e.prop.startsWith("--")||"css-atrule"===e.type&&e.variable)))}var wn=function(e,t,r){let n=[];return e.each((()=>{let{node:i,previous:s}=e;if("css-comment"===(null==s?void 0:s.type)&&"prettier-ignore"===s.text.trim()?n.push(t.originalText.slice(tr(i),rr(i))):n.push(r()),e.isLast)return;let{next:o}=e;"css-comment"===o.type&&!mn(t.originalText,tr(o),{backwards:!0})&&!Nt(i)||"css-atrule"===o.type&&"else"===o.name&&"css-comment"!==i.type?n.push(" "):(n.push(t.__isHTMLStyleAttribute?wt:St),On(t.originalText,rr(i))&&!Nt(i)&&n.push(St))}),"nodes"),n};var Dn={print:function(e,t,r){var n,i,s,o,a,l;let{node:u}=e;switch(u.type){case"front-matter":return[u.raw,St];case"css-root":{let n=wn(e,t,r),i=u.raws.after.trim();return i.startsWith(";")&&(i=i.slice(1).trim()),[u.frontMatter?[r("frontMatter"),St]:"",n,i?` ${i}`:"",u.nodes.length>0?St:""]}case"css-comment":{let e=u.inline||u.raws.inline,r=t.originalText.slice(tr(u),rr(u));return e?r.trimEnd():r}case"css-rule":return[r("selector"),u.important?" !important":"",u.nodes?["selector-unknown"===(null==(n=u.selector)?void 0:n.type)&&en(u.selector.value)?wt:u.selector?" ":"","{",u.nodes.length>0?mt([St,wn(e,t,r)]):"",St,"}",kr(u)?";":""]:";"];case"css-decl":{let n=e.parent,{between:o}=u.raws,a=o.trim(),l=":"===a,c="string"==typeof u.value&&/^ *$/u.test(u.value),h="string"==typeof u.value?u.value:r("value");return h=function(e){var t,r;return"value-root"===(null==(t=e.value)?void 0:t.type)&&"value-value"===(null==(r=e.value.group)?void 0:r.type)&&"composes"===e.prop.toLowerCase()}(u)?function(e){return Ct(e,Tt)}(h):h,!l&&en(a)&&!(null!=(s=null==(i=u.value)?void 0:i.group)&&s.group&&e.call((()=>vn(e)),"value","group","group"))&&(h=mt([St,Ot(h)])),[Ve(!1,u.raws.before,/[\s;]/gu,""),"css-atrule"===n.type&&n.variable||Dr(e)?u.prop:vr(u.prop),a.startsWith("//")?" ":"",a,u.extend||c?"":" ","less"===t.parser&&u.extend&&u.selector?["extend(",r("selector"),")"]:"",h,u.raws.important?u.raws.important.replace(/\s*!\s*important/iu," !important"):u.important?" !important":"",u.raws.scssDefault?u.raws.scssDefault.replace(/\s*!default/iu," !default"):u.scssDefault?" !default":"",u.raws.scssGlobal?u.raws.scssGlobal.replace(/\s*!global/iu," !global"):u.scssGlobal?" !global":"",u.nodes?[" {",mt([Dt,wn(e,t,r)]),Dt,"}"]:Mr(u)&&!n.raws.semicolon&&";"!==t.originalText[rr(u)-1]?"":t.__isHTMLStyleAttribute&&e.isLast?bt(";"):";"]}case"css-atrule":{let n=e.parent,i=Lr(u)&&!n.raws.semicolon&&";"!==t.originalText[rr(u)-1];if("less"===t.parser){if(u.mixin)return[r("selector"),u.important?" !important":"",i?"":";"];if(u.function)return[u.name,"string"==typeof u.params?u.params:r("params"),i?"":";"];if(u.variable)return["@",u.name,": ",u.value?r("value"):"",u.raws.between.trim()?u.raws.between.trim()+" ":"",u.nodes?["{",mt([u.nodes.length>0?Dt:"",wn(e,t,r)]),Dt,"}"]:"",i?"":";"]}let s="import"===u.name&&"value-unknown"===(null==(o=u.params)?void 0:o.type)&&u.params.value.endsWith(";");return["@",Qr(u)||u.name.endsWith(":")||Lr(u)?u.name:vr(u.name),u.params?[Qr(u)?"":Lr(u)?""===u.raws.afterName?"":u.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(u.raws.afterName)?[St,St]:/^\s*\n/u.test(u.raws.afterName)?St:" ":" ","string"==typeof u.params?u.params:r("params")]:"",u.selector?mt([" ",r("selector")]):"",u.value?yt([" ",r("value"),$r(u,t)?jr(u)?" ":wt:""]):"else"===u.name?" ":"",u.nodes?[$r(u,t)?"":u.selector&&!u.selector.nodes&&"string"==typeof u.selector.value&&en(u.selector.value)||!u.selector&&"string"==typeof u.params&&en(u.params)?wt:" ","{",mt([u.nodes.length>0?Dt:"",wn(e,t,r)]),Dt,"}"]:i||s?"":";"]}case"media-query-list":{let t=[];return e.each((({node:e})=>{"media-query"===e.type&&""===e.value||t.push(r())}),"nodes"),yt(mt(kt(wt,t)))}case"media-query":return[kt(" ",e.map(r,"nodes")),e.isLast?"":","];case"media-type":case"media-value":return pn(cn(u.value,t));case"media-feature-expression":return u.nodes?["(",...e.map(r,"nodes"),")"]:u.value;case"media-feature":return vr(cn(Ve(!1,u.value,/ +/gu," "),t));case"media-colon":return[u.value," "];case"media-keyword":case"selector-string":return cn(u.value,t);case"media-url":return cn(Ve(!1,Ve(!1,u.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),t);case"media-unknown":case"selector-comment":case"selector-nesting":case"value-paren":case"value-operator":case"value-unicode-range":case"value-unknown":return u.value;case"selector-root":return yt([Sr(e,"custom-selector")?[e.findAncestor((e=>"css-atrule"===e.type)).customSelector,wt]:"",kt([",",Sr(e,["extend","custom-selector","nest"])?wt:St],e.map(r,"nodes"))]);case"selector-selector":return yt(mt(e.map(r,"nodes")));case"selector-tag":return[u.namespace?[!0===u.namespace?"":u.namespace.trim(),"|"]:"","selector-nesting"===(null==(a=e.previous)?void 0:a.type)?u.value:pn(br(e,u.value)?u.value.toLowerCase():u.value)];case"selector-id":return["#",u.value];case"selector-class":return[".",pn(cn(u.value,t))];case"selector-attribute":return["[",u.namespace?[!0===u.namespace?"":u.namespace.trim(),"|"]:"",u.attribute.trim(),u.operator??"",u.value?hn(cn(u.value.trim(),t),t):"",u.insensitive?" i":"","]"];case"selector-combinator":if("+"===u.value||">"===u.value||"~"===u.value||">>>"===u.value){let t=e.parent;return["selector-selector"===t.type&&t.nodes[0]===u?"":wt,u.value,e.isLast?"":" "]}return[u.value.trim().startsWith("(")?wt:"",pn(cn(u.value.trim(),t))||wt];case"selector-universal":return[u.namespace?[!0===u.namespace?"":u.namespace.trim(),"|"]:"",u.value];case"selector-pseudo":return[vr(u.value),Pt(u.nodes)?yt(["(",mt([Dt,kt([",",wt],e.map(r,"nodes"))]),Dt,")"]):""];case"selector-unknown":{let r=e.findAncestor((e=>"css-rule"===e.type));if(null!=r&&r.isSCSSNesterProperty)return pn(cn(vr(u.value),t));let n=e.parent;if(null!=(l=n.raws)&&l.selector){let e=tr(n),r=e+n.raws.selector.length;return t.originalText.slice(e,r).trim()}let i=e.grandparent;if("value-paren_group"===n.type&&"value-func"===(null==i?void 0:i.type)&&"selector"===i.value){let e=rr(n.open)+1,r=tr(n.close),i=t.originalText.slice(e,r).trim();return en(i)?[vt,i]:i}return u.value}case"value-value":case"value-root":return r("group");case"value-comment":return t.originalText.slice(tr(u),rr(u));case"value-comma_group":return nn(e,t,r);case"value-paren_group":return bn(e,t,r);case"value-func":return[u.value,Sr(e,"supports")&&Jr(u)?" ":"",r("group")];case"value-number":return[dn(u.value),an(u.unit)];case"value-word":return u.isColor&&u.isHex||function(e){return xr.has(e.toLowerCase())}(u.value)?u.value.toLowerCase():u.value;case"value-colon":{let{previous:t}=e;return[u.value,"string"==typeof(null==t?void 0:t.value)&&t.value.endsWith("\\")||wr(e,"url")?"":wt]}case"value-string":return It(u.raws.quote+u.value+u.raws.quote,t);case"value-atword":return["@",u.value];default:throw new Bt(u,"PostCSS")}},embed:jt,insertPragma:function(e){let{frontMatter:t,content:r}=yr(e);return(t?t.raw+"\n\n":"")+mr(r)},massageAstNode:Lt,getVisitorKeys:Wt},Sn=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}],kn={singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."}},En={};a(En,{css:()=>si,less:()=>oi,scss:()=>ai});var Cn=u(A(),1),Tn=u(L(),1),Pn=u(J(),1);var An=function(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)};function Fn(e,t,r){if(e&&"object"==typeof e){delete e.parent;for(let n in e)Fn(e[n],t,r),"type"===n&&"string"==typeof e[n]&&!e[n].startsWith(t)&&(!r||!r.test(e[n]))&&(e[n]=t+e[n])}return e}function _n(e){if(e&&"object"==typeof e){delete e.parent;for(let t in e)_n(e[t]);!Array.isArray(e)&&e.value&&!e.type&&(e.type="unknown")}return e}var In=u(re(),1).default.default;var Bn=function(e){let t;try{t=In(e)}catch{return{type:"selector-unknown",value:e}}return Fn(_n(t),"media-")},Nn=u(ke(),1);var $n=function(e){if(/\/\/|\/\*/u.test(e))return{type:"selector-unknown",value:e.trim()};let t;try{new Nn.default((e=>{t=e})).process(e)}catch{return{type:"selector-unknown",value:e}}return Fn(t,"selector-")},Qn=u(We(),1),Ln=e=>{for(;e.parent;)e=e.parent;return e};var Mn=function(e){return Ln(e).text.slice(e.group.open.sourceIndex+1,e.group.close.sourceIndex).trim()};var Rn=function(e){if(Pt(e))for(let t=e.length-1;t>0;t--)if("word"===e[t].type&&"{"===e[t].value&&"word"===e[t-1].type&&e[t-1].value.endsWith("#"))return!0;return!1};var jn=function(e){return e.some((e=>"string"===e.type||"func"===e.type&&!e.value.endsWith("\\")))};var Zn=function(e,t){return!("scss"!==t.parser||"word"!==(null==e?void 0:e.type)||!e.value.startsWith("$"))};function qn(e,t){var r;let{nodes:n}=e,i={open:null,close:null,groups:[],type:"paren_group"},s=[i],o=i,a={groups:[],type:"comma_group"},l=[a];for(let o=0;o<n.length;++o){let u=n[o];if("scss"===t.parser&&"number"===u.type&&".."===u.unit&&u.value.endsWith(".")&&(u.value=u.value.slice(0,-1),u.unit="..."),"func"===u.type&&"selector"===u.value&&(u.group.groups=[$n(Ln(e).text.slice(u.group.open.sourceIndex+1,u.group.close.sourceIndex))]),"func"===u.type&&"url"===u.value){let e=(null==(r=u.group)?void 0:r.groups)??[],n=[];for(let t=0;t<e.length;t++){let r=e[t];"comma_group"===r.type?n=[...n,...r.groups]:n.push(r)}(Rn(n)||!jn(n)&&!Zn(n[0],t))&&(u.group.groups=[Mn(u)])}if("paren"===u.type&&"("===u.value)i={open:u,close:null,groups:[],type:"paren_group"},s.push(i),a={groups:[],type:"comma_group"},l.push(a);else if("paren"===u.type&&")"===u.value){if(a.groups.length>0&&i.groups.push(a),i.close=u,1===l.length)throw new Error("Unbalanced parenthesis");l.pop(),a=Et(!1,l,-1),a.groups.push(i),s.pop(),i=Et(!1,s,-1)}else"comma"===u.type?(i.groups.push(a),a={groups:[],type:"comma_group"},l[l.length-1]=a):a.groups.push(u)}return a.groups.length>0&&i.groups.push(a),o}function Wn(e){return"paren_group"===e.type&&!e.open&&!e.close&&1===e.groups.length||"comma_group"===e.type&&1===e.groups.length?Wn(e.groups[0]):"paren_group"===e.type||"comma_group"===e.type?{...e,groups:e.groups.map(Wn)}:e}function Xn(e,t){if(e&&"object"==typeof e)for(let r in e)"parent"!==r&&(Xn(e[r],t),"nodes"===r&&(e.group=Wn(qn(e,t)),delete e[r]));return e}var Vn=function(e,t){if("less"===t.parser&&e.startsWith("~`"))return{type:"value-unknown",value:e};let r=null;try{r=new Qn.default(e,{loose:!0}).parse()}catch{return{type:"value-unknown",value:e}}return r.text=e,Fn(Xn(r,t),"value-",/^selector-/u)},Un=new Set(["import","use","forward"]);var Yn=function(e){return Un.has(e)};var zn=function(e,t){return!("scss"!==t.parser||!e.selector)&&e.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")},Gn=/(\s*)(!default).*$/u,Hn=/(\s*)(!global).*$/u;function Jn(e,t){var r,n;if(e&&"object"==typeof e){delete e.parent;for(let r in e)Jn(e[r],t);if(!e.type)return e;if(e.raws??(e.raws={}),"css-decl"===e.type&&"string"==typeof e.prop&&e.prop.startsWith("--")&&"string"==typeof e.value&&e.value.startsWith("{")){let n;if(e.value.trimEnd().endsWith("}")){let i,s,o=t.originalText.slice(0,e.source.start.offset),a="a".repeat(e.prop.length)+t.originalText.slice(e.source.start.offset+e.prop.length,e.source.end.offset),l=Ve(!1,o,/[^\n]/gu," ")+a;i="scss"===t.parser?ri:"less"===t.parser?ti:ei;try{s=i(l,{...t})}catch{}1===(null==(r=null==s?void 0:s.nodes)?void 0:r.length)&&"css-rule"===s.nodes[0].type&&(n=s.nodes[0].nodes)}return e.value=n?{type:"css-rule",nodes:n}:{type:"value-unknown",value:e.raws.value.raw},e}let i="";"string"==typeof e.selector&&(i=e.raws.selector?e.raws.selector.scss??e.raws.selector.raw:e.selector,e.raws.between&&e.raws.between.trim().length>0&&(i+=e.raws.between),e.raws.selector=i);let s="";"string"==typeof e.value&&(s=e.raws.value?e.raws.value.scss??e.raws.value.raw:e.value,s=s.trim(),e.raws.value=s);let o="";if("string"==typeof e.params&&(o=e.raws.params?e.raws.params.scss??e.raws.params.raw:e.params,e.raws.afterName&&e.raws.afterName.trim().length>0&&(o=e.raws.afterName+o),e.raws.between&&e.raws.between.trim().length>0&&(o+=e.raws.between),o=o.trim(),e.raws.params=o),i.trim().length>0)return i.startsWith("@")&&i.endsWith(":")?e:e.mixin?(e.selector=Vn(i,t),e):(zn(e,t)&&(e.isSCSSNesterProperty=!0),e.selector=$n(i),e);if(s.length>0){let r=s.match(Gn);r&&(s=s.slice(0,r.index),e.scssDefault=!0,"!default"!==r[0].trim()&&(e.raws.scssDefault=r[0]));let n=s.match(Hn);if(n&&(s=s.slice(0,n.index),e.scssGlobal=!0,"!global"!==n[0].trim()&&(e.raws.scssGlobal=n[0])),s.startsWith("progid:"))return{type:"value-unknown",value:s};e.value=Vn(s,t)}if("less"===t.parser&&"css-decl"===e.type&&s.startsWith("extend(")&&(e.extend||(e.extend=":"===e.raws.between),e.extend&&!e.selector&&(delete e.value,e.selector=$n(s.slice(7,-1)))),"css-atrule"===e.type){if("less"===t.parser){if(e.mixin){let t=e.raws.identifier+e.name+e.raws.afterName+e.raws.params;return e.selector=$n(t),delete e.params,e}if(e.function)return e}if("css"===t.parser&&"custom-selector"===e.name){let t=e.params.match(/:--\S+\s+/u)[0].trim();return e.customSelector=t,e.selector=$n(e.params.slice(t.length).trim()),delete e.params,e}if("less"===t.parser){if(e.name.includes(":")&&!e.params){e.variable=!0;let r=e.name.split(":");e.name=r[0],e.value=Vn(r.slice(1).join(":"),t)}if(!["page","nest","keyframes"].includes(e.name)&&":"===(null==(n=e.params)?void 0:n[0])){e.variable=!0;let r=e.params.slice(1);r&&(e.value=Vn(r,t)),e.raws.afterName+=":"}if(e.variable)return delete e.params,e.value||delete e.value,e}}if("css-atrule"===e.type&&o.length>0){let{name:r}=e,n=e.name.toLowerCase();return"warn"===r||"error"===r?(e.params={type:"media-unknown",value:o},e):"extend"===r||"nest"===r?(e.selector=$n(o),delete e.params,e):"at-root"===r?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(o)?e.params=Vn(o,t):(e.selector=$n(o),delete e.params),e):Yn(n)?(e.import=!0,delete e.filename,e.params=Vn(o,t),e):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(r)?(o=o.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),o=o.replace(/^(?!if)(\S+)(\s+)\(/u,"$1($2"),e.value=Vn(o,t),delete e.params,e):["media","custom-media"].includes(n)?o.includes("#{")?{type:"media-unknown",value:o}:(e.params=Bn(o),e):(e.params=o,e)}}return e}function Kn(e,t,r){let n,i=yr(t),{frontMatter:s}=i;t=i.content;try{n=e(t,{map:!1})}catch(e){let{name:t,reason:r,line:n,column:i}=e;throw"number"!=typeof n?e:An(`${t}: ${r}`,{loc:{start:{line:n,column:i}},cause:e})}return r.originalText=t,n=Jn(Fn(n,"css-"),r),Jt(n,t),s&&(s.source={startOffset:0,endOffset:s.raw.length},n.frontMatter=s),n}function ei(e,t={}){return Kn(Cn.default.default,e,t)}function ti(e,t={}){return Kn((e=>Tn.default.parse(function(e){let t,r="initial",n="initial",i=!1,s=[];for(let o=0;o<e.length;o++){let a=e[o];switch(r){case"initial":if("'"===a){r="single-quotes";continue}if('"'===a){r="double-quotes";continue}if(("u"===a||"U"===a)&&"url("===e.slice(o,o+4).toLowerCase()){r="url",o+=3;continue}if("*"===a&&"/"===e[o-1]){r="comment-block";continue}if("/"===a&&"/"===e[o-1]){r="comment-inline",t=o-1;continue}continue;case"single-quotes":if("'"===a&&"\\"!==e[o-1]&&(r=n,n="initial"),"\n"===a||"\r"===a)return e;continue;case"double-quotes":if('"'===a&&"\\"!==e[o-1]&&(r=n,n="initial"),"\n"===a||"\r"===a)return e;continue;case"url":if(")"===a&&(r="initial"),"\n"===a||"\r"===a)return e;if("'"===a){r="single-quotes",n="url";continue}if('"'===a){r="double-quotes",n="url";continue}continue;case"comment-block":"/"===a&&"*"===e[o-1]&&(r="initial");continue;case"comment-inline":('"'===a||"'"===a||"*"===a)&&(i=!0),("\n"===a||"\r"===a)&&(i&&s.push([t,o]),r="initial",i=!1);continue}}for(let[t,r]of s)e=e.slice(0,t)+Ve(!1,e.slice(t,r),/["'*]/gu," ")+e.slice(r);return e}(e))),e,t)}function ri(e,t={}){return Kn(Pn.default,e,t)}var ni,ii={astFormat:"postcss",hasPragma:function(e){return function(e){let{pragmas:t}=fr(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}(yr(e).content)},locStart:tr,locEnd:rr},si={...ii,parse:ei},oi={...ii,parse:ti},ai={...ii,parse:ri},li={postcss:Dn};return ni=Xe,l(t({},"__esModule",{value:!0}),ni)}()).default||t},3891:e=>{var t;e.exports=(t=function(){"use strict";var e=Object.create,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,o=e=>{throw TypeError(e)},a=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})},u=(e,i,o,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let l of n(i))!s.call(e,l)&&l!==o&&t(e,l,{get:()=>i[l],enumerable:!(a=r(i,l))||a.enumerable});return e},c=(r,n,s)=>(s=null!=r?e(i(r)):{},u(!n&&r&&r.__esModule?s:t(s,"default",{value:r,enumerable:!0}),r)),h=e=>u(t({},"__esModule",{value:!0}),e),p=(e,t,r)=>(((e,t,r)=>{t.has(e)||o("Cannot "+r)})(e,t,"access private method"),r),d=a(((e,t)=>{var r=new Proxy(String,{get:()=>r});t.exports=r})),f={};l(f,{default:()=>g,shouldHighlight:()=>m});var m,g,y,O,x=(y=()=>{m=()=>!1,g=String},()=>(y&&(O=y(y=0)),O)),b=a(((e,t)=>{var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r}};t.exports=n(),t.exports.createColors=n})),v=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=u,e.default=function(e,t,r,n={}){if(!a){a=!0;let e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";new Error(e).name="DeprecationWarning",console.warn(new Error(e))}return u(e,{start:{column:r=Math.max(r,0),line:t}},n)};var t=(x(),h(f)),r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var i={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=s?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(i,o,a):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}(b(),!0);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}var i,s=r.default,o=(e,t)=>r=>e(t(r));var a=!1;var l=/\r\n|[\n\r\u2028\u2029]/;function u(e,n,a={}){let u=(a.highlightCode||a.forceColor)&&(0,t.shouldHighlight)(a),c=function(e){return e?(null!=i||(i=(0,r.createColors)(!0)),i):s}(a.forceColor),h=function(e){return{gutter:e.gray,marker:o(e.red,e.bold),message:o(e.red,e.bold)}}(c),p=(e,t)=>u?e(t):t,d=e.split(l),{start:f,end:m,markerLines:g}=function(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:s=2,linesBelow:o=3}=r||{},a=n.line,l=n.column,u=i.line,c=i.column,h=Math.max(a-(s+1),0),p=Math.min(t.length,u+o);-1===a&&(h=0),-1===u&&(p=t.length);let d=u-a,f={};if(d)for(let e=0;e<=d;e++){let r=e+a;if(l)if(0===e){let e=t[r-1].length;f[r]=[l,e-l+1]}else if(e===d)f[r]=[0,c];else{let n=t[r-e].length;f[r]=[0,n]}else f[r]=!0}else f[a]=l===c?!l||[l,0]:[l,c-l];return{start:h,end:p,markerLines:f}}(n,d,a),y=n.start&&"number"==typeof n.start.column,O=String(m).length,x=(u?(0,t.default)(e,a):e).split(l,m).slice(f,m).map(((e,t)=>{let r=f+1+t,n=` ${` ${r}`.slice(-O)} |`,i=g[r],s=!g[r+1];if(i){let t="";if(Array.isArray(i)){let r=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),o=i[1]||1;t=["\n ",p(h.gutter,n.replace(/\d/g," "))," ",r,p(h.marker,"^").repeat(o)].join(""),s&&a.message&&(t+=" "+p(h.message,a.message))}return[p(h.marker,">"),p(h.gutter,n),e.length>0?` ${e}`:"",t].join("")}return` ${p(h.gutter,n)}${e.length>0?` ${e}`:""}`})).join("\n");return a.message&&!y&&(x=`${" ".repeat(O+1)}${a.message}\n${x}`),u?c.reset(x):x}})),w={};l(w,{__debug:()=>An,check:()=>Tn,doc:()=>on,format:()=>Cn,formatWithCursor:()=>En,getSupportInfo:()=>Pn,util:()=>hn,version:()=>cn});var D=(e,t,r,n)=>{if(!e||null!=t)return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)};function S(){}function k(e,t,r,n,i){for(var s,o=[];t;)o.push(t),s=t.previousComponent,delete t.previousComponent,t=s;o.reverse();for(var a=0,l=o.length,u=0,c=0;a<l;a++){var h=o[a];if(h.removed){if(h.value=e.join(n.slice(c,c+h.count)),c+=h.count,a&&o[a-1].added){var p=o[a-1];o[a-1]=o[a],o[a]=p}}else{if(!h.added&&i){var d=r.slice(u,u+h.count);d=d.map((function(e,t){var r=n[c+t];return r.length>e.length?r:e})),h.value=e.join(d)}else h.value=e.join(r.slice(u,u+h.count));u+=h.count,h.added||(c+=h.count)}}var f=o[l-1];return l>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(o[l-2].value+=f.value,o.pop()),o}S.prototype={diff:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.callback;"function"==typeof n&&(i=n,n={}),this.options=n;var s=this;function o(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,l=e.length,u=1,c=a+l;n.maxEditLength&&(c=Math.min(c,n.maxEditLength));var h=null!==(r=n.timeout)&&void 0!==r?r:1/0,p=Date.now()+h,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0);if(d[0].oldPos+1>=l&&f+1>=a)return o([{value:this.join(t),count:t.length}]);var m=-1/0,g=1/0;function y(){for(var r=Math.max(m,-u);r<=Math.min(g,u);r+=2){var n=void 0,i=d[r-1],c=d[r+1];i&&(d[r-1]=void 0);var h=!1;if(c){var p=c.oldPos-r;h=c&&0<=p&&p<a}var y=i&&i.oldPos+1<l;if(h||y){if(n=!y||h&&i.oldPos+1<c.oldPos?s.addToPath(c,!0,void 0,0):s.addToPath(i,void 0,!0,1),f=s.extractCommon(n,t,e,r),n.oldPos+1>=l&&f+1>=a)return o(k(s,n.lastComponent,t,e,s.useLongestToken));d[r]=n,n.oldPos+1>=l&&(g=Math.min(g,r-1)),f+1>=a&&(m=Math.max(m,r+1))}else d[r]=void 0}u++}if(i)!function e(){setTimeout((function(){if(u>c||Date.now()>p)return i();y()||e()}),0)}();else for(;u<=c&&Date.now()<=p;){var O=y();if(O)return O}},addToPath:function(e,t,r,n){var i=e.lastComponent;return i&&i.added===t&&i.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:i.count+1,added:t,removed:r,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:i}}},extractCommon:function(e,t,r,n){for(var i=t.length,s=r.length,o=e.oldPos,a=o-n,l=0;a+1<i&&o+1<s&&this.equals(t[a+1],r[o+1]);)a++,o++,l++;return l&&(e.lastComponent={count:l,previousComponent:e.lastComponent}),e.oldPos=o,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}},new S;var E=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,C=/\S/,T=new S;T.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!C.test(e)&&!C.test(t)},T.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&E.test(t[r])&&E.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};var P=new S;function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}P.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var n=0;n<r.length;n++){var i=r[n];n%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t},(new S).tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},(new S).tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var F=Object.prototype.toString,_=new S;function I(e,t,r,n,i){var s,o;for(t=t||[],r=r||[],n&&(e=n(i,e)),s=0;s<t.length;s+=1)if(t[s]===e)return r[s];if("[object Array]"===F.call(e)){for(t.push(e),o=new Array(e.length),r.push(o),s=0;s<e.length;s+=1)o[s]=I(e[s],t,r,n,i);return t.pop(),r.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),"object"===A(e)&&null!==e){t.push(e),o={},r.push(o);var a,l=[];for(a in e)e.hasOwnProperty(a)&&l.push(a);for(l.sort(),s=0;s<l.length;s+=1)o[a=l[s]]=I(e[a],t,r,n,a);t.pop(),r.pop()}else o=e;return o}_.useLongestToken=!0,_.tokenize=P.tokenize,_.castInput=function(e){var t=this.options,r=t.undefinedReplacement,n=t.stringifyReplacer,i=void 0===n?function(e,t){return typeof t>"u"?r:t}:n;return"string"==typeof e?e:JSON.stringify(I(e,null,null,i),i," ")},_.equals=function(e,t){return S.prototype.equals.call(_,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var B=new S;function N(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}function $(e,t){let r;switch(t){case"\n":r=/\n/gu;break;case"\r":r=/\r/gu;break;case"\r\n":r=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}B.tokenize=function(e){return e.slice()},B.join=B.removeEmpty=function(e){return e};var Q="string",L="array",M="cursor",R="indent",j="align",Z="trim",q="group",W="fill",X="if-break",V="indent-if-break",U="line-suffix",Y="line-suffix-boundary",z="line",G="label",H="break-parent",J=new Set([M,R,j,Z,q,W,X,V,U,Y,z,G,H]);var K=function(e){if("string"==typeof e)return Q;if(Array.isArray(e))return L;if(!e)return;let{type:t}=e;return J.has(t)?t:void 0};function ee(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', \nExpected it to be 'string' or 'object'.`;if(K(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if("[object Object]"!==r)return`Unexpected doc '${r}'.`;let n=(e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e))([...J].map((e=>`'${e}'`)));return`Unexpected doc.type '${e.type}'.\nExpected it to be ${n}.`}var te=class extends Error{name="InvalidDocError";constructor(e){super(ee(e)),this.doc=e}},re=te,ne={};var ie=function(e,t,r,n){let i=[e];for(;i.length>0;){let e=i.pop();if(e===ne){r(i.pop());continue}r&&i.push(e,ne);let s=K(e);if(!s)throw new re(e);if(!1!==(null==t?void 0:t(e)))switch(s){case L:case W:{let t=s===L?e:e.parts;for(let e=t.length-1;e>=0;--e)i.push(t[e]);break}case X:i.push(e.flatContents,e.breakContents);break;case q:if(n&&e.expandedStates)for(let t=e.expandedStates.length-1;t>=0;--t)i.push(e.expandedStates[t]);else i.push(e.contents);break;case j:case R:case V:case G:case U:i.push(e.contents);break;case Q:case M:case Z:case Y:case z:case H:break;default:throw new re(e)}}},se=()=>{},oe=se,ae=se;function le(e){return oe(e),{type:R,contents:e}}function ue(e,t){return oe(t),{type:j,contents:t,n:e}}function ce(e,t={}){return oe(e),ae(t.expandedStates,!0),{type:q,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function he(e){return ae(e),{type:W,parts:e}}function pe(e){return oe(e),{type:U,contents:e}}var de={type:Y},fe={type:H},me={type:Z},ge={type:z,hard:!0},ye={type:z,hard:!0,literal:!0},Oe={type:z},xe={type:z,soft:!0},be=[ge,fe],ve=[ye,fe],we={type:M};function De(e,t){oe(e),ae(t);let r=[];for(let n=0;n<t.length;n++)0!==n&&r.push(e),r.push(t[n]);return r}function Se(e,t,r){oe(e);let n=e;if(t>0){for(let e=0;e<Math.floor(t/r);++e)n=le(n);n=ue(t%r,n),n=ue(Number.NEGATIVE_INFINITY,n)}return n}function ke(e){var t;if(!e)return"";if(Array.isArray(e)){let t=[];for(let r of e)if(Array.isArray(r))t.push(...ke(r));else{let e=ke(r);""!==e&&t.push(e)}return t}return e.type===X?{...e,breakContents:ke(e.breakContents),flatContents:ke(e.flatContents)}:e.type===q?{...e,contents:ke(e.contents),expandedStates:null==(t=e.expandedStates)?void 0:t.map(ke)}:e.type===W?{type:"fill",parts:e.parts.map(ke)}:e.contents?{...e,contents:ke(e.contents)}:e}var Ee=(e,t,r)=>{if(!e||null!=t)return Array.isArray(t)||"string"==typeof t?t[r<0?t.length+r:r]:t.at(r)};var Ce=e=>!(function(e){return 12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510}(e)||function(e){return e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9800&&e<=9811||9855===e||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}(e)),Te=/[^\x20-\x7F]/u;var Pe=function(e){if(!e)return 0;if(!Te.test(e))return e.length;e=e.replace(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g," ");let t=0;for(let r of e){let e=r.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||(t+=Ce(e)?1:2)}return t};function Ae(e,t){if("string"==typeof e)return t(e);let r=new Map;return n(e);function n(e){if(r.has(e))return r.get(e);let i=function(e){switch(K(e)){case L:return t(e.map(n));case W:return t({...e,parts:e.parts.map(n)});case X:return t({...e,breakContents:n(e.breakContents),flatContents:n(e.flatContents)});case q:{let{expandedStates:r,contents:i}=e;return r?(r=r.map(n),i=r[0]):i=n(i),t({...e,contents:i,expandedStates:r})}case j:case R:case V:case G:case U:return t({...e,contents:n(e.contents)});case Q:case M:case Z:case Y:case z:case H:return t(e);default:throw new re(e)}}(e);return r.set(e,i),i}}function Fe(e,t,r){let n=r,i=!1;return ie(e,(function(e){if(i)return!1;let r=t(e);void 0!==r&&(i=!0,n=r)})),n}function _e(e){if(e.type===q&&e.break||e.type===z&&e.hard||e.type===H)return!0}function Ie(e){if(e.length>0){let t=Ee(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Be(e){return e.type!==z||e.hard?e.type===X?e.flatContents:e:e.soft?"":" "}function Ne(e){for(e=[...e];e.length>=2&&Ee(!1,e,-2).type===z&&Ee(!1,e,-1).type===H;)e.length-=2;if(e.length>0){let t=$e(Ee(!1,e,-1));e[e.length-1]=t}return e}function $e(e){switch(K(e)){case R:case V:case q:case U:case G:{let t=$e(e.contents);return{...e,contents:t}}case X:return{...e,breakContents:$e(e.breakContents),flatContents:$e(e.flatContents)};case W:return{...e,parts:Ne(e.parts)};case L:return Ne(e);case Q:return e.replace(/[\n\r]*$/u,"");case j:case M:case Z:case Y:case z:case H:break;default:throw new re(e)}return e}function Qe(e){return $e(function(e){return Ae(e,(e=>function(e){switch(K(e)){case W:if(e.parts.every((e=>""===e)))return"";break;case q:if(!(e.contents||e.id||e.break||e.expandedStates))return"";if(e.contents.type===q&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case j:case R:case V:case U:if(!e.contents)return"";break;case X:if(!e.flatContents&&!e.breakContents)return"";break;case L:{let t=[];for(let r of e){if(!r)continue;let[e,...n]=Array.isArray(r)?r:[r];"string"==typeof e&&"string"==typeof Ee(!1,t,-1)?t[t.length-1]+=e:t.push(e),t.push(...n)}return 0===t.length?"":1===t.length?t[0]:t}case Q:case M:case Z:case Y:case z:case G:case H:break;default:throw new re(e)}return e}(e)))}(e))}function Le(e){if(e.type===z)return!0}function Me(e,t){return e.type===G?{...e,contents:t(e.contents)}:t(e)}var Re=Symbol("MODE_BREAK"),je=Symbol("MODE_FLAT"),Ze=Symbol("cursor");function qe(e,t){return Xe(e,{type:"indent"},t)}function We(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||{value:"",length:0,queue:[]}:t<0?Xe(e,{type:"dedent"},r):t?"root"===t.type?{...e,root:e}:Xe(e,{type:"string"==typeof t?"stringAlign":"numberAlign",n:t},r):e}function Xe(e,t,r){let n="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t],i="",s=0,o=0,a=0;for(let e of n)switch(e.type){case"indent":c(),r.useTabs?l(1):u(r.tabWidth);break;case"stringAlign":c(),i+=e.n,s+=e.n.length;break;case"numberAlign":o+=1,a+=e.n;break;default:throw new Error(`Unexpected type '${e.type}'`)}return h(),{...e,value:i,length:s,queue:n};function l(e){i+="\t".repeat(e),s+=r.tabWidth*e}function u(e){i+=" ".repeat(e),s+=e}function c(){r.useTabs?(o>0&&l(o),p()):h()}function h(){a>0&&u(a),p()}function p(){o=0,a=0}}function Ve(e){let t=0,r=0,n=e.length;e:for(;n--;){let i=e[n];if(i!==Ze)for(let r=i.length-1;r>=0;r--){let s=i[r];if(" "!==s&&"\t"!==s){e[n]=i.slice(0,r+1);break e}t++}else r++}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(Ze);return t}function Ue(e,t,r,n,i,s){if(r===Number.POSITIVE_INFINITY)return!0;let o=t.length,a=[e],l=[];for(;r>=0;){if(0===a.length){if(0===o)return!0;a.push(t[--o]);continue}let{mode:e,doc:u}=a.pop(),c=K(u);switch(c){case Q:l.push(u),r-=Pe(u);break;case L:case W:{let t=c===L?u:u.parts;for(let r=t.length-1;r>=0;r--)a.push({mode:e,doc:t[r]});break}case R:case j:case V:case G:a.push({mode:e,doc:u.contents});break;case Z:r+=Ve(l);break;case q:{if(s&&u.break)return!1;let t=u.break?Re:e,r=u.expandedStates&&t===Re?Ee(!1,u.expandedStates,-1):u.contents;a.push({mode:t,doc:r});break}case X:{let t=(u.groupId?i[u.groupId]||je:e)===Re?u.breakContents:u.flatContents;t&&a.push({mode:e,doc:t});break}case z:if(e===Re||u.hard)return!0;u.soft||(l.push(" "),r--);break;case U:n=!0;break;case Y:if(n)return!1}}return!1}function Ye(e,t){let r={},n=t.printWidth,i=N(t.endOfLine),s=0,o=[{ind:{value:"",length:0,queue:[]},mode:Re,doc:e}],a=[],l=!1,u=[],c=0;for(function(e){let t=new Set,r=[];ie(e,(function(e){if(e.type===H&&Ie(r),e.type===q){if(r.push(e),t.has(e))return!1;t.add(e)}}),(function(e){e.type===q&&r.pop().break&&Ie(r)}),!0)}(e);o.length>0;){let{ind:e,mode:h,doc:p}=o.pop();switch(K(p)){case Q:{let e="\n"!==i?D(!1,p,"\n",i):p;a.push(e),o.length>0&&(s+=Pe(e));break}case L:for(let t=p.length-1;t>=0;t--)o.push({ind:e,mode:h,doc:p[t]});break;case M:if(c>=2)throw new Error("There are too many 'cursor' in doc.");a.push(Ze),c++;break;case R:o.push({ind:qe(e,t),mode:h,doc:p.contents});break;case j:o.push({ind:We(e,p.n,t),mode:h,doc:p.contents});break;case Z:s-=Ve(a);break;case q:switch(h){case je:if(!l){o.push({ind:e,mode:p.break?Re:je,doc:p.contents});break}case Re:{l=!1;let t={ind:e,mode:je,doc:p.contents},i=n-s,a=u.length>0;if(!p.break&&Ue(t,o,i,a,r))o.push(t);else if(p.expandedStates){let t=Ee(!1,p.expandedStates,-1);if(p.break){o.push({ind:e,mode:Re,doc:t});break}for(let n=1;n<p.expandedStates.length+1;n++){if(n>=p.expandedStates.length){o.push({ind:e,mode:Re,doc:t});break}{let t=p.expandedStates[n],s={ind:e,mode:je,doc:t};if(Ue(s,o,i,a,r)){o.push(s);break}}}}else o.push({ind:e,mode:Re,doc:p.contents});break}}p.id&&(r[p.id]=Ee(!1,o,-1).mode);break;case W:{let t=n-s,{parts:i}=p;if(0===i.length)break;let[a,l]=i,c={ind:e,mode:je,doc:a},d={ind:e,mode:Re,doc:a},f=Ue(c,[],t,u.length>0,r,!0);if(1===i.length){f?o.push(c):o.push(d);break}let m={ind:e,mode:je,doc:l},g={ind:e,mode:Re,doc:l};if(2===i.length){f?o.push(m,c):o.push(g,d);break}i.splice(0,2);let y={ind:e,mode:h,doc:he(i)},O=i[0];Ue({ind:e,mode:je,doc:[a,l,O]},[],t,u.length>0,r,!0)?o.push(y,m,c):f?o.push(y,g,c):o.push(y,g,d);break}case X:case V:{let t=p.groupId?r[p.groupId]:h;if(t===Re){let t=p.type===X?p.breakContents:p.negate?p.contents:le(p.contents);t&&o.push({ind:e,mode:h,doc:t})}if(t===je){let t=p.type===X?p.flatContents:p.negate?le(p.contents):p.contents;t&&o.push({ind:e,mode:h,doc:t})}break}case U:u.push({ind:e,mode:h,doc:p.contents});break;case Y:u.length>0&&o.push({ind:e,mode:h,doc:ge});break;case z:switch(h){case je:if(!p.hard){p.soft||(a.push(" "),s+=1);break}l=!0;case Re:if(u.length>0){o.push({ind:e,mode:h,doc:p},...u.reverse()),u.length=0;break}p.literal?e.root?(a.push(i,e.root.value),s=e.root.length):(a.push(i),s=0):(s-=Ve(a),a.push(i+e.value),s=e.length)}break;case G:o.push({ind:e,mode:h,doc:p.contents});break;case H:break;default:throw new re(p)}0===o.length&&u.length>0&&(o.push(...u.reverse()),u.length=0)}let h=a.indexOf(Ze);if(-1!==h){let e=a.indexOf(Ze,h+1),t=a.slice(0,h).join(""),r=a.slice(h+1,e).join("");return{formatted:t+r+a.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:r}}return{formatted:a.join("")}}var ze,Ge,He,Je=function(e,t,r=0){let n=0;for(let i=r;i<e.length;++i)"\t"===e[i]?n=n+t-n%t:n++;return n};ze=new WeakSet,Ge=function(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1},He=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}};var Ke=class{constructor(e){((e,t,r)=>{t.has(e)?o("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r)})(this,ze),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return Ee(!1,e,null===t?-2:-4)??null}get index(){return null===this.siblings?null:Ee(!1,this.stack,-2)}get node(){return Ee(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return null!==this.siblings}get siblings(){let{stack:e}=this,t=Ee(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return null===e?null:e[this.index+1]}get previous(){let{siblings:e}=this;return null===e?null:e[this.index-1]}get isFirst(){return 0===this.index}get isLast(){let{siblings:e,index:t}=this;return null!==e&&t===e.length-1}get isRoot(){return 1===this.stack.length}get root(){return this.stack[0]}get ancestors(){return[...p(this,ze,He).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?Ee(!1,e,-2):null}getValue(){return Ee(!1,this.stack,-1)}getNode(e=0){let t=p(this,ze,Ge).call(this,e);return-1===t?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:r}=this,{length:n}=r,i=Ee(!1,r,-1);for(let e of t)i=i[e],r.push(e,i);try{return e(this)}finally{r.length=n}}callParent(e,t=0){let r=p(this,ze,Ge).call(this,t+1),n=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){let{stack:r}=this,{length:n}=r,i=Ee(!1,r,-1);for(let e of t)i=i[e],r.push(e,i);try{for(let t=0;t<i.length;++t)r.push(t,i[t]),e(this,t,i),r.length-=2}finally{r.length=n}}map(e,...t){let r=[];return this.each(((t,n,i)=>{r[n]=e(t,n,i)}),...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let i of e){if(void 0===n)return!1;let e=null;if("number"==typeof r&&(e=r,r=this.stack[t--],n=this.stack[t--]),i&&!i(n,r,e))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(let t of p(this,ze,He).call(this))if(e(t))return t}hasAncestor(e){for(let t of p(this,ze,He).call(this))if(e(t))return!0;return!1}},et=new Proxy((()=>{}),{get:()=>et}),tt=et;var rt=function(e){return null!==e&&"object"==typeof e};function*nt(e,t){let{getVisitorKeys:r,filter:n=(()=>!0)}=t,i=e=>rt(e)&&n(e);for(let t of r(e)){let r=e[t];if(Array.isArray(r))for(let e of r)i(e)&&(yield e);else i(r)&&(yield r)}}function it(e){return(t,r,n)=>{let i=!(null==n||!n.backwards);if(!1===r)return!1;let{length:s}=t,o=r;for(;o>=0&&o<s;){let r=t.charAt(o);if(e instanceof RegExp){if(!e.test(r))return o}else if(!e.includes(r))return o;i?o--:o++}return(-1===o||o===s)&&o}}var st=it(/\s/u),ot=it(" \t"),at=it(",; \t"),lt=it(/[^\n\r]/u);var ut=function(e,t,r){let n=!(null==r||!r.backwards);if(!1===t)return!1;let i=e.charAt(t);if(n){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t};var ct=function(e,t,r={}){let n=ot(e,r.backwards?t-1:t,r);return n!==ut(e,n,r)};var ht=function(e){return Array.isArray(e)&&e.length>0},pt=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),dt=e=>Object.keys(e).filter((e=>!pt.has(e)));var ft=function(e){return e?t=>e(t,pt):dt};function mt(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}(e)}function gt(e,t){t.leading=!0,t.trailing=!1,mt(e,t)}function yt(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),mt(e,t)}function Ot(e,t){t.leading=!1,t.trailing=!0,mt(e,t)}var xt=new WeakMap;function bt(e,t){if(xt.has(e))return xt.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:i},locStart:s,locEnd:o}=t;if(!n)return[];let a=((null==r?void 0:r(e,t))??[...nt(e,{getVisitorKeys:ft(i)})]).flatMap((e=>n(e)?[e]:bt(e,t)));return a.sort(((e,t)=>s(e)-s(t)||o(e)-o(t))),xt.set(e,a),a}function vt(e,t,r,n){let i,s,{locStart:o,locEnd:a}=r,l=o(t),u=a(t),c=bt(e,r),h=0,p=c.length;for(;h<p;){let e=h+p>>1,n=c[e],d=o(n),f=a(n);if(d<=l&&u<=f)return vt(n,t,r,n);if(f<=l)i=n,h=e+1;else{if(!(u<=d))throw new Error("Comment location overlaps with node location");s=n,p=e}}if("TemplateLiteral"===(null==n?void 0:n.type)){let{quasis:e}=n,o=Ct(e,t,r);i&&Ct(e,i,r)!==o&&(i=null),s&&Ct(e,s,r)!==o&&(s=null)}return{enclosingNode:n,precedingNode:i,followingNode:s}}var wt=()=>!1;var Dt=e=>!/[\S\n\u2028\u2029]/u.test(e);function St(e,t,r,n){let{comment:i,precedingNode:s}=r[n],{locStart:o,locEnd:a}=t,l=o(i);if(s)for(let t=n-1;t>=0;t--){let{comment:n,precedingNode:i}=r[t];if(i!==s||!Dt(e.slice(a(n),l)))break;l=o(n)}return ct(e,l,{backwards:!0})}function kt(e,t,r,n){let{comment:i,followingNode:s}=r[n],{locStart:o,locEnd:a}=t,l=a(i);if(s)for(let t=n+1;t<r.length;t++){let{comment:n,followingNode:i}=r[t];if(i!==s||!Dt(e.slice(l,o(n))))break;l=a(n)}return ct(e,l)}function Et(e,t){var r,n;let i=e.length;if(0===i)return;let s,{precedingNode:o,followingNode:a}=e[0],l=t.locStart(a);for(s=i;s>0;--s){let{comment:i,precedingNode:u,followingNode:c}=e[s-1];tt.strictEqual(u,o),tt.strictEqual(c,a);let h=t.originalText.slice(t.locEnd(i),l);if(!((null==(n=(r=t.printer).isGap)?void 0:n.call(r,h,t))??/^[\s(]*$/u.test(h)))break;l=t.locStart(i)}for(let[t,{comment:r}]of e.entries())t<s?Ot(o,r):gt(a,r);for(let e of[o,a])e.comments&&e.comments.length>1&&e.comments.sort(((e,r)=>t.locStart(e)-t.locStart(r)));e.length=0}function Ct(e,t,r){let n=r.locStart(t)-1;for(let t=1;t<e.length;++t)if(n<r.locStart(e[t]))return t-1;return 0}var Tt=function(e,t){let r=t-1;return r=ot(e,r,{backwards:!0}),r=ut(e,r,{backwards:!0}),r=ot(e,r,{backwards:!0}),r!==ut(e,r,{backwards:!0})};function Pt(e,t){return e.node.printed=!0,t.printer.printComment(e,t)}function At(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if(0===(r.comments||[]).filter((e=>!n.has(e))).length)return{leading:"",trailing:""};let i,s=[],o=[];return e.each((()=>{let r=e.node;if(null!=n&&n.has(r))return;let{leading:a,trailing:l}=r;a?s.push(function(e,t){var r;let n=e.node,i=[Pt(e,t)],{printer:s,originalText:o,locStart:a,locEnd:l}=t;if(null==(r=s.isBlockComment)?void 0:r.call(s,n)){let e=ct(o,l(n))?ct(o,a(n),{backwards:!0})?be:Oe:" ";i.push(e)}else i.push(be);let u=ut(o,ot(o,l(n)));return!1!==u&&ct(o,u)&&i.push(be),i}(e,t)):l&&(i=function(e,t,r){var n;let i=e.node,s=Pt(e,t),{printer:o,originalText:a,locStart:l}=t,u=null==(n=o.isBlockComment)?void 0:n.call(o,i);if(null!=r&&r.hasLineSuffix&&(null==r||!r.isBlock)||ct(a,l(i),{backwards:!0})){let e=Tt(a,l(i));return{doc:pe([be,e?be:"",s]),isBlock:u,hasLineSuffix:!0}}return!u||null!=r&&r.hasLineSuffix?{doc:[pe([" ",s]),fe],isBlock:u,hasLineSuffix:!0}:{doc:[" ",s],isBlock:u,hasLineSuffix:!1}}(e,t,i),o.push(i.doc))}),"comments"),{leading:s,trailing:o}}var Ft=function(e){return()=>{}},_t=class extends Error{name="ConfigError"},It=class extends Error{name="UndefinedParserError"},Bt={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:"Maintain existing\n(mixed values within one file are normalised by looking at what's used after the first line)"}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:"Format code ending at a given character offset (exclusive).\nThe range will extend forwards to the end of the selected statement.",cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:"Format code starting at a given character offset.\nThe range will extend backwards to the start of the first line containing the selected statement.",cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment\nin order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function Nt({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap((e=>e.languages??[])),n=[];for(let i of function(e){let t=[];for(let[r,n]of Object.entries(e)){let e={name:r,...n};Array.isArray(e.default)&&(e.default=Ee(!1,e.default,-1).value),t.push(e)}return t}(Object.assign({},...e.map((({options:e})=>e)),Bt)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter((e=>!e.deprecated))),"parser"===i.name&&(i.choices=[...i.choices,...$t(i.choices,r,e)])),i.pluginDefaults=Object.fromEntries(e.filter((e=>{var t;return void 0!==(null==(t=e.defaultOptions)?void 0:t[i.name])})).map((e=>[e.name,e.defaultOptions[i.name]]))),n.push(i));return{languages:r,options:n}}function*$t(e,t,r){let n=new Set(e.map((e=>e.value)));for(let e of t)if(e.parsers)for(let t of e.parsers)if(!n.has(t)){n.add(t);let i=r.find((e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t))),s=e.name;null!=i&&i.name&&(s+=` (plugin: ${i.name})`),yield{value:t,description:s}}}var Qt=e=>String(e).split(/[/\\]/u).pop();function Lt(e,t){if(!t)return;let r=Qt(t).toLowerCase();return e.find((({filenames:e})=>null==e?void 0:e.some((e=>e.toLowerCase()===r))))??e.find((({extensions:e})=>null==e?void 0:e.some((e=>r.endsWith(e)))))}var Mt=function(e,t){let r=e.plugins.flatMap((e=>e.languages??[])),n=function(e,t){if(t)return e.find((({name:e})=>e.toLowerCase()===t))??e.find((({aliases:e})=>null==e?void 0:e.includes(t)))??e.find((({extensions:e})=>null==e?void 0:e.includes(`.${t}`)))}(r,t.language)??Lt(r,t.physicalFile)??Lt(r,t.file)??void t.physicalFile;return null==n?void 0:n.parsers[0]},Rt={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map((e=>Rt.value(e))).join(", ")}]`;let t=Object.keys(e);return 0===t.length?"{}":`{ ${t.map((t=>`${Rt.key(t)}: ${Rt.value(e[t])}`)).join(", ")} }`},pair:({key:e,value:t})=>Rt.value({[e]:t})},jt=c(d(),1),Zt=c(d(),1),qt=Symbol.for("vnopts.VALUE_NOT_EXIST"),Wt=Symbol.for("vnopts.VALUE_UNCHANGED"),Xt=" ".repeat(2);function Vt(e,t,r,n){return[`Invalid ${Zt.default.red(n.key(e))} value.`,`Expected ${Zt.default.blue(r)},`,`but received ${t===qt?Zt.default.gray("nothing"):Zt.default.red(n.value(t))}.`].join(" ")}function Ut({text:e,list:t},r){let n=[];return e&&n.push(`- ${Zt.default.blue(e)}`),t&&n.push([`- ${Zt.default.blue(t.title)}:`].concat(t.values.map((e=>Ut(e,r-Xt.length).replace(/^|\n/g,`$&${Xt}`)))).join("\n")),Yt(n,r)}function Yt(e,t){if(1===e.length)return e[0];let[r,n]=e,[i,s]=e.map((e=>e.split("\n",1)[0].length));return i>t&&i>s?n:r}var zt=c(d(),1),Gt=[],Ht=[];var Jt=(e,t,{descriptor:r,logger:n,schemas:i})=>{let s=[`Ignored unknown option ${zt.default.yellow(r.pair({key:e,value:t}))}.`],o=Object.keys(i).sort().find((t=>function(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,i=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;let s=0;for(;s<n&&e.charCodeAt(s)===t.charCodeAt(s);)s++;if(n-=s,i-=s,0===n)return i;let o,a,l,u,c=0,h=0;for(;c<n;)Ht[c]=e.charCodeAt(s+c),Gt[c]=++c;for(;h<i;)for(o=t.charCodeAt(s+h),l=h++,a=h,c=0;c<n;c++)u=o===Ht[c]?l:l+1,l=Gt[c],a=Gt[c]=l>a?u>a?a+1:u:u>l?l+1:u;return a}(e,t)<3));o&&s.push(`Did you mean ${zt.default.blue(r.key(o))}?`),n.warn(s.join(" "))},Kt=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];var er=class{static create(e){return function(e,t){let r=new e(t),n=Object.create(r);for(let e of Kt)e in t&&(n[e]=tr(t[e],r,er.prototype[e].length));return n}(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return Wt}};function tr(e,t,r){return"function"==typeof e?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var rr=class extends er{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},nr=class extends er{expected(){return"anything"}validate(){return!0}},ir=class extends er{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let e=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);!0!==e&&r.push(e.value)}return 0===r.length||{value:r}}deprecated(e,t){let r=[];for(let n of e){let e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);!1!==e&&r.push(...e.map((({value:e})=>({value:[e]}))))}return r}forward(e,t){let r=[];for(let n of e){let e=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...e.map(sr))}return r}redirect(e,t){let r=[],n=[];for(let i of e){let e=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in e&&r.push(e.remain),n.push(...e.redirect.map(sr))}return 0===r.length?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function sr({from:e,to:t}){return{from:[e],to:t}}var or=class extends er{expected(){return"true or false"}validate(e){return"boolean"==typeof e}};function ar(e,t){let r=Object.create(null);for(let n of e){let e=n[t];if(r[e])throw new Error(`Duplicate ${t} ${JSON.stringify(e)}`);r[e]=n}return r}function lr(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):"string"!==r?Number(e)-Number(t):e.localeCompare(t)}function ur(e){return void 0===e?{}:e}function cr(e){if("string"==typeof e)return{text:e};let{text:t,list:r}=e;return function(e,t){if(!e)throw new Error(t)}(void 0!==(t||r),"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(cr)}}:{text:t}}function hr(e,t){return!0===e||(!1===e?{value:t}:e)}function pr(e,t,r=!1){return!1!==e&&(!0===e?!!r||[{value:t}]:"value"in e?[e]:0!==e.length&&e)}function dr(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function fr(e,t){return void 0===e?[]:Array.isArray(e)?e.map((e=>dr(e,t))):[dr(e,t)]}function mr(e,t){let r=fr("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===r.length?{remain:t,redirect:r}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}var gr,yr=class extends er{constructor(e){super(e),this._choices=function(e,t){let r=new Map;for(let n of e){let e=n[t];if(r.has(e))throw new Error(`Duplicate ${t} ${JSON.stringify(e)}`);r.set(e,n)}return r}(e.choices.map((e=>e&&"object"==typeof e?e:{value:e})),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map((e=>this._choices.get(e))).filter((({hidden:e})=>!e)).map((e=>e.value)).sort(lr).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},Or=class extends er{expected(){return"a number"}validate(e,t){return"number"==typeof e}},xr=class extends Or{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&function(e){return e===Math.floor(e)}(e)}},br=class extends er{expected(){return"a string"}validate(e){return"string"==typeof e}},vr=Rt,wr=Jt,Dr=(e,t,r)=>{let{text:n,list:i}=r.normalizeExpectedResult(r.schemas[e].expected(r)),s=[];return n&&s.push(Vt(e,t,n,r.descriptor)),i&&s.push([Vt(e,t,i.title,r.descriptor)].concat(i.values.map((e=>Ut(e,r.loggerPrintWidth)))).join("\n")),Yt(s,r.loggerPrintWidth)},Sr=(e,t,{descriptor:r})=>{let n=[`${jt.default.yellow("string"==typeof e?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${jt.default.blue("string"==typeof t?r.key(t):r.pair(t))}`),n.join("; ")+"."},kr=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:n=80,descriptor:i=vr,unknown:s=wr,invalid:o=Dr,deprecated:a=Sr,missing:l=(()=>!1),required:u=(()=>!1),preprocess:c=(e=>e),postprocess:h=(()=>Wt)}=t||{};this._utils={descriptor:i,logger:r||{warn:()=>{}},loggerPrintWidth:n,schemas:ar(e,"name"),normalizeDefaultResult:ur,normalizeExpectedResult:cr,normalizeDeprecatedResult:pr,normalizeForwardResult:fr,normalizeRedirectResult:mr,normalizeValidateResult:hr},this._unknownHandler=s,this._invalidHandler=function(e){return(...t)=>{let r=e(...t);return"string"==typeof r?new Error(r):r}}(o),this._deprecatedHandler=a,this._identifyMissing=(e,t)=>!(e in t)||l(e,t),this._identifyRequired=u,this._preprocess=c,this._postprocess=h,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=function(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return!!e[r]||(e[r]=!0,!1)}}()}normalize(e){let t={},r=[this._preprocess(e,this._utils)],n=()=>{for(;0!==r.length;){let e=r.shift(),n=this._applyNormalization(e,t);r.push(...n)}};n();for(let e of Object.keys(this._utils.schemas)){let n=this._utils.schemas[e];if(!(e in t)){let t=ur(n.default(this._utils));"value"in t&&r.push({[e]:t.value})}}n();for(let e of Object.keys(this._utils.schemas)){if(!(e in t))continue;let r=this._utils.schemas[e],n=t[e],i=r.postprocess(n,this._utils);i!==Wt&&(this._applyValidation(i,e,r),t[e]=i)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let r=[],{knownKeys:n,unknownKeys:i}=this._partitionOptionKeys(e);for(let i of n){let n=this._utils.schemas[i],s=n.preprocess(e[i],this._utils);this._applyValidation(s,i,n);let o=({from:e,to:t})=>{r.push("string"==typeof t?{[t]:e}:{[t.key]:t.value})},a=({value:e,redirectTo:t})=>{let r=pr(n.deprecated(e,this._utils),s,!0);if(!1!==r)if(!0===r)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,t,this._utils));else for(let{value:e}of r){let r={key:i,value:e};if(!this._hasDeprecationWarned(r)){let n="string"==typeof t?{key:t,value:e}:t;this._utils.logger.warn(this._deprecatedHandler(r,n,this._utils))}}};fr(n.forward(s,this._utils),s).forEach(o);let l=mr(n.redirect(s,this._utils),s);if(l.redirect.forEach(o),"remain"in l){let e=l.remain;t[i]=i in t?n.overlap(t[i],e,this._utils):e,a({value:e})}for(let{from:e,to:t}of l.redirect)a({value:e,redirectTo:t})}for(let n of i){let i=e[n];this._applyUnknownHandler(n,i,t,((e,t)=>{r.push({[e]:t})}))}return r}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,qt,this._utils)}_partitionOptionKeys(e){let[t,r]=function(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}(Object.keys(e).filter((t=>!this._identifyMissing(t,e))),(e=>e in this._utils.schemas));return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){let n=hr(r.validate(e,this._utils),e);if(!0!==n)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){let i=this._unknownHandler(e,t,this._utils);if(i)for(let e of Object.keys(i)){if(this._identifyMissing(e,i))continue;let t=i[e];e in this._utils.schemas?n(e,t):r[e]=t}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==Wt){if(t.delete)for(let r of t.delete)delete e[r];if(t.override){let{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let n of r){let r=t.override[n];this._applyValidation(r,n,this._utils.schemas[n]),e[n]=r}for(let r of n){let n=t.override[r];this._applyUnknownHandler(r,n,e,((t,r)=>{let n=this._utils.schemas[t];this._applyValidation(r,t,n),e[t]=r}))}}}}};function Er(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let i,{name:s}=e,o={name:s},a={};switch(e.type){case"int":i=xr,t&&(o.preprocess=Number);break;case"string":case"path":i=br;break;case"choice":i=yr,o.choices=e.choices.map((t=>null!=t&&t.redirect?{...t,redirect:{to:{key:e.name,value:t.redirect}}}:t));break;case"boolean":i=or;break;case"flag":i=n,o.flags=r.flatMap((e=>[e.alias,e.description&&e.name,e.oppositeDescription&&`no-${e.name}`].filter(Boolean)));break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(t,r,n)=>e.exception(t)||r.validate(t,n):o.validate=(e,t,r)=>void 0===e||t.validate(e,r),e.redirect&&(a.redirect=t=>t?{to:"string"==typeof e.redirect?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(a.deprecated=!0),t&&!e.array){let e=o.preprocess||(e=>e);o.preprocess=(t,r,n)=>r.preprocess(e(Array.isArray(t)?Ee(!1,t,-1):t),n)}return e.array?ir.create({...t?{preprocess:e=>Array.isArray(e)?e:[e]}:{},...a,valueSchema:i.create(o)}):i.create({...o,...a})}var Cr=function(e,t,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:s,descriptor:o}={}){if(n){if(!s)throw new Error("'FlagSchema' option is required.");if(!o)throw new Error("'descriptor' option is required.")}else o=Rt;let a=i?Array.isArray(i)?(e,t)=>i.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,r)=>{let{_:n,...i}=r.schemas;return Jt(e,t,{...r,schemas:i})},l=function(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(nr.create({name:"_"}));for(let i of e)n.push(Er(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(rr.create({name:i.alias,sourceName:i.name}));return n}(t,{isCLI:n,FlagSchema:s}),u=new kr(l,{logger:r,unknown:a,descriptor:o}),c=!1!==r;c&&gr&&(u._hasDeprecationWarned=gr);let h=u.normalize(e);return c&&(gr=u._hasDeprecationWarned),h},Tr=(e,t,r)=>{if(!e||null!=t){if(t.findLast)return t.findLast(r);for(let e=t.length-1;e>=0;e--){let n=t[e];if(r(n,e,t))return n}}};function Pr(e,t){if(!t)throw new Error("parserName is required.");let r=Tr(!1,e,(e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t)));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new _t(n)}function Ar({plugins:e,parser:t}){return Fr(Pr(e,t),t)}function Fr(e,t){let r=e.parsers[t];return"function"==typeof r?r():r}var _r={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};var Ir=async function(e,t={}){var r;let n={...e};if(!n.parser){if(!n.filepath)throw new It("No parser and no file path given, couldn't infer a parser.");if(n.parser=Mt(n,{physicalFile:n.filepath}),!n.parser)throw new It(`No parser could be inferred for file "${n.filepath}".`)}let i=Nt({plugins:e.plugins,showDeprecated:!0}).options,s={..._r,...Object.fromEntries(i.filter((e=>void 0!==e.default)).map((e=>[e.name,e.default])))},o=Pr(n.plugins,n.parser),a=await Fr(o,n.parser);n.astFormat=a.astFormat,n.locEnd=a.locEnd,n.locStart=a.locStart;let l=null!=(r=o.printers)&&r[a.astFormat]?o:function(e,t){if(!t)throw new Error("astFormat is required.");let r=Tr(!1,e,(e=>e.printers&&Object.prototype.hasOwnProperty.call(e.printers,t)));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new _t(n)}(n.plugins,a.astFormat),u=await function(e,t){let r=e.printers[t];return"function"==typeof r?r():r}(l,a.astFormat);n.printer=u;let c={...s,...l.defaultOptions?Object.fromEntries(Object.entries(l.defaultOptions).filter((([,e])=>void 0!==e))):{}};for(let[e,t]of Object.entries(c))(null===n[e]||void 0===n[e])&&(n[e]=t);return"json"===n.parser&&(n.trailingComma="none"),Cr(n,i,{passThrough:Object.keys(_r),...t})},Br=c(v(),1);var Nr=async function(e,t){let r,n=await Ar(t),i=n.preprocess?n.preprocess(e,t):e;t.originalText=i;try{r=await n.parse(i,t,t)}catch(t){!function(e,t){let{loc:r}=e;if(r){let n=(0,Br.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+="\n"+n,e.codeFrame=n,e}throw e}(t,e)}return{text:i,ast:r}};async function $r(e,t,r,n,i){let{embeddedLanguageFormatting:s,printer:{embed:o,hasPrettierIgnore:a=(()=>!1),getVisitorKeys:l}}=r;if(!o||"auto"!==s)return;if(o.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let u=ft(o.getVisitorKeys??l),c=[];!function t(){let{node:n}=e;if(null===n||"object"!=typeof n||a(e))return;for(let r of u(n))Array.isArray(n[r])?e.each(t,r):e.call(t,r);let s=o(e,r);if(s){if("function"==typeof s)return void c.push({print:s,node:n,pathStack:[...e.stack]});i.set(n,s)}}();let h=e.stack;for(let{print:n,node:s,pathStack:o}of c)try{e.stack=o;let a=await n(p,t,e,r);a&&i.set(s,a)}catch(e){if(globalThis.PRETTIER_DEBUG)throw e}function p(e,t){return async function(e,t,r,n){let i=await Ir({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:s}=await Nr(e,i);return Qe(await n(s,i))}(e,t,r,n)}e.stack=h}var Qr=function(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:i,locEnd:s,[Symbol.for("printedComments")]:o}=t,{node:a}=e,l=i(a),u=s(a);for(let e of n)i(e)>=l&&s(e)<=u&&o.add(e);return r.slice(l,u)};async function Lr(e,t){({ast:e}=await Rr(e,t));let r=new Map,n=new Ke(e),i=Ft(t),s=new Map;await $r(n,a,t,Lr,s);let o=await Mr(n,t,a,void 0,s);return function(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let e of t){if(!e.printed&&!r.has(e))throw new Error('Comment "'+e.value.trim()+'" was not printed. Please report this error!');delete e.printed}}(t),o;function a(e,t){return void 0===e||e===n?l(t):Array.isArray(e)?n.call((()=>l(t)),...e):n.call((()=>l(t)),e)}function l(e){i(n);let o=n.node;if(null==o)return"";let l=o&&"object"==typeof o&&void 0===e;if(l&&r.has(o))return r.get(o);let u=Mr(n,t,a,e,s);return l&&r.set(o,u),u}}function Mr(e,t,r,n,i){var s;let o,{node:a}=e,{printer:l}=t;return o=null!=(s=l.hasPrettierIgnore)&&s.call(l,e)?Qr(e,t):i.has(a)?i.get(a):l.print(e,t,r,n),a===t.cursorNode&&(o=Me(o,(e=>[we,e,we]))),l.printComment&&(!l.willPrintOwnComments||!l.willPrintOwnComments(e,t))&&(o=function(e,t,r){let{leading:n,trailing:i}=At(e,r);return n||i?Me(t,(e=>[n,e,i])):t}(e,o,t)),o}async function Rr(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,function(e,t){let{comments:r}=e;if(delete e.comments,!ht(r)||!t.printer.canAttachComment)return;let n=[],{locStart:i,locEnd:s,printer:{experimentalFeatures:{avoidAstMutation:o=!1}={},handleComments:a={}},originalText:l}=t,{ownLine:u=wt,endOfLine:c=wt,remaining:h=wt}=a,p=r.map(((n,i)=>({...vt(e,n,t),comment:n,text:l,options:t,ast:e,isLastComment:r.length-1===i})));for(let[e,t]of p.entries()){let r,{comment:a,precedingNode:l,enclosingNode:d,followingNode:f,text:m,options:g,ast:y,isLastComment:O}=t;if("json"===g.parser||"json5"===g.parser||"jsonc"===g.parser||"__js_expression"===g.parser||"__ts_expression"===g.parser||"__vue_expression"===g.parser||"__vue_ts_expression"===g.parser){if(i(a)-i(y)<=0){gt(y,a);continue}if(s(a)-s(y)>=0){Ot(y,a);continue}}if(o?r=[t]:(a.enclosingNode=d,a.precedingNode=l,a.followingNode=f,r=[a,m,g,y,O]),St(m,g,p,e))a.placement="ownLine",u(...r)||(f?gt(f,a):l?Ot(l,a):yt(d||y,a));else if(kt(m,g,p,e))a.placement="endOfLine",c(...r)||(l?Ot(l,a):f?gt(f,a):yt(d||y,a));else if(a.placement="remaining",!h(...r))if(l&&f){let e=n.length;e>0&&n[e-1].followingNode!==f&&Et(n,g),n.push(t)}else l?Ot(l,a):f?gt(f,a):yt(d||y,a)}if(Et(n,t),!o)for(let e of r)delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}(e,t);let{printer:{preprocess:n}}=t;return{ast:e=n?await n(e,t):e,comments:r}}var jr=function(e,t){let{cursorOffset:r,locStart:n,locEnd:i}=t,s=ft(t.printer.getVisitorKeys),o=e=>n(e)<=r&&i(e)>=r,a=e;for(let t of function*(e,t){let r=[e];for(let e=0;e<r.length;e++){let n=r[e];for(let e of nt(n,t))yield e,r.push(e)}}(e,{getVisitorKeys:s,filter:o}))a=t;return a};var Zr=function(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let i=ft(n),s=r.ignoredProperties??new Set;return function e(t,n){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map((t=>e(t,n))).filter(Boolean);let o={},a=new Set(i(t));for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||s.has(r)||(a.has(r)?o[r]=e(t[r],t):o[r]=t[r]);let l=r(t,o,n);return null!==l?l??o:void 0}(e)},qr=(e,t,r)=>{if(!e||null!=t){if(t.findLastIndex)return t.findLastIndex(r);for(let e=t.length-1;e>=0;e--)if(r(t[e],e,t))return e;return-1}},Wr=({parser:e})=>"json"===e||"json5"===e||"jsonc"===e||"json-stringify"===e;function Xr(e){let t=qr(!1,e,(e=>"Program"!==e.type&&"File"!==e.type));return-1===t?e:e.slice(0,t+1)}function Vr(e,t,r,n,i=[],s){let{locStart:o,locEnd:a}=r,l=o(e),u=a(e);if(!(t>u||t<l||"rangeEnd"===s&&t===l||"rangeStart"===s&&t===u)){for(let o of bt(e,r)){let a=Vr(o,t,r,n,[e,...i],s);if(a)return a}if(!n||n(e,i[0]))return{node:e,parentNodes:i}}}var Ur=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),Yr=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function zr(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return function(e,t){return"DeclareExportDeclaration"!==t&&"TypeParameterDeclaration"!==e&&("Directive"===e||"TypeAlias"===e||"TSExportAssignment"===e||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}(t.type,null==r?void 0:r.type);case"json":case"json5":case"jsonc":case"json-stringify":return Ur.has(t.type);case"graphql":return Yr.has(t.kind);case"vue":return"root"!==t.tag}return!1}function Gr(e,t,r){let{rangeStart:n,rangeEnd:i,locStart:s,locEnd:o}=t;tt.ok(i>n);let a=e.slice(n,i).search(/\S/u),l=-1===a;if(!l)for(n+=a;i>n&&!/\S/u.test(e[i-1]);--i);let u,c,h=Vr(r,n,t,((e,r)=>zr(t,e,r)),[],"rangeStart"),p=l?h:Vr(r,i,t,(e=>zr(t,e)),[],"rangeEnd");if(!h||!p)return{rangeStart:0,rangeEnd:0};if(Wr(t)){let e=function(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find((e=>Ur.has(e.type)&&n.has(e)))}(h,p);u=e,c=e}else({startNode:u,endNode:c}=function(e,t,{locStart:r,locEnd:n}){let i=e.node,s=t.node;if(i===s)return{startNode:i,endNode:s};let o=r(e.node);for(let e of Xr(t.parentNodes)){if(!(r(e)>=o))break;s=e}let a=n(t.node);for(let t of Xr(e.parentNodes)){if(!(n(t)<=a))break;if(i=t,i===s)break}return{startNode:i,endNode:s}}(h,p,t));return{rangeStart:Math.min(s(u),s(c)),rangeEnd:Math.max(o(u),o(c))}}var Hr="\ufeff",Jr=Symbol("cursor");async function Kr(e,t,r=0){if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:i}=await Nr(e,t);t.cursorOffset>=0&&(t.cursorNode=jr(n,t));let s=await Lr(n,t);r>0&&(s=Se([be,s],r,t.tabWidth));let o=Ye(s,t);if(r>0){let e=o.formatted.trim();void 0!==o.cursorNodeStart&&(o.cursorNodeStart-=o.formatted.indexOf(e)),o.formatted=e+N(t.endOfLine)}let a=t[Symbol.for("comments")];if(t.cursorOffset>=0){let e,r,n,s,l;if(t.cursorNode&&o.cursorNodeText?(e=t.locStart(t.cursorNode),r=i.slice(e,t.locEnd(t.cursorNode)),n=t.cursorOffset-e,s=o.cursorNodeStart,l=o.cursorNodeText):(e=0,r=i,n=t.cursorOffset,s=0,l=o.formatted),r===l)return{formatted:o.formatted,cursorOffset:s+n,comments:a};let u=r.split("");u.splice(n,0,Jr);let c=function(e,t,r){return B.diff(e,t,r)}(u,l.split("")),h=s;for(let e of c)if(e.removed){if(e.value.includes(Jr))break}else h+=e.count;return{formatted:o.formatted,cursorOffset:h,comments:a}}return{formatted:o.formatted,cursorOffset:-1,comments:a}}function en(e,t,r){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?r:t}function tn(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=en(e,r,-1),n=en(e,n,0),i=en(e,i,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:i}}function rn(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}=tn(e,t),o=e.charAt(0)===Hr;if(o&&(e=e.slice(1),r--,n--,i--),"auto"===s&&(s=function(e){let t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"}(e)),e.includes("\r")){let t=t=>$(e.slice(0,Math.max(t,0)),"\r\n");r-=t(r),n-=t(n),i-=t(i),e=function(e){return D(!1,e,/\r\n?/gu,"\n")}(e)}return{hasBOM:o,text:e,options:tn(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s})}}async function nn(e,t){let r=await Ar(t);return!r.hasPragma||r.hasPragma(e)}async function sn(e,t){let r,{hasBOM:n,text:i,options:s}=rn(e,await Ir(t));return s.rangeStart>=s.rangeEnd&&""!==i||s.requirePragma&&!await nn(i,s)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(s.rangeStart>0||s.rangeEnd<i.length?r=await async function(e,t){let{ast:r,text:n}=await Nr(e,t),{rangeStart:i,rangeEnd:s}=Gr(n,t,r),o=n.slice(i,s),a=Math.min(i,n.lastIndexOf("\n",i)+1),l=n.slice(a,i).match(/^\s*/u)[0],u=Je(l,t.tabWidth),c=await Kr(o,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=s?t.cursorOffset-i:-1,endOfLine:"lf"},u),h=c.formatted.trimEnd(),{cursorOffset:p}=t;p>s?p+=h.length-o.length:c.cursorOffset>=0&&(p=c.cursorOffset+i);let d=n.slice(0,i)+h+n.slice(s);if("lf"!==t.endOfLine){let e=N(t.endOfLine);p>=0&&"\r\n"===e&&(p+=$(d.slice(0,p),"\n")),d=D(!1,d,"\n",e)}return{formatted:d,cursorOffset:p,comments:c.comments}}(i,s):(!s.requirePragma&&s.insertPragma&&s.printer.insertPragma&&!await nn(i,s)&&(i=s.printer.insertPragma(i)),r=await Kr(i,s)),n&&(r.formatted=Hr+r.formatted,r.cursorOffset>=0&&r.cursorOffset++),r)}var on={};l(on,{builders:()=>an,printer:()=>ln,utils:()=>un});var an={join:De,line:Oe,softline:xe,hardline:be,literalline:ve,group:ce,conditionalGroup:function(e,t){return ce(e[0],{...t,expandedStates:e})},fill:he,lineSuffix:pe,lineSuffixBoundary:de,cursor:we,breakParent:fe,ifBreak:function(e,t="",r={}){return oe(e),""!==t&&oe(t),{type:X,breakContents:e,flatContents:t,groupId:r.groupId}},trim:me,indent:le,indentIfBreak:function(e,t){return oe(e),{type:V,contents:e,groupId:t.groupId,negate:t.negate}},align:ue,addAlignmentToDoc:Se,markAsRoot:function(e){return ue({type:"root"},e)},dedentToRoot:function(e){return ue(Number.NEGATIVE_INFINITY,e)},dedent:function(e){return ue(-1,e)},hardlineWithoutBreakParent:ge,literallineWithoutBreakParent:ye,label:function(e,t){return oe(t),e?{type:G,label:e,contents:t}:t},concat:e=>e},ln={printDocToString:Ye},un={willBreak:function(e){return Fe(e,_e,!1)},traverseDoc:ie,findInDoc:Fe,mapDoc:Ae,removeLines:function(e){return Ae(e,Be)},stripTrailingHardline:Qe,replaceEndOfLine:function(e,t=ve){return Ae(e,(e=>"string"==typeof e?De(t,e.split("\n")):e))},canBreak:function(e){return Fe(e,Le,!1)}},cn="3.3.3",hn={};l(hn,{addDanglingComment:()=>yt,addLeadingComment:()=>gt,addTrailingComment:()=>Ot,getAlignmentSize:()=>Je,getIndentSize:()=>gn,getMaxContinuousCount:()=>yn,getNextNonSpaceNonCommentCharacter:()=>On,getNextNonSpaceNonCommentCharacterIndex:()=>wn,getStringWidth:()=>Pe,hasNewline:()=>ct,hasNewlineInRange:()=>xn,hasSpaces:()=>bn,isNextLineEmpty:()=>Sn,isNextLineEmptyAfterIndex:()=>mn,isPreviousLineEmpty:()=>Dn,makeString:()=>vn,skip:()=>it,skipEverythingButNewLine:()=>lt,skipInlineComment:()=>pn,skipNewline:()=>ut,skipSpaces:()=>ot,skipToLineEnd:()=>at,skipTrailingComment:()=>dn,skipWhitespace:()=>st});var pn=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2;return t};var dn=function(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?lt(e,t):t)};var fn=function(e,t){let r=null,n=t;for(;n!==r;)r=n,n=ot(e,n),n=pn(e,n),n=dn(e,n),n=ut(e,n);return n};var mn=function(e,t){let r=null,n=t;for(;n!==r;)r=n,n=at(e,n),n=pn(e,n),n=ot(e,n);return n=dn(e,n),n=ut(e,n),!1!==n&&ct(e,n)};var gn=function(e,t){let r=e.lastIndexOf("\n");return-1===r?0:Je(e.slice(r+1).match(/^[\t ]*/u)[0],t)};var yn=function(e,t){let r=e.match(new RegExp(`(${function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(t)})+`,"gu"));return null===r?0:r.reduce(((e,r)=>Math.max(e,r.length/t.length)),0)};var On=function(e,t){let r=fn(e,t);return!1===r?"":e.charAt(r)};var xn=function(e,t,r){for(let n=t;n<r;++n)if("\n"===e.charAt(n))return!0;return!1};var bn=function(e,t,r={}){return ot(e,r.backwards?t-1:t,r)!==t};var vn=function(e,t,r){let n='"'===t?"'":'"',i=D(!1,e,/\\(.)|(["'])/gsu,((e,i,s)=>i===n?i:s===t?"\\"+s:s||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(i)?i:"\\"+i)));return t+i+t};function wn(e,t){return 2===arguments.length||"number"==typeof t?fn(e,t):function(e,t,r){return fn(e,r(t))}(...arguments)}function Dn(e,t){return 2===arguments.length||"number"==typeof t?Tt(e,t):function(e,t,r){return Tt(e,r(t))}(...arguments)}function Sn(e,t){return 2===arguments.length||"number"==typeof t?mn(e,t):function(e,t,r){return mn(e,r(t))}(...arguments)}function kn(e,t=1){return async(...r)=>{let n=r[t]??{},i=n.plugins??[];return r[t]={...n,plugins:Array.isArray(i)?i:Object.values(i)},e(...r)}}var En=kn(sn);async function Cn(e,t){let{formatted:r}=await En(e,{...t,cursorOffset:-1});return r}async function Tn(e,t){return await Cn(e,t)===e}var Pn=kn(Nt,0),An={parse:kn((async function(e,t,r){let{text:n,options:i}=rn(e,await Ir(t)),s=await Nr(n,i);return r&&(r.preprocessForPrint&&(s.ast=await Rr(s.ast,i)),r.massage&&(s.ast=Zr(s.ast,i))),s})),formatAST:kn((async function(e,t){return t=await Ir(t),Ye(await Lr(e,t),t)})),formatDoc:kn((async function(e,t){let r=function(e){let t=Object.create(null),r=new Set;return function e(t,r,i){var s,o;if("string"==typeof t)return JSON.stringify(t);if(Array.isArray(t)){let r=t.map(e).filter(Boolean);return 1===r.length?r[0]:`[${r.join(", ")}]`}if(t.type===z){let e=(null==(s=null==i?void 0:i[r+1])?void 0:s.type)===H;return t.literal?e?"literalline":"literallineWithoutBreakParent":t.hard?e?"hardline":"hardlineWithoutBreakParent":t.soft?"softline":"line"}if(t.type===H)return(null==(o=null==i?void 0:i[r-1])?void 0:o.type)===z&&i[r-1].hard?void 0:"breakParent";if(t.type===Z)return"trim";if(t.type===R)return"indent("+e(t.contents)+")";if(t.type===j)return t.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+e(t.contents)+")":t.n<0?"dedent("+e(t.contents)+")":"root"===t.n.type?"markAsRoot("+e(t.contents)+")":"align("+JSON.stringify(t.n)+", "+e(t.contents)+")";if(t.type===X)return"ifBreak("+e(t.breakContents)+(t.flatContents?", "+e(t.flatContents):"")+(t.groupId?(t.flatContents?"":', ""')+`, { groupId: ${n(t.groupId)} }`:"")+")";if(t.type===V){let r=[];t.negate&&r.push("negate: true"),t.groupId&&r.push(`groupId: ${n(t.groupId)}`);let i=r.length>0?`, { ${r.join(", ")} }`:"";return`indentIfBreak(${e(t.contents)}${i})`}if(t.type===q){let r=[];t.break&&"propagated"!==t.break&&r.push("shouldBreak: true"),t.id&&r.push(`id: ${n(t.id)}`);let i=r.length>0?`, { ${r.join(", ")} }`:"";return t.expandedStates?`conditionalGroup([${t.expandedStates.map((t=>e(t))).join(",")}]${i})`:`group(${e(t.contents)}${i})`}if(t.type===W)return`fill([${t.parts.map((t=>e(t))).join(", ")}])`;if(t.type===U)return"lineSuffix("+e(t.contents)+")";if(t.type===Y)return"lineSuffixBoundary";if(t.type===G)return`label(${JSON.stringify(t.label)}, ${e(t.contents)})`;throw new Error("Unknown doc type "+t.type)}(ke(e));function n(e){if("symbol"!=typeof e)return JSON.stringify(String(e));if(e in t)return t[e];let n=e.description||"symbol";for(let i=0;;i++){let s=n+(i>0?` #${i}`:"");if(!r.has(s))return r.add(s),t[e]=`Symbol.for(${JSON.stringify(s)})`}}}(e),{formatted:n}=await sn(r,{...t,parser:"__js_expression"});return n})),printToDoc:kn((async function(e,t){t=await Ir(t);let{ast:r}=await Nr(e,t);return Lr(r,t)})),printDocToString:kn((async function(e,t){return Ye(e,await Ir(t))}))};return h(w)}()).default||t},2133:e=>{e.exports="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e)},8179:(e,t,r)=>{const{EventEmitter:n}=r(7007),i=new Error("Stream was destroyed"),s=new Error("Premature close"),o=r(2133),a=r(6080),l=134217727,u=1^l,c=16384,h=32768,p=768^l,d=134184959,f=2<<17,m=4<<17,g=8<<17,y=32<<17,O=64<<17,x=128<<17,b=512<<17,v=100532223,w=117440511,D=131088,S=4210688,k=4210702,E=16809984,C=16809999,T=1179663,P=Symbol.asyncIterator||Symbol("asyncIterator");class A{constructor(e,{highWaterMark:t=16384,map:r=null,mapWritable:n,byteLength:i,byteLengthWritable:s}={}){this.stream=e,this.queue=new a,this.highWaterMark=t,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=s||i||H,this.map=n||r,this.afterWrite=Q.bind(this),this.afterUpdateNextTick=R.bind(this)}get ended(){return 0!=(this.stream._duplexState&y)}push(e){return null!==this.map&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=g,!0):(this.stream._duplexState|=3145728,!1)}shift(){const e=this.queue.shift();return this.buffered-=this.byteLength(e),0===this.buffered&&(this.stream._duplexState&=133169151),e}end(e){"function"==typeof e?this.stream.once("finish",e):null!=e&&this.push(e),this.stream._duplexState=133693439&(this.stream._duplexState|b)}autoBatch(e,t){const r=[],n=this.stream;for(r.push(e);1179648==(n._duplexState&T);)r.push(n._writableState.shift());if(0!=(15&n._duplexState))return t(null);n._writev(r,t)}update(){const e=this.stream;e._duplexState|=f;do{for(;(e._duplexState&T)===g;){const t=this.shift();e._duplexState|=33685504,e._write(t,this.afterWrite)}0==(655360&e._duplexState)&&this.updateNonPrimary()}while(!0===this.continueUpdate());e._duplexState&=133955583}updateNonPrimary(){const e=this.stream;if((72482831&e._duplexState)===b)return e._duplexState=67108863&(131072|e._duplexState),void e._final(N.bind(this));4!=(14&e._duplexState)?1==(e._duplexState&C)&&(e._duplexState=(e._duplexState|D)&u,e._open(j.bind(this))):0==(e._duplexState&E)&&(e._duplexState|=D,e._destroy($.bind(this)))}continueUpdate(){return 0!=(this.stream._duplexState&x)&&(this.stream._duplexState&=w,!0)}updateCallback(){(17563663&this.stream._duplexState)===m?this.update():this.updateNextTick()}updateNextTick(){0==(this.stream._duplexState&x)&&(this.stream._duplexState|=x,0==(this.stream._duplexState&f)&&o(this.afterUpdateNextTick))}}class F{constructor(e,{highWaterMark:t=16384,map:r=null,mapReadable:n,byteLength:i,byteLengthReadable:s}={}){this.stream=e,this.queue=new a,this.highWaterMark=t,this.buffered=0,this.error=null,this.pipeline=null,this.byteLength=s||i||H,this.map=n||r,this.pipeTo=null,this.afterRead=L.bind(this),this.afterUpdateNextTick=M.bind(this)}get ended(){return 0!=(this.stream._duplexState&c)}pipe(e,t){if(null!==this.pipeTo)throw new Error("Can only pipe to one destination");if("function"!=typeof t&&(t=null),this.stream._duplexState|=512,this.pipeTo=e,this.pipeline=new I(this.stream,e,t),t&&this.stream.on("error",J),G(e))e._writableState.pipeline=this.pipeline,t&&e.on("error",J),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{const t=this.pipeline.done.bind(this.pipeline,e),r=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",t),e.on("close",r),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",B.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){const t=this.stream;return null===e?(this.highWaterMark=0,t._duplexState=134152127&(1024|t._duplexState),!1):(null!==this.map&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),t._duplexState=134152191&(128|t._duplexState),this.buffered<this.highWaterMark)}shift(){const e=this.queue.shift();return this.buffered-=this.byteLength(e),0===this.buffered&&(this.stream._duplexState&=134209407),e}unshift(e){const t=[null!==this.map?this.map(e):e];for(;this.buffered>0;)t.push(this.shift());for(let e=0;e<t.length-1;e++){const r=t[e];this.buffered+=this.byteLength(r),this.queue.push(r)}this.push(t[t.length-1])}read(){const e=this.stream;if(128==(16527&e._duplexState)){const t=this.shift();return null!==this.pipeTo&&!1===this.pipeTo.write(t)&&(e._duplexState&=p),0!=(2048&e._duplexState)&&e.emit("data",t),t}return null}drain(){const e=this.stream;for(;128==(16527&e._duplexState)&&0!=(768&e._duplexState);){const t=this.shift();null!==this.pipeTo&&!1===this.pipeTo.write(t)&&(e._duplexState&=p),0!=(2048&e._duplexState)&&e.emit("data",t)}}update(){const e=this.stream;e._duplexState|=32;do{for(this.drain();this.buffered<this.highWaterMark&&0==(82975&e._duplexState);)e._duplexState|=65552,e._read(this.afterRead),this.drain();4224==(12431&e._duplexState)&&(e._duplexState|=8192,e.emit("readable")),0==(80&e._duplexState)&&this.updateNonPrimary()}while(!0===this.continueUpdate());e._duplexState&=134217695}updateNonPrimary(){const e=this.stream;1024==(1167&e._duplexState)&&(e._duplexState=134216703&(e._duplexState|c),e.emit("end"),(e._duplexState&k)===S&&(e._duplexState|=4),null!==this.pipeTo&&this.pipeTo.end()),4!=(14&e._duplexState)?1==(e._duplexState&C)&&(e._duplexState=(e._duplexState|D)&u,e._open(j.bind(this))):0==(e._duplexState&E)&&(e._duplexState|=D,e._destroy($.bind(this)))}continueUpdate(){return 0!=(this.stream._duplexState&h)&&(this.stream._duplexState&=d,!0)}updateCallback(){64==(32879&this.stream._duplexState)?this.update():this.updateNextTick()}updateNextTick(){0==(this.stream._duplexState&h)&&(this.stream._duplexState|=h,0==(32&this.stream._duplexState)&&o(this.afterUpdateNextTick))}}class _{constructor(e){this.data=null,this.afterTransform=Z.bind(e),this.afterFinal=null}}class I{constructor(e,t,r){this.from=e,this.to=t,this.afterPipe=r,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,t){t&&(this.error=t),e!==this.to||(this.to=null,null===this.from)?e!==this.from||(this.from=null,null===this.to)?(null!==this.afterPipe&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null):0==(e._duplexState&c)&&this.to.destroy(this.error||new Error("Readable stream closed before ending")):0!=(this.from._duplexState&c)&&this.pipeToFinished||this.from.destroy(this.error||new Error("Writable stream closed prematurely"))}}function B(){this.stream._duplexState|=512,this.updateCallback()}function N(e){const t=this.stream;e&&t.destroy(e),0==(14&t._duplexState)&&(t._duplexState|=y,t.emit("finish")),(t._duplexState&k)===S&&(t._duplexState|=4),t._duplexState&=v,0==(t._duplexState&f)?this.update():this.updateNextTick()}function $(e){const t=this.stream;e||this.error===i||(e=this.error),e&&t.emit("error",e),t._duplexState|=8,t.emit("close");const r=t._readableState,n=t._writableState;if(null!==r&&null!==r.pipeline&&r.pipeline.done(t,e),null!==n){for(;null!==n.drains&&n.drains.length>0;)n.drains.shift().resolve(!1);null!==n.pipeline&&n.pipeline.done(t,e)}}function Q(e){const t=this.stream;e&&t.destroy(e),t._duplexState&=v,null!==this.drains&&function(e){for(let t=0;t<e.length;t++)0==--e[t].writes&&(e.shift().resolve(!0),t--)}(this.drains),2097152==(3276815&t._duplexState)&&(t._duplexState&=132120575,(t._duplexState&O)===O&&t.emit("drain")),this.updateCallback()}function L(e){e&&this.stream.destroy(e),this.stream._duplexState&=134217711,this.updateCallback()}function M(){0==(32&this.stream._duplexState)&&(this.stream._duplexState&=d,this.update())}function R(){0==(this.stream._duplexState&f)&&(this.stream._duplexState&=w,this.update())}function j(e){const t=this.stream;e&&t.destroy(e),0==(4&t._duplexState)&&(0==(17423&t._duplexState)&&(t._duplexState|=64),0==(71303183&t._duplexState)&&(t._duplexState|=m),t.emit("open")),t._duplexState&=134086639,null!==t._writableState&&t._writableState.updateCallback(),null!==t._readableState&&t._readableState.updateCallback()}function Z(e,t){null!=t&&this.push(t),this._writableState.afterWrite(e)}class q extends n{constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",K.bind(this)))}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return null!==this._readableState||void 0}get writable(){return null!==this._writableState||void 0}get destroyed(){return 0!=(8&this._duplexState)}get destroying(){return 0!=(14&this._duplexState)}destroy(e){0==(14&this._duplexState)&&(e||(e=i),this._duplexState=133693375&(4|this._duplexState),null!==this._readableState&&(this._readableState.highWaterMark=0,this._readableState.error=e),null!==this._writableState&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=2,this._predestroy(),this._duplexState&=134217725,null!==this._readableState&&this._readableState.updateNextTick(),null!==this._writableState&&this._writableState.updateNextTick())}on(e,t){return null!==this._readableState&&("data"===e&&(this._duplexState|=2304,this._readableState.updateNextTick()),"readable"===e&&(this._duplexState|=4096,this._readableState.updateNextTick())),null!==this._writableState&&"drain"===e&&(this._duplexState|=O,this._writableState.updateNextTick()),super.on(e,t)}}class W extends q{constructor(e){super(e),this._duplexState|=4194305,this._readableState=new F(this,e),e&&(e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick())}_read(e){e(null)}pipe(e,t){return this._readableState.updateNextTick(),this._readableState.pipe(e,t),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTick(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTick(),this._readableState.unshift(e)}resume(){return this._duplexState|=256,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=134217471,this}static _fromAsyncIterator(e,t){let r;const n=new W({...t,read(t){e.next().then(i).then(t.bind(null,null)).catch(t)},predestroy(){r=e.return()},destroy(e){if(!r)return e(null);r.then(e.bind(null,null)).catch(e)}});return n;function i(e){e.done?n.push(null):n.push(e.value)}}static from(e,t){if(G(r=e)&&r.readable)return e;var r;if(e[P])return this._fromAsyncIterator(e[P](),t);Array.isArray(e)||(e=void 0===e?[]:[e]);let n=0;return new W({...t,read(t){this.push(n===e.length?null:e[n++]),t(null)}})}static isBackpressured(e){return 0!=(17422&e._duplexState)||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return 0==(256&e._duplexState)}[P](){const e=this;let t=null,r=null,n=null;return this.on("error",(e=>{t=e})),this.on("readable",(function(){null!==r&&s(e.read())})),this.on("close",(function(){null!==r&&s(null)})),{[P](){return this},next:()=>new Promise((function(t,i){r=t,n=i;const o=e.read();null!==o?s(o):0!=(8&e._duplexState)&&s(null)})),return:()=>o(null),throw:e=>o(e)};function s(s){null!==n&&(t?n(t):null===s&&0==(e._duplexState&c)?n(i):r({value:s,done:null===s}),n=r=null)}function o(t){return e.destroy(t),new Promise(((r,n)=>{if(8&e._duplexState)return r({value:void 0,done:!0});e.once("close",(function(){t?n(t):r({value:void 0,done:!0})}))}))}}}class X extends W{constructor(e){super(e),this._duplexState=1,this._writableState=new A(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}}class V extends X{constructor(e){super(e),this._transformState=new _(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,t){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(null!==this._transformState.data){const t=this._transformState.data;this._transformState.data=null,e(null),this._transform(t,this._transformState.afterTransform)}else e(null)}_transform(e,t){t(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(U.bind(this))}}function U(e,t){const r=this._transformState.afterFinal;if(e)return r(e);null!=t&&this.push(t),this.push(null),r(null)}function Y(e,...t){const r=Array.isArray(e)?[...e,...t]:[e,...t],n=r.length&&"function"==typeof r[r.length-1]?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let i=r[0],o=null,a=null;for(let e=1;e<r.length;e++)o=r[e],G(i)?i.pipe(o,u):(l(i,!0,e>1,u),i.pipe(o)),i=o;if(n){let e=!1;const t=G(o)||!(!o._writableState||!o._writableState.autoDestroy);o.on("error",(e=>{null===a&&(a=e)})),o.on("finish",(()=>{e=!0,t||n(a)})),t&&o.on("close",(()=>n(a||(e?null:s))))}return o;function l(e,t,r,n){e.on("error",n),e.on("close",(function(){return t&&e._readableState&&!e._readableState.ended||r&&e._writableState&&!e._writableState.ended?n(s):void 0}))}function u(e){if(e&&!a){a=e;for(const t of r)t.destroy(e)}}}function z(e){return!!e._readableState||!!e._writableState}function G(e){return"number"==typeof e._duplexState&&z(e)}function H(e){return function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.byteLength}(e)?e.byteLength:1024}function J(){}function K(){this.destroy(new Error("Stream aborted."))}e.exports={pipeline:Y,pipelinePromise:function(...e){return new Promise(((t,r)=>Y(...e,(e=>{if(e)return r(e);t()}))))},isStream:z,isStreamx:G,getStreamError:function(e){const t=e._readableState&&e._readableState.error||e._writableState&&e._writableState.error;return t===i?null:t},Stream:q,Writable:class extends q{constructor(e){super(e),this._duplexState|=16385,this._writableState=new A(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}static isBackpressured(e){return 0!=(73400334&e._duplexState)}static drained(e){if(e.destroyed)return Promise.resolve(!1);const t=e._writableState,r=t.queue.length+(33554432&e._duplexState?1:0);return 0===r?Promise.resolve(!0):(null===t.drains&&(t.drains=[]),new Promise((e=>{t.drains.push({writes:r,resolve:e})})))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Readable:W,Duplex:X,Transform:V,PassThrough:class extends V{}}},4218:(e,t,r)=>{const n={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{e.exports=r(9468).constants||n}catch{e.exports=n}},2414:(e,t,r)=>{const{Writable:n,Readable:i,getStreamError:s}=r(8179),o=r(6080),a=r(5682),l=r(3481),u=a.alloc(0);class c{constructor(){this.buffered=0,this.shifted=0,this.queue=new o,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return 0===this._buffered?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(0===e)return u;let t=this._next(e);if(e===t.byteLength)return t;const r=[t];for(;(e-=t.byteLength)>0;)t=this._next(e),r.push(t);return a.concat(r)}_next(e){const t=this.queue.peek(),r=t.byteLength-this._offset;if(e>=r){const e=this._offset?t.subarray(this._offset,t.byteLength):t;return this.queue.shift(),this._offset=0,this.buffered-=r,this.shifted+=r,e}return this.buffered-=e,this.shifted+=e,t.subarray(this._offset,this._offset+=e)}}class h extends i{constructor(e,t,r){super(),this.header=t,this.offset=r,this._parent=e}_read(e){0===this.header.size&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(s(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=f(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}}class p extends n{constructor(e){super(e),e||(e={}),this._buffer=new c,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=d,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e)return this.destroy(e),void this._continueWrite(e);this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=l.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),0===this._header.size||"directory"===this._header.type?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=l.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=l.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=l.decodePax(e);break;case"pax-header":this._pax=null===this._paxGlobal?l.decodePax(e):Object.assign({},this._paxGlobal,l.decodePax(e))}}_consumeLongHeader(){this._longHeader=!1,this._missing=f(this._header.size);const e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(e){return this._continueWrite(e),!1}return!0}_consumeStream(){const e=this._buffer.shiftFirst(this._missing);if(null===e)return!1;this._missing-=e.byteLength;const t=this._stream.push(e);return 0===this._missing?(this._stream.push(null),t&&this._stream._detach(),t&&!1===this._locked):t}_createStream(){return new h(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;)if(this._missing>0){if(null!==this._stream){if(!1===this._consumeStream())return;continue}if(!0===this._longHeader){if(this._missing>this._buffer.buffered)break;if(!1===this._consumeLongHeader())return!1;continue}const e=this._buffer.shiftFirst(this._missing);null!==e&&(this._missing-=e.byteLength)}else{if(this._buffer.buffered<512)break;if(null!==this._stream||!1===this._consumeHeader())return}this._continueWrite(null)}_continueWrite(e){const t=this._callback;this._callback=d,t(e)}_write(e,t){this._callback=t,this._buffer.push(e),this._update()}_final(e){this._finished=0===this._missing&&0===this._buffer.buffered,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(s(this)),e(null)}[Symbol.asyncIterator](){let e=null,t=null,r=null,n=null,i=null;const s=this;return this.on("entry",(function(e,s,o){i=o,s.on("error",d),t?(t({value:s,done:!1}),t=r=null):n=s})),this.on("error",(t=>{e=t})),this.on("close",(function(){o(e),t&&(e?r(e):t({value:void 0,done:!0}),t=r=null)})),{[Symbol.asyncIterator](){return this},next:()=>new Promise(a),return:()=>l(null),throw:e=>l(e)};function o(e){if(!i)return;const t=i;i=null,t(e)}function a(i,a){return e?a(e):n?(i({value:n,done:!1}),void(n=null)):(t=i,r=a,o(null),void(s._finished&&t&&(t({value:void 0,done:!0}),t=r=null)))}function l(e){return s.destroy(e),o(e),new Promise(((t,r)=>{if(s.destroyed)return t({value:void 0,done:!0});s.once("close",(function(){e?r(e):t({value:void 0,done:!0})}))}))}}}function d(){}function f(e){return(e&=511)&&512-e}e.exports=function(e){return new p(e)}},3481:(e,t,r)=>{const n=r(5682),i="0".charCodeAt(0),s=n.from([117,115,116,97,114,0]),o=n.from([i,i]),a=n.from([117,115,116,97,114,32]),l=n.from([32,0]);function u(e,t,r,n){for(;r<n;r++)if(e[r]===t)return r;return n}function c(e){let t=256;for(let r=0;r<148;r++)t+=e[r];for(let r=156;r<512;r++)t+=e[r];return t}function h(e,t){return(e=e.toString(8)).length>t?"7777777777777777777".slice(0,t)+" ":"0000000000000000000".slice(0,t-e.length)+e+" "}function p(e,t,r){if(128&(e=e.subarray(t,t+r))[t=0])return function(e){let t;if(128===e[0])t=!0;else{if(255!==e[0])return null;t=!1}const r=[];let n;for(n=e.length-1;n>0;n--){const i=e[n];t?r.push(i):r.push(255-i)}let i=0;const s=r.length;for(n=0;n<s;n++)i+=r[n]*Math.pow(256,n);return t?i:-1*i}(e);{for(;t<e.length&&32===e[t];)t++;const r=(i=u(e,32,t,e.length),s=e.length,o=e.length,"number"!=typeof i?o:(i=~~i)>=s?s:i>=0||(i+=s)>=0?i:0);for(;t<r&&0===e[t];)t++;return r===t?0:parseInt(n.toString(e.subarray(t,r)),8)}var i,s,o}function d(e,t,r,i){return n.toString(e.subarray(t,u(e,0,t,t+r)),i)}function f(e){const t=n.byteLength(e);let r=Math.floor(Math.log(t)/Math.log(10))+1;return t+r>=Math.pow(10,r)&&r++,t+r+e}t.decodeLongPath=function(e,t){return d(e,0,e.length,t)},t.encodePax=function(e){let t="";e.name&&(t+=f(" path="+e.name+"\n")),e.linkname&&(t+=f(" linkpath="+e.linkname+"\n"));const r=e.pax;if(r)for(const e in r)t+=f(" "+e+"="+r[e]+"\n");return n.from(t)},t.decodePax=function(e){const t={};for(;e.length;){let r=0;for(;r<e.length&&32!==e[r];)r++;const i=parseInt(n.toString(e.subarray(0,r)),10);if(!i)return t;const s=n.toString(e.subarray(r+1,i-1)),o=s.indexOf("=");if(-1===o)return t;t[s.slice(0,o)]=s.slice(o+1),e=e.subarray(i)}return t},t.encode=function(e){const t=n.alloc(512);let r=e.name,a="";if(5===e.typeflag&&"/"!==r[r.length-1]&&(r+="/"),n.byteLength(r)!==r.length)return null;for(;n.byteLength(r)>100;){const e=r.indexOf("/");if(-1===e)return null;a+=a?"/"+r.slice(0,e):r.slice(0,e),r=r.slice(e+1)}return n.byteLength(r)>100||n.byteLength(a)>155||e.linkname&&n.byteLength(e.linkname)>100?null:(n.write(t,r),n.write(t,h(4095&e.mode,6),100),n.write(t,h(e.uid,6),108),n.write(t,h(e.gid,6),116),function(e,t,r){e.toString(8).length>11?function(e,t,r){t[124]=128;for(let r=11;r>0;r--)t[124+r]=255&e,e=Math.floor(e/256)}(e,t):n.write(t,h(e,11),124)}(e.size,t),n.write(t,h(e.mtime.getTime()/1e3|0,11),136),t[156]=i+function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(e.type),e.linkname&&n.write(t,e.linkname,157),n.copy(s,t,257),n.copy(o,t,263),e.uname&&n.write(t,e.uname,265),e.gname&&n.write(t,e.gname,297),n.write(t,h(e.devmajor||0,6),329),n.write(t,h(e.devminor||0,6),337),a&&n.write(t,a,345),n.write(t,h(c(t),6),148),t)},t.decode=function(e,t,r){let o=0===e[156]?0:e[156]-i,u=d(e,0,100,t);const h=p(e,100,8),f=p(e,108,8),m=p(e,116,8),g=p(e,124,12),y=p(e,136,12),O=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(o),x=0===e[157]?null:d(e,157,100,t),b=d(e,265,32),v=d(e,297,32),w=p(e,329,8),D=p(e,337,8),S=c(e);if(256===S)return null;if(S!==p(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(function(e){return n.equals(s,e.subarray(257,263))}(e))e[345]&&(u=d(e,345,155,t)+"/"+u);else if(function(e){return n.equals(a,e.subarray(257,263))&&n.equals(l,e.subarray(263,265))}(e));else if(!r)throw new Error("Invalid tar header: unknown format.");return 0===o&&u&&"/"===u[u.length-1]&&(o=5),{name:u,mode:h,uid:f,gid:m,size:g,mtime:new Date(1e3*y),type:O,linkname:x,uname:b,gname:v,devmajor:w,devminor:D,pax:null}}},4231:(e,t,r)=>{t.extract=r(2414),t.pack=r(446)},446:(e,t,r)=>{const{Readable:n,Writable:i,getStreamError:s}=r(8179),o=r(5682),a=r(4218),l=r(3481),u=o.alloc(1024);class c extends i{constructor(e,t,r){super({mapWritable:f,eagerOpen:!0}),this.written=0,this.header=t,this._callback=r,this._linkname=null,this._isLinkname="symlink"===t.type&&!t.linkname,this._isVoid="file"!==t.type&&"contiguous-file"!==t.type,this._finished=!1,this._pack=e,this._openCallback=null,null===this._pack._stream?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(null===this._callback)return;const t=this._callback;this._callback=null,t(e)}_continueOpen(){null===this._pack._stream&&(this._pack._stream=this);const e=this._openCallback;if(this._openCallback=null,null!==e){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,t){return this._isLinkname?(this._linkname=this._linkname?o.concat([this._linkname,e]):e,t(null)):this._isVoid?e.byteLength>0?t(new Error("No body allowed for this entry")):t():(this.written+=e.byteLength,this._pack.push(e)?t():void(this._pack._drain=t))}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?o.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),d(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return s(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}}class h extends n{constructor(e){super(e),this._drain=p,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,t,r){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");"function"==typeof t&&(r=t,t=null),r||(r=p),e.size&&"symlink"!==e.type||(e.size=0),e.type||(e.type=function(e){switch(e&a.S_IFMT){case a.S_IFBLK:return"block-device";case a.S_IFCHR:return"character-device";case a.S_IFDIR:return"directory";case a.S_IFIFO:return"fifo";case a.S_IFLNK:return"symlink"}return"file"}(e.mode)),e.mode||(e.mode="directory"===e.type?493:420),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),"string"==typeof t&&(t=o.from(t));const n=new c(this,e,r);return o.isBuffer(t)?(e.size=t.byteLength,n.write(t),n.end(),n):(n._isVoid,n)}finalize(){this._stream||this._pending.length>0?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(u),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){const t=l.encode(e);if(t)return void this.push(t)}this._encodePax(e)}_encodePax(e){const t=l.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(l.encode(r)),this.push(t),d(this,t.byteLength),r.size=e.size,r.type=e.type,this.push(l.encode(r))}_doDrain(){const e=this._drain;this._drain=p,e()}_predestroy(){const e=s(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){const t=this._pending.shift();t.destroy(e),t._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}}function p(){}function d(e,t){(t&=511)&&e.push(u.subarray(0,512-t))}function f(e){return o.isBuffer(e)?e:o.from(e)}e.exports=function(e){return new h(e)}},7599:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}l((n=n.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(r(4231)),o=r(8287),a=r(3891),l=[r(3181),r(6833),r(940),r(6712)];class u{constructor(e){this.data=e}getFiles(){return Object.keys(this.data)}getFileContent(e,t){return n(this,void 0,void 0,(function*(){const r=this.data[e];if(t)try{return yield(0,a.format)(r,{filepath:e,plugins:l,semi:!0,singleQuote:!0})}catch(e){console.warn("Pretty-print error: ",e)}return r}))}static fromReader(e){return n(this,void 0,void 0,(function*(){const t=s.default.extract({defaultEncoding:"hex"}),r=new Promise(((e,r)=>{const n={};t.on("entry",((e,t,r)=>{if("directory"===e.type)return void r();const i=new TextDecoder,s=[];t.on("data",(e=>{s.push(i.decode(e))})),t.on("end",(()=>{n[e.name]=s.join(""),r()}))})),t.on("finish",(()=>{e(n)})),t.on("error",((...e)=>{r(...e)}))}));let n;for(;!(n=yield e.read()).done;)t.write(o.Buffer.from(n.value));return t.end(),new u(yield r)}))}static fromURL(e){var t;return n(this,void 0,void 0,(function*(){const r=yield fetch(e);if(!r.ok)throw new Error("Fetch error: "+r.statusText);const n=null===(t=r.body)||void 0===t?void 0:t.getReader();if(!n)throw new Error("fetchResult.body is undefined");return this.fromReader(n)}))}static fromBlob(e){return n(this,void 0,void 0,(function*(){return this.fromReader(e.stream().getReader())}))}}t.default=u},8218:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(70),i=r(7359),s=r(2533),o=n.EditorView.theme({"&":{color:"var(--cm-primary-text-color)",backgroundColor:"var(--cm-primary-background-color)",border:"1px solid var(--cm-border-color)",borderRadius:"0.8em",overflow:"hidden",width:"100%",fontFamily:'Menlo, Monaco, Consolas, "Courier New", monospace',fontSize:"0.9em"},".cm-content":{caretColor:"var(--cm-caret-color)"},"&.cm-focused .cm-cursor":{borderLeftColor:"var(--cm-caret-color)"},"& .cm-selectionLayer .cm-selectionBackground, &.cm-focused .cm-selectionLayer .cm-selectionBackground, ::selection":{background:"var(--cm-selection-background)",backgroundColor:"var(--cm-selection-background) !important"},".cm-activeLine":{color:"var(--cm-primary-text-color)",backgroundColor:"transparent"},".cm-gutters":{backgroundColor:"var(--cm-secondary-background-color)",color:"var(--cm-secondary-text-color)",border:"none"},".cm-activeLineGutter":{backgroundColor:"var(--cm-secondary-background-color)",color:"var(--cm-secondary-text-color)",fontWeight:"bold"},".cm-tooltip":{backgroundColor:"var(--cm-secondary-background-color)",color:"var(--cm-secondary-text-color)",boxShadow:"2px 0px 0px var(--cm-shadow-color)"},".cm-matchingBracket":{display:"inline-block",transform:"scale(1.1)",fontWeight:"bold"}}),a=s.HighlightStyle.define([{tag:i.tags.keyword,color:"var(--cm-keyword-color)"},{tag:i.tags.comment,color:"var(--cm-comment-color)",fontStyle:"italic"},{tag:i.tags.string,color:"var(--cm-string-color)"},{tag:i.tags.paren,color:"var(--cm-paren-color)"},{tag:i.tags.variableName,color:"var(--cm-varname-color)"},{tag:i.tags.number,color:"var(--cm-number-color)",fontWeight:"bold"},{tag:i.tags.integer,color:"var(--cm-number-color)"},{tag:i.tags.float,color:"var(--cm-number-color)"},{tag:i.tags.tagName,color:"var(--cm-keyword-color)"}]),l=[o,(0,s.syntaxHighlighting)(a)];t.default=l},1485:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}l((n=n.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(r(791)),o=i(r(6858));window.addEventListener("DOMContentLoaded",(()=>n(void 0,void 0,void 0,(function*(){yield n(void 0,void 0,void 0,(function*(){const e=yield(0,s.default)(),t=document.querySelector("#view-source-output"),r=/[?]plugin=([^,?/#]+)/.exec(location.href);if(!r)return void(t.innerText="Invalid URL. Should end with ?plugin=some.plugin.id");const i=r[1],a=e.pluginFromId(i);if(a){for(const e of document.querySelectorAll(".plugin-id"))e.innerText=i;for(const e of document.querySelectorAll(".plugin-version"))e.innerText=a.version;for(const e of document.querySelectorAll(".plugin-name"))e.innerText=a.name;for(const t of document.querySelectorAll(".plugin-npm-link")){const r=document.createElement("a");r.href=e.getNPMLink(a);const n=document.createElement("i");n.classList.add("fa-brands","fa-npm"),n.setAttribute("aria-label","NPM"),r.replaceChildren(n,document.createTextNode(` ${a._npm_package_name}`)),t.replaceChildren(r)}for(const t of document.querySelectorAll("a.plugin-jpl-link"))t.href=e.getReleaseDownloadLink(a);((e,t)=>{e.ondragover=e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move")};const r=document.querySelector(".plugin-info"),i=document.querySelector(".plugin-info-alert");e.ondrop=s=>n(void 0,void 0,void 0,(function*(){var n;if(s.preventDefault(),s.dataTransfer)for(const a of s.dataTransfer.files)if(a.name.endsWith(".jpl"))return null===(n=yield t)||void 0===n||n.remove(),r&&(r.innerText=`Loaded from file: ${a.name}`),null==i||i.remove(),void(t=(0,o.default)(e,a))}))})(t,(0,o.default)(t,e.getCorsDownloadLink(a)))}else t.innerText="Invalid plugin ID "+i}))}))))},6858:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}l((n=n.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(r(7599)),o=r(9064),a=r(70),l=r(1653),u=r(2697),c=r(6239),h=i(r(8218)),p={css:(0,u.css)(),scss:(0,u.css)(),js:(0,l.javascript)(),mjs:(0,l.javascript)(),cjs:(0,l.javascript)(),jsx:(0,l.javascript)({jsx:!0}),ts:(0,l.javascript)({typescript:!0}),tsx:(0,l.javascript)({typescript:!0,jsx:!0}),json:(0,l.javascript)(),html:(0,c.html)(),xml:(0,c.html)(),svg:(0,c.html)()},{Tab:d}=window.bootstrap;t.default=(e,t)=>n(void 0,void 0,void 0,(function*(){const r=e.querySelector("#files-nav"),i=e.querySelector("#source-view"),l=e.querySelector("#loading-message"),u=e.querySelector("#pretty-print-checkbox");let c;try{c="string"==typeof t?yield s.default.fromURL(t):yield s.default.fromBlob(t)}catch(e){const t=`Error: ${e}`;return t.includes("tar header")?l.innerText=`${t}. Note: Re-loading the page might fix this.`:l.innerText=t,void l.classList.add("alert","alert-warning")}const f=[a.basicSetup,h.default,a.EditorView.lineWrapping,o.EditorState.readOnly.of(!0)],m=new a.EditorView({parent:i,extensions:f});let g=null;const y=[...c.getFiles()];y.sort(((e,t)=>{if(e===t)return 0;const r="manifest.json";return e===r?-1:t===r||e>t?1:-1}));const O=new Map;r.replaceChildren();for(const e of y){const t=document.createElement("li");t.classList.add("nav-item");const i=document.createElement("button");i.classList.add("nav-link"),t.appendChild(i),r.appendChild(t),i.innerText=e;const s=new d(i);null!=g||(g=s),O.set(e,s);const a=()=>n(void 0,void 0,void 0,(function*(){const t=e.match(/\.(\w+)$/),r=t?t[1]:"",n=[];r in p&&n.push(p[r]),m.setState(o.EditorState.create({doc:yield c.getFileContent(e,u.checked),extensions:[f,n]}))}));i.addEventListener("shown.bs.tab",(()=>n(void 0,void 0,void 0,(function*(){a(),u.onchange=()=>{a()}})))),i.onclick=()=>n(void 0,void 0,void 0,(function*(){location.hash=encodeURIComponent(e),s.show()}))}const x=()=>{var e,t;const r=decodeURIComponent((null!==(e=location.hash)&&void 0!==e?e:"").substring(1));r&&O.has(r)?null===(t=O.get(r))||void 0===t||t.show():null==g||g.show()};return x(),window.addEventListener("hashchange",x),l.style.display="none",{remove(){l.style.display="",i.replaceChildren(),window.removeEventListener("hashchange",x)}}}))},6323:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}l((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e,t){this.rawPlugins=e,this.siteRoot=t,this.allPlugins=Object.values(e)}isRecommended(e){var t;return e in this.rawPlugins&&null!==(t=this.rawPlugins[e]._recommended)&&void 0!==t&&t}pluginFromId(e){return e in this.rawPlugins?this.rawPlugins[e]:null}getLinkToPlugin(e){return this.siteRoot+"/plugin/"+e.id}getCorsDownloadLink(e){return`https://raw.githubusercontent.com/joplin/plugins/master/plugins/${e.id}/plugin.jpl`}getReleaseDownloadLink(e){var t;return`https://github.com/joplin/plugins/releases/download/plugins/${e.id}@${null!==(t=e.version)&&void 0!==t?t:0}.jpl`}getNPMLink(e){return`https://www.npmjs.com/package/${e._npm_package_name}`}getWeeksSinceUpdated(e){return((new Date).getTime()-new Date(e.timeModified).getTime())/1e3/60/60/24/7}search(e,t){const r=(()=>{var r,n;let i=e;const s=(e,t)=>{const r=new RegExp(`^(.*\\s+|)${e}[=:]\\s*(${t})(.*)$`),n=i.match(r);let s=null;if(n){const e=n[1];s=n[2];const t=n[3];i=e+t}return s},o=e=>{let t=s(e,'"[^"]+"|[^" \\t;,]+');return t&&t.match(/^["].*["]$/)&&(t=t.replace(/^"/g,"").replace(/"$/g,"").replace(/[&]quo;/g,'"')),t},a=null!==(r=(e=>{const t=s("max-results","\\d+");return t?parseInt(t):null})())&&void 0!==r?r:t;return{onlyShowFromAuthor:o("author"),onlyShowForMaintainers:null===(n=o("maintainer"))||void 0===n?void 0:n.split(/\sOR\s/),maxResults:a,newQuery:i}})(),n=r.maxResults;e=r.newQuery.toLowerCase().trim();const i=(e,t)=>t.includes(e),s=t=>{if(t=t.toLowerCase(),i(e,t))return{quality:2};const r=((e,t)=>{const r=e.split(/\s+/);let n=0;for(const e of r)n+=i(e,t)?1:0;return n})(e,t);return r>0?{quality:r/(e.split(/\s+/).length||1)}:null},o=t=>{const r=s(t.name),n=s(t.description),i=s(t.author),o=e===t.id;if(!(r||n||o||i))return 0;let a=0;o&&(a+=10),r&&(a+=10*r.quality),t.name.toLowerCase()===e&&(a+=5),i&&(a++,t.author.toLowerCase()===e&&(a+=20)),n&&(a+=2*n.quality),this.isRecommended(t.id)&&(a*=2);const l=this.getWeeksSinceUpdated(t);return l<=12?a*=1.15:isNaN(l)||(a+=1/l),a},a=this.allPlugins.filter((e=>!r.onlyShowFromAuthor||e.author===r.onlyShowFromAuthor)).filter((e=>{if(!r.onlyShowForMaintainers)return!0;for(const t of r.onlyShowForMaintainers)if(e._npm_package_maintainers.includes(t))return!0;return!1})).filter((e=>o(e)>0));return a.sort(((e,t)=>o(t)-o(e))),a.slice(0,Math.min(n,a.length))}static fromURL(e,t){return r(this,void 0,void 0,(function*(){const r=yield fetch(e),i=yield r.json();return new n(i,t)}))}static fromData(e){return new n(e.plugins.raw,e.config.site)}}t.default=n},791:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}l((n=n.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(r(6323)),o=document.querySelector("#site-root").innerText;t.default=()=>n(void 0,void 0,void 0,(function*(){var e;const t=window;return null!==(e=t.pluginDataManager)&&void 0!==e||(t.pluginDataManager=yield s.default.fromURL(`${o}/pluginData.json`,o)),t.pluginDataManager}))},9468:()=>{},591:(e,t,r)=>{"use strict";var n=r(9064),i=r(1506),s=r(2533);class o{constructor(e,t,r){this.state=e,this.pos=t,this.explicit=r,this.abortListeners=[]}tokenBefore(e){let t=s.syntaxTree(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),r=Math.max(t.from,this.pos-250),n=t.text.slice(r-t.from,this.pos-t.from),i=n.search(h(e,!1));return i<0?null:{from:r+i,to:this.pos,text:n.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function a(e){let t=Object.keys(e).join(""),r=/\w/.test(t);return r&&(t=t.replace(/\w/g,"")),`[${r?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function l(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[r,n]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),r=Object.create(null);for(let{label:n}of e){t[n[0]]=!0;for(let e=1;e<n.length;e++)r[n[e]]=!0}let n=a(t)+a(r)+"*$";return[new RegExp("^"+n),new RegExp(n)]}(t);return e=>{let i=e.matchBefore(n);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:r}:null}}class u{constructor(e,t,r,n){this.completion=e,this.source=t,this.match=r,this.score=n}}function c(e){return e.selection.main.from}function h(e,t){var r;let{source:n}=e,i=t&&"^"!=n[0],s="$"!=n[n.length-1];return i||s?new RegExp(`${i?"^":""}(?:${n})${s?"$":""}`,null!==(r=e.flags)&&void 0!==r?r:e.ignoreCase?"i":""):e}const p=n.Annotation.define();function d(e,t,r,i){let{main:s}=e.selection,o=r-s.from,a=i-s.from;return Object.assign(Object.assign({},e.changeByRange((l=>l!=s&&r!=i&&e.sliceDoc(l.from+o,l.from+a)!=e.sliceDoc(r,i)?{range:l}:{changes:{from:l.from+o,to:i==s.from?l.to:l.from+a,insert:t},range:n.EditorSelection.cursor(l.from+o+t.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}const f=new WeakMap;function m(e){if(!Array.isArray(e))return e;let t=f.get(e);return t||f.set(e,t=l(e)),t}const g=n.StateEffect.define(),y=n.StateEffect.define();class O{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let r=n.codePointAt(e,t),i=n.codePointSize(r);this.chars.push(r);let s=e.slice(t,t+i),o=s.toUpperCase();this.folded.push(n.codePointAt(o==s?s.toLowerCase():o,0)),t+=i}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,!0}match(e){if(0==this.pattern.length)return this.ret(-100,[]);if(e.length<this.pattern.length)return!1;let{chars:t,folded:r,any:i,precise:s,byWord:o}=this;if(1==t.length){let i=n.codePointAt(e,0),s=n.codePointSize(i),o=s==e.length?0:-100;if(i==t[0]);else{if(i!=r[0])return!1;o+=-200}return this.ret(o,[0,s])}let a=e.indexOf(this.pattern);if(0==a)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=t.length,u=0;if(a<0){for(let s=0,o=Math.min(e.length,200);s<o&&u<l;){let o=n.codePointAt(e,s);o!=t[u]&&o!=r[u]||(i[u++]=s),s+=n.codePointSize(o)}if(u<l)return!1}let c=0,h=0,p=!1,d=0,f=-1,m=-1,g=/[a-z]/.test(e),y=!0;for(let i=0,u=Math.min(e.length,200),O=0;i<u&&h<l;){let u=n.codePointAt(e,i);a<0&&(c<l&&u==t[c]&&(s[c++]=i),d<l&&(u==t[d]||u==r[d]?(0==d&&(f=i),m=i+1,d++):d=0));let x,b=u<255?u>=48&&u<=57||u>=97&&u<=122?2:u>=65&&u<=90?1:0:(x=n.fromCodePoint(u))!=x.toLowerCase()?1:x!=x.toUpperCase()?2:0;(!i||1==b&&g||0==O&&0!=b)&&(t[h]==u||r[h]==u&&(p=!0)?o[h++]=i:o.length&&(y=!1)),O=b,i+=n.codePointSize(u)}return h==l&&0==o[0]&&y?this.result((p?-200:0)-100,o,e):d==l&&0==f?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):d==l?this.ret(-900-e.length,[f,m]):h==l?this.result((p?-200:0)-100-700+(y?0:-1100),o,e):2!=t.length&&this.result((i[0]?-700:0)-200-1100,i,e)}result(e,t,r){let i=[],s=0;for(let e of t){let t=e+(this.astral?n.codePointSize(n.codePointAt(r,e)):1);s&&i[s-1]==e?i[s-1]=t:(i[s++]=e,i[s++]=t)}return this.ret(e-r.length,i)}}const x=n.Facet.define({combine:e=>n.combineConfig(e,{activateOnTyping:!0,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:v,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>r=>b(e(r),t(r)),optionClass:(e,t)=>r=>b(e(r),t(r)),addToOptions:(e,t)=>e.concat(t)})});function b(e,t){return e?t?e+" "+t:e:t}function v(e,t,r,n,s,o){let a,l,u=e.textDirection==i.Direction.RTL,c=u,h=!1,p="top",d=t.left-s.left,f=s.right-t.right,m=n.right-n.left,g=n.bottom-n.top;if(c&&d<Math.min(m,f)?c=!1:!c&&f<Math.min(m,d)&&(c=!0),m<=(c?d:f))a=Math.max(s.top,Math.min(r.top,s.bottom-g))-t.top,l=Math.min(400,c?d:f);else{h=!0,l=Math.min(400,(u?t.right:s.right-t.left)-30);let e=s.bottom-t.bottom;e>=g||e>t.top?a=r.bottom-t.top:(p="bottom",a=t.bottom-r.top)}return{style:`${p}: ${a/((t.bottom-t.top)/o.offsetHeight)}px; max-width: ${l/((t.right-t.left)/o.offsetWidth)}px`,class:"cm-completionInfo-"+(h?u?"left-narrow":"right-narrow":c?"left":"right")}}function w(e,t,r){if(e<=r)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/r);return{from:e*r,to:(e+1)*r}}let n=Math.floor((e-t)/r);return{from:e-(n+1)*r,to:e-n*r}}class D{constructor(e,t,r){this.view=e,this.stateField=t,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let n=e.state.field(t),{options:i,selected:s}=n.open,o=e.state.facet(x);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,r,n){let i=document.createElement("span");i.className="cm-completionLabel";let s=e.displayLabel||e.label,o=0;for(let e=0;e<n.length;){let t=n[e++],r=n[e++];t>o&&i.appendChild(document.createTextNode(s.slice(o,t)));let a=i.appendChild(document.createElement("span"));a.appendChild(document.createTextNode(s.slice(t,r))),a.className="cm-completionMatchedText",o=r}return o<s.length&&i.appendChild(document.createTextNode(s.slice(o))),i},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort(((e,t)=>e.position-t.position)).map((e=>e.render))}(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=w(i.length,s,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",(r=>{let{options:n}=e.state.field(t).open;for(let t,i=r.target;i&&i!=this.dom;i=i.parentNode)if("LI"==i.nodeName&&(t=/-(\d+)$/.exec(i.id))&&+t[1]<n.length)return this.applyCompletion(e,n[+t[1]]),void r.preventDefault()})),this.dom.addEventListener("focusout",(t=>{let r=e.state.field(this.stateField,!1);r&&r.tooltip&&e.state.facet(x).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:y.of(null)})})),this.showOptions(i,n.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(e){var t;let r=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),r!=n){let{options:i,selected:s,disabled:o}=r.open;n.open&&n.open.options==i||(this.range=w(i.length,s,e.state.facet(x).maxRenderedOptions),this.showOptions(i,r.id)),this.updateSel(),o!=(null===(t=n.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!o)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=w(t.options.length,t.selected,this.view.state.facet(x).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:r}=t.options[t.selected],{info:n}=r;if(!n)return;let s="string"==typeof n?document.createTextNode(n):n(r);if(!s)return;"then"in s?s.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,r)})).catch((e=>i.logException(this.view.state,e,"completion info"))):this.addInfoPane(s,r)}}addInfoPane(e,t){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",null!=e.nodeType)r.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:n}=e;r.appendChild(t),this.infoDestroy=n||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let r=this.list.firstChild,n=this.range.from;r;r=r.nextSibling,n++)"LI"==r.nodeName&&r.id?n==e?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),t=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected"):n--;return t&&function(e,t){let r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),i=r.height/e.offsetHeight;n.top<r.top?e.scrollTop-=(r.top-n.top)/i:n.bottom>r.bottom&&(e.scrollTop+=(n.bottom-r.bottom)/i)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),n=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}return n.top>Math.min(i.bottom,t.bottom)-10||n.bottom<Math.max(i.top,t.top)+10?null:this.view.state.facet(x).positionInfo(this.view,t,n,r,i,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,r){const n=document.createElement("ul");n.id=t,n.setAttribute("role","listbox"),n.setAttribute("aria-expanded","true"),n.setAttribute("aria-label",this.view.state.phrase("Completions"));let i=null;for(let s=r.from;s<r.to;s++){let{completion:o,match:a}=e[s],{section:l}=o;if(l){let e="string"==typeof l?l:l.name;e!=i&&(s>r.from||0==r.from)&&(i=e,"string"!=typeof l&&l.header?n.appendChild(l.header(l)):n.appendChild(document.createElement("completion-section")).textContent=e)}const u=n.appendChild(document.createElement("li"));u.id=t+"-"+s,u.setAttribute("role","option");let c=this.optionClass(o);c&&(u.className=c);for(let e of this.optionContent){let t=e(o,this.view.state,this.view,a);t&&u.appendChild(t)}}return r.from&&n.classList.add("cm-completionListIncompleteTop"),r.to<e.length&&n.classList.add("cm-completionListIncompleteBottom"),n}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function S(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class k{constructor(e,t,r,n,i,s){this.options=e,this.attrs=t,this.tooltip=r,this.timestamp=n,this.selected=i,this.disabled=s}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new k(this.options,T(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,r,n,i){let s=function(e,t){let r=[],n=null,i=e=>{r.push(e);let{section:t}=e.completion;if(t){n||(n=[]);let e="string"==typeof t?t:t.name;n.some((t=>t.name==e))||n.push("string"==typeof t?{name:e}:t)}};for(let n of e)if(n.hasResult()){let e=n.result.getMatch;if(!1===n.result.filter)for(let t of n.result.options)i(new u(t,n.source,e?e(t):[],1e9-r.length));else{let r=new O(t.sliceDoc(n.from,n.to));for(let t of n.result.options)if(r.match(t.label)){let s=t.displayLabel?e?e(t,r.matched):[]:r.matched;i(new u(t,n.source,s,r.score+(t.boost||0)))}}}if(n){let e=Object.create(null),t=0,i=(e,t)=>{var r,n;return(null!==(r=e.rank)&&void 0!==r?r:1e9)-(null!==(n=t.rank)&&void 0!==n?n:1e9)||(e.name<t.name?-1:1)};for(let r of n.sort(i))t-=1e5,e[r.name]=t;for(let t of r){let{section:r}=t.completion;r&&(t.score+=e["string"==typeof r?r:r.name])}}let s=[],o=null,a=t.facet(x).compareCompletions;for(let e of r.sort(((e,t)=>t.score-e.score||a(e.completion,t.completion)))){let t=e.completion;!o||o.label!=t.label||o.detail!=t.detail||null!=o.type&&null!=t.type&&o.type!=t.type||o.apply!=t.apply||o.boost!=t.boost?s.push(e):S(e.completion)>S(o)&&(s[s.length-1]=e),o=e.completion}return s}(e,t);if(!s.length)return n&&e.some((e=>1==e.state))?new k(n.options,n.attrs,n.tooltip,n.timestamp,n.selected,!0):null;let o=t.facet(x).selectOnOpen?0:-1;if(n&&n.selected!=o&&-1!=n.selected){let e=n.options[n.selected].completion;for(let t=0;t<s.length;t++)if(s[t].completion==e){o=t;break}}return new k(s,T(r,o),{pos:e.reduce(((e,t)=>t.hasResult()?Math.min(e,t.from):e),1e8),create:Q,above:i.aboveCursor},n?n.timestamp:Date.now(),o,!1)}map(e){return new k(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class E{constructor(e,t,r){this.active=e,this.id=t,this.open=r}static start(){return new E(P,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,r=t.facet(x),n=(r.override||t.languageDataAt("autocomplete",c(t)).map(m)).map((t=>(this.active.find((e=>e.source==t))||new F(t,this.active.some((e=>0!=e.state))?1:0)).update(e,r)));n.length==this.active.length&&n.every(((e,t)=>e==this.active[t]))&&(n=this.active);let i=this.open;i&&e.docChanged&&(i=i.map(e.changes)),e.selection||n.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let r=0,n=0;;){for(;r<e.length&&!e[r].hasResult;)r++;for(;n<t.length&&!t[n].hasResult;)n++;let i=r==e.length,s=n==t.length;if(i||s)return i==s;if(e[r++].result!=t[n++].result)return!1}}(n,this.active)?i=k.build(n,t,this.id,i,r):i&&i.disabled&&!n.some((e=>1==e.state))&&(i=null),!i&&n.every((e=>1!=e.state))&&n.some((e=>e.hasResult()))&&(n=n.map((e=>e.hasResult()?new F(e.source,0):e)));for(let t of e.effects)t.is(B)&&(i=i&&i.setSelected(t.value,this.id));return n==this.active&&i==this.open?this:new E(n,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:C}}const C={"aria-autocomplete":"list"};function T(e,t){let r={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(r["aria-activedescendant"]=e+"-"+t),r}const P=[];function A(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class F{constructor(e,t,r=-1){this.source=e,this.state=t,this.explicitPos=r}hasResult(){return!1}update(e,t){let r=A(e),n=this;r?n=n.handleUserEvent(e,r,t):e.docChanged?n=n.handleChange(e):e.selection&&0!=n.state&&(n=new F(n.source,0));for(let t of e.effects)if(t.is(g))n=new F(n.source,1,t.value?c(e.state):-1);else if(t.is(y))n=new F(n.source,0);else if(t.is(I))for(let e of t.value)e.source==n.source&&(n=e);return n}handleUserEvent(e,t,r){return"delete"!=t&&r.activateOnTyping?new F(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(c(e.startState))?new F(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new F(this.source,this.state,e.mapPos(this.explicitPos))}}class _ extends F{constructor(e,t,r,n,i){super(e,2,t),this.result=r,this.from=n,this.to=i}hasResult(){return!0}handleUserEvent(e,t,r){var n;let i=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1),a=c(e.state);if((this.explicitPos<0?a<=i:a<this.from)||a>s||"delete"==t&&c(e.startState)==this.from)return new F(this.source,"input"==t&&r.activateOnTyping?1:0);let l,u=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,r,n){if(!e)return!1;let i=t.sliceDoc(r,n);return"function"==typeof e?e(i,r,n,t):h(e,!0).test(i)}(this.result.validFor,e.state,i,s)?new _(this.source,u,this.result,i,s):this.result.update&&(l=this.result.update(this.result,i,s,new o(e.state,a,u>=0)))?new _(this.source,u,l,l.from,null!==(n=l.to)&&void 0!==n?n:c(e.state)):new F(this.source,1,u)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new F(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new _(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}const I=n.StateEffect.define({map:(e,t)=>e.map((e=>e.map(t)))}),B=n.StateEffect.define(),N=n.StateField.define({create:()=>E.start(),update:(e,t)=>e.update(t),provide:e=>[i.showTooltip.from(e,(e=>e.tooltip)),i.EditorView.contentAttributes.from(e,(e=>e.attrs))]});function $(e,t){const r=t.completion.apply||t.completion.label;let n=e.state.field(N).active.find((e=>e.source==t.source));return n instanceof _&&("string"==typeof r?e.dispatch(Object.assign(Object.assign({},d(e.state,r,n.from,n.to)),{annotations:p.of(t.completion)})):r(e,t.completion,n.from,n.to),!0)}const Q=function(e,t){return r=>new D(r,e,t)}(N,$);function L(e,t="option"){return r=>{let n=r.state.field(N,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp<r.state.facet(x).interactionDelay)return!1;let s,o=1;"page"==t&&(s=i.getTooltip(r,n.open.tooltip))&&(o=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1));let{length:a}=n.open.options,l=n.open.selected>-1?n.open.selected+o*(e?1:-1):e?0:a-1;return l<0?l="page"==t?0:a-1:l>=a&&(l="page"==t?a-1:0),r.dispatch({effects:B.of(l)}),!0}}const M=e=>{let t=e.state.field(N,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(x).interactionDelay)&&$(e,t.open.options[t.open.selected])},R=e=>!!e.state.field(N,!1)&&(e.dispatch({effects:g.of(!0)}),!0),j=e=>{let t=e.state.field(N,!1);return!(!t||!t.active.some((e=>0!=e.state))||(e.dispatch({effects:y.of(null)}),0))};class Z{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const q=i.ViewPlugin.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(N).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(N);if(!e.selectionSet&&!e.docChanged&&e.startState.field(N)==t)return;let r=e.transactions.some((e=>(e.selection||e.docChanged)&&!A(e)));for(let t=0;t<this.running.length;t++){let n=this.running[t];if(r||n.updates.length+e.transactions.length>50&&Date.now()-n.time>1e3){for(let e of n.context.abortListeners)try{e()}catch(e){i.logException(this.view.state,e)}n.context.abortListeners=null,this.running.splice(t--,1)}else n.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some((e=>e.effects.some((e=>e.is(g)))))&&(this.pendingStart=!0);let n=this.pendingStart?50:e.state.facet(x).activateOnTypingDelay;if(this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),n):-1,0!=this.composing)for(let t of e.transactions)"input"==A(t)?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(N);for(let e of t.active)1!=e.state||this.running.some((t=>t.active.source==e.source))||this.startQuery(e)}startQuery(e){let{state:t}=this.view,r=c(t),n=new o(t,r,e.explicitPos==r),s=new Z(e,n);this.running.push(s),Promise.resolve(e.source(n)).then((e=>{s.context.aborted||(s.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:y.of(null)}),i.logException(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(x).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],r=this.view.state.facet(x);for(let n=0;n<this.running.length;n++){let i=this.running[n];if(void 0===i.done)continue;if(this.running.splice(n--,1),i.done){let n=new _(i.active.source,i.active.explicitPos,i.done,i.done.from,null!==(e=i.done.to)&&void 0!==e?e:c(i.updates.length?i.updates[0].startState:this.view.state));for(let e of i.updates)n=n.update(e,r);if(n.hasResult()){t.push(n);continue}}let s=this.view.state.field(N).active.find((e=>e.source==i.active.source));if(s&&1==s.state)if(null==i.done){let e=new F(i.active.source,0);for(let t of i.updates)e=e.update(t,r);1!=e.state&&t.push(e)}else this.startQuery(s)}t.length&&this.view.dispatch({effects:I.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(N,!1);if(t&&t.tooltip&&this.view.state.facet(x).closeOnBlur){let r=t.open&&i.getTooltip(this.view,t.open.tooltip);r&&r.dom.contains(e.relatedTarget)||setTimeout((()=>this.view.dispatch({effects:y.of(null)})),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:g.of(!1)})),20),this.composing=0}}}),W=i.EditorView.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"''"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class X{constructor(e,t,r,n){this.field=e,this.line=t,this.from=r,this.to=n}}class V{constructor(e,t,r){this.field=e,this.from=t,this.to=r}map(e){let t=e.mapPos(this.from,-1,n.MapMode.TrackDel),r=e.mapPos(this.to,1,n.MapMode.TrackDel);return null==t||null==r?null:new V(this.field,t,r)}}class U{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let r=[],n=[t],i=e.doc.lineAt(t),o=/^\s*/.exec(i.text)[0];for(let i of this.lines){if(r.length){let r=o,a=/^\t*/.exec(i)[0].length;for(let t=0;t<a;t++)r+=e.facet(s.indentUnit);n.push(t+r.length-a),i=r+i.slice(a)}r.push(i),t+=i.length+1}let a=this.fieldPositions.map((e=>new V(e.field,n[e.line]+e.from,n[e.line]+e.to)));return{text:r,ranges:a}}static parse(e){let t,r=[],n=[],i=[];for(let s of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(s);){let e=t[1]?+t[1]:null,o=t[2]||t[3]||"",a=-1;for(let t=0;t<r.length;t++)(null!=e?r[t].seq==e:o&&r[t].name==o)&&(a=t);if(a<0){let t=0;for(;t<r.length&&(null==e||null!=r[t].seq&&r[t].seq<e);)t++;r.splice(t,0,{seq:e,name:o}),a=t;for(let e of i)e.field>=a&&e.field++}i.push(new X(a,n.length,t.index,t.index+o.length)),s=s.slice(0,t.index)+o+s.slice(t.index+t[0].length)}for(let e;e=/\\([{}])/.exec(s);){s=s.slice(0,e.index)+e[1]+s.slice(e.index+e[0].length);for(let t of i)t.line==n.length&&t.from>e.index&&(t.from--,t.to--)}n.push(s)}return new U(n,i)}}let Y=i.Decoration.widget({widget:new class extends i.WidgetType{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),z=i.Decoration.mark({class:"cm-snippetField"});class G{constructor(e,t){this.ranges=e,this.active=t,this.deco=i.Decoration.set(e.map((e=>(e.from==e.to?Y:z).range(e.from,e.to))))}map(e){let t=[];for(let r of this.ranges){let n=r.map(e);if(!n)return null;t.push(n)}return new G(t,this.active)}selectionInsideField(e){return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))}}const H=n.StateEffect.define({map:(e,t)=>e&&e.map(t)}),J=n.StateEffect.define(),K=n.StateField.define({create:()=>null,update(e,t){for(let r of t.effects){if(r.is(H))return r.value;if(r.is(J)&&e)return new G(e.ranges,r.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>i.EditorView.decorations.from(e,(e=>e?e.deco:i.Decoration.none))});function ee(e,t){return n.EditorSelection.create(e.filter((e=>e.field==t)).map((e=>n.EditorSelection.range(e.from,e.to))))}function te(e){let t=U.parse(e);return(e,r,i,s)=>{let{text:o,ranges:a}=t.instantiate(e.state,i),l={changes:{from:i,to:s,insert:n.Text.of(o)},scrollIntoView:!0,annotations:r?[p.of(r),n.Transaction.userEvent.of("input.complete")]:void 0};if(a.length&&(l.selection=ee(a,0)),a.some((e=>e.field>0))){let t=new G(a,0),r=l.effects=[H.of(t)];void 0===e.state.field(K,!1)&&r.push(n.StateEffect.appendConfig.of([K,le,ue,W]))}e.dispatch(e.state.update(l))}}function re(e){return({state:t,dispatch:r})=>{let n=t.field(K,!1);if(!n||e<0&&0==n.active)return!1;let i=n.active+e,s=e>0&&!n.ranges.some((t=>t.field==i+e));return r(t.update({selection:ee(n.ranges,i),effects:H.of(s?null:new G(n.ranges,i)),scrollIntoView:!0})),!0}}const ne=({state:e,dispatch:t})=>!!e.field(K,!1)&&(t(e.update({effects:H.of(null)})),!0),ie=re(1),se=re(-1),oe=[{key:"Tab",run:ie,shift:se},{key:"Escape",run:ne}],ae=n.Facet.define({combine:e=>e.length?e[0]:oe}),le=n.Prec.highest(i.keymap.compute([ae],(e=>e.facet(ae)))),ue=i.EditorView.domEventHandlers({mousedown(e,t){let r,n=t.state.field(K,!1);if(!n||null==(r=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let i=n.ranges.find((e=>e.from<=r&&e.to>=r));return!(!i||i.field==n.active||(t.dispatch({selection:ee(n.ranges,i.field),effects:H.of(n.ranges.some((e=>e.field>i.field))?new G(n.ranges,i.field):null),scrollIntoView:!0}),0))}});function ce(e,t){return new RegExp(t(e.source),e.unicode?"u":"")}const he=Object.create(null);function pe(e,t,r,n,i){for(let s=e.iterLines(),o=0;!s.next().done;){let e,{value:a}=s;for(t.lastIndex=0;e=t.exec(a);)if(!n[e[0]]&&o+e.index!=i&&(r.push({type:"text",label:e[0]}),n[e[0]]=!0,r.length>=2e3))return;o+=a.length+1}}function de(e,t,r,n,i){let s=e.length>=1e3,o=s&&t.get(e);if(o)return o;let a=[],l=Object.create(null);if(e.children){let s=0;for(let o of e.children){if(o.length>=1e3)for(let e of de(o,t,r,n-s,i-s))l[e.label]||(l[e.label]=!0,a.push(e));else pe(o,r,a,l,i-s);s+=o.length+1}}else pe(e,r,a,l,i);return s&&a.length<2e3&&t.set(e,a),a}const fe={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},me=n.StateEffect.define({map(e,t){let r=t.mapPos(e,-1,n.MapMode.TrackAfter);return null==r?void 0:r}}),ge=new class extends n.RangeValue{};ge.startSide=1,ge.endSide=-1;const ye=n.StateField.define({create:()=>n.RangeSet.empty,update(e,t){if(e=e.map(t.changes),t.selection){let r=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=r.from&&e<=r.to})}for(let r of t.effects)r.is(me)&&(e=e.update({add:[ge.range(r.value,r.value+1)]}));return e}}),Oe="()[]{}<>";function xe(e){for(let t=0;t<Oe.length;t+=2)if(Oe.charCodeAt(t)==e)return Oe.charAt(t+1);return n.fromCodePoint(e<128?e:e+1)}function be(e,t){return e.languageDataAt("closeBrackets",t)[0]||fe}const ve="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),we=i.EditorView.inputHandler.of(((e,t,r,i)=>{if((ve?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let s=e.state.selection.main;if(i.length>2||2==i.length&&1==n.codePointSize(n.codePointAt(i,0))||t!=s.from||r!=s.to)return!1;let o=ke(e.state,i);return!!o&&(e.dispatch(o),!0)})),De=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=be(e,e.selection.main.head).brackets||fe.brackets,i=null,s=e.changeByRange((t=>{if(t.empty){let i=function(e,t){let r=e.sliceString(t-2,t);return n.codePointSize(n.codePointAt(r,0))==r.length?r:r.slice(1)}(e.doc,t.head);for(let s of r)if(s==i&&Ce(e.doc,t.head)==xe(n.codePointAt(s,0)))return{changes:{from:t.head-s.length,to:t.head+s.length},range:n.EditorSelection.cursor(t.head-s.length)}}return{range:i=t}}));return i||t(e.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},Se=[{key:"Backspace",run:De}];function ke(e,t){let r=be(e,e.selection.main.head),i=r.brackets||fe.brackets;for(let s of i){let o=xe(n.codePointAt(s,0));if(t==s)return o==s?Ae(e,s,i.indexOf(s+s+s)>-1,r):Te(e,s,o,r.before||fe.before);if(t==o&&Ee(e,e.selection.main.from))return Pe(e,0,o)}return null}function Ee(e,t){let r=!1;return e.field(ye).between(0,e.doc.length,(e=>{e==t&&(r=!0)})),r}function Ce(e,t){let r=e.sliceString(t,t+2);return r.slice(0,n.codePointSize(n.codePointAt(r,0)))}function Te(e,t,r,i){let s=null,o=e.changeByRange((o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:r,from:o.to}],effects:me.of(o.to+t.length),range:n.EditorSelection.range(o.anchor+t.length,o.head+t.length)};let a=Ce(e.doc,o.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:t+r,from:o.head},effects:me.of(o.head+t.length),range:n.EditorSelection.cursor(o.head+t.length)}:{range:s=o}}));return s?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function Pe(e,t,r){let i=null,s=e.changeByRange((t=>t.empty&&Ce(e.doc,t.head)==r?{changes:{from:t.head,to:t.head+r.length,insert:r},range:n.EditorSelection.cursor(t.head+r.length)}:i={range:t}));return i?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function Ae(e,t,r,i){let o=i.stringPrefixes||fe.stringPrefixes,a=null,l=e.changeByRange((i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:me.of(i.to+t.length),range:n.EditorSelection.range(i.anchor+t.length,i.head+t.length)};let l,u=i.head,c=Ce(e.doc,u);if(c==t){if(Fe(e,u))return{changes:{insert:t+t,from:u},effects:me.of(u+t.length),range:n.EditorSelection.cursor(u+t.length)};if(Ee(e,u)){let i=r&&e.sliceDoc(u,u+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:u,to:u+i.length,insert:i},range:n.EditorSelection.cursor(u+i.length)}}}else{if(r&&e.sliceDoc(u-2*t.length,u)==t+t&&(l=_e(e,u-2*t.length,o))>-1&&Fe(e,l))return{changes:{insert:t+t+t+t,from:u},effects:me.of(u+t.length),range:n.EditorSelection.cursor(u+t.length)};if(e.charCategorizer(u)(c)!=n.CharCategory.Word&&_e(e,u,o)>-1&&!function(e,t,r,n){let i=s.syntaxTree(e).resolveInner(t,-1),o=n.reduce(((e,t)=>Math.max(e,t.length)),0);for(let s=0;s<5;s++){let s=e.sliceDoc(i.from,Math.min(i.to,i.from+r.length+o)),a=s.indexOf(r);if(!a||a>-1&&n.indexOf(s.slice(0,a))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>r.length+a;){if(e.sliceDoc(t.to-r.length,t.to)==r)return!1;t=t.firstChild}return!0}let l=i.to==t&&i.parent;if(!l)break;i=l}return!1}(e,u,t,o))return{changes:{insert:t+t,from:u},effects:me.of(u+t.length),range:n.EditorSelection.cursor(u+t.length)}}return{range:a=i}}));return a?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function Fe(e,t){let r=s.syntaxTree(e).resolveInner(t+1);return r.parent&&r.from==t}function _e(e,t,r){let i=e.charCategorizer(t);if(i(e.sliceDoc(t-1,t))!=n.CharCategory.Word)return t;for(let s of r){let r=t-s.length;if(e.sliceDoc(r,t)==s&&i(e.sliceDoc(r-1,r))!=n.CharCategory.Word)return r}return-1}const Ie=[{key:"Ctrl-Space",run:R},{key:"Escape",run:j},{key:"ArrowDown",run:L(!0)},{key:"ArrowUp",run:L(!1)},{key:"PageDown",run:L(!0,"page")},{key:"PageUp",run:L(!1,"page")},{key:"Enter",run:M}],Be=n.Prec.highest(i.keymap.computeN([x],(e=>e.facet(x).defaultKeymap?[Ie]:[]))),Ne=new WeakMap;t.CompletionContext=o,t.acceptCompletion=M,t.autocompletion=function(e={}){return[N,x.of(e),q,Be,W]},t.clearSnippet=ne,t.closeBrackets=function(){return[we,ye]},t.closeBracketsKeymap=Se,t.closeCompletion=j,t.completeAnyWord=e=>{let t=e.state.languageDataAt("wordChars",e.pos).join(""),r=function(e){let t=e.replace(/[\]\-\\]/g,"\\$&");try{return new RegExp(`[\\p{Alphabetic}\\p{Number}_${t}]+`,"ug")}catch(e){return new RegExp(`[w${t}]`,"g")}}(t),n=e.matchBefore(ce(r,(e=>e+"$")));if(!n&&!e.explicit)return null;let i=n?n.from:e.pos,s=de(e.state.doc,function(e){return he[e]||(he[e]=new WeakMap)}(t),r,5e4,i);return{from:i,options:s,validFor:ce(r,(e=>"^"+e))}},t.completeFromList=l,t.completionKeymap=Ie,t.completionStatus=function(e){let t=e.field(N,!1);return t&&t.active.some((e=>1==e.state))?"pending":t&&t.active.some((e=>0!=e.state))?"active":null},t.currentCompletions=function(e){var t;let r=null===(t=e.field(N,!1))||void 0===t?void 0:t.open;if(!r||r.disabled)return[];let n=Ne.get(r.options);return n||Ne.set(r.options,n=r.options.map((e=>e.completion))),n},t.deleteBracketPair=De,t.hasNextSnippetField=function(e){let t=e.field(K,!1);return!(!t||!t.ranges.some((e=>e.field==t.active+1)))},t.hasPrevSnippetField=function(e){let t=e.field(K,!1);return!!(t&&t.active>0)},t.ifIn=function(e,t){return r=>{for(let n=s.syntaxTree(r.state).resolveInner(r.pos,-1);n;n=n.parent){if(e.indexOf(n.name)>-1)return t(r);if(n.type.isTop)break}return null}},t.ifNotIn=function(e,t){return r=>{for(let t=s.syntaxTree(r.state).resolveInner(r.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(r)}},t.insertBracket=ke,t.insertCompletionText=d,t.moveCompletionSelection=L,t.nextSnippetField=ie,t.pickedCompletion=p,t.prevSnippetField=se,t.selectedCompletion=function(e){var t;let r=null===(t=e.field(N,!1))||void 0===t?void 0:t.open;return r&&!r.disabled&&r.selected>=0?r.options[r.selected].completion:null},t.selectedCompletionIndex=function(e){var t;let r=null===(t=e.field(N,!1))||void 0===t?void 0:t.open;return r&&!r.disabled&&r.selected>=0?r.selected:null},t.setSelectedCompletion=function(e){return B.of(e)},t.snippet=te,t.snippetCompletion=function(e,t){return Object.assign(Object.assign({},t),{apply:te(e)})},t.snippetKeymap=ae,t.startCompletion=R},9277:(e,t,r)=>{"use strict";var n=r(9064),i=r(1506),s=r(2533),o=r(2696);const a=e=>{let{state:t}=e,r=t.doc.lineAt(t.selection.main.from),n=g(e.state,r.from);return n.line?u(e):!!n.block&&m(e)};function l(e,t){return({state:r,dispatch:n})=>{if(r.readOnly)return!1;let i=e(t,r);return!!i&&(n(r.update(i)),!0)}}const u=l(x,0),c=l(x,1),h=l(x,2),p=l(O,0),d=l(O,1),f=l(O,2),m=l(((e,t)=>O(e,t,function(e){let t=[];for(let r of e.selection.ranges){let n=e.doc.lineAt(r.from),i=r.to<=n.to?n:e.doc.lineAt(r.to),s=t.length-1;s>=0&&t[s].to>n.from?t[s].to=i.to:t.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:i.to})}return t}(t))),0);function g(e,t){let r=e.languageDataAt("commentTokens",t);return r.length?r[0]:{}}const y=50;function O(e,t,r=t.selection.ranges){let n=r.map((e=>g(t,e.from).block));if(!n.every((e=>e)))return null;let i=r.map(((e,r)=>function(e,{open:t,close:r},n,i){let s,o,a=e.sliceDoc(n-y,n),l=e.sliceDoc(i,i+y),u=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(l)[0].length,h=a.length-u;if(a.slice(h-t.length,h)==t&&l.slice(c,c+r.length)==r)return{open:{pos:n-u,margin:u&&1},close:{pos:i+c,margin:c&&1}};i-n<=2*y?s=o=e.sliceDoc(n,i):(s=e.sliceDoc(n,n+y),o=e.sliceDoc(i-y,i));let p=/^\s*/.exec(s)[0].length,d=/\s*$/.exec(o)[0].length,f=o.length-d-r.length;return s.slice(p,p+t.length)==t&&o.slice(f,f+r.length)==r?{open:{pos:n+p+t.length,margin:/\s/.test(s.charAt(p+t.length))?1:0},close:{pos:i-d-r.length,margin:/\s/.test(o.charAt(f-1))?1:0}}:null}(t,n[r],e.from,e.to)));if(2!=e&&!i.every((e=>e)))return{changes:t.changes(r.map(((e,t)=>i[t]?[]:[{from:e.from,insert:n[t].open+" "},{from:e.to,insert:" "+n[t].close}])))};if(1!=e&&i.some((e=>e))){let e=[];for(let t,r=0;r<i.length;r++)if(t=i[r]){let i=n[r],{open:s,close:o}=t;e.push({from:s.pos-i.open.length,to:s.pos+s.margin},{from:o.pos-o.margin,to:o.pos+i.close.length})}return{changes:e}}return null}function x(e,t,r=t.selection.ranges){let n=[],i=-1;for(let{from:e,to:s}of r){let r=n.length,o=1e9,a=g(t,e).line;if(a){for(let r=e;r<=s;){let l=t.doc.lineAt(r);if(l.from>i&&(e==s||s>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,r=l.text.slice(e,e+a.length)==a?e:-1;e<l.text.length&&e<o&&(o=e),n.push({line:l,comment:r,token:a,indent:e,empty:t,single:!1})}r=l.to+1}if(o<1e9)for(let e=r;e<n.length;e++)n[e].indent<n[e].line.text.length&&(n[e].indent=o);n.length==r+1&&(n[r].single=!0)}}if(2!=e&&n.some((e=>e.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:r,indent:i,empty:s,single:o}of n)!o&&s||e.push({from:t.from+i,insert:r+" "});let r=t.changes(e);return{changes:r,selection:t.selection.map(r,1)}}if(1!=e&&n.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:r,token:i}of n)if(r>=0){let n=t.from+r,s=n+i.length;" "==t.text[s-t.from]&&s++,e.push({from:n,to:s})}return{changes:e}}return null}const b=n.Annotation.define(),v=n.Annotation.define(),w=n.Facet.define(),D=n.Facet.define({combine:e=>n.combineConfig(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(r,n)=>e(r,n)||t(r,n)})}),S=n.StateField.define({create:()=>W.empty,update(e,t){let r=t.state.facet(D),i=t.annotation(b);if(i){let n=B.fromTransaction(t,i.selection),s=i.side,o=0==s?e.undone:e.done;return o=n?N(o,o.length,r.minDepth,n):M(o,t.startState.selection),new W(0==s?i.rest:o,0==s?o:i.rest)}let s=t.annotation(v);if("full"!=s&&"before"!=s||(e=e.isolate()),!1===t.annotation(n.Transaction.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=B.fromTransaction(t),a=t.annotation(n.Transaction.time),l=t.annotation(n.Transaction.userEvent);return o?e=e.addChanges(o,a,l,r,t):t.selection&&(e=e.addSelection(t.startState.selection,a,l,r.newGroupDelay)),"full"!=s&&"after"!=s||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new W(e.done.map(B.fromJSON),e.undone.map(B.fromJSON))}),k=S;function E(e,t){return function({state:r,dispatch:n}){if(!t&&r.readOnly)return!1;let i=r.field(S,!1);if(!i)return!1;let s=i.pop(e,r,t);return!!s&&(n(s),!0)}}const C=E(0,!1),T=E(1,!1),P=E(0,!0),A=E(1,!0);function F(e){return function(t){let r=t.field(S,!1);if(!r)return 0;let n=0==e?r.done:r.undone;return n.length-(n.length&&!n[0].changes?1:0)}}const _=F(0),I=F(1);class B{constructor(e,t,r,n,i){this.changes=e,this.effects=t,this.mapped=r,this.startSelection=n,this.selectionsAfter=i}setSelAfter(e){return new B(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,r;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(r=this.startSelection)||void 0===r?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new B(e.changes&&n.ChangeSet.fromJSON(e.changes),[],e.mapped&&n.ChangeDesc.fromJSON(e.mapped),e.startSelection&&n.EditorSelection.fromJSON(e.startSelection),e.selectionsAfter.map(n.EditorSelection.fromJSON))}static fromTransaction(e,t){let r=Q;for(let t of e.startState.facet(w)){let n=t(e);n.length&&(r=r.concat(n))}return!r.length&&e.changes.empty?null:new B(e.changes.invert(e.startState.doc),r,void 0,t||e.startState.selection,Q)}static selection(e){return new B(void 0,Q,void 0,void 0,e)}}function N(e,t,r,n){let i=t+1>r+20?t-r-1:0,s=e.slice(i,t);return s.push(n),s}function $(e,t){return e.length?t.length?e.concat(t):e:t}const Q=[],L=200;function M(e,t){if(e.length){let r=e[e.length-1],n=r.selectionsAfter.slice(Math.max(0,r.selectionsAfter.length-L));return n.length&&n[n.length-1].eq(t)?e:(n.push(t),N(e,e.length-1,1e9,r.setSelAfter(n)))}return[B.selection([t])]}function R(e){let t=e[e.length-1],r=e.slice();return r[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),r}function j(e,t){if(!e.length)return e;let r=e.length,n=Q;for(;r;){let i=Z(e[r-1],t,n);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,r);return t[r-1]=i,t}t=i.mapped,r--,n=i.selectionsAfter}return n.length?[B.selection(n)]:Q}function Z(e,t,r){let i=$(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):Q,r);if(!e.changes)return B.selection(i);let s=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new B(s,n.StateEffect.mapEffects(e.effects,t),a,e.startSelection.map(o),i)}const q=/^(input\.type|delete)($|\.)/;class W{constructor(e,t,r=0,n=void 0){this.done=e,this.undone=t,this.prevTime=r,this.prevUserEvent=n}isolate(){return this.prevTime?new W(this.done,this.undone):this}addChanges(e,t,r,n,i){let s=this.done,o=s[s.length-1];return s=o&&o.changes&&!o.changes.empty&&e.changes&&(!r||q.test(r))&&(!o.selectionsAfter.length&&t-this.prevTime<n.newGroupDelay&&n.joinToEvent(i,function(e,t){let r=[],n=!1;return e.iterChangedRanges(((e,t)=>r.push(e,t))),t.iterChangedRanges(((e,t,i,s)=>{for(let e=0;e<r.length;){let t=r[e++],o=r[e++];s>=t&&i<=o&&(n=!0)}})),n}(o.changes,e.changes))||"input.type.compose"==r)?N(s,s.length-1,n.minDepth,new B(e.changes.compose(o.changes),$(e.effects,o.effects),o.mapped,o.startSelection,Q)):N(s,s.length,n.minDepth,e),new W(s,Q,t,r)}addSelection(e,t,r,n){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:Q;return i.length>0&&t-this.prevTime<n&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&(s=i[i.length-1],o=e,s.ranges.length==o.ranges.length&&0===s.ranges.filter(((e,t)=>e.empty!=o.ranges[t].empty)).length)?this:new W(M(this.done,e),this.undone,t,r);var s,o}addMapping(e){return new W(j(this.done,e),j(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,r){let n=0==e?this.done:this.undone;if(0==n.length)return null;let i=n[n.length-1],s=i.selectionsAfter[0]||t.selection;if(r&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:b.of({side:e,rest:R(n),selection:s}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let r=1==n.length?Q:n.slice(0,n.length-1);return i.mapped&&(r=j(r,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:b.of({side:e,rest:r,selection:s}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}W.empty=new W(Q,Q);const X=[{key:"Mod-z",run:C,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:T,preventDefault:!0},{linux:"Ctrl-Shift-z",run:T,preventDefault:!0},{key:"Mod-u",run:P,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:A,preventDefault:!0}];function V(e,t){return n.EditorSelection.create(e.ranges.map(t),e.mainIndex)}function U(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function Y({state:e,dispatch:t},r){let n=V(e.selection,r);return!n.eq(e.selection,!0)&&(t(U(e,n)),!0)}function z(e,t){return n.EditorSelection.cursor(t?e.to:e.from)}function G(e,t){return Y(e,(r=>r.empty?e.moveByChar(r,t):z(r,t)))}function H(e){return e.textDirectionAt(e.state.selection.main.head)==i.Direction.LTR}const J=e=>G(e,!H(e)),K=e=>G(e,H(e));function ee(e,t){return Y(e,(r=>r.empty?e.moveByGroup(r,t):z(r,t)))}const te=e=>ee(e,!H(e)),re=e=>ee(e,H(e)),ne="undefined"!=typeof Intl&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function ie(e,t,r){let i=e.state.charCategorizer(t.from),s=n.CharCategory.Space,o=t.from,a=0,l=!1,u=!1,c=!1,h=t=>{if(l)return!1;o+=r?t.length:-t.length;let h,p=i(t);if(p==n.CharCategory.Word&&t.charCodeAt(0)<128&&/[\W_]/.test(t)&&(p=-1),s==n.CharCategory.Space&&(s=p),s!=p)return!1;if(s==n.CharCategory.Word)if(t.toLowerCase()==t){if(!r&&u)return!1;c=!0}else if(c){if(r)return!1;l=!0}else{if(u&&r&&i(h=e.state.sliceDoc(o,o+1))==n.CharCategory.Word&&h.toLowerCase()==h)return!1;u=!0}return a++,!0},p=e.moveByChar(t,r,(e=>(h(e),h)));if(ne&&s==n.CharCategory.Word&&p.from==t.from+a*(r?1:-1)){let i=Math.min(t.head,p.head),s=Math.max(t.head,p.head),o=e.state.sliceDoc(i,s);if(o.length>1&&/[\u4E00-\uffff]/.test(o)){let e=Array.from(ne.segment(o));if(e.length>1)return r?n.EditorSelection.cursor(t.head+e[1].index,-1):n.EditorSelection.cursor(p.head+e[e.length-1].index,1)}}return p}function se(e,t){return Y(e,(r=>r.empty?ie(e,r,t):z(r,t)))}function oe(e,t,r){if(t.type.prop(r))return!0;let n=t.to-t.from;return n&&(n>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function ae(e,t,r){let i,a,l=s.syntaxTree(e).resolveInner(t.head),u=r?o.NodeProp.closedBy:o.NodeProp.openedBy;for(let n=t.head;;){let t=r?l.childAfter(n):l.childBefore(n);if(!t)break;oe(e,t,u)?l=t:n=r?t.to:t.from}return a=l.type.prop(u)&&(i=r?s.matchBrackets(e,l.from,1):s.matchBrackets(e,l.to,-1))&&i.matched?r?i.end.to:i.end.from:r?l.to:l.from,n.EditorSelection.cursor(a,r?-1:1)}const le=e=>Y(e,(t=>ae(e.state,t,!H(e)))),ue=e=>Y(e,(t=>ae(e.state,t,H(e))));function ce(e,t){return Y(e,(r=>{if(!r.empty)return z(r,t);let n=e.moveVertically(r,t);return n.head!=r.head?n:e.moveToLineBoundary(r,t)}))}const he=e=>ce(e,!1),pe=e=>ce(e,!0);function de(e){let t,r=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,s=0;if(r){for(let t of e.state.facet(i.EditorView.scrollMargins)){let r=t(e);(null==r?void 0:r.top)&&(n=Math.max(null==r?void 0:r.top,n)),(null==r?void 0:r.bottom)&&(s=Math.max(null==r?void 0:r.bottom,s))}t=e.scrollDOM.clientHeight-n-s}else t=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:s,selfScroll:r,height:Math.max(e.defaultLineHeight,t-5)}}function fe(e,t){let r,n=de(e),{state:s}=e,o=V(s.selection,(r=>r.empty?e.moveVertically(r,t,n.height):z(r,t)));if(o.eq(s.selection))return!1;if(n.selfScroll){let t=e.coordsAtPos(s.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),l=a.top+n.marginTop,u=a.bottom-n.marginBottom;t&&t.top>l&&t.bottom<u&&(r=i.EditorView.scrollIntoView(o.main.head,{y:"start",yMargin:t.top-l}))}return e.dispatch(U(s,o),{effects:r}),!0}const me=e=>fe(e,!1),ge=e=>fe(e,!0);function ye(e,t,r){let i=e.lineBlockAt(t.head),s=e.moveToLineBoundary(t,r);if(s.head==t.head&&s.head!=(r?i.to:i.from)&&(s=e.moveToLineBoundary(t,r,!1)),!r&&s.head==i.from&&i.length){let r=/^\s*/.exec(e.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;r&&t.head!=i.from+r&&(s=n.EditorSelection.cursor(i.from+r))}return s}const Oe=e=>Y(e,(t=>ye(e,t,!0))),xe=e=>Y(e,(t=>ye(e,t,!1))),be=e=>Y(e,(t=>ye(e,t,!H(e)))),ve=e=>Y(e,(t=>ye(e,t,H(e)))),we=e=>Y(e,(t=>n.EditorSelection.cursor(e.lineBlockAt(t.head).from,1))),De=e=>Y(e,(t=>n.EditorSelection.cursor(e.lineBlockAt(t.head).to,-1)));function Se(e,t,r){let i=!1,o=V(e.selection,(t=>{let o=s.matchBrackets(e,t.head,-1)||s.matchBrackets(e,t.head,1)||t.head>0&&s.matchBrackets(e,t.head-1,1)||t.head<e.doc.length&&s.matchBrackets(e,t.head+1,-1);if(!o||!o.end)return t;i=!0;let a=o.start.from==t.head?o.end.to:o.end.from;return r?n.EditorSelection.range(t.anchor,a):n.EditorSelection.cursor(a)}));return!!i&&(t(U(e,o)),!0)}const ke=({state:e,dispatch:t})=>Se(e,t,!1);function Ee(e,t){let r=V(e.state.selection,(e=>{let r=t(e);return n.EditorSelection.range(e.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)}));return!r.eq(e.state.selection)&&(e.dispatch(U(e.state,r)),!0)}function Ce(e,t){return Ee(e,(r=>e.moveByChar(r,t)))}const Te=e=>Ce(e,!H(e)),Pe=e=>Ce(e,H(e));function Ae(e,t){return Ee(e,(r=>e.moveByGroup(r,t)))}const Fe=e=>Ae(e,!H(e)),_e=e=>Ae(e,H(e));function Ie(e,t){return Ee(e,(r=>ie(e,r,t)))}const Be=e=>Ee(e,(t=>ae(e.state,t,!H(e)))),Ne=e=>Ee(e,(t=>ae(e.state,t,H(e))));function $e(e,t){return Ee(e,(r=>e.moveVertically(r,t)))}const Qe=e=>$e(e,!1),Le=e=>$e(e,!0);function Me(e,t){return Ee(e,(r=>e.moveVertically(r,t,de(e).height)))}const Re=e=>Me(e,!1),je=e=>Me(e,!0),Ze=e=>Ee(e,(t=>ye(e,t,!0))),qe=e=>Ee(e,(t=>ye(e,t,!1))),We=e=>Ee(e,(t=>ye(e,t,!H(e)))),Xe=e=>Ee(e,(t=>ye(e,t,H(e)))),Ve=e=>Ee(e,(t=>n.EditorSelection.cursor(e.lineBlockAt(t.head).from))),Ue=e=>Ee(e,(t=>n.EditorSelection.cursor(e.lineBlockAt(t.head).to))),Ye=({state:e,dispatch:t})=>(t(U(e,{anchor:0})),!0),ze=({state:e,dispatch:t})=>(t(U(e,{anchor:e.doc.length})),!0),Ge=({state:e,dispatch:t})=>(t(U(e,{anchor:e.selection.main.anchor,head:0})),!0),He=({state:e,dispatch:t})=>(t(U(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),Je=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),Ke=({state:e,dispatch:t})=>{let r=mt(e).map((({from:t,to:r})=>n.EditorSelection.range(t,Math.min(r+1,e.doc.length))));return t(e.update({selection:n.EditorSelection.create(r),userEvent:"select"})),!0},et=({state:e,dispatch:t})=>{let r=V(e.selection,(t=>{var r;for(let i=s.syntaxTree(e).resolveStack(t.from,1);i;i=i.next){let{node:e}=i;if((e.from<t.from&&e.to>=t.to||e.to>t.to&&e.from<=t.from)&&(null===(r=e.parent)||void 0===r?void 0:r.parent))return n.EditorSelection.range(e.to,e.from)}return t}));return t(U(e,r)),!0},tt=({state:e,dispatch:t})=>{let r=e.selection,i=null;return r.ranges.length>1?i=n.EditorSelection.create([r.main]):r.main.empty||(i=n.EditorSelection.create([n.EditorSelection.cursor(r.main.head)])),!!i&&(t(U(e,i)),!0)};function rt(e,t){if(e.state.readOnly)return!1;let r="delete.selection",{state:s}=e,o=s.changeByRange((i=>{let{from:s,to:o}=i;if(s==o){let n=t(i);n<s?(r="delete.backward",n=nt(e,n,!1)):n>s&&(r="delete.forward",n=nt(e,n,!0)),s=Math.min(s,n),o=Math.max(o,n)}else s=nt(e,s,!1),o=nt(e,o,!0);return s==o?{range:i}:{changes:{from:s,to:o},range:n.EditorSelection.cursor(s,s<i.head?-1:1)}}));return!o.changes.empty&&(e.dispatch(s.update(o,{scrollIntoView:!0,userEvent:r,effects:"delete.selection"==r?i.EditorView.announce.of(s.phrase("Selection deleted")):void 0})),!0)}function nt(e,t,r){if(e instanceof i.EditorView)for(let n of e.state.facet(i.EditorView.atomicRanges).map((t=>t(e))))n.between(t,t,((e,n)=>{e<t&&n>t&&(t=r?n:e)}));return t}const it=(e,t)=>rt(e,(r=>{let i,o,a=r.from,{state:l}=e,u=l.doc.lineAt(a);if(!t&&a>u.from&&a<u.from+200&&!/[^ \t]/.test(i=u.text.slice(0,a-u.from))){if("\t"==i[i.length-1])return a-1;let e=n.countColumn(i,l.tabSize)%s.getIndentUnit(l)||s.getIndentUnit(l);for(let t=0;t<e&&" "==i[i.length-1-t];t++)a--;o=a}else o=n.findClusterBreak(u.text,a-u.from,t,t)+u.from,o==a&&u.number!=(t?l.doc.lines:1)?o+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(u.text.slice(o-u.from,a-u.from))&&(o=n.findClusterBreak(u.text,o-u.from,!1,!1)+u.from);return o})),st=e=>it(e,!1),ot=e=>it(e,!0),at=(e,t)=>rt(e,(r=>{let i=r.head,{state:s}=e,o=s.doc.lineAt(i),a=s.charCategorizer(i);for(let e=null;;){if(i==(t?o.to:o.from)){i==r.head&&o.number!=(t?s.doc.lines:1)&&(i+=t?1:-1);break}let l=n.findClusterBreak(o.text,i-o.from,t)+o.from,u=o.text.slice(Math.min(i,l)-o.from,Math.max(i,l)-o.from),c=a(u);if(null!=e&&c!=e)break;" "==u&&i==r.head||(e=c),i=l}return i})),lt=e=>at(e,!1),ut=e=>at(e,!0),ct=e=>rt(e,(t=>{let r=e.lineBlockAt(t.head).to;return t.head<r?r:Math.min(e.state.doc.length,t.head+1)})),ht=e=>rt(e,(t=>{let r=e.moveToLineBoundary(t,!1).head;return t.head>r?r:Math.max(0,t.head-1)})),pt=e=>rt(e,(t=>{let r=e.moveToLineBoundary(t,!0).head;return t.head<r?r:Math.min(e.state.doc.length,t.head+1)})),dt=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:n.Text.of(["",""])},range:n.EditorSelection.cursor(e.from)})));return t(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0},ft=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let r=t.from,i=e.doc.lineAt(r),s=r==i.from?r-1:n.findClusterBreak(i.text,r-i.from,!1)+i.from,o=r==i.to?r+1:n.findClusterBreak(i.text,r-i.from,!0)+i.from;return{changes:{from:s,to:o,insert:e.doc.slice(r,o).append(e.doc.slice(s,r))},range:n.EditorSelection.cursor(o)}}));return!r.changes.empty&&(t(e.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function mt(e){let t=[],r=-1;for(let n of e.selection.ranges){let i=e.doc.lineAt(n.from),s=e.doc.lineAt(n.to);if(n.empty||n.to!=s.from||(s=e.doc.lineAt(n.to-1)),r>=i.number){let e=t[t.length-1];e.to=s.to,e.ranges.push(n)}else t.push({from:i.from,to:s.to,ranges:[n]});r=s.number+1}return t}function gt(e,t,r){if(e.readOnly)return!1;let i=[],s=[];for(let t of mt(e)){if(r?t.to==e.doc.length:0==t.from)continue;let o=e.doc.lineAt(r?t.to+1:t.from-1),a=o.length+1;if(r){i.push({from:t.to,to:o.to},{from:t.from,insert:o.text+e.lineBreak});for(let r of t.ranges)s.push(n.EditorSelection.range(Math.min(e.doc.length,r.anchor+a),Math.min(e.doc.length,r.head+a)))}else{i.push({from:o.from,to:t.from},{from:t.to,insert:e.lineBreak+o.text});for(let e of t.ranges)s.push(n.EditorSelection.range(e.anchor-a,e.head-a))}}return!!i.length&&(t(e.update({changes:i,scrollIntoView:!0,selection:n.EditorSelection.create(s,e.selection.mainIndex),userEvent:"move.line"})),!0)}const yt=({state:e,dispatch:t})=>gt(e,t,!1),Ot=({state:e,dispatch:t})=>gt(e,t,!0);function xt(e,t,r){if(e.readOnly)return!1;let n=[];for(let t of mt(e))r?n.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):n.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});return t(e.update({changes:n,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const bt=({state:e,dispatch:t})=>xt(e,t,!1),vt=({state:e,dispatch:t})=>xt(e,t,!0),wt=e=>{if(e.state.readOnly)return!1;let{state:t}=e,r=t.changes(mt(t).map((({from:e,to:r})=>(e>0?e--:r<t.doc.length&&r++,{from:e,to:r})))),n=V(t.selection,(t=>e.moveVertically(t,!0))).map(r);return e.dispatch({changes:r,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0},Dt=kt(!1),St=kt(!0);function kt(e){return({state:t,dispatch:r})=>{if(t.readOnly)return!1;let i=t.changeByRange((r=>{let{from:i,to:a}=r,l=t.doc.lineAt(i),u=!e&&i==a&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let r,n=s.syntaxTree(e).resolveInner(t),i=n.childBefore(t),a=n.childAfter(t);return i&&a&&i.to<=t&&a.from>=t&&(r=i.type.prop(o.NodeProp.closedBy))&&r.indexOf(a.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(a.from).from&&!/\S/.test(e.sliceDoc(i.to,a.from))?{from:i.to,to:a.from}:null}(t,i);e&&(i=a=(a<=l.to?l:t.doc.lineAt(a)).to);let c=new s.IndentContext(t,{simulateBreak:i,simulateDoubleBreak:!!u}),h=s.getIndentation(c,i);for(null==h&&(h=n.countColumn(/^\s*/.exec(t.doc.lineAt(i).text)[0],t.tabSize));a<l.to&&/\s/.test(l.text[a-l.from]);)a++;u?({from:i,to:a}=u):i>l.from&&i<l.from+100&&!/\S/.test(l.text.slice(0,i))&&(i=l.from);let p=["",s.indentString(t,h)];return u&&p.push(s.indentString(t,c.lineIndent(l.from,-1))),{changes:{from:i,to:a,insert:n.Text.of(p)},range:n.EditorSelection.cursor(i+1+p[1].length)}}));return r(t.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function Et(e,t){let r=-1;return e.changeByRange((i=>{let s=[];for(let n=i.from;n<=i.to;){let o=e.doc.lineAt(n);o.number>r&&(i.empty||i.to>o.from)&&(t(o,s,i),r=o.number),n=o.to+1}let o=e.changes(s);return{changes:s,range:n.EditorSelection.range(o.mapPos(i.anchor,1),o.mapPos(i.head,1))}}))}const Ct=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=Object.create(null),n=new s.IndentContext(e,{overrideIndentation:e=>{let t=r[e];return null==t?-1:t}}),i=Et(e,((t,i,o)=>{let a=s.getIndentation(n,t.from);if(null==a)return;/\S/.test(t.text)||(a=0);let l=/^\s*/.exec(t.text)[0],u=s.indentString(e,a);(l!=u||o.from<t.from+l.length)&&(r[t.from]=a,i.push({from:t.from,to:t.from+l.length,insert:u}))}));return i.changes.empty||t(e.update(i,{userEvent:"indent"})),!0},Tt=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Et(e,((t,r)=>{r.push({from:t.from,insert:e.facet(s.indentUnit)})})),{userEvent:"input.indent"})),!0),Pt=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Et(e,((t,r)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let o=n.countColumn(i,e.tabSize),a=0,l=s.indentString(e,Math.max(0,o-s.getIndentUnit(e)));for(;a<i.length&&a<l.length&&i.charCodeAt(a)==l.charCodeAt(a);)a++;r.push({from:t.from+a,to:t.from+i.length,insert:l.slice(a)})})),{userEvent:"delete.dedent"})),!0),At=[{key:"Ctrl-b",run:J,shift:Te,preventDefault:!0},{key:"Ctrl-f",run:K,shift:Pe},{key:"Ctrl-p",run:he,shift:Qe},{key:"Ctrl-n",run:pe,shift:Le},{key:"Ctrl-a",run:we,shift:Ve},{key:"Ctrl-e",run:De,shift:Ue},{key:"Ctrl-d",run:ot},{key:"Ctrl-h",run:st},{key:"Ctrl-k",run:ct},{key:"Ctrl-Alt-h",run:lt},{key:"Ctrl-o",run:dt},{key:"Ctrl-t",run:ft},{key:"Ctrl-v",run:ge}],Ft=[{key:"ArrowLeft",run:J,shift:Te,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:te,shift:Fe,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:be,shift:We,preventDefault:!0},{key:"ArrowRight",run:K,shift:Pe,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:re,shift:_e,preventDefault:!0},{mac:"Cmd-ArrowRight",run:ve,shift:Xe,preventDefault:!0},{key:"ArrowUp",run:he,shift:Qe,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Ye,shift:Ge},{mac:"Ctrl-ArrowUp",run:me,shift:Re},{key:"ArrowDown",run:pe,shift:Le,preventDefault:!0},{mac:"Cmd-ArrowDown",run:ze,shift:He},{mac:"Ctrl-ArrowDown",run:ge,shift:je},{key:"PageUp",run:me,shift:Re},{key:"PageDown",run:ge,shift:je},{key:"Home",run:xe,shift:qe,preventDefault:!0},{key:"Mod-Home",run:Ye,shift:Ge},{key:"End",run:Oe,shift:Ze,preventDefault:!0},{key:"Mod-End",run:ze,shift:He},{key:"Enter",run:Dt},{key:"Mod-a",run:Je},{key:"Backspace",run:st,shift:st},{key:"Delete",run:ot},{key:"Mod-Backspace",mac:"Alt-Backspace",run:lt},{key:"Mod-Delete",mac:"Alt-Delete",run:ut},{mac:"Mod-Backspace",run:ht},{mac:"Mod-Delete",run:pt}].concat(At.map((e=>({mac:e.key,run:e.run,shift:e.shift})))),_t=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:le,shift:Be},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:ue,shift:Ne},{key:"Alt-ArrowUp",run:yt},{key:"Shift-Alt-ArrowUp",run:bt},{key:"Alt-ArrowDown",run:Ot},{key:"Shift-Alt-ArrowDown",run:vt},{key:"Escape",run:tt},{key:"Mod-Enter",run:St},{key:"Alt-l",mac:"Ctrl-l",run:Ke},{key:"Mod-i",run:et,preventDefault:!0},{key:"Mod-[",run:Pt},{key:"Mod-]",run:Tt},{key:"Mod-Alt-\\",run:Ct},{key:"Shift-Mod-k",run:wt},{key:"Shift-Mod-\\",run:ke},{key:"Mod-/",run:a},{key:"Alt-A",run:p}].concat(Ft),It={key:"Tab",run:Tt,shift:Pt};t.blockComment=d,t.blockUncomment=f,t.copyLineDown=vt,t.copyLineUp=bt,t.cursorCharBackward=e=>G(e,!1),t.cursorCharForward=e=>G(e,!0),t.cursorCharLeft=J,t.cursorCharRight=K,t.cursorDocEnd=ze,t.cursorDocStart=Ye,t.cursorGroupBackward=e=>ee(e,!1),t.cursorGroupForward=e=>ee(e,!0),t.cursorGroupLeft=te,t.cursorGroupRight=re,t.cursorLineBoundaryBackward=xe,t.cursorLineBoundaryForward=Oe,t.cursorLineBoundaryLeft=be,t.cursorLineBoundaryRight=ve,t.cursorLineDown=pe,t.cursorLineEnd=De,t.cursorLineStart=we,t.cursorLineUp=he,t.cursorMatchingBracket=ke,t.cursorPageDown=ge,t.cursorPageUp=me,t.cursorSubwordBackward=e=>se(e,!1),t.cursorSubwordForward=e=>se(e,!0),t.cursorSyntaxLeft=le,t.cursorSyntaxRight=ue,t.defaultKeymap=_t,t.deleteCharBackward=st,t.deleteCharForward=ot,t.deleteGroupBackward=lt,t.deleteGroupForward=ut,t.deleteLine=wt,t.deleteLineBoundaryBackward=ht,t.deleteLineBoundaryForward=pt,t.deleteToLineEnd=ct,t.deleteToLineStart=e=>rt(e,(t=>{let r=e.lineBlockAt(t.head).from;return t.head>r?r:Math.max(0,t.head-1)})),t.deleteTrailingWhitespace=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=[];for(let t=0,n="",i=e.doc.iter();;){if(i.next(),i.lineBreak||i.done){let e=n.search(/\s+$/);if(e>-1&&r.push({from:t-(n.length-e),to:t}),i.done)break;n=""}else n=i.value;t+=i.value.length}return!!r.length&&(t(e.update({changes:r,userEvent:"delete"})),!0)},t.emacsStyleKeymap=At,t.history=function(e={}){return[S,D.of(e),i.EditorView.domEventHandlers({beforeinput(e,t){let r="historyUndo"==e.inputType?C:"historyRedo"==e.inputType?T:null;return!!r&&(e.preventDefault(),r(t))}})]},t.historyField=k,t.historyKeymap=X,t.indentLess=Pt,t.indentMore=Tt,t.indentSelection=Ct,t.indentWithTab=It,t.insertBlankLine=St,t.insertNewline=({state:e,dispatch:t})=>(t(e.update(e.replaceSelection(e.lineBreak),{scrollIntoView:!0,userEvent:"input"})),!0),t.insertNewlineAndIndent=Dt,t.insertTab=({state:e,dispatch:t})=>e.selection.ranges.some((e=>!e.empty))?Tt({state:e,dispatch:t}):(t(e.update(e.replaceSelection("\t"),{scrollIntoView:!0,userEvent:"input"})),!0),t.invertedEffects=w,t.isolateHistory=v,t.lineComment=c,t.lineUncomment=h,t.moveLineDown=Ot,t.moveLineUp=yt,t.redo=T,t.redoDepth=I,t.redoSelection=A,t.selectAll=Je,t.selectCharBackward=e=>Ce(e,!1),t.selectCharForward=e=>Ce(e,!0),t.selectCharLeft=Te,t.selectCharRight=Pe,t.selectDocEnd=He,t.selectDocStart=Ge,t.selectGroupBackward=e=>Ae(e,!1),t.selectGroupForward=e=>Ae(e,!0),t.selectGroupLeft=Fe,t.selectGroupRight=_e,t.selectLine=Ke,t.selectLineBoundaryBackward=qe,t.selectLineBoundaryForward=Ze,t.selectLineBoundaryLeft=We,t.selectLineBoundaryRight=Xe,t.selectLineDown=Le,t.selectLineEnd=Ue,t.selectLineStart=Ve,t.selectLineUp=Qe,t.selectMatchingBracket=({state:e,dispatch:t})=>Se(e,t,!0),t.selectPageDown=je,t.selectPageUp=Re,t.selectParentSyntax=et,t.selectSubwordBackward=e=>Ie(e,!1),t.selectSubwordForward=e=>Ie(e,!0),t.selectSyntaxLeft=Be,t.selectSyntaxRight=Ne,t.simplifySelection=tt,t.splitLine=dt,t.standardKeymap=Ft,t.toggleBlockComment=p,t.toggleBlockCommentByLine=m,t.toggleComment=a,t.toggleLineComment=u,t.transposeChars=ft,t.undo=C,t.undoDepth=_,t.undoSelection=P},2697:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4628),i=r(2533),s=r(2696);let o=null;function a(){if(!o&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],r=new Set;for(let n in e)"cssText"!=n&&"cssFloat"!=n&&"string"==typeof e[n]&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))),r.has(n)||(t.push(n),r.add(n)));o=t.sort().map((e=>({type:"property",label:e})))}return o||[]}const l=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map((e=>({type:"class",label:e}))),u=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map((e=>({type:"keyword",label:e}))).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map((e=>({type:"constant",label:e})))),c=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((e=>({type:"type",label:e}))),h=/^(\w[\w-]*|-\w[\w-]*|)$/,p=/^-(-[\w-]*)?$/,d=new s.NodeWeakMap,f=["Declaration"];function m(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function g(e,t,r){if(t.to-t.from>4096){let n=d.get(t);if(n)return n;let i=[],o=new Set,a=t.cursor(s.IterMode.IncludeAnonymous);if(a.firstChild())do{for(let t of g(e,a.node,r))o.has(t.label)||(o.add(t.label),i.push(t))}while(a.nextSibling());return d.set(t,i),i}{let n=[],i=new Set;return t.cursor().iterate((t=>{var s;if(r(t)&&t.matchContext(f)&&":"==(null===(s=t.node.nextSibling)||void 0===s?void 0:s.name)){let r=e.sliceString(t.from,t.to);i.has(r)||(i.add(r),n.push({label:r,type:"variable"}))}})),n}}const y=e=>t=>{let{state:r,pos:n}=t,s=i.syntaxTree(r).resolveInner(n,-1),o=s.type.isError&&s.from==s.to-1&&"-"==r.doc.sliceString(s.from,s.to);if("PropertyName"==s.name||(o||"TagName"==s.name)&&/^(Block|Styles)$/.test(s.resolve(s.to).name))return{from:s.from,options:a(),validFor:h};if("ValueName"==s.name)return{from:s.from,options:u,validFor:h};if("PseudoClassName"==s.name)return{from:s.from,options:l,validFor:h};if(e(s)||(t.explicit||o)&&function(e,t){var r;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let n=null===(r=e.parent)||void 0===r?void 0:r.firstChild;return"Callee"==(null==n?void 0:n.name)&&"var"==t.sliceString(n.from,n.to)}(s,r.doc))return{from:e(s)||o?s.from:n,options:g(r.doc,m(s),e),validFor:p};if("TagName"==s.name){for(let{parent:e}=s;e;e=e.parent)if("Block"==e.name)return{from:s.from,options:a(),validFor:h};return{from:s.from,options:c,validFor:h}}if(!t.explicit)return null;let d=s.resolve(n),f=d.childBefore(n);return f&&":"==f.name&&"PseudoClassSelector"==d.name?{from:n,options:l,validFor:h}:f&&":"==f.name&&"Declaration"==d.name||"ArgList"==d.name?{from:n,options:u,validFor:h}:"Block"==d.name||"Styles"==d.name?{from:n,options:a(),validFor:h}:null},O=y((e=>"VariableName"==e.name)),x=i.LRLanguage.define({name:"css",parser:n.parser.configure({props:[i.indentNodeProp.add({Declaration:i.continuedIndent()}),i.foldNodeProp.add({"Block KeyframeList":i.foldInside})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});t.css=function(){return new i.LanguageSupport(x,x.data.of({autocomplete:O}))},t.cssCompletionSource=O,t.cssLanguage=x,t.defineCSSCompletionSource=y},6239:(e,t,r)=>{"use strict";var n=r(772),i=r(2697),s=r(1653),o=r(1506),a=r(9064),l=r(2533);const u=["_blank","_self","_top","_parent"],c=["ascii","utf-8","utf-16","latin1","latin1"],h=["get","post","put","delete"],p=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],d=["true","false"],f={},m={a:{attrs:{href:null,ping:null,type:null,media:null,target:u,hreflang:null}},abbr:f,address:f,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:f,aside:f,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:f,base:{attrs:{href:null,target:u}},bdi:f,bdo:f,blockquote:{attrs:{cite:null}},body:f,br:f,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:p,formmethod:h,formnovalidate:["novalidate"],formtarget:u,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:f,center:f,cite:f,code:f,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:f,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:f,div:f,dl:f,dt:f,em:f,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:f,figure:f,footer:f,form:{attrs:{action:null,name:null,"accept-charset":c,autocomplete:["on","off"],enctype:p,method:h,novalidate:["novalidate"],target:u}},h1:f,h2:f,h3:f,h4:f,h5:f,h6:f,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:f,hgroup:f,hr:f,html:{attrs:{manifest:null}},i:f,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:p,formmethod:h,formnovalidate:["novalidate"],formtarget:u,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:f,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:f,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:f,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:c,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:f,noscript:f,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:f,param:{attrs:{name:null,value:null}},pre:f,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:f,rt:f,ruby:f,samp:f,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:c}},section:f,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:f,source:{attrs:{src:null,type:null,media:null}},span:f,strong:f,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:f,summary:f,sup:f,table:f,tbody:f,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:f,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:f,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:f,time:{attrs:{datetime:null}},title:f,tr:f,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:f,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:f},g={accesskey:null,class:null,contenteditable:d,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:d,autocorrect:d,autocapitalize:d,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":d,"aria-autocomplete":["inline","list","both","none"],"aria-busy":d,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":d,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":d,"aria-hidden":d,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":d,"aria-multiselectable":d,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":d,"aria-relevant":null,"aria-required":d,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},y="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((e=>"on"+e));for(let e of y)g[e]=null;class O{constructor(e,t){this.tags=Object.assign(Object.assign({},m),e),this.globalAttrs=Object.assign(Object.assign({},g),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function x(e,t,r=e.length){if(!t)return"";let n=t.firstChild,i=n&&n.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,r)):""}function b(e,t=!1){for(;e;e=e.parent)if("Element"==e.name){if(!t)return e;t=!1}return null}function v(e,t,r){let n=r.tags[x(e,b(t))];return(null==n?void 0:n.children)||r.allTags}function w(e,t){let r=[];for(let n=b(t);n&&!n.type.isTop;n=b(n.parent)){let i=x(e,n);if(i&&"CloseTag"==n.lastChild.name)break;i&&r.indexOf(i)<0&&("EndTag"==t.name||t.from>=n.firstChild.to)&&r.push(i)}return r}O.default=new O;const D=/^[:\-\.\w\u00b7-\uffff]*$/;function S(e,t,r,n,i){let s=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",o=b(r,!0);return{from:n,to:i,options:v(e.doc,o,t).map((e=>({label:e,type:"type"}))).concat(w(e.doc,r).map(((e,t)=>({label:"/"+e,apply:"/"+e+s,type:"type",boost:99-t})))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function k(e,t,r,n){let i=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:r,to:n,options:w(e.doc,t).map(((e,t)=>({label:e,apply:e+i,type:"type",boost:99-t}))),validFor:D}}function E(e,t){let{state:r,pos:n}=t,i=l.syntaxTree(r).resolveInner(n,-1),s=i.resolve(n);for(let e,t=n;s==i&&(e=i.childBefore(t));){let r=e.lastChild;if(!r||!r.type.isError||r.from<r.to)break;s=i=e,t=r.from}return"TagName"==i.name?i.parent&&/CloseTag$/.test(i.parent.name)?k(r,i,i.from,n):S(r,e,i,i.from,n):"StartTag"==i.name?S(r,e,i,n,n):"StartCloseTag"==i.name||"IncompleteCloseTag"==i.name?k(r,i,n,n):"OpenTag"==i.name||"SelfClosingTag"==i.name||"AttributeName"==i.name?function(e,t,r,n,i){let s=b(r),o=s?t.tags[x(e.doc,s)]:null,a=o&&o.attrs?Object.keys(o.attrs):[];return{from:n,to:i,options:(o&&!1===o.globalAttrs?a:a.length?a.concat(t.globalAttrNames):t.globalAttrNames).map((e=>({label:e,type:"property"}))),validFor:D}}(r,e,i,"AttributeName"==i.name?i.from:n,n):"Is"==i.name||"AttributeValue"==i.name||"UnquotedAttributeValue"==i.name?function(e,t,r,n,i){var s;let o,a=null===(s=r.parent)||void 0===s?void 0:s.getChild("AttributeName"),l=[];if(a){let s=e.sliceDoc(a.from,a.to),u=t.globalAttrs[s];if(!u){let n=b(r),i=n?t.tags[x(e.doc,n)]:null;u=(null==i?void 0:i.attrs)&&i.attrs[s]}if(u){let t=e.sliceDoc(n,i).toLowerCase(),r='"',s='"';/^['"]/.test(t)?(o='"'==t[0]?/^[^"]*$/:/^[^']*$/,r="",s=e.sliceDoc(i,i+1)==t[0]?"":t[0],t=t.slice(1),n++):o=/^[^\s<>='"]*$/;for(let e of u)l.push({label:e,apply:r+e+s,type:"constant"})}}return{from:n,to:i,options:l,validFor:o}}(r,e,i,"Is"==i.name?n:i.from,n):!t.explicit||"Element"!=s.name&&"Text"!=s.name&&"Document"!=s.name?null:function(e,t,r,n){let i=[],s=0;for(let n of v(e.doc,r,t))i.push({label:"<"+n,type:"type"});for(let t of w(e.doc,r))i.push({label:"</"+t+">",type:"type",boost:99-s++});return{from:n,to:n,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(r,e,i,n)}function C(e){let{extraTags:t,extraGlobalAttributes:r}=e,n=r||t?new O(t,r):O.default;return e=>E(n,e)}const T=s.javascriptLanguage.parser.configure({top:"SingleExpression"}),P=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:s.typescriptLanguage.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:s.jsxLanguage.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:s.tsxLanguage.parser},{tag:"script",attrs:e=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type),parser:T},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:s.javascriptLanguage.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:i.cssLanguage.parser}],A=[{name:"style",parser:i.cssLanguage.parser.configure({top:"Styles"})}].concat(y.map((e=>({name:e,parser:s.javascriptLanguage.parser})))),F=l.LRLanguage.define({name:"html",parser:n.parser.configure({props:[l.indentNodeProp.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t,r=null;for(let t=e.node;;){let e=t.lastChild;if(!e||"Element"!=e.name||e.to!=t.to)break;r=t=e}return r&&(!(t=r.lastChild)||"CloseTag"!=t.name&&"SelfClosingTag"!=t.name)?e.lineIndent(r.from)+e.unit:null}}),l.foldNodeProp.add({Element(e){let t=e.firstChild,r=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==r.name?r.from:e.to}:null}}),l.bracketMatchingHandle.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),_=F.configure({wrap:n.configureNesting(P,A)}),I=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),B=o.EditorView.inputHandler.of(((e,t,r,n,i)=>{if(e.composing||e.state.readOnly||t!=r||">"!=n&&"/"!=n||!_.isActiveAt(e.state,t,-1))return!1;let s=i(),{state:o}=s,u=o.changeByRange((e=>{var t,r,i;let s,u=o.doc.sliceString(e.from-1,e.to)==n,{head:c}=e,h=l.syntaxTree(o).resolveInner(c-1,-1);if("TagName"!=h.name&&"StartTag"!=h.name||(h=h.parent),u&&">"==n&&"OpenTag"==h.name){if("CloseTag"!=(null===(r=null===(t=h.parent)||void 0===t?void 0:t.lastChild)||void 0===r?void 0:r.name)&&(s=x(o.doc,h.parent,c))&&!I.has(s))return{range:e,changes:{from:c,to:c+(">"===o.doc.sliceString(c,c+1)?1:0),insert:`</${s}>`}}}else if(u&&"/"==n&&"IncompleteCloseTag"==h.name){let e=h.parent;if(h.from==c-2&&"CloseTag"!=(null===(i=e.lastChild)||void 0===i?void 0:i.name)&&(s=x(o.doc,e,c))&&!I.has(s)){let e=c+(">"===o.doc.sliceString(c,c+1)?1:0),t=`${s}>`;return{range:a.EditorSelection.cursor(c+t.length,-1),changes:{from:c,to:e,insert:t}}}}return{range:e}}));return!u.changes.empty&&(e.dispatch([s,o.update(u,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}));t.autoCloseTags=B,t.html=function(e={}){let t,r="";!1===e.matchClosingTags&&(r="noMatch"),!0===e.selfClosingTags&&(r=(r?r+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(t=n.configureNesting((e.nestedLanguages||[]).concat(P),(e.nestedAttributes||[]).concat(A)));let o=t?F.configure({wrap:t,dialect:r}):r?_.configure({dialect:r}):_;return new l.LanguageSupport(o,[_.data.of({autocomplete:C(e)}),!1!==e.autoCloseTags?B:[],s.javascript().support,i.css().support])},t.htmlCompletionSource=function(e){return E(O.default,e)},t.htmlCompletionSourceWith=C,t.htmlLanguage=_,t.htmlPlain=F},1653:(e,t,r)=>{"use strict";var n=r(9922),i=r(2533),s=r(9064),o=r(1506),a=r(591),l=r(2696);const u=[a.snippetCompletion("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),a.snippetCompletion("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),a.snippetCompletion("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),a.snippetCompletion("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),a.snippetCompletion("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),a.snippetCompletion("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),a.snippetCompletion("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),a.snippetCompletion("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),a.snippetCompletion("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),a.snippetCompletion('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),a.snippetCompletion('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],c=u.concat([a.snippetCompletion("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),a.snippetCompletion("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),a.snippetCompletion("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),h=new l.NodeWeakMap,p=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function d(e){return(t,r)=>{let n=t.node.getChild("VariableDefinition");return n&&r(n,e),!0}}const f=["FunctionDeclaration"],m={FunctionDeclaration:d("function"),ClassDeclaration:d("class"),ClassExpression:()=>!0,EnumDeclaration:d("constant"),TypeAliasDeclaration:d("type"),NamespaceDeclaration:d("namespace"),VariableDefinition(e,t){e.matchContext(f)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function g(e,t){let r=h.get(t);if(r)return r;let n=[],i=!0;function s(t,r){let i=e.sliceString(t.from,t.to);n.push({label:i,type:r})}return t.cursor(l.IterMode.IncludeAnonymous).iterate((t=>{if(i)i=!1;else if(t.name){let e=m[t.name];if(e&&e(t,s)||p.has(t.name))return!1}else if(t.to-t.from>8192){for(let r of g(e,t.node))n.push(r);return!1}})),h.set(t,n),n}const y=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,O=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function x(e){let t=i.syntaxTree(e.state).resolveInner(e.pos,-1);if(O.indexOf(t.name)>-1)return null;let r="VariableName"==t.name||t.to-t.from<20&&y.test(e.state.sliceDoc(t.from,t.to));if(!r&&!e.explicit)return null;let n=[];for(let r=t;r;r=r.parent)p.has(r.name)&&(n=n.concat(g(e.state.doc,r)));return{options:n,from:r?t.from:e.pos,validFor:y}}function b(e,t,r){var n;let i=[];for(;;){let s,o=t.firstChild;if("VariableName"==(null==o?void 0:o.name))return i.push(e(o)),{path:i.reverse(),name:r};if("MemberExpression"!=(null==o?void 0:o.name)||"PropertyName"!=(null===(n=s=o.lastChild)||void 0===n?void 0:n.name))return null;i.push(e(s)),t=o}}function v(e){let t=t=>e.state.doc.sliceString(t.from,t.to),r=i.syntaxTree(e.state).resolveInner(e.pos,-1);return"PropertyName"==r.name?b(t,r.parent,t(r)):"."!=r.name&&"?."!=r.name||"MemberExpression"!=r.parent.name?O.indexOf(r.name)>-1?null:"VariableName"==r.name||r.to-r.from<20&&y.test(t(r))?{path:[],name:t(r)}:"MemberExpression"==r.name?b(t,r,""):e.explicit?{path:[],name:""}:null:b(t,r.parent,"")}const w=i.LRLanguage.define({name:"javascript",parser:n.parser.configure({props:[i.indentNodeProp.add({IfStatement:i.continuedIndent({except:/^\s*({|else\b)/}),TryStatement:i.continuedIndent({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:i.flatIndent,SwitchBody:e=>{let t=e.textAfter,r=/^\s*\}/.test(t),n=/^\s*(case|default)\b/.test(t);return e.baseIndent+(r?0:n?1:2)*e.unit},Block:i.delimitedIndent({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":i.continuedIndent({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),i.foldNodeProp.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":i.foldInside,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),D={test:e=>/^JSX/.test(e.name),facet:i.defineLanguageFacet({commentTokens:{block:{open:"{/*",close:"*/}"}}})},S=w.configure({dialect:"ts"},"typescript"),k=w.configure({dialect:"jsx",props:[i.sublanguageProp.add((e=>e.isTop?[D]:void 0))]}),E=w.configure({dialect:"jsx ts",props:[i.sublanguageProp.add((e=>e.isTop?[D]:void 0))]},"typescript");let C=e=>({label:e,type:"keyword"});const T="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(C),P=T.concat(["declare","implements","private","protected","public"].map(C));function A(e,t,r=e.length){for(let n=null==t?void 0:t.firstChild;n;n=n.nextSibling)if("JSXIdentifier"==n.name||"JSXBuiltin"==n.name||"JSXNamespacedName"==n.name||"JSXMemberExpression"==n.name)return e.sliceString(n.from,Math.min(n.to,r));return""}const F="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),_=o.EditorView.inputHandler.of(((e,t,r,n,o)=>{if((F?e.composing:e.compositionStarted)||e.state.readOnly||t!=r||">"!=n&&"/"!=n||!w.isActiveAt(e.state,t,-1))return!1;let a=o(),{state:l}=a,u=l.changeByRange((e=>{var t;let r,{head:o}=e,a=i.syntaxTree(l).resolveInner(o-1,-1);if("JSXStartTag"==a.name&&(a=a.parent),l.doc.sliceString(o-1,o)!=n||"JSXAttributeValue"==a.name&&a.to>o);else{if(">"==n&&"JSXFragmentTag"==a.name)return{range:e,changes:{from:o,insert:"</>"}};if("/"==n&&"JSXStartCloseTag"==a.name){let e=a.parent,n=e.parent;if(n&&e.from==o-2&&((r=A(l.doc,n.firstChild,o))||"JSXFragmentTag"==(null===(t=n.firstChild)||void 0===t?void 0:t.name))){let e=`${r}>`;return{range:s.EditorSelection.cursor(o+e.length,-1),changes:{from:o,insert:e}}}}else if(">"==n){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(a);if(t&&!/^\/?>|^<\//.test(l.doc.sliceString(o,o+2))&&(r=A(l.doc,t,o)))return{range:e,changes:{from:o,insert:`</${r}>`}}}}return{range:e}}));return!u.changes.empty&&(e.dispatch([a,l.update(u,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}));function I(e,t,r,n){return r.line(e+n.line).from+t+(1==e?n.col-1:-1)}function B(e,t,r){let n=I(e.line,e.column,t,r),i={from:n,to:null!=e.endLine&&1!=e.endColumn?I(e.endLine,e.endColumn,t,r):n,message:e.message,source:e.ruleId?"eslint:"+e.ruleId:"eslint",severity:1==e.severity?"warning":"error"};if(e.fix){let{range:t,text:s}=e.fix,o=t[0]+r.pos-n,a=t[1]+r.pos-n;i.actions=[{name:"fix",apply(e,t){e.dispatch({changes:{from:t+o,to:t+a,insert:s},scrollIntoView:!0})}}]}return i}t.autoCloseTags=_,t.completionPath=v,t.esLint=function(e,t){return t||(t={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},e.getRules().forEach(((e,r)=>{e.meta.docs.recommended&&(t.rules[r]=2)}))),r=>{let{state:n}=r,i=[];for(let{from:r,to:s}of w.findRegions(n)){let o=n.doc.lineAt(r),a={line:o.number-1,col:r-o.from,pos:r};for(let o of e.verify(n.sliceDoc(r,s),t))i.push(B(o,n.doc,a))}return i}},t.javascript=function(e={}){let t=e.jsx?e.typescript?E:k:e.typescript?S:w,r=e.typescript?c.concat(P):u.concat(T);return new i.LanguageSupport(t,[w.data.of({autocomplete:a.ifNotIn(O,a.completeFromList(r))}),w.data.of({autocomplete:x}),e.jsx?_:[]])},t.javascriptLanguage=w,t.jsxLanguage=k,t.localCompletionSource=x,t.scopeCompletionSource=function(e){let t=new Map;return r=>{let n=v(r);if(!n)return null;let i=e;for(let e of n.path)if(i=i[e],!i)return null;let s=t.get(i);return s||t.set(i,s=function(e,t){let r=[],n=new Set;for(let i=0;;i++){for(let s of(Object.getOwnPropertyNames||Object.keys)(e)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(s)||n.has(s))continue;let o;n.add(s);try{o=e[s]}catch(e){continue}r.push({label:s,type:"function"==typeof o?/^[A-Z]/.test(s)?"class":t?"function":"method":t?"variable":"property",boost:-i})}let s=Object.getPrototypeOf(e);if(!s)return r;e=s}}(i,!n.path.length)),{from:r.pos-n.name.length,options:s,validFor:y}}},t.snippets=u,t.tsxLanguage=E,t.typescriptLanguage=S,t.typescriptSnippets=c},2533:(e,t,r)=>{"use strict";var n,i=r(2696),s=r(9064),o=r(1506),a=r(7359),l=r(9172);const u=new i.NodeProp;function c(e){return s.Facet.define({combine:e?t=>t.concat(e):void 0})}const h=new i.NodeProp;class p{constructor(e,t,r=[],n=""){this.data=e,this.name=n,s.EditorState.prototype.hasOwnProperty("tree")||Object.defineProperty(s.EditorState.prototype,"tree",{get(){return m(this)}}),this.parser=t,this.extension=[k.of(this),s.EditorState.languageData.of(((e,t,r)=>{let n=d(e,t,r),i=n.type.prop(u);if(!i)return[];let s=e.facet(i),o=n.type.prop(h);if(o){let i=n.resolve(t-n.from,r);for(let t of o)if(t.test(i,e)){let r=e.facet(t.facet);return"replace"==t.type?r:r.concat(s)}}return s}))].concat(r)}isActiveAt(e,t,r=-1){return d(e,t,r).type.prop(u)==this.data}findRegions(e){let t=e.facet(k);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let r=[],n=(e,t)=>{if(e.prop(u)==this.data)return void r.push({from:t,to:t+e.length});let s=e.prop(i.NodeProp.mounted);if(s){if(s.tree.prop(u)==this.data){if(s.overlay)for(let e of s.overlay)r.push({from:e.from+t,to:e.to+t});else r.push({from:t,to:t+e.length});return}if(s.overlay){let e=r.length;if(n(s.tree,s.overlay[0].from+t),r.length>e)return}}for(let r=0;r<e.children.length;r++){let s=e.children[r];s instanceof i.Tree&&n(s,e.positions[r]+t)}};return n(m(e),0),r}get allowsNesting(){return!0}}function d(e,t,r){let n=e.facet(k),s=m(e).topNode;if(!n||n.allowsNesting)for(let e=s;e;e=e.enter(t,r,i.IterMode.ExcludeBuffers))e.type.isTop&&(s=e);return s}p.setState=s.StateEffect.define();class f extends p{constructor(e,t,r){super(e,t,[],r),this.parser=t}static define(e){let t=c(e.languageData);return new f(t,e.parser.configure({props:[u.add((e=>e.isTop?t:void 0))]}),e.name)}configure(e,t){return new f(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function m(e){let t=e.field(p.state,!1);return t?t.tree:i.Tree.empty}function g(e,t,r=50){var n;let i=null===(n=e.field(p.state,!1))||void 0===n?void 0:n.context;if(!i)return null;let s=i.viewport;i.updateViewport({from:0,to:t});let o=i.isDone(t)||i.work(r,t)?i.tree:null;return i.updateViewport(s),o}class y{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let r=this.cursorPos-this.string.length;return e<r||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-r,t-r)}}let O=null;class x{constructor(e,t,r=[],n,i,s,o,a){this.parser=e,this.state=t,this.fragments=r,this.tree=n,this.treeLen=i,this.viewport=s,this.skipped=o,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,r){return new x(e,t,[],i.Tree.empty,0,r,[],null)}startParse(){return this.parser.startParse(new y(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=i.Tree.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var r;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let n=this.parse.advance();if(n){if(this.fragments=this.withoutTempSkipped(i.TreeFragment.addTree(n,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(r=this.parse.stoppedAt)&&void 0!==r?r:this.state.doc.length,this.tree=n,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}}))}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(i.TreeFragment.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=O;O=this;try{return e()}finally{O=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=b(e,t.from,t.to);return e}changes(e,t){let{fragments:r,tree:n,treeLen:s,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,r,n,i)=>t.push({fromA:e,toA:r,fromB:n,toB:i}))),r=i.TreeFragment.applyChanges(r,t),n=i.Tree.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let t of this.skipped){let r=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);r<n&&a.push({from:r,to:n})}}}return new x(this.parser,t,r,n,s,o,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:r,to:n}=this.skipped[t];r<e.to&&n>e.from&&(this.fragments=b(this.fragments,r,n),this.skipped.splice(t--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends i.Parser{createParse(t,r,n){let s=n[0].from,o=n[n.length-1].to;return{parsedPos:s,advance(){let t=O;if(t){for(let e of n)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new i.Tree(i.NodeType.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return O}}function b(e,t,r){return i.TreeFragment.applyChanges(e,[{fromA:t,toA:r,fromB:t,toB:r}])}class v{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,r)||t.takeTree(),new v(t)}static init(e){let t=Math.min(3e3,e.doc.length),r=x.create(e.facet(k).parser,e,{from:0,to:t});return r.work(20,t)||r.takeTree(),new v(r)}}p.state=s.StateField.define({create:v.init,update(e,t){for(let e of t.effects)if(e.is(p.setState))return e.value;return t.startState.facet(k)!=t.state.facet(k)?v.init(t.state):e.apply(t)}});let w=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(w=e=>{let t=-1,r=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(r):cancelIdleCallback(t)});const D="undefined"!=typeof navigator&&(null===(n=navigator.scheduling)||void 0===n?void 0:n.isInputPending)?()=>navigator.scheduling.isInputPending():null,S=o.ViewPlugin.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(p.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(p.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=w(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:n}}=this.view,i=r.field(p.state);if(i.tree==i.context.tree&&i.context.isDone(n+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!D?Math.max(25,e.timeRemaining()-5):1e9),o=i.context.treeLen<n&&r.doc.length>n+1e3,a=i.context.work((()=>D&&D()||Date.now()>s),n+(o?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:p.setState.of(new v(i.context))})),this.chunkBudget>0&&(!a||o)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>o.logException(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),k=s.Facet.define({combine:e=>e.length?e[0]:null,enables:e=>[p.state,S,o.EditorView.contentAttributes.compute([e],(t=>{let r=t.facet(e);return r&&r.name?{"data-language":r.name}:{}}))]});class E{constructor(e,t,r,n,i,s=void 0){this.name=e,this.alias=t,this.extensions=r,this.filename=n,this.loadFunc=i,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then((e=>this.support=e),(e=>{throw this.loading=null,e})))}static of(e){let{load:t,support:r}=e;if(!t){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(r)}return new E(e.name,(e.alias||[]).concat(e.name).map((e=>e.toLowerCase())),e.extensions||[],e.filename,t,r)}static matchFilename(e,t){for(let r of e)if(r.filename&&r.filename.test(t))return r;let r=/\.([^.]+)$/.exec(t);if(r)for(let t of e)if(t.extensions.indexOf(r[1])>-1)return t;return null}static matchLanguageName(e,t,r=!0){t=t.toLowerCase();for(let r of e)if(r.alias.some((e=>e==t)))return r;if(r)for(let r of e)for(let e of r.alias){let n=t.indexOf(e);if(n>-1&&(e.length>2||!/\w/.test(t[n-1])&&!/\w/.test(t[n+e.length])))return r}return null}}const C=s.Facet.define(),T=s.Facet.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some((e=>e!=t[0])))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function P(e){let t=e.facet(T);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function A(e,t){let r="",n=e.tabSize,i=e.facet(T)[0];if("\t"==i){for(;t>=n;)r+="\t",t-=n;i=" "}for(let e=0;e<t;e++)r+=i;return r}function F(e,t){e instanceof s.EditorState&&(e=new _(e));for(let r of e.state.facet(C)){let n=r(e,t);if(void 0!==n)return n}let r=m(e.state);return r.length>=t?function(e,t,r){let n=t.resolveStack(r),i=n.node.enterUnfinishedNodesBefore(r);if(i!=n.node){let e=[];for(let t=i;t!=n.node;t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)n={node:e[t],next:n}}return B(n,e,r)}(e,r,t):null}class _{constructor(e,t={}){this.state=e,this.options=t,this.unit=P(e)}lineAt(e,t=1){let r=this.state.doc.lineAt(e),{simulateBreak:n,simulateDoubleBreak:i}=this.options;return null!=n&&n>=r.from&&n<=r.to?i&&n==e?{text:"",from:e}:(t<0?n<e:n<=e)?{text:r.text.slice(n-r.from),from:n}:{text:r.text.slice(0,n-r.from),from:r.from}:r}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:r,from:n}=this.lineAt(e,t);return r.slice(e-n,Math.min(r.length,e+100-n))}column(e,t=1){let{text:r,from:n}=this.lineAt(e,t),i=this.countColumn(r,e-n),s=this.options.overrideIndentation?this.options.overrideIndentation(n):-1;return s>-1&&(i+=s-this.countColumn(r,r.search(/\S|$/))),i}countColumn(e,t=e.length){return s.countColumn(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:r,from:n}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(n);if(e>-1)return e}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const I=new i.NodeProp;function B(e,t,r){for(let n=e;n;n=n.next){let e=N(n.node);if(e)return e(Q.create(t,r,n))}return 0}function N(e){let t=e.type.prop(I);if(t)return t;let r,n=e.firstChild;if(n&&(r=n.type.prop(i.NodeProp.closedBy))){let t=e.lastChild,n=t&&r.indexOf(t.name)>-1;return e=>M(e,!0,1,void 0,n&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?$:null}function $(){return 0}class Q extends _{constructor(e,t,r){super(e.state,e.options),this.base=e,this.pos=t,this.context=r}get node(){return this.context.node}static create(e,t,r){return new Q(e,t,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(t.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(L(r,e))break;t=this.state.doc.lineAt(r.from)}return this.lineIndent(t.from)}continue(){return B(this.context.next,this.base,this.pos)}}function L(e,t){for(let r=t;r;r=r.parent)if(e==r)return!0;return!1}function M(e,t,r,n,i){let s=e.textAfter,o=s.match(/^\s*/)[0].length,a=n&&s.slice(o,o+n.length)==n||i==e.pos+o,l=t?function(e){let t=e.node,r=t.childAfter(t.from),n=t.lastChild;if(!r)return null;let i=e.options.simulateBreak,s=e.state.doc.lineAt(r.from),o=null==i||i<=s.from?s.to:Math.min(s.to,i);for(let e=r.to;;){let i=t.childAfter(e);if(!i||i==n)return null;if(!i.type.isSkipped)return i.from<o?r:null;e=i.to}}(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:e.unit*r)}const R=s.Facet.define(),j=new i.NodeProp;function Z(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function q(e,t,r){for(let n of e.facet(R)){let i=n(e,t,r);if(i)return i}return function(e,t,r){let n=m(e);if(n.length<r)return null;let i=null;for(let s=n.resolveStack(r,1);s;s=s.next){let o=s.node;if(o.to<=r||o.from>r)continue;if(i&&o.from<t)break;let a=o.type.prop(j);if(a&&(o.to<n.length-50||n.length==e.doc.length||!Z(o))){let n=a(o,e);n&&n.from<=r&&n.from>=t&&n.to>r&&(i=n)}}return i}(e,t,r)}function W(e,t){let r=t.mapPos(e.from,1),n=t.mapPos(e.to,-1);return r>=n?void 0:{from:r,to:n}}const X=s.StateEffect.define({map:W}),V=s.StateEffect.define({map:W});function U(e){let t=[];for(let{head:r}of e.state.selection.ranges)t.some((e=>e.from<=r&&e.to>=r))||t.push(e.lineBlockAt(r));return t}const Y=s.StateField.define({create:()=>o.Decoration.none,update(e,t){e=e.map(t.changes);for(let r of t.effects)if(r.is(X)&&!G(e,r.value.from,r.value.to)){let{preparePlaceholder:n}=t.state.facet(oe),i=n?o.Decoration.replace({widget:new ce(n(t.state,r.value))}):ue;e=e.update({add:[i.range(r.value.from,r.value.to)]})}else r.is(V)&&(e=e.update({filter:(e,t)=>r.value.from!=e||r.value.to!=t,filterFrom:r.value.from,filterTo:r.value.to}));if(t.selection){let r=!1,{head:n}=t.selection.main;e.between(n,n,((e,t)=>{e<n&&t>n&&(r=!0)})),r&&(e=e.update({filterFrom:n,filterTo:n,filter:(e,t)=>t<=n||e>=n}))}return e},provide:e=>o.EditorView.decorations.from(e),toJSON(e,t){let r=[];return e.between(0,t.doc.length,((e,t)=>{r.push(e,t)})),r},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let r=0;r<e.length;){let n=e[r++],i=e[r++];if("number"!=typeof n||"number"!=typeof i)throw new RangeError("Invalid JSON for fold state");t.push(ue.range(n,i))}return o.Decoration.set(t,!0)}});function z(e,t,r){var n;let i=null;return null===(n=e.field(Y,!1))||void 0===n||n.between(t,r,((e,t)=>{(!i||i.from>e)&&(i={from:e,to:t})})),i}function G(e,t,r){let n=!1;return e.between(t,t,((e,i)=>{e==t&&i==r&&(n=!0)})),n}function H(e,t){return e.field(Y,!1)?t:t.concat(s.StateEffect.appendConfig.of(ae()))}const J=e=>{for(let t of U(e)){let r=q(e.state,t.from,t.to);if(r)return e.dispatch({effects:H(e.state,[X.of(r),ee(e,r)])}),!0}return!1},K=e=>{if(!e.state.field(Y,!1))return!1;let t=[];for(let r of U(e)){let n=z(e.state,r.from,r.to);n&&t.push(V.of(n),ee(e,n,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function ee(e,t,r=!0){let n=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return o.EditorView.announce.of(`${e.state.phrase(r?"Folded lines":"Unfolded lines")} ${n} ${e.state.phrase("to")} ${i}.`)}const te=e=>{let{state:t}=e,r=[];for(let n=0;n<t.doc.length;){let i=e.lineBlockAt(n),s=q(t,i.from,i.to);s&&r.push(X.of(s)),n=(s?e.lineBlockAt(s.to):i).to+1}return r.length&&e.dispatch({effects:H(e.state,r)}),!!r.length},re=e=>{let t=e.state.field(Y,!1);if(!t||!t.size)return!1;let r=[];return t.between(0,e.state.doc.length,((e,t)=>{r.push(V.of({from:e,to:t}))})),e.dispatch({effects:r}),!0};function ne(e,t){for(let r=t;;){let n=q(e.state,r.from,r.to);if(n&&n.to>t.from)return n;if(!r.from)return null;r=e.lineBlockAt(r.from-1)}}const ie=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:J},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:K},{key:"Ctrl-Alt-[",run:te},{key:"Ctrl-Alt-]",run:re}],se={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},oe=s.Facet.define({combine:e=>s.combineConfig(e,se)});function ae(e){let t=[Y,de];return e&&t.push(oe.of(e)),t}function le(e,t){let{state:r}=e,n=r.facet(oe),i=t=>{let r=e.lineBlockAt(e.posAtDOM(t.target)),n=z(e.state,r.from,r.to);n&&e.dispatch({effects:V.of(n)}),t.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(e,i,t);let s=document.createElement("span");return s.textContent=n.placeholderText,s.setAttribute("aria-label",r.phrase("folded code")),s.title=r.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=i,s}const ue=o.Decoration.replace({widget:new class extends o.WidgetType{toDOM(e){return le(e,null)}}});class ce extends o.WidgetType{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return le(e,this.value)}}const he={openText:"⌄",closedText:"",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class pe extends o.GutterMarker{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}const de=o.EditorView.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class fe{constructor(e,t){let r;function n(e){let t=l.StyleModule.newName();return(r||(r=Object.create(null)))["."+t]=e,t}this.specs=e;const i="string"==typeof t.all?t.all:t.all?n(t.all):void 0,s=t.scope;this.scope=s instanceof p?e=>e.prop(u)==s.data:s?e=>e==s:void 0,this.style=a.tagHighlighter(e.map((e=>({tag:e.tag,class:e.class||n(Object.assign({},e,{tag:null}))}))),{all:i}).style,this.module=r?new l.StyleModule(r):null,this.themeType=t.themeType}static define(e,t){return new fe(e,t||{})}}const me=s.Facet.define(),ge=s.Facet.define({combine:e=>e.length?[e[0]]:null});function ye(e){let t=e.facet(me);return t.length?t:e.facet(ge)}const Oe=s.Prec.high(o.ViewPlugin.fromClass(class{constructor(e){this.markCache=Object.create(null),this.tree=m(e.state),this.decorations=this.buildDeco(e,ye(e.state))}update(e){let t=m(e.state),r=ye(e.state),n=r!=ye(e.startState);t.length<e.view.viewport.to&&!n&&t.type==this.tree.type?this.decorations=this.decorations.map(e.changes):(t!=this.tree||e.viewportChanged||n)&&(this.tree=t,this.decorations=this.buildDeco(e.view,r))}buildDeco(e,t){if(!t||!this.tree.length)return o.Decoration.none;let r=new s.RangeSetBuilder;for(let{from:n,to:i}of e.visibleRanges)a.highlightTree(this.tree,t,((e,t,n)=>{r.add(e,t,this.markCache[n]||(this.markCache[n]=o.Decoration.mark({class:n})))}),n,i);return r.finish()}},{decorations:e=>e.decorations})),xe=fe.define([{tag:a.tags.meta,color:"#404740"},{tag:a.tags.link,textDecoration:"underline"},{tag:a.tags.heading,textDecoration:"underline",fontWeight:"bold"},{tag:a.tags.emphasis,fontStyle:"italic"},{tag:a.tags.strong,fontWeight:"bold"},{tag:a.tags.strikethrough,textDecoration:"line-through"},{tag:a.tags.keyword,color:"#708"},{tag:[a.tags.atom,a.tags.bool,a.tags.url,a.tags.contentSeparator,a.tags.labelName],color:"#219"},{tag:[a.tags.literal,a.tags.inserted],color:"#164"},{tag:[a.tags.string,a.tags.deleted],color:"#a11"},{tag:[a.tags.regexp,a.tags.escape,a.tags.special(a.tags.string)],color:"#e40"},{tag:a.tags.definition(a.tags.variableName),color:"#00f"},{tag:a.tags.local(a.tags.variableName),color:"#30a"},{tag:[a.tags.typeName,a.tags.namespace],color:"#085"},{tag:a.tags.className,color:"#167"},{tag:[a.tags.special(a.tags.variableName),a.tags.macroName],color:"#256"},{tag:a.tags.definition(a.tags.propertyName),color:"#00c"},{tag:a.tags.comment,color:"#940"},{tag:a.tags.invalid,color:"#f00"}]),be=o.EditorView.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),ve="()[]{}",we=s.Facet.define({combine:e=>s.combineConfig(e,{afterCursor:!0,brackets:ve,maxScanDistance:1e4,renderMatch:ke})}),De=o.Decoration.mark({class:"cm-matchingBracket"}),Se=o.Decoration.mark({class:"cm-nonmatchingBracket"});function ke(e){let t=[],r=e.matched?De:Se;return t.push(r.range(e.start.from,e.start.to)),e.end&&t.push(r.range(e.end.from,e.end.to)),t}const Ee=[s.StateField.define({create:()=>o.Decoration.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let r=[],n=t.state.facet(we);for(let e of t.state.selection.ranges){if(!e.empty)continue;let i=Ae(t.state,e.head,-1,n)||e.head>0&&Ae(t.state,e.head-1,1,n)||n.afterCursor&&(Ae(t.state,e.head,1,n)||e.head<t.state.doc.length&&Ae(t.state,e.head+1,-1,n));i&&(r=r.concat(n.renderMatch(i,t.state)))}return o.Decoration.set(r,!0)},provide:e=>o.EditorView.decorations.from(e)}),be],Ce=new i.NodeProp;function Te(e,t,r){let n=e.prop(t<0?i.NodeProp.openedBy:i.NodeProp.closedBy);if(n)return n;if(1==e.name.length){let n=r.indexOf(e.name);if(n>-1&&n%2==(t<0?1:0))return[r[n+t]]}return null}function Pe(e){let t=e.type.prop(Ce);return t?t(e.node):e}function Ae(e,t,r,n={}){let i=n.maxScanDistance||1e4,s=n.brackets||ve,o=m(e),a=o.resolveInner(t,r);for(let e=a;e;e=e.parent){let n=Te(e.type,r,s);if(n&&e.from<e.to){let i=Pe(e);if(i&&(r>0?t>=i.from&&t<i.to:t>i.from&&t<=i.to))return Fe(0,0,r,e,i,n,s)}}return function(e,t,r,n,i,s,o){let a=r<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=o.indexOf(a);if(l<0||l%2==0!=r>0)return null;let u={from:r<0?t-1:t,to:r>0?t+1:t},c=e.doc.iterRange(t,r>0?e.doc.length:0),h=0;for(let e=0;!c.next().done&&e<=s;){let s=c.value;r<0&&(e+=s.length);let a=t+e*r;for(let e=r>0?0:s.length-1,t=r>0?s.length:-1;e!=t;e+=r){let t=o.indexOf(s[e]);if(!(t<0||n.resolveInner(a+e,1).type!=i))if(t%2==0==r>0)h++;else{if(1==h)return{start:u,end:{from:a+e,to:a+e+1},matched:t>>1==l>>1};h--}}r>0&&(e+=s.length)}return c.done?{start:u,matched:!1}:null}(e,t,r,o,a.type,i,s)}function Fe(e,t,r,n,i,s,o){let a=n.parent,l={from:i.from,to:i.to},u=0,c=null==a?void 0:a.cursor();if(c&&(r<0?c.childBefore(n.from):c.childAfter(n.to)))do{if(r<0?c.to<=n.from:c.from>=n.to){if(0==u&&s.indexOf(c.type.name)>-1&&c.from<c.to){let e=Pe(c);return{start:l,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}if(Te(c.type,r,o))u++;else if(Te(c.type,-r,o)){if(0==u){let e=Pe(c);return{start:l,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}u--}}}while(r<0?c.prevSibling():c.nextSibling());return{start:l,matched:!1}}function _e(e,t,r,n=0,i=0){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);let s=i;for(let i=n;i<t;i++)9==e.charCodeAt(i)?s+=r-s%r:s++;return s}class Ie{constructor(e,t,r,n){this.string=e,this.tabSize=t,this.indentUnit=r,this.overrideIndent=n,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(e){let t,r=this.string.charAt(this.pos);if(t="string"==typeof e?r==e:r&&(e instanceof RegExp?e.test(r):e(r)),t)return++this.pos,r}eatWhile(e){let t=this.pos;for(;this.eat(e););return this.pos>t}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=_e(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var e;return null!==(e=this.overrideIndent)&&void 0!==e?e:_e(this.string,null,this.tabSize)}match(e,t,r){if("string"==typeof e){let n=e=>r?e.toLowerCase():e;return n(this.string.substr(this.pos,e.length))==n(e)?(!1!==t&&(this.pos+=e.length),!0):null}{let r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}}current(){return this.string.slice(this.start,this.pos)}}function Be(e){if("object"!=typeof e)return e;let t={};for(let r in e){let n=e[r];t[r]=n instanceof Array?n.slice():n}return t}const Ne=new WeakMap;class $e extends p{constructor(e){let t,r=c(e.languageData),n={name:(s=e).name||"",token:s.token,blankLine:s.blankLine||(()=>{}),startState:s.startState||(()=>!0),copyState:s.copyState||Be,indent:s.indent||(()=>null),languageData:s.languageData||{},tokenTable:s.tokenTable||je};var s;super(r,new class extends i.Parser{createParse(e,r,n){return new Me(t,e,r,n)}},[C.of(((e,t)=>this.getIndent(e,t)))],e.name),this.topNode=function(e){let t=i.NodeType.define({id:Ze.length,name:"Document",props:[u.add((()=>e))],top:!0});return Ze.push(t),t}(r),t=this,this.streamParser=n,this.stateAfter=new i.NodeProp({perNode:!0}),this.tokenTable=e.tokenTable?new Ue(n.tokenTable):Ye}static define(e){return new $e(e)}getIndent(e,t){let r,n=m(e.state),i=n.resolve(t);for(;i&&i.type!=this.topNode;)i=i.parent;if(!i)return null;let{overrideIndentation:s}=e.options;s&&(r=Ne.get(e.state),null!=r&&r<t-1e4&&(r=void 0));let o,a,l=Qe(this,n,0,i.from,null!=r?r:t);if(l?(a=l.state,o=l.pos+1):(a=this.streamParser.startState(e.unit),o=0),t-o>1e4)return null;for(;o<t;){let r=e.state.doc.lineAt(o),n=Math.min(t,r.to);if(r.length){let t=s?s(r.from):-1,i=new Ie(r.text,e.state.tabSize,e.unit,t<0?void 0:t);for(;i.pos<n-r.from;)Re(this.streamParser.token,i,a)}else this.streamParser.blankLine(a,e.unit);if(n==t)break;o=r.to+1}let u=e.lineAt(t);return s&&null==r&&Ne.set(e.state,u.from),this.streamParser.indent(a,/^\s*(.*)/.exec(u.text)[1],e)}get allowsNesting(){return!1}}function Qe(e,t,r,n,s){let o=r>=n&&r+t.length<=s&&t.prop(e.stateAfter);if(o)return{state:e.streamParser.copyState(o),pos:r+t.length};for(let o=t.children.length-1;o>=0;o--){let a=t.children[o],l=r+t.positions[o],u=a instanceof i.Tree&&l<s&&Qe(e,a,l,n,s);if(u)return u}return null}function Le(e,t,r,n,s){if(s&&r<=0&&n>=t.length)return t;s||t.type!=e.topNode||(s=!0);for(let o=t.children.length-1;o>=0;o--){let a,l=t.positions[o],u=t.children[o];if(l<n&&u instanceof i.Tree){if(!(a=Le(e,u,r-l,n-l,s)))break;return s?new i.Tree(t.type,t.children.slice(0,o).concat(a),t.positions.slice(0,o+1),l+a.length):a}}return null}class Me{constructor(e,t,r,n){this.lang=e,this.input=t,this.fragments=r,this.ranges=n,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=n[n.length-1].to;let s=x.get(),o=n[0].from,{state:a,tree:l}=function(e,t,r,n){for(let n of t){let t,i=n.from+(n.openStart?25:0),s=n.to-(n.openEnd?25:0),o=i<=r&&s>r&&Qe(e,n.tree,0-n.offset,r,s);if(o&&(t=Le(e,n.tree,r+n.offset,o.pos+n.offset,!1)))return{state:o.state,tree:t}}return{state:e.streamParser.startState(n?P(n):4),tree:i.Tree.empty}}(e,r,o,null==s?void 0:s.state);this.state=a,this.parsedPos=this.chunkStart=o+l.length;for(let e=0;e<l.children.length;e++)this.chunks.push(l.children[e]),this.chunkPos.push(l.positions[e]);s&&this.parsedPos<s.viewport.from-1e5&&(this.state=this.lang.streamParser.startState(P(s.state)),s.skipUntilInView(this.parsedPos,s.viewport.from),this.parsedPos=s.viewport.from),this.moveRangeIndex()}advance(){let e=x.get(),t=null==this.stoppedAt?this.to:Math.min(this.to,this.stoppedAt),r=Math.min(t,this.chunkStart+2048);for(e&&(r=Math.min(r,e.viewport.to));this.parsedPos<r;)this.parseLine(e);return this.chunkStart<this.parsedPos&&this.finishChunk(),this.parsedPos>=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)"\n"==t&&(t="");else{let e=t.indexOf("\n");e>-1&&(t=t.slice(0,e))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),r=e+t.length;for(let e=this.rangeIndex;;){let n=this.ranges[e].to;if(n>=r)break;if(t=t.slice(0,n-(r-t.length)),e++,e==this.ranges.length)break;let i=this.ranges[e].from,s=this.lineAfter(i);t+=s,r=i+s.length}return{line:t,end:r}}skipGapsTo(e,t,r){for(;;){let n=this.ranges[this.rangeIndex].to,i=e+t;if(r>0?n>i:n>=i)break;t+=this.ranges[++this.rangeIndex].from-n}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(e,t,r,n,i){if(this.ranges.length>1){t+=i=this.skipGapsTo(t,i,1);let e=this.chunk.length;r+=i=this.skipGapsTo(r,i,-1),n+=this.chunk.length-e}return this.chunk.push(e,t,r,n),i}parseLine(e){let{line:t,end:r}=this.nextLine(),n=0,{streamParser:i}=this.lang,s=new Ie(t,e?e.state.tabSize:4,e?P(e.state):2);if(s.eol())i.blankLine(this.state,s.indentUnit);else for(;!s.eol();){let e=Re(i.token,s,this.state);if(e&&(n=this.emitToken(this.lang.tokenTable.resolve(e),this.parsedPos+s.start,this.parsedPos+s.pos,4,n)),s.start>1e4)break}this.parsedPos=r,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let e=i.Tree.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:qe,topID:0,maxBufferLength:2048,reused:this.chunkReused});e=new i.Tree(e.type,e.children,e.positions,e.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(e),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new i.Tree(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}}function Re(e,t,r){t.start=t.pos;for(let n=0;n<10;n++){let n=e(t,r);if(t.pos>t.start)return n}throw new Error("Stream parser failed to advance stream.")}const je=Object.create(null),Ze=[i.NodeType.none],qe=new i.NodeSet(Ze),We=[],Xe=Object.create(null),Ve=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Ve[e]=Ge(je,t);class Ue{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),Ve)}resolve(e){return e?this.table[e]||(this.table[e]=Ge(this.extra,e)):0}}const Ye=new Ue(je);function ze(e,t){We.indexOf(e)>-1||(We.push(e),console.warn(t))}function Ge(e,t){let r=[];for(let n of t.split(" ")){let t=[];for(let r of n.split(".")){let n=e[r]||a.tags[r];n?"function"==typeof n?t.length?t=t.map(n):ze(r,`Modifier ${r} used at start of tag`):t.length?ze(r,`Tag ${r} used as modifier`):t=Array.isArray(n)?n:[n]:ze(r,`Unknown highlighting tag ${r}`)}for(let e of t)r.push(e)}if(!r.length)return 0;let n=t.replace(/ /g,"_"),s=n+" "+r.map((e=>e.id)),o=Xe[s];if(o)return o.id;let l=Xe[s]=i.NodeType.define({id:Ze.length,name:n,props:[a.styleTags({[n]:r})]});return Ze.push(l),l.id}function He(e){return e.length<=4096&&/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/.test(e)}function Je(e){for(let t=e.iter();!t.next().done;)if(He(t.value))return!0;return!1}const Ke=s.Facet.define({combine:e=>e.some((e=>e))}),et=o.ViewPlugin.fromClass(class{constructor(e){this.always=e.state.facet(Ke)||e.textDirection!=o.Direction.LTR||e.state.facet(o.EditorView.perLineTextDirection),this.hasRTL=!this.always&&Je(e.state.doc),this.tree=m(e.state),this.decorations=tt(e,this.tree,this.always)}update(e){let t=e.state.facet(Ke)||e.view.textDirection!=o.Direction.LTR||e.state.facet(o.EditorView.perLineTextDirection);if(t||this.hasRTL||!function(e){let t=!1;return e.iterChanges(((e,r,n,i,s)=>{!t&&Je(s)&&(t=!0)})),t}(e.changes)||(this.hasRTL=!0),!t&&!this.hasRTL)return;let r=m(e.state);(t!=this.always||r!=this.tree||e.docChanged||e.viewportChanged)&&(this.tree=r,this.always=t,this.decorations=tt(e.view,r,t))}},{provide:e=>{function t(t){var r,n;return null!==(n=null===(r=t.plugin(e))||void 0===r?void 0:r.decorations)&&void 0!==n?n:o.Decoration.none}return[o.EditorView.outerDecorations.of(t),s.Prec.lowest(o.EditorView.bidiIsolatedRanges.of(t))]}});function tt(e,t,r){let n=new s.RangeSetBuilder,o=e.visibleRanges;r||(o=function(e,t){let r=t.iter(),n=0,i=[],s=null;for(let{from:t,to:o}of e)for(t!=n&&(n<t&&r.next(t-n),n=t);;){let e=n,t=n+r.value.length;if(!r.lineBreak&&He(r.value)&&(s&&s.to>e-10?s.to=Math.min(o,t):i.push(s={from:e,to:Math.min(o,t)})),n>=o)break;n=t,r.next()}return i}(o,e.state.doc));for(let{from:e,to:r}of o)t.iterate({enter:e=>{let t=e.type.prop(i.NodeProp.isolate);t&&n.add(e.from,e.to,rt[t])},from:e,to:r});return n.finish()}const rt={rtl:o.Decoration.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:o.Direction.RTL}),ltr:o.Decoration.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:o.Direction.LTR}),auto:o.Decoration.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})};t.DocInput=y,t.HighlightStyle=fe,t.IndentContext=_,t.LRLanguage=f,t.Language=p,t.LanguageDescription=E,t.LanguageSupport=class{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}},t.ParseContext=x,t.StreamLanguage=$e,t.StringStream=Ie,t.TreeIndentContext=Q,t.bidiIsolates=function(e={}){let t=[et];return e.alwaysIsolate&&t.push(Ke.of(!0)),t},t.bracketMatching=function(e={}){return[we.of(e),Ee]},t.bracketMatchingHandle=Ce,t.codeFolding=ae,t.continuedIndent=function({except:e,units:t=1}={}){return r=>{let n=e&&e.test(r.textAfter);return r.baseIndent+(n?0:t*r.unit)}},t.defaultHighlightStyle=xe,t.defineLanguageFacet=c,t.delimitedIndent=function({closing:e,align:t=!0,units:r=1}){return n=>M(n,t,r,e)},t.ensureSyntaxTree=g,t.flatIndent=e=>e.baseIndent,t.foldAll=te,t.foldCode=J,t.foldEffect=X,t.foldGutter=function(e={}){let t=Object.assign(Object.assign({},he),e),r=new pe(t,!0),n=new pe(t,!1),i=o.ViewPlugin.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(k)!=e.state.facet(k)||e.startState.field(Y,!1)!=e.state.field(Y,!1)||m(e.startState)!=m(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new s.RangeSetBuilder;for(let i of e.viewportLineBlocks){let s=z(e.state,i.from,i.to)?n:q(e.state,i.from,i.to)?r:null;s&&t.add(i.from,i.from,s)}return t.finish()}}),{domEventHandlers:a}=t;return[i,o.gutter({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(i))||void 0===t?void 0:t.markers)||s.RangeSet.empty},initialSpacer:()=>new pe(t,!1),domEventHandlers:Object.assign(Object.assign({},a),{click:(e,t,r)=>{if(a.click&&a.click(e,t,r))return!0;let n=z(e.state,t.from,t.to);if(n)return e.dispatch({effects:V.of(n)}),!0;let i=q(e.state,t.from,t.to);return!!i&&(e.dispatch({effects:X.of(i)}),!0)}})}),ae()]},t.foldInside=function(e){let t=e.firstChild,r=e.lastChild;return t&&t.to<r.from?{from:t.to,to:r.type.isError?e.to:r.from}:null},t.foldKeymap=ie,t.foldNodeProp=j,t.foldService=R,t.foldState=Y,t.foldable=q,t.foldedRanges=function(e){return e.field(Y,!1)||s.RangeSet.empty},t.forceParsing=function(e,t=e.viewport.to,r=100){let n=g(e.state,t,r);return n!=m(e.state)&&e.dispatch({}),!!n},t.getIndentUnit=P,t.getIndentation=F,t.highlightingFor=function(e,t,r){let n=ye(e),i=null;if(n)for(let e of n)if(!e.scope||r&&e.scope(r)){let r=e.style(t);r&&(i=i?i+" "+r:r)}return i},t.indentNodeProp=I,t.indentOnInput=function(){return s.EditorState.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let r=e.newDoc,{head:n}=e.newSelection.main,i=r.lineAt(n);if(n>i.from+200)return e;let s=r.sliceString(i.from,n);if(!t.some((e=>e.test(s))))return e;let{state:o}=e,a=-1,l=[];for(let{head:e}of o.selection.ranges){let t=o.doc.lineAt(e);if(t.from==a)continue;a=t.from;let r=F(o,t.from);if(null==r)continue;let n=/^\s*/.exec(t.text)[0],i=A(o,r);n!=i&&l.push({from:t.from,to:t.from+n.length,insert:i})}return l.length?[e,{changes:l,sequential:!0}]:e}))},t.indentRange=function(e,t,r){let n=Object.create(null),i=new _(e,{overrideIndentation:e=>{var t;return null!==(t=n[e])&&void 0!==t?t:-1}}),s=[];for(let o=t;o<=r;){let t=e.doc.lineAt(o);o=t.to+1;let r=F(i,t.from);if(null==r)continue;/\S/.test(t.text)||(r=0);let a=/^\s*/.exec(t.text)[0],l=A(e,r);a!=l&&(n[t.from]=r,s.push({from:t.from,to:t.from+a.length,insert:l}))}return e.changes(s)},t.indentService=C,t.indentString=A,t.indentUnit=T,t.language=k,t.languageDataProp=u,t.matchBrackets=Ae,t.sublanguageProp=h,t.syntaxHighlighting=function(e,t){let r,n=[Oe];return e instanceof fe&&(e.module&&n.push(o.EditorView.styleModule.of(e.module)),r=e.themeType),(null==t?void 0:t.fallback)?n.push(ge.of(e)):r?n.push(me.computeN([o.EditorView.darkTheme],(t=>t.facet(o.EditorView.darkTheme)==("dark"==r)?[e]:[]))):n.push(me.of(e)),n},t.syntaxParserRunning=function(e){var t;return(null===(t=e.plugin(S))||void 0===t?void 0:t.isWorking())||!1},t.syntaxTree=m,t.syntaxTreeAvailable=function(e,t=e.doc.length){var r;return(null===(r=e.field(p.state,!1))||void 0===r?void 0:r.context.isDone(t))||!1},t.toggleFold=e=>{let t=[];for(let r of U(e)){let n=z(e.state,r.from,r.to);if(n)t.push(V.of(n),ee(e,n,!1));else{let n=ne(e,r);n&&t.push(X.of(n),ee(e,n))}}return t.length>0&&e.dispatch({effects:H(e.state,t)}),!!t.length},t.unfoldAll=re,t.unfoldCode=K,t.unfoldEffect=V},4126:(e,t,r)=>{"use strict";var n=r(1506),i=r(9064),s=r(8748);class o{constructor(e,t,r){this.from=e,this.to=t,this.diagnostic=r}}class a{constructor(e,t,r){this.diagnostics=e,this.panel=t,this.selected=r}static init(e,t,r){let i=e,s=r.facet(D).markerFilter;s&&(i=s(i));let o=n.Decoration.set(i.map((e=>e.from==e.to||e.from==e.to-1&&r.doc.lineAt(e.from).to==e.from?n.Decoration.widget({widget:new E(e),diagnostic:e}).range(e.from):n.Decoration.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},diagnostic:e}).range(e.from,e.to))),!0);return new a(o,t,l(o))}}function l(e,t=null,r=0){let n=null;return e.between(r,1e9,((e,r,{spec:i})=>{if(!t||i.diagnostic==t)return n=new o(e,r,i.diagnostic),!1})),n}function u(e,t){let r=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((e=>e.is(p)))&&!e.changes.touchesRange(r.from,r.to))}function c(e,t){return e.field(m,!1)?t:t.concat(i.StateEffect.appendConfig.of(R))}function h(e,t){return{effects:c(e,[p.of(t)])}}const p=i.StateEffect.define(),d=i.StateEffect.define(),f=i.StateEffect.define(),m=i.StateField.define({create:()=>new a(n.Decoration.none,null,null),update(e,t){if(t.docChanged){let r=e.diagnostics.map(t.changes),n=null;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);n=l(r,e.selected.diagnostic,i)||l(r,null,i)}e=new a(r,e.panel,n)}for(let r of t.effects)r.is(p)?e=a.init(r.value,e.panel,t.state):r.is(d)?e=new a(e.diagnostics,r.value?T.open:null,e.selected):r.is(f)&&(e=new a(e.diagnostics,e.panel,r.value));return e},provide:e=>[n.showPanel.from(e,(e=>e.panel)),n.EditorView.decorations.from(e,(e=>e.diagnostics))]}),g=n.Decoration.mark({class:"cm-lintRange cm-lintRange-active"});function y(e,t){return s("ul",{class:"cm-tooltip-lint"},t.map((t=>k(e,t,!1))))}const O=e=>{let t=e.state.field(m,!1);t&&t.panel||e.dispatch({effects:c(e.state,[d.of(!0)])});let r=n.getPanel(e,T.open);return r&&r.dom.querySelector(".cm-panel-lint ul").focus(),!0},x=e=>{let t=e.state.field(m,!1);return!(!t||!t.panel||(e.dispatch({effects:d.of(!1)}),0))},b=e=>{let t=e.state.field(m,!1);if(!t)return!1;let r=e.state.selection.main,n=t.diagnostics.iter(r.to+1);return!(!n.value&&(n=t.diagnostics.iter(0),!n.value||n.from==r.from&&n.to==r.to)||(e.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0}),0))},v=[{key:"Mod-Shift-m",run:O,preventDefault:!0},{key:"F8",run:b}],w=n.ViewPlugin.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet(D);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){let e=Date.now();if(e<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-e);else{this.set=!1;let{state:e}=this.view,{sources:t}=e.facet(D);Promise.all(t.map((e=>Promise.resolve(e(this.view))))).then((t=>{let r=t.reduce(((e,t)=>e.concat(t)));this.view.state.doc==e.doc&&this.view.dispatch(h(this.view.state,r))}),(e=>{n.logException(this.view.state,e)}))}}update(e){let t=e.state.facet(D);(e.docChanged||t!=e.startState.facet(D)||t.needsRefresh&&t.needsRefresh(e))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),D=i.Facet.define({combine:e=>Object.assign({sources:e.map((e=>e.source))},i.combineConfig(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,t)=>e?t?r=>e(r)||t(r):e:t}))});function S(e){let t=[];if(e)e:for(let{name:r}of e){for(let e=0;e<r.length;e++){let n=r[e];if(/[a-zA-Z]/.test(n)&&!t.some((e=>e.toLowerCase()==n.toLowerCase()))){t.push(n);continue e}}t.push("")}return t}function k(e,t,r){var n;let i=r?S(t.actions):[];return s("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},s("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(n=t.actions)||void 0===n?void 0:n.map(((r,n)=>{let o=!1,a=n=>{if(n.preventDefault(),o)return;o=!0;let i=l(e.state.field(m).diagnostics,t);i&&r.apply(e,i.from,i.to)},{name:u}=r,c=i[n]?u.indexOf(i[n]):-1,h=c<0?u:[u.slice(0,c),s("u",u.slice(c,c+1)),u.slice(c+1)];return s("button",{type:"button",class:"cm-diagnosticAction",onclick:a,onmousedown:a,"aria-label":` Action: ${u}${c<0?"":` (access key "${i[n]})"`}.`},h)})),t.source&&s("div",{class:"cm-diagnosticSource"},t.source))}class E extends n.WidgetType{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return s("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class C{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=k(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class T{constructor(e){this.view=e,this.items=[],this.list=s("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)x(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:r}=this.items[this.selectedIndex],n=S(r.actions);for(let i=0;i<n.length;i++)if(n[i].toUpperCase().charCodeAt(0)==t.keyCode){let t=l(this.view.state.field(m).diagnostics,r);t&&r.actions[i].apply(e,t.from,t.to)}}}t.preventDefault()},onclick:e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)}}),this.dom=s("div",{class:"cm-panel-lint"},this.list,s("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>x(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(m).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(m),r=0,n=!1,i=null;for(e.between(0,this.view.state.doc.length,((e,s,{spec:o})=>{let a,l=-1;for(let e=r;e<this.items.length;e++)if(this.items[e].diagnostic==o.diagnostic){l=e;break}l<0?(a=new C(this.view,o.diagnostic),this.items.splice(r,0,a),n=!0):(a=this.items[l],l>r&&(this.items.splice(r,l-r),n=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),i=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),r++}));r<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)n=!0,this.items.pop();0==this.items.length&&(this.items.push(new C(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),n=!0),i?(this.list.setAttribute("aria-activedescendant",i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let r=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/r:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/r)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),n&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;e!=r.dom;)t();e=r.dom.nextSibling}else this.list.insertBefore(r.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=l(this.view.state.field(m).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:f.of(t)})}static open(e){return new T(e)}}function P(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}function A(e){return P(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const F=n.EditorView.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:A("#d11")},".cm-lintRange-warning":{backgroundImage:A("orange")},".cm-lintRange-info":{backgroundImage:A("#999")},".cm-lintRange-hint":{backgroundImage:A("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function _(e){return"error"==e?4:"warning"==e?3:"info"==e?2:1}class I extends n.GutterMarker{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce(((e,t)=>_(e)<_(t.severity)?t.severity:e),"hint")}toDOM(e){let t=document.createElement("div");t.className="cm-lint-marker cm-lint-marker-"+this.severity;let r=this.diagnostics,n=e.state.facet(j).tooltipFilter;return n&&(r=n(r)),r.length&&(t.onmouseover=()=>function(e,t,r){function n(){let n=e.elementAtHeight(t.getBoundingClientRect().top+5-e.documentTop);e.coordsAtPos(n.from)&&e.dispatch({effects:Q.of({pos:n.from,above:!1,create:()=>({dom:y(e,r),getCoords:()=>t.getBoundingClientRect()})})}),t.onmouseout=t.onmousemove=null,function(e,t){let r=n=>{let i=t.getBoundingClientRect();if(!(n.clientX>i.left-10&&n.clientX<i.right+10&&n.clientY>i.top-10&&n.clientY<i.bottom+10)){for(let e=n.target;e;e=e.parentNode)if(1==e.nodeType&&e.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",r),e.state.field(L)&&e.dispatch({effects:Q.of(null)})}};window.addEventListener("mousemove",r)}(e,t)}let{hoverTime:i}=e.state.facet(j),s=setTimeout(n,i);t.onmouseout=()=>{clearTimeout(s),t.onmouseout=t.onmousemove=null},t.onmousemove=()=>{clearTimeout(s),s=setTimeout(n,i)}}(e,t,r)),t}}function B(e,t){let r=Object.create(null);for(let n of t){let t=e.lineAt(n.from);(r[t.from]||(r[t.from]=[])).push(n)}let n=[];for(let e in r)n.push(new I(r[e]).range(+e));return i.RangeSet.of(n,!0)}const N=n.gutter({class:"cm-gutter-lint",markers:e=>e.state.field($)}),$=i.StateField.define({create:()=>i.RangeSet.empty,update(e,t){e=e.map(t.changes);let r=t.state.facet(j).markerFilter;for(let n of t.effects)if(n.is(p)){let i=n.value;r&&(i=r(i||[])),e=B(t.state.doc,i.slice(0))}return e}}),Q=i.StateEffect.define(),L=i.StateField.define({create:()=>null,update:(e,t)=>(e&&t.docChanged&&(e=u(t,e)?null:Object.assign(Object.assign({},e),{pos:t.changes.mapPos(e.pos)})),t.effects.reduce(((e,t)=>t.is(Q)?t.value:e),e)),provide:e=>n.showTooltip.from(e)}),M=n.EditorView.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:P('<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>')},".cm-lint-marker-warning":{content:P('<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>')},".cm-lint-marker-error":{content:P('<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>')}}),R=[m,n.EditorView.decorations.compute([m],(e=>{let{selected:t,panel:r}=e.field(m);return t&&r&&t.from!=t.to?n.Decoration.set([g.range(t.from,t.to)]):n.Decoration.none})),n.hoverTooltip((function(e,t,r){let{diagnostics:n}=e.state.field(m),i=[],s=2e8,o=0;n.between(t-(r<0?1:0),t+(r>0?1:0),((e,n,{spec:a})=>{t>=e&&t<=n&&(e==n||(t>e||r>0)&&(t<n||r<0))&&(i.push(a.diagnostic),s=Math.min(e,s),o=Math.max(n,o))}));let a=e.state.facet(D).tooltipFilter;return a&&(i=a(i)),i.length?{pos:s,end:o,above:e.state.doc.lineAt(s).to<o,create:()=>({dom:y(e,i)})}:null}),{hideOn:u}),F],j=i.Facet.define({combine:e=>i.combineConfig(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})});t.closeLintPanel=x,t.diagnosticCount=function(e){let t=e.field(m,!1);return t?t.diagnostics.size:0},t.forEachDiagnostic=function(e,t){let r=e.field(m,!1);if(r&&r.diagnostics.size)for(let e=i.RangeSet.iter([r.diagnostics]);e.value;e.next())t(e.value.spec.diagnostic,e.from,e.to)},t.forceLinting=function(e){let t=e.plugin(w);t&&t.force()},t.lintGutter=function(e={}){return[j.of(e),$,N,M,L]},t.lintKeymap=v,t.linter=function(e,t={}){return[D.of({source:e,config:t}),w,R]},t.nextDiagnostic=b,t.openLintPanel=O,t.previousDiagnostic=e=>{let{state:t}=e,r=t.field(m,!1);if(!r)return!1;let n,i,s,o,a=t.selection.main;return r.diagnostics.between(0,t.doc.length,((e,t)=>{t<a.to&&(null==n||n<e)&&(n=e,i=t),(null==s||e>s)&&(s=e,o=t)})),null!=s&&(null!=n||s!=a.from)&&(e.dispatch({selection:{anchor:null!=n?n:s,head:null!=i?i:o},scrollIntoView:!0}),!0)},t.setDiagnostics=h,t.setDiagnosticsEffect=p},8539:(e,t,r)=>{"use strict";var n=r(1506),i=r(9064),s=r(8748);const o="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class a{constructor(e,t,r=0,n=e.length,i,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(r,n),this.bufferStart=r,this.normalize=i?e=>i(o(e)):o,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return i.codePointAt(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=i.fromCodePoint(e),r=this.bufferStart+this.bufferPos;this.bufferPos+=i.codePointSize(e);let n=this.normalize(t);for(let e=0,i=r;;e++){let s=n.charCodeAt(e),o=this.match(s,i);if(e==n.length-1){if(o)return this.value=o,this;break}i==r&&e<t.length&&t.charCodeAt(e)==s&&i++}}}match(e,t){let r=null;for(let n=0;n<this.matches.length;n+=2){let i=this.matches[n],s=!1;this.query.charCodeAt(i)==e&&(i==this.query.length-1?r={from:this.matches[n+1],to:t+1}:(this.matches[n]++,s=!0)),s||(this.matches.splice(n,2),n-=2)}return this.query.charCodeAt(0)==e&&(1==this.query.length?r={from:t,to:t+1}:this.matches.push(1,t)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}"undefined"!=typeof Symbol&&(a.prototype[Symbol.iterator]=function(){return this});const l={from:-1,to:-1,match:/.*/.exec("")},u="gm"+(null==/x/.unicode?"":"u");class c{constructor(e,t,r,n=0,i=e.length){if(this.text=e,this.to=i,this.curLine="",this.done=!1,this.value=l,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new d(e,t,r,n,i);this.re=new RegExp(t,u+((null==r?void 0:r.ignoreCase)?"i":"")),this.test=null==r?void 0:r.test,this.iter=e.iter();let s=e.lineAt(n);this.curLineStart=s.from,this.matchPos=f(e,n),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let r=this.curLineStart+t.index,n=r+t[0].length;if(this.matchPos=f(this.text,n+(r==n?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(r<n||r>this.value.to)&&(!this.test||this.test(r,n,t)))return this.value={from:r,to:n,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}const h=new WeakMap;class p{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,r){let n=h.get(e);if(!n||n.from>=r||n.to<=t){let n=new p(t,e.sliceString(t,r));return h.set(e,n),n}if(n.from==t&&n.to==r)return n;let{text:i,from:s}=n;return s>t&&(i=e.sliceString(t,s)+i,s=t),n.to<r&&(i+=e.sliceString(n.to,r)),h.set(e,new p(s,i)),new p(t,i.slice(t-s,r-s))}}class d{constructor(e,t,r,n,i){this.text=e,this.to=i,this.done=!1,this.value=l,this.matchPos=f(e,n),this.re=new RegExp(t,u+((null==r?void 0:r.ignoreCase)?"i":"")),this.test=null==r?void 0:r.test,this.flat=p.get(e,n,this.chunkEnd(n+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,r=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,r,t)))return this.value={from:e,to:r,match:t},this.matchPos=f(this.text,r+(e==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=p.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function f(e,t){if(t>=e.length)return t;let r,n=e.lineAt(t);for(;t<n.to&&(r=n.text.charCodeAt(t-n.from))>=56320&&r<57344;)t++;return t}function m(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),r=s("input",{class:"cm-textfield",name:"line",value:t});function o(){let t=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(r.value);if(!t)return;let{state:s}=e,o=s.doc.lineAt(s.selection.main.head),[,a,l,u,c]=t,h=u?+u.slice(1):0,p=l?+l:o.number;if(l&&c){let e=p/100;a&&(e=e*("-"==a?-1:1)+o.number/s.doc.lines),p=Math.round(s.doc.lines*e)}else l&&a&&(p=p*("-"==a?-1:1)+o.number);let d=s.doc.line(Math.max(1,Math.min(s.doc.lines,p))),f=i.EditorSelection.cursor(d.from+Math.max(0,Math.min(h,d.length)));e.dispatch({effects:[g.of(!1),n.EditorView.scrollIntoView(f.from,{y:"center"})],selection:f}),e.focus()}return{dom:s("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:g.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),o())},onsubmit:e=>{e.preventDefault(),o()}},s("label",e.state.phrase("Go to line"),": ",r)," ",s("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(c.prototype[Symbol.iterator]=d.prototype[Symbol.iterator]=function(){return this});const g=i.StateEffect.define(),y=i.StateField.define({create:()=>!0,update(e,t){for(let r of t.effects)r.is(g)&&(e=r.value);return e},provide:e=>n.showPanel.from(e,(e=>e?m:null))}),O=e=>{let t=n.getPanel(e,m);if(!t){let r=[g.of(!0)];null==e.state.field(y,!1)&&r.push(i.StateEffect.appendConfig.of([y,x])),e.dispatch({effects:r}),t=n.getPanel(e,m)}return t&&t.dom.querySelector("input").select(),!0},x=n.EditorView.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),b={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},v=i.Facet.define({combine:e=>i.combineConfig(e,b,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}),w=n.Decoration.mark({class:"cm-selectionMatch"}),D=n.Decoration.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function S(e,t,r,n){return!(0!=r&&e(t.sliceDoc(r-1,r))==i.CharCategory.Word||n!=t.doc.length&&e(t.sliceDoc(n,n+1))==i.CharCategory.Word)}function k(e,t,r,n){return e(t.sliceDoc(r,r+1))==i.CharCategory.Word&&e(t.sliceDoc(n-1,n))==i.CharCategory.Word}const E=n.ViewPlugin.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(v),{state:r}=e,i=r.selection;if(i.ranges.length>1)return n.Decoration.none;let s,o=i.main,l=null;if(o.empty){if(!t.highlightWordAroundCursor)return n.Decoration.none;let e=r.wordAt(o.head);if(!e)return n.Decoration.none;l=r.charCategorizer(o.head),s=r.sliceDoc(e.from,e.to)}else{let e=o.to-o.from;if(e<t.minSelectionLength||e>200)return n.Decoration.none;if(t.wholeWords){if(s=r.sliceDoc(o.from,o.to),l=r.charCategorizer(o.head),!S(l,r,o.from,o.to)||!k(l,r,o.from,o.to))return n.Decoration.none}else if(s=r.sliceDoc(o.from,o.to).trim(),!s)return n.Decoration.none}let u=[];for(let i of e.visibleRanges){let e=new a(r.doc,s,i.from,i.to);for(;!e.next().done;){let{from:i,to:s}=e.value;if((!l||S(l,r,i,s))&&(o.empty&&i<=o.from&&s>=o.to?u.push(D.range(i,s)):(i>=o.to||s<=o.from)&&u.push(w.range(i,s)),u.length>t.maxMatches))return n.Decoration.none}}return n.Decoration.set(u)}},{decorations:e=>e.decorations}),C=n.EditorView.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),T=({state:e,dispatch:t})=>{let{ranges:r}=e.selection;if(r.some((e=>e.from===e.to)))return(({state:e,dispatch:t})=>{let{selection:r}=e,n=i.EditorSelection.create(r.ranges.map((t=>e.wordAt(t.head)||i.EditorSelection.cursor(t.head))),r.mainIndex);return!n.eq(r)&&(t(e.update({selection:n})),!0)})({state:e,dispatch:t});let s=e.sliceDoc(r[0].from,r[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=s)))return!1;let o=function(e,t){let{main:r,ranges:n}=e.selection,i=e.wordAt(r.head),s=i&&i.from==r.from&&i.to==r.to;for(let r=!1,i=new a(e.doc,t,n[n.length-1].to);;){if(i.next(),!i.done){if(r&&n.some((e=>e.from==i.value.from)))continue;if(s){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}if(r)return null;i=new a(e.doc,t,0,Math.max(0,n[n.length-1].from-1)),r=!0}}(e,s);return!!o&&(t(e.update({selection:e.selection.addRange(i.EditorSelection.range(o.from,o.to),!1),effects:n.EditorView.scrollIntoView(o.to)})),!0)},P=i.Facet.define({combine:e=>i.combineConfig(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new ae(e),scrollToMatch:e=>n.EditorView.scrollIntoView(e)})});class A{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,u),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new M(this):new B(this)}getCursor(e,t=0,r){let n=e.doc?e:i.EditorState.create({doc:e});return null==r&&(r=n.doc.length),this.regexp?N(this,n,t,r):_(this,n,t,r)}}class F{constructor(e){this.spec=e}}function _(e,t,r,n){return new a(t.doc,e.unquoted,r,n,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?I(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function I(e,t){return(r,n,s,o)=>((o>r||o+s.length<n)&&(o=Math.max(0,r-2),s=e.sliceString(o,Math.min(e.length,n+2))),!(t($(s,r-o))==i.CharCategory.Word&&t(Q(s,r-o))==i.CharCategory.Word||t(Q(s,n-o))==i.CharCategory.Word&&t($(s,n-o))==i.CharCategory.Word))}class B extends F{constructor(e){super(e)}nextMatch(e,t,r){let n=_(this.spec,e,r,e.doc.length).nextOverlapping();return n.done&&(n=_(this.spec,e,0,t).nextOverlapping()),n.done?null:n.value}prevMatchInRange(e,t,r){for(let n=r;;){let r=Math.max(t,n-1e4-this.spec.unquoted.length),i=_(this.spec,e,r,n),s=null;for(;!i.nextOverlapping().done;)s=i.value;if(s)return s;if(r==t)return null;n-=1e4}}prevMatch(e,t,r){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let r=_(this.spec,e,0,e.doc.length),n=[];for(;!r.next().done;){if(n.length>=t)return null;n.push(r.value)}return n}highlight(e,t,r,n){let i=_(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)n(i.value.from,i.value.to)}}function N(e,t,r,n){return new c(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?L(t.charCategorizer(t.selection.main.head)):void 0},r,n)}function $(e,t){return e.slice(i.findClusterBreak(e,t,!1),t)}function Q(e,t){return e.slice(t,i.findClusterBreak(e,t))}function L(e){return(t,r,n)=>!n[0].length||(e($(n.input,n.index))!=i.CharCategory.Word||e(Q(n.input,n.index))!=i.CharCategory.Word)&&(e(Q(n.input,n.index+n[0].length))!=i.CharCategory.Word||e($(n.input,n.index+n[0].length))!=i.CharCategory.Word)}class M extends F{nextMatch(e,t,r){let n=N(this.spec,e,r,e.doc.length).next();return n.done&&(n=N(this.spec,e,0,t).next()),n.done?null:n.value}prevMatchInRange(e,t,r){for(let n=1;;n++){let i=Math.max(t,r-1e4*n),s=N(this.spec,e,i,r),o=null;for(;!s.next().done;)o=s.value;if(o&&(i==t||o.from>i+10))return o;if(i==t)return null}}prevMatch(e,t,r){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,((t,r)=>"$"==r?"$":"&"==r?e.match[0]:"0"!=r&&+r<e.match.length?e.match[r]:t))}matchAll(e,t){let r=N(this.spec,e,0,e.doc.length),n=[];for(;!r.next().done;){if(n.length>=t)return null;n.push(r.value)}return n}highlight(e,t,r,n){let i=N(this.spec,e,Math.max(0,t-250),Math.min(r+250,e.doc.length));for(;!i.next().done;)n(i.value.from,i.value.to)}}const R=i.StateEffect.define(),j=i.StateEffect.define(),Z=i.StateField.define({create:e=>new q(te(e).create(),null),update(e,t){for(let r of t.effects)r.is(R)?e=new q(r.value.create(),e.panel):r.is(j)&&(e=new q(e.query,r.value?ee:null));return e},provide:e=>n.showPanel.from(e,(e=>e.panel))});class q{constructor(e,t){this.query=e,this.panel=t}}const W=n.Decoration.mark({class:"cm-searchMatch"}),X=n.Decoration.mark({class:"cm-searchMatch cm-searchMatch-selected"}),V=n.ViewPlugin.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Z))}update(e){let t=e.state.field(Z);(t!=e.startState.field(Z)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return n.Decoration.none;let{view:r}=this,s=new i.RangeSetBuilder;for(let t=0,n=r.visibleRanges,i=n.length;t<i;t++){let{from:o,to:a}=n[t];for(;t<i-1&&a>n[t+1].from-500;)a=n[++t].to;e.highlight(r.state,o,a,((e,t)=>{let n=r.state.selection.ranges.some((r=>r.from==e&&r.to==t));s.add(e,t,n?X:W)}))}return s.finish()}},{decorations:e=>e.decorations});function U(e){return t=>{let r=t.state.field(Z,!1);return r&&r.query.spec.valid?e(t,r):ie(t)}}const Y=U(((e,{query:t})=>{let{to:r}=e.state.selection.main,n=t.nextMatch(e.state,r,r);if(!n)return!1;let s=i.EditorSelection.single(n.from,n.to),o=e.state.facet(P);return e.dispatch({selection:s,effects:[he(e,n),o.scrollToMatch(s.main,e)],userEvent:"select.search"}),ne(e),!0})),z=U(((e,{query:t})=>{let{state:r}=e,{from:n}=r.selection.main,s=t.prevMatch(r,n,n);if(!s)return!1;let o=i.EditorSelection.single(s.from,s.to),a=e.state.facet(P);return e.dispatch({selection:o,effects:[he(e,s),a.scrollToMatch(o.main,e)],userEvent:"select.search"}),ne(e),!0})),G=U(((e,{query:t})=>{let r=t.matchAll(e.state,1e3);return!(!r||!r.length||(e.dispatch({selection:i.EditorSelection.create(r.map((e=>i.EditorSelection.range(e.from,e.to)))),userEvent:"select.search.matches"}),0))})),H=({state:e,dispatch:t})=>{let r=e.selection;if(r.ranges.length>1||r.main.empty)return!1;let{from:n,to:s}=r.main,o=[],l=0;for(let t=new a(e.doc,e.sliceDoc(n,s));!t.next().done;){if(o.length>1e3)return!1;t.value.from==n&&(l=o.length),o.push(i.EditorSelection.range(t.value.from,t.value.to))}return t(e.update({selection:i.EditorSelection.create(o,l),userEvent:"select.search.matches"})),!0},J=U(((e,{query:t})=>{let{state:r}=e,{from:s,to:o}=r.selection.main;if(r.readOnly)return!1;let a=t.nextMatch(r,s,s);if(!a)return!1;let l,u,c=[],h=[];if(a.from==s&&a.to==o&&(u=r.toText(t.getReplacement(a)),c.push({from:a.from,to:a.to,insert:u}),a=t.nextMatch(r,a.from,a.to),h.push(n.EditorView.announce.of(r.phrase("replaced match on line $",r.doc.lineAt(s).number)+"."))),a){let t=0==c.length||c[0].from>=a.to?0:a.to-a.from-u.length;l=i.EditorSelection.single(a.from-t,a.to-t),h.push(he(e,a)),h.push(r.facet(P).scrollToMatch(l.main,e))}return e.dispatch({changes:c,selection:l,effects:h,userEvent:"input.replace"}),!0})),K=U(((e,{query:t})=>{if(e.state.readOnly)return!1;let r=t.matchAll(e.state,1e9).map((e=>{let{from:r,to:n}=e;return{from:r,to:n,insert:t.getReplacement(e)}}));if(!r.length)return!1;let i=e.state.phrase("replaced $ matches",r.length)+".";return e.dispatch({changes:r,effects:n.EditorView.announce.of(i),userEvent:"input.replace.all"}),!0}));function ee(e){return e.state.facet(P).createPanel(e)}function te(e,t){var r,n,i,s,o;let a=e.selection.main,l=a.empty||a.to>a.from+100?"":e.sliceDoc(a.from,a.to);if(t&&!l)return t;let u=e.facet(P);return new A({search:(null!==(r=null==t?void 0:t.literal)&&void 0!==r?r:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(n=null==t?void 0:t.caseSensitive)&&void 0!==n?n:u.caseSensitive,literal:null!==(i=null==t?void 0:t.literal)&&void 0!==i?i:u.literal,regexp:null!==(s=null==t?void 0:t.regexp)&&void 0!==s?s:u.regexp,wholeWord:null!==(o=null==t?void 0:t.wholeWord)&&void 0!==o?o:u.wholeWord})}function re(e){let t=n.getPanel(e,ee);return t&&t.dom.querySelector("[main-field]")}function ne(e){let t=re(e);t&&t==e.root.activeElement&&t.select()}const ie=e=>{let t=e.state.field(Z,!1);if(t&&t.panel){let r=re(e);if(r&&r!=e.root.activeElement){let n=te(e.state,t.query.spec);n.valid&&e.dispatch({effects:R.of(n)}),r.focus(),r.select()}}else e.dispatch({effects:[j.of(!0),t?R.of(te(e.state,t.query.spec)):i.StateEffect.appendConfig.of(de)]});return!0},se=e=>{let t=e.state.field(Z,!1);if(!t||!t.panel)return!1;let r=n.getPanel(e,ee);return r&&r.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:j.of(!1)}),!0},oe=[{key:"Mod-f",run:ie,scope:"editor search-panel"},{key:"F3",run:Y,shift:z,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Y,shift:z,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:se,scope:"editor search-panel"},{key:"Mod-Shift-l",run:H},{key:"Mod-Alt-g",run:O},{key:"Mod-d",run:T,preventDefault:!0}];class ae{constructor(e){this.view=e;let t=this.query=e.state.field(Z).query.spec;function r(e,t,r){return s("button",{class:"cm-button",name:e,onclick:t,type:"button"},r)}this.commit=this.commit.bind(this),this.searchField=s("input",{value:t.search,placeholder:le(e,"Find"),"aria-label":le(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=s("input",{value:t.replace,placeholder:le(e,"Replace"),"aria-label":le(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=s("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=s("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=s("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=s("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,r("next",(()=>Y(e)),[le(e,"next")]),r("prev",(()=>z(e)),[le(e,"previous")]),r("select",(()=>G(e)),[le(e,"all")]),s("label",null,[this.caseField,le(e,"match case")]),s("label",null,[this.reField,le(e,"regexp")]),s("label",null,[this.wordField,le(e,"by word")]),...e.state.readOnly?[]:[s("br"),this.replaceField,r("replace",(()=>J(e)),[le(e,"replace")]),r("replaceAll",(()=>K(e)),[le(e,"replace all")])],s("button",{name:"close",onclick:()=>se(e),"aria-label":le(e,"close"),type:"button"},["×"])])}commit(){let e=new A({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:R.of(e)}))}keydown(e){n.runScopeHandlers(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?z:Y)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),J(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(R)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(P).top}}function le(e,t){return e.state.phrase(t)}const ue=30,ce=/[\s\.,:;?!]/;function he(e,{from:t,to:r}){let i=e.state.doc.lineAt(t),s=e.state.doc.lineAt(r).to,o=Math.max(i.from,t-ue),a=Math.min(s,r+ue),l=e.state.sliceDoc(o,a);if(o!=i.from)for(let e=0;e<ue;e++)if(!ce.test(l[e+1])&&ce.test(l[e])){l=l.slice(e);break}if(a!=s)for(let e=l.length-1;e>l.length-ue;e--)if(!ce.test(l[e-1])&&ce.test(l[e])){l=l.slice(0,e);break}return n.EditorView.announce.of(`${e.state.phrase("current match")}. ${l} ${e.state.phrase("on line")} ${i.number}.`)}const pe=n.EditorView.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),de=[Z,i.Prec.low(V),pe];t.RegExpCursor=c,t.SearchCursor=a,t.SearchQuery=A,t.closeSearchPanel=se,t.findNext=Y,t.findPrevious=z,t.getSearchQuery=function(e){let t=e.field(Z,!1);return t?t.query.spec:te(e)},t.gotoLine=O,t.highlightSelectionMatches=function(e){let t=[C,E];return e&&t.push(v.of(e)),t},t.openSearchPanel=ie,t.replaceAll=K,t.replaceNext=J,t.search=function(e){return e?[P.of(e),de]:de},t.searchKeymap=oe,t.searchPanelOpen=function(e){var t;return null!=(null===(t=e.field(Z,!1))||void 0===t?void 0:t.panel)},t.selectMatches=G,t.selectNextOccurrence=T,t.selectSelectionMatches=H,t.setSearchQuery=R},9064:(e,t)=>{"use strict";class r{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,r){[e,t]=h(this,e,t);let n=[];return this.decompose(0,e,n,2),r.length&&r.decompose(0,r.length,n,3),this.decompose(t,this.length,n,1),i.from(n,this.length-(t-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=h(this,e,t);let r=[];return this.decompose(e,t,r,0),i.from(r,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),n=new a(this),i=new a(e);for(let e=t,s=t;;){if(n.next(e),i.next(e),e=0,n.lineBreak!=i.lineBreak||n.done!=i.done||n.value!=i.value)return!1;if(s+=n.value.length,n.done||s>=r)return!0}}iter(e=1){return new a(this,e)}iterRange(e,t=this.length){return new l(this,e,t)}iterLines(e,t){let r;if(null==e)r=this.iter();else{null==t&&(t=this.lines+1);let n=this.line(e).from;r=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new u(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new n(e):i.from(n.split(e,[])):r.empty}}class n extends r{constructor(e,t=function(e){let t=-1;for(let r of e)t+=r.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,r,n){for(let i=0;;i++){let s=this.text[i],o=n+s.length;if((t?r:o)>=e)return new c(n,o,r,s);n=o+1,r++}}decompose(e,t,r,i){let a=e<=0&&t>=this.length?this:new n(o(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&i){let e=r.pop(),t=s(a.text,e.text.slice(),0,a.length);if(t.length<=32)r.push(new n(t,e.length+a.length));else{let e=t.length>>1;r.push(new n(t.slice(0,e)),new n(t.slice(e)))}}else r.push(a)}replace(e,t,r){if(!(r instanceof n))return super.replace(e,t,r);[e,t]=h(this,e,t);let a=s(this.text,s(r.text,o(this.text,0,e)),t),l=this.length+r.length-(t-e);return a.length<=32?new n(a,l):i.from(n.split(a,[]),l)}sliceString(e,t=this.length,r="\n"){[e,t]=h(this,e,t);let n="";for(let i=0,s=0;i<=t&&s<this.text.length;s++){let o=this.text[s],a=i+o.length;i>e&&s&&(n+=r),e<a&&t>i&&(n+=o.slice(Math.max(0,e-i),t-i)),i=a+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let r=[],i=-1;for(let s of e)r.push(s),i+=s.length+1,32==r.length&&(t.push(new n(r,i)),r=[],i=-1);return i>-1&&t.push(new n(r,i)),t}}class i extends r{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,r,n){for(let i=0;;i++){let s=this.children[i],o=n+s.length,a=r+s.lines-1;if((t?a:o)>=e)return s.lineInner(e,t,r,n);n=o+1,r=a+1}}decompose(e,t,r,n){for(let i=0,s=0;s<=t&&i<this.children.length;i++){let o=this.children[i],a=s+o.length;if(e<=a&&t>=s){let i=n&((s<=e?1:0)|(a>=t?2:0));s>=e&&a<=t&&!i?r.push(o):o.decompose(e-s,t-s,r,i)}s=a+1}}replace(e,t,r){if([e,t]=h(this,e,t),r.lines<this.lines)for(let n=0,s=0;n<this.children.length;n++){let o=this.children[n],a=s+o.length;if(e>=s&&t<=a){let l=o.replace(e-s,t-s,r),u=this.lines-o.lines+l.lines;if(l.lines<u>>4&&l.lines>u>>6){let s=this.children.slice();return s[n]=l,new i(s,this.length-(t-e)+r.length)}return super.replace(s,a,l)}s=a+1}return super.replace(e,t,r)}sliceString(e,t=this.length,r="\n"){[e,t]=h(this,e,t);let n="";for(let i=0,s=0;i<this.children.length&&s<=t;i++){let o=this.children[i],a=s+o.length;s>e&&i&&(n+=r),e<a&&t>s&&(n+=o.sliceString(e-s,t-s,r)),s=a+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof i))return 0;let r=0,[n,s,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,s+=t){if(n==o||s==a)return r;let i=this.children[n],l=e.children[s];if(i!=l)return r+i.scanIdentical(l,t);r+=i.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let r=0;for(let t of e)r+=t.lines;if(r<32){let r=[];for(let t of e)t.flatten(r);return new n(r,t)}let s=Math.max(32,r>>5),o=s<<1,a=s>>1,l=[],u=0,c=-1,h=[];function p(e){let t;if(e.lines>o&&e instanceof i)for(let t of e.children)p(t);else e.lines>a&&(u>a||!u)?(d(),l.push(e)):e instanceof n&&u&&(t=h[h.length-1])instanceof n&&e.lines+t.lines<=32?(u+=e.lines,c+=e.length+1,h[h.length-1]=new n(t.text.concat(e.text),t.length+1+e.length)):(u+e.lines>s&&d(),u+=e.lines,c+=e.length+1,h.push(e))}function d(){0!=u&&(l.push(1==h.length?h[0]:i.from(h,c)),c=-1,u=h.length=0)}for(let t of e)p(t);return d(),1==l.length?l[0]:new i(l,t)}}function s(e,t,r=0,n=1e9){for(let i=0,s=0,o=!0;s<e.length&&i<=n;s++){let a=e[s],l=i+a.length;l>=r&&(l>n&&(a=a.slice(0,n-i)),i<r&&(a=a.slice(r-i)),o?(t[t.length-1]+=a,o=!1):t.push(a)),i=l+1}return t}function o(e,t,r){return s(e,[""],t,r)}r.empty=new n([""],0);class a{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof n?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],s=this.offsets[r],o=s>>1,a=i instanceof n?i.text.length:i.children.length;if(o==(t>0?a:0)){if(0==r)return this.done=!0,this.value="",this;t>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&s)==(t>0?0:1)){if(this.offsets[r]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(i instanceof n){let n=i.text[o+(t<0?-1:0)];if(this.offsets[r]+=t,n.length>Math.max(0,e))return this.value=0==e?n:t>0?n.slice(e):n.slice(0,n.length-e),this;e-=n.length}else{let s=i.children[o+(t<0?-1:0)];e>s.length?(e-=s.length,this.offsets[r]+=t):(t<0&&this.offsets[r]--,this.nodes.push(s),this.offsets.push(t>0?1:(s instanceof n?s.text.length:s.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class l{constructor(e,t,r){this.value="",this.done=!1,this.cursor=new a(e,t>r?-1:1),this.pos=t>r?e.length:0,this.from=Math.min(t,r),this.to=Math.max(t,r)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let r=t<0?this.pos-this.from:this.to-this.pos;e>r&&(e=r),r-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=r?n:t<0?n.slice(n.length-r):n.slice(0,r),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class u{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:r,value:n}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.iter()},a.prototype[Symbol.iterator]=l.prototype[Symbol.iterator]=u.prototype[Symbol.iterator]=function(){return this});class c{constructor(e,t,r,n){this.from=e,this.to=t,this.number=r,this.text=n}get length(){return this.to-this.from}}function h(e,t,r){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,r))]}let p="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let e=1;e<p.length;e++)p[e]+=p[e-1];function d(e){for(let t=1;t<p.length;t+=2)if(p[t]>e)return p[t-1]<=e;return!1}function f(e){return e>=127462&&e<=127487}const m=8205;function g(e,t,r=!0,n=!0){return(r?y:O)(e,t,n)}function y(e,t,r){if(t==e.length)return t;t&&x(e.charCodeAt(t))&&b(e.charCodeAt(t-1))&&t--;let n=v(e,t);for(t+=w(n);t<e.length;){let i=v(e,t);if(n==m||i==m||r&&d(i))t+=w(i),n=i;else{if(!f(i))break;{let r=0,n=t-2;for(;n>=0&&f(v(e,n));)r++,n-=2;if(r%2==0)break;t+=2}}}return t}function O(e,t,r){for(;t>0;){let n=y(e,t-2,r);if(n<t)return n;t--}return 0}function x(e){return e>=56320&&e<57344}function b(e){return e>=55296&&e<56320}function v(e,t){let r=e.charCodeAt(t);if(!b(r)||t+1==e.length)return r;let n=e.charCodeAt(t+1);return x(n)?n-56320+(r-55296<<10)+65536:r}function w(e){return e<65536?1:2}const D=/\r\n?|\n/;var S;t.MapMode=void 0,(S=t.MapMode||(t.MapMode={}))[S.Simple=0]="Simple",S[S.TrackDel=1]="TrackDel",S[S.TrackBefore=2]="TrackBefore",S[S.TrackAfter=3]="TrackAfter";class k{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let r=this.sections[t+1];e+=r<0?this.sections[t]:r}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,r=0,n=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];s<0?(e(r,n,i),n+=i):n+=s,r+=i}}iterChangedRanges(e,t=!1){P(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let r=this.sections[t++],n=this.sections[t++];n<0?e.push(r,n):e.push(n,r)}return new k(e)}composeDesc(e){return this.empty?e:e.empty?this:F(this,e)}mapDesc(e,t=!1){return e.empty?this:A(this,e,t)}mapPos(e,r=-1,n=t.MapMode.Simple){let i=0,s=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],l=this.sections[o++],u=i+a;if(l<0){if(u>e)return s+(e-i);s+=a}else{if(n!=t.MapMode.Simple&&u>=e&&(n==t.MapMode.TrackDel&&i<e&&u>e||n==t.MapMode.TrackBefore&&i<e||n==t.MapMode.TrackAfter&&u>e))return null;if(u>e||u==e&&r<0&&!a)return e==i||r<0?s:s+l;s+=l}i=u}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return s}touchesRange(e,t=e){for(let r=0,n=0;r<this.sections.length&&n<=t;){let i=n+this.sections[r++];if(this.sections[r++]>=0&&n<=t&&i>=e)return!(n<e&&i>t)||"cover";n=i}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let r=this.sections[t++],n=this.sections[t++];e+=(e?" ":"")+r+(n>=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new k(e)}static create(e){return new k(e)}}class E extends k{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return P(this,((t,r,n,i,s)=>e=e.replace(n,n+(r-t),s)),!1),e}mapDesc(e,t=!1){return A(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,s=0;i<t.length;i+=2){let o=t[i],a=t[i+1];if(a>=0){t[i]=a,t[i+1]=o;let l=i>>1;for(;n.length<l;)n.push(r.empty);n.push(o?e.slice(s,s+o):r.empty)}s+=o}return new E(t,n)}compose(e){return this.empty?e:e.empty?this:F(this,e,!0)}map(e,t=!1){return e.empty?this:A(this,e,t,!0)}iterChanges(e,t=!1){P(this,e,t)}get desc(){return k.create(this.sections)}filter(e){let t=[],r=[],n=[],i=new _(this);e:for(let s=0,o=0;;){let a=s==e.length?1e9:e[s++];for(;o<a||o==a&&0==i.len;){if(i.done)break e;let e=Math.min(i.len,a-o);C(n,e,-1);let s=-1==i.ins?-1:0==i.off?i.ins:0;C(t,e,s),s>0&&T(r,t,i.text),i.forward(e),o+=e}let l=e[s++];for(;o<l;){if(i.done)break e;let e=Math.min(i.len,l-o);C(t,e,-1),C(n,e,-1==i.ins?-1:0==i.off?i.ins:0),i.forward(e),o+=e}}return{changes:new E(t,r),filtered:k.create(n)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let r=this.sections[t],n=this.sections[t+1];n<0?e.push(r):0==n?e.push([r]):e.push([r].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let i=[],s=[],o=0,a=null;function l(e=!1){if(!e&&!i.length)return;o<t&&C(i,t-o,-1);let r=new E(i,s);a=a?a.compose(r.map(a)):r,i=[],s=[],o=0}return function e(u){if(Array.isArray(u))for(let t of u)e(t);else if(u instanceof E){if(u.length!=t)throw new RangeError(`Mismatched change set length (got ${u.length}, expected ${t})`);l(),a=a?a.compose(u.map(a)):u}else{let{from:e,to:a=e,insert:c}=u;if(e>a||e<0||a>t)throw new RangeError(`Invalid change range ${e} to ${a} (in doc of length ${t})`);let h=c?"string"==typeof c?r.of(c.split(n||D)):c:r.empty,p=h.length;if(e==a&&0==p)return;e<o&&l(),e>o&&C(i,e-o,-1),C(i,a-e,p),T(s,i,h),o=a}}(e),l(!a),a}static empty(e){return new E(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;i<e.length;i++){let s=e[i];if("number"==typeof s)t.push(s,-1);else{if(!Array.isArray(s)||"number"!=typeof s[0]||s.some(((e,t)=>t&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==s.length)t.push(s[0],0);else{for(;n.length<i;)n.push(r.empty);n[i]=r.of(s.slice(1)),t.push(s[0],n[i].length)}}}return new E(t,n)}static createSet(e,t){return new E(e,t)}}function C(e,t,r,n=!1){if(0==t&&r<=0)return;let i=e.length-2;i>=0&&r<=0&&r==e[i+1]?e[i]+=t:0==t&&0==e[i]?e[i+1]+=r:n?(e[i]+=t,e[i+1]+=r):e.push(t,r)}function T(e,t,n){if(0==n.length)return;let i=t.length-2>>1;if(i<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<i;)e.push(r.empty);e.push(n)}}function P(e,t,n){let i=e.inserted;for(let s=0,o=0,a=0;a<e.sections.length;){let l=e.sections[a++],u=e.sections[a++];if(u<0)s+=l,o+=l;else{let c=s,h=o,p=r.empty;for(;c+=l,h+=u,u&&i&&(p=p.append(i[a-2>>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)l=e.sections[a++],u=e.sections[a++];t(s,c,o,h,p),s=c,o=h}}}function A(e,t,r,n=!1){let i=[],s=n?[]:null,o=new _(e),a=new _(t);for(let e=-1;;)if(-1==o.ins&&-1==a.ins){let e=Math.min(o.len,a.len);C(i,e,-1),o.forward(e),a.forward(e)}else if(a.ins>=0&&(o.ins<0||e==o.i||0==o.off&&(a.len<o.len||a.len==o.len&&!r))){let t=a.len;for(C(i,a.ins,-1);t;){let r=Math.min(o.len,t);o.ins>=0&&e<o.i&&o.len<=r&&(C(i,0,o.ins),s&&T(s,i,o.text),e=o.i),o.forward(r),t-=r}a.next()}else{if(!(o.ins>=0)){if(o.done&&a.done)return s?E.createSet(i,s):k.create(i);throw new Error("Mismatched change set lengths")}{let t=0,r=o.len;for(;r;)if(-1==a.ins){let e=Math.min(r,a.len);t+=e,r-=e,a.forward(e)}else{if(!(0==a.ins&&a.len<r))break;r-=a.len,a.next()}C(i,t,e<o.i?o.ins:0),s&&e<o.i&&T(s,i,o.text),e=o.i,o.forward(o.len-r)}}}function F(e,t,r=!1){let n=[],i=r?[]:null,s=new _(e),o=new _(t);for(let e=!1;;){if(s.done&&o.done)return i?E.createSet(n,i):k.create(n);if(0==s.ins)C(n,s.len,0,e),s.next();else if(0!=o.len||o.done){if(s.done||o.done)throw new Error("Mismatched change set lengths");{let t=Math.min(s.len2,o.len),r=n.length;if(-1==s.ins){let r=-1==o.ins?-1:o.off?0:o.ins;C(n,t,r,e),i&&r&&T(i,n,o.text)}else-1==o.ins?(C(n,s.off?0:s.len,t,e),i&&T(i,n,s.textBit(t))):(C(n,s.off?0:s.len,o.off?0:o.ins,e),i&&!o.off&&T(i,n,o.text));e=(s.ins>t||o.ins>=0&&o.len>t)&&(e||n.length>r),s.forward2(t),o.forward(t)}}else C(n,0,o.ins,e),i&&T(i,n,o.text),o.next()}}class _{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return-2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?r.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?r.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class I{constructor(e,t,r){this.from=e,this.to=t,this.flags=r}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,t=-1){let r,n;return this.empty?r=n=e.mapPos(this.from,t):(r=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),r==this.from&&n==this.to?this:new I(r,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return B.range(e,t);let r=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return B.range(this.anchor,r)}eq(e,t=!1){return!(this.anchor!=e.anchor||this.head!=e.head||t&&this.empty&&this.assoc!=e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return B.range(e.anchor,e.head)}static create(e,t,r){return new I(e,t,r)}}class B{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:B.create(this.ranges.map((r=>r.map(e,t))),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(e.ranges[r],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new B([this.main],0)}addRange(e,t=!0){return B.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let r=this.ranges.slice();return r[t]=e,B.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((e=>e.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new B(e.ranges.map((e=>I.fromJSON(e))),e.main)}static single(e,t=e){return new B([B.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let r=0,n=0;n<e.length;n++){let i=e[n];if(i.empty?i.from<=r:i.from<r)return B.normalized(e.slice(),t);r=i.to}return new B(e,t)}static cursor(e,t=0,r,n){return I.create(e,e,(0==t?0:t<0?8:16)|(null==r?7:Math.min(6,r))|(null!=n?n:16777215)<<6)}static range(e,t,r,n){let i=(null!=r?r:16777215)<<6|(null==n?7:Math.min(6,n));return t<e?I.create(t,e,48|i):I.create(e,t,(t>e?8:0)|i)}static normalized(e,t=0){let r=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(r);for(let r=1;r<e.length;r++){let n=e[r],i=e[r-1];if(n.empty?n.from<=i.to:n.from<i.to){let s=i.from,o=Math.max(n.to,i.to);r<=t&&t--,e.splice(--r,2,n.anchor>n.head?B.range(o,s):B.range(s,o))}}return new B(e,t)}}function N(e,t){for(let r of e.ranges)if(r.to>t)throw new RangeError("Selection points outside of document")}let $=0;class Q{constructor(e,t,r,n,i){this.combine=e,this.compareInput=t,this.compare=r,this.isStatic=n,this.id=$++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(e={}){return new Q(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:L),!!e.static,e.enables)}of(e){return new M([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new M(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new M(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(r=>t(r.field(e))))}}function L(e,t){return e==t||e.length==t.length&&e.every(((e,r)=>e===t[r]))}class M{constructor(e,t,r,n){this.dependencies=e,this.facet=t,this.type=r,this.value=n,this.id=$++}dynamicSlot(e){var t;let r=this.value,n=this.facet.compareInput,i=this.id,s=e[i]>>1,o=2==this.type,a=!1,l=!1,u=[];for(let r of this.dependencies)"doc"==r?a=!0:"selection"==r?l=!0:0==(1&(null!==(t=e[r.id])&&void 0!==t?t:1))&&u.push(e[r.id]);return{create:e=>(e.values[s]=r(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||j(e,u)){let t=r(e);if(o?!R(t,e.values[s],n):!n(t,e.values[s]))return e.values[s]=t,1}return 0},reconfigure:(e,t)=>{let a,l=t.config.address[i];if(null!=l){let i=J(t,l);if(this.dependencies.every((r=>r instanceof Q?t.facet(r)===e.facet(r):!(r instanceof W)||t.field(r,!1)==e.field(r,!1)))||(o?R(a=r(e),i,n):n(a=r(e),i)))return e.values[s]=i,0}else a=r(e);return e.values[s]=a,1}}}}function R(e,t,r){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1;return!0}function j(e,t){let r=!1;for(let n of t)1&H(e,n)&&(r=!0);return r}function Z(e,t,r){let n=r.map((t=>e[t.id])),i=r.map((e=>e.type)),s=n.filter((e=>!(1&e))),o=e[t.id]>>1;function a(e){let r=[];for(let t=0;t<n.length;t++){let s=J(e,n[t]);if(2==i[t])for(let e of s)r.push(e);else r.push(s)}return t.combine(r)}return{create(e){for(let t of n)H(e,t);return e.values[o]=a(e),1},update(e,r){if(!j(e,s))return 0;let n=a(e);return t.compare(n,e.values[o])?0:(e.values[o]=n,1)},reconfigure(e,i){let s=j(e,n),l=i.config.facets[t.id],u=i.facet(t);if(l&&!s&&L(r,l))return e.values[o]=u,0;let c=a(e);return t.compare(c,u)?(e.values[o]=u,0):(e.values[o]=c,1)}}}const q=Q.define({static:!0});class W{constructor(e,t,r,n,i){this.id=e,this.createF=t,this.updateF=r,this.compareF=n,this.spec=i,this.provides=void 0}static define(e){let t=new W($++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(q).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,r)=>{let n=e.values[t],i=this.updateF(n,r);return this.compareF(n,i)?0:(e.values[t]=i,1)},reconfigure:(e,r)=>null!=r.config.address[this.id]?(e.values[t]=r.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,q.of({field:this,create:e})]}get extension(){return this}}function X(e){return t=>new U(t,e)}const V={highest:X(0),high:X(1),default:X(2),low:X(3),lowest:X(4)};class U{constructor(e,t){this.inner=e,this.prec=t}}class Y{of(e){return new z(this,e)}reconfigure(e){return Y.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class z{constructor(e,t){this.compartment=e,this.inner=t}}class G{constructor(e,t,r,n,i,s){for(this.base=e,this.compartments=t,this.dynamicSlots=r,this.address=n,this.staticValues=i,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,r){let n=[],i=Object.create(null),s=new Map;for(let r of function(e,t,r){let n=[[],[],[],[],[]],i=new Map;return function e(s,o){let a=i.get(s);if(null!=a){if(a<=o)return;let e=n[a].indexOf(s);e>-1&&n[a].splice(e,1),s instanceof z&&r.delete(s.compartment)}if(i.set(s,o),Array.isArray(s))for(let t of s)e(t,o);else if(s instanceof z){if(r.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let n=t.get(s.compartment)||s.inner;r.set(s.compartment,n),e(n,o)}else if(s instanceof U)e(s.inner,s.prec);else if(s instanceof W)n[o].push(s),s.provides&&e(s.provides,o);else if(s instanceof M)n[o].push(s),s.facet.extensions&&e(s.facet.extensions,2);else{let t=s.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,o)}}(e,2),n.reduce(((e,t)=>e.concat(t)))}(e,t,s))r instanceof W?n.push(r):(i[r.facet.id]||(i[r.facet.id]=[])).push(r);let o=Object.create(null),a=[],l=[];for(let e of n)o[e.id]=l.length<<1,l.push((t=>e.slot(t)));let u=null==r?void 0:r.config.facets;for(let e in i){let t=i[e],n=t[0].facet,s=u&&u[e]||[];if(t.every((e=>0==e.type)))if(o[n.id]=a.length<<1|1,L(s,t))a.push(r.facet(n));else{let e=n.combine(t.map((e=>e.value)));a.push(r&&n.compare(e,r.facet(n))?r.facet(n):e)}else{for(let e of t)0==e.type?(o[e.id]=a.length<<1|1,a.push(e.value)):(o[e.id]=l.length<<1,l.push((t=>e.dynamicSlot(t))));o[n.id]=l.length<<1,l.push((e=>Z(e,n,t)))}}let c=l.map((e=>e(o)));return new G(e,s,c,o,a,i)}}function H(e,t){if(1&t)return 2;let r=t>>1,n=e.status[r];if(4==n)throw new Error("Cyclic dependency between fields and/or facets");if(2&n)return n;e.status[r]=4;let i=e.computeSlot(e,e.config.dynamicSlots[r]);return e.status[r]=2|i}function J(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const K=Q.define(),ee=Q.define({combine:e=>e.some((e=>e)),static:!0}),te=Q.define({combine:e=>e.length?e[0]:void 0,static:!0}),re=Q.define(),ne=Q.define(),ie=Q.define(),se=Q.define({combine:e=>!!e.length&&e[0]});class oe{constructor(e,t){this.type=e,this.value=t}static define(){return new ae}}class ae{of(e){return new oe(this,e)}}class le{constructor(e){this.map=e}of(e){return new ue(this,e)}}class ue{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new ue(this.type,t)}is(e){return this.type==e}static define(e={}){return new le(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let r=[];for(let n of e){let e=n.map(t);e&&r.push(e)}return r}}ue.reconfigure=ue.define(),ue.appendConfig=ue.define();class ce{constructor(e,t,r,n,i,s){this.startState=e,this.changes=t,this.selection=r,this.effects=n,this.annotations=i,this.scrollIntoView=s,this._doc=null,this._state=null,r&&N(r,t.newLength),i.some((e=>e.type==ce.time))||(this.annotations=i.concat(ce.time.of(Date.now())))}static create(e,t,r,n,i,s){return new ce(e,t,r,n,i,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ce.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function he(e,t){let r=[];for(let n=0,i=0;;){let s,o;if(n<e.length&&(i==t.length||t[i]>=e[n]))s=e[n++],o=e[n++];else{if(!(i<t.length))return r;s=t[i++],o=t[i++]}!r.length||r[r.length-1]<s?r.push(s,o):r[r.length-1]<o&&(r[r.length-1]=o)}}function pe(e,t,r){var n;let i,s,o;return r?(i=t.changes,s=E.empty(t.changes.length),o=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),s=e.changes.mapDesc(t.changes,!0),o=e.changes.compose(i)),{changes:o,selection:t.selection?t.selection.map(s):null===(n=e.selection)||void 0===n?void 0:n.map(i),effects:ue.mapEffects(e.effects,i).concat(ue.mapEffects(t.effects,s)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function de(e,t,r){let n=t.selection,i=ge(t.annotations);return t.userEvent&&(i=i.concat(ce.userEvent.of(t.userEvent))),{changes:t.changes instanceof E?t.changes:E.of(t.changes||[],r,e.facet(te)),selection:n&&(n instanceof B?n:B.single(n.anchor,n.head)),effects:ge(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function fe(e,t,r){let n=de(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(r=!1);for(let i=1;i<t.length;i++){!1===t[i].filter&&(r=!1);let s=!!t[i].sequential;n=pe(n,de(e,t[i],s?n.changes.newLength:e.doc.length),s)}let i=ce.create(e,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return function(e){let t=e.startState,r=t.facet(ie),n=e;for(let i=r.length-1;i>=0;i--){let s=r[i](e);s&&Object.keys(s).length&&(n=pe(n,de(t,s,e.changes.newLength),!0))}return n==e?e:ce.create(t,e.changes,e.selection,n.effects,n.annotations,n.scrollIntoView)}(r?function(e){let t=e.startState,r=!0;for(let n of t.facet(re)){let t=n(e);if(!1===t){r=!1;break}Array.isArray(t)&&(r=!0===r?t:he(r,t))}if(!0!==r){let n,i;if(!1===r)i=e.changes.invertedDesc,n=E.empty(t.doc.length);else{let t=e.changes.filter(r);n=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=ce.create(t,n,e.selection&&e.selection.map(i),ue.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let n=t.facet(ne);for(let r=n.length-1;r>=0;r--){let i=n[r](e);e=i instanceof ce?i:Array.isArray(i)&&1==i.length&&i[0]instanceof ce?i[0]:fe(t,ge(i),!1)}return e}(i):i)}ce.time=oe.define(),ce.userEvent=oe.define(),ce.addToHistory=oe.define(),ce.remote=oe.define();const me=[];function ge(e){return null==e?me:Array.isArray(e)?e:[e]}var ye;t.CharCategory=void 0,(ye=t.CharCategory||(t.CharCategory={}))[ye.Word=0]="Word",ye[ye.Space=1]="Space",ye[ye.Other=2]="Other";const Oe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let xe;try{xe=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class be{constructor(e,t,r,n,i,s){this.config=e,this.doc=t,this.selection=r,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=i,s&&(s._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)H(this,e<<1);this.computeSlot=null}field(e,t=!0){let r=this.config.address[e.id];if(null!=r)return H(this,r),J(this,r);if(t)throw new RangeError("Field is not present in this state")}update(...e){return fe(this,e,!0)}applyTransaction(e){let t,r=this.config,{base:n,compartments:i}=r;for(let t of e.effects)t.is(Y.reconfigure)?(r&&(i=new Map,r.compartments.forEach(((e,t)=>i.set(t,e))),r=null),i.set(t.value.compartment,t.value.extension)):t.is(ue.reconfigure)?(r=null,n=t.value):t.is(ue.appendConfig)&&(r=null,n=ge(n).concat(t.value));r?t=e.startState.values.slice():(r=G.resolve(n,i,this),t=new be(r,this.doc,this.selection,r.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values);let s=e.startState.facet(ee)?e.newSelection:e.newSelection.asSingle();new be(r,e.newDoc,s,t,((t,r)=>r.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:B.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,r=e(t.ranges[0]),n=this.changes(r.changes),i=[r.range],s=ge(r.effects);for(let r=1;r<t.ranges.length;r++){let o=e(t.ranges[r]),a=this.changes(o.changes),l=a.map(n);for(let e=0;e<r;e++)i[e]=i[e].map(l);let u=n.mapDesc(a,!0);i.push(o.range.map(u)),n=n.compose(l),s=ue.mapEffects(s,l).concat(ue.mapEffects(ge(o.effects),u))}return{changes:n,selection:B.create(i,t.mainIndex),effects:s}}changes(e=[]){return e instanceof E?e:E.of(e,this.doc.length,this.facet(be.lineSeparator))}toText(e){return r.of(e.split(this.facet(be.lineSeparator)||D))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(H(this,t),J(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let r in e){let n=e[r];n instanceof W&&null!=this.config.address[n.id]&&(t[r]=n.spec.toJSON(this.field(e[r]),this))}return t}static fromJSON(e,t={},r){if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let n=[];if(r)for(let t in r)if(Object.prototype.hasOwnProperty.call(e,t)){let i=r[t],s=e[t];n.push(i.init((e=>i.spec.fromJSON(s,e))))}return be.create({doc:e.doc,selection:B.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=G.resolve(e.extensions||[],new Map),n=e.doc instanceof r?e.doc:r.of((e.doc||"").split(t.staticFacet(be.lineSeparator)||D)),i=e.selection?e.selection instanceof B?e.selection:B.single(e.selection.anchor,e.selection.head):B.single(0);return N(i,n.length),t.staticFacet(ee)||(i=i.asSingle()),new be(t,n,i,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(be.tabSize)}get lineBreak(){return this.facet(be.lineSeparator)||"\n"}get readOnly(){return this.facet(se)}phrase(e,...t){for(let t of this.facet(be.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,r)=>{if("$"==r)return"$";let n=+(r||1);return!n||n>t.length?e:t[n-1]}))),e}languageDataAt(e,t,r=-1){let n=[];for(let i of this.facet(K))for(let s of i(this,t,r))Object.prototype.hasOwnProperty.call(s,e)&&n.push(s[e]);return n}charCategorizer(e){return r=this.languageDataAt("wordChars",e).join(""),e=>{if(!/\S/.test(e))return t.CharCategory.Space;if(function(e){if(xe)return xe.test(e);for(let t=0;t<e.length;t++){let r=e[t];if(/\w/.test(r)||r>"€"&&(r.toUpperCase()!=r.toLowerCase()||Oe.test(r)))return!0}return!1}(e))return t.CharCategory.Word;for(let n=0;n<r.length;n++)if(e.indexOf(r[n])>-1)return t.CharCategory.Word;return t.CharCategory.Other};var r}wordAt(e){let{text:r,from:n,length:i}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let e=g(r,o,!1);if(s(r.slice(e,o))!=t.CharCategory.Word)break;o=e}for(;a<i;){let e=g(r,a);if(s(r.slice(a,e))!=t.CharCategory.Word)break;a=e}return o==a?null:B.range(o+n,a+n)}}be.allowMultipleSelections=ee,be.tabSize=Q.define({combine:e=>e.length?e[0]:4}),be.lineSeparator=te,be.readOnly=se,be.phrases=Q.define({compare(e,t){let r=Object.keys(e),n=Object.keys(t);return r.length==n.length&&r.every((r=>e[r]==t[r]))}}),be.languageData=K,be.changeFilter=re,be.transactionFilter=ne,be.transactionExtender=ie,Y.reconfigure=ue.define();class ve{eq(e){return this==e}range(e,t=e){return we.create(e,t,this)}}ve.prototype.startSide=ve.prototype.endSide=0,ve.prototype.point=!1,ve.prototype.mapMode=t.MapMode.TrackDel;class we{constructor(e,t,r){this.from=e,this.to=t,this.value=r}static create(e,t,r){return new we(e,t,r)}}function De(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Se{constructor(e,t,r,n){this.from=e,this.to=t,this.value=r,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(e,t,r,n=0){let i=r?this.to:this.from;for(let s=n,o=i.length;;){if(s==o)return s;let n=s+o>>1,a=i[n]-e||(r?this.value[n].endSide:this.value[n].startSide)-t;if(n==s)return a>=0?s:o;a>=0?o=n:s=n+1}}between(e,t,r,n){for(let i=this.findIndex(t,-1e9,!0),s=this.findIndex(r,1e9,!1,i);i<s;i++)if(!1===n(this.from[i]+e,this.to[i]+e,this.value[i]))return!1}map(e,t){let r=[],n=[],i=[],s=-1,o=-1;for(let a=0;a<this.value.length;a++){let l,u,c=this.value[a],h=this.from[a]+e,p=this.to[a]+e;if(h==p){let e=t.mapPos(h,c.startSide,c.mapMode);if(null==e)continue;if(l=u=e,c.startSide!=c.endSide&&(u=t.mapPos(h,c.endSide),u<l))continue}else if(l=t.mapPos(h,c.startSide),u=t.mapPos(p,c.endSide),l>u||l==u&&c.startSide>0&&c.endSide<=0)continue;(u-l||c.endSide-c.startSide)<0||(s<0&&(s=l),c.point&&(o=Math.max(o,u-l)),r.push(c),n.push(l-s),i.push(u-s))}return{mapped:r.length?new Se(n,i,r,o):null,pos:s}}}class ke{constructor(e,t,r,n){this.chunkPos=e,this.chunk=t,this.nextLayer=r,this.maxPoint=n}static create(e,t,r,n){return new ke(e,t,r,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:r=!1,filterFrom:n=0,filterTo:i=this.length}=e,s=e.filter;if(0==t.length&&!s)return this;if(r&&(t=t.slice().sort(De)),this.isEmpty)return t.length?ke.of(t):this;let o=new Te(this,null,-1).goto(0),a=0,l=[],u=new Ee;for(;o.value||a<t.length;)if(a<t.length&&(o.from-t[a].from||o.startSide-t[a].value.startSide)>=0){let e=t[a++];u.addInner(e.from,e.to,e.value)||l.push(e)}else 1==o.rangeIndex&&o.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(o.chunkIndex)<t[a].from)&&(!s||n>this.chunkEnd(o.chunkIndex)||i<this.chunkPos[o.chunkIndex])&&u.addChunk(this.chunkPos[o.chunkIndex],this.chunk[o.chunkIndex])?o.nextChunk():((!s||n>o.to||i<o.from||s(o.from,o.to,o.value))&&(u.addInner(o.from,o.to,o.value)||l.push(we.create(o.from,o.to,o.value))),o.next());return u.finishInner(this.nextLayer.isEmpty&&!l.length?ke.empty:this.nextLayer.update({add:l,filter:s,filterFrom:n,filterTo:i}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],r=[],n=-1;for(let i=0;i<this.chunk.length;i++){let s=this.chunkPos[i],o=this.chunk[i],a=e.touchesRange(s,s+o.length);if(!1===a)n=Math.max(n,o.maxPoint),t.push(o),r.push(e.mapPos(s));else if(!0===a){let{mapped:i,pos:a}=o.map(s,e);i&&(n=Math.max(n,i.maxPoint),t.push(i),r.push(a))}}let i=this.nextLayer.map(e);return 0==t.length?i:new ke(r,t,i||ke.empty,n)}between(e,t,r){if(!this.isEmpty){for(let n=0;n<this.chunk.length;n++){let i=this.chunkPos[n],s=this.chunk[n];if(t>=i&&e<=i+s.length&&!1===s.between(i,e-i,t-i,r))return}this.nextLayer.between(e,t,r)}}iter(e=0){return Pe.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Pe.from(e).goto(t)}static compare(e,t,r,n,i=-1){let s=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),o=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),a=Ce(s,o,r),l=new Fe(s,a,i),u=new Fe(o,a,i);r.iterGaps(((e,t,r)=>_e(l,e,u,t,r,n))),r.empty&&0==r.length&&_e(l,0,u,0,0,n)}static eq(e,t,r=0,n){null==n&&(n=999999999);let i=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),s=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(i.length!=s.length)return!1;if(!i.length)return!0;let o=Ce(i,s),a=new Fe(i,o,0).goto(r),l=new Fe(s,o,0).goto(r);for(;;){if(a.to!=l.to||!Ie(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>n)return!0;a.next(),l.next()}}static spans(e,t,r,n,i=-1){let s=new Fe(e,null,i).goto(t),o=t,a=s.openStart;for(;;){let e=Math.min(s.to,r);if(s.point){let r=s.activeForPoint(s.to),i=s.pointFrom<t?r.length+1:Math.min(r.length,a);n.point(o,e,s.point,r,i,s.pointRank),a=Math.min(s.openEnd(e),r.length)}else e>o&&(n.span(o,e,s.active,a),a=s.openEnd(e));if(s.to>r)return a+(s.point&&s.to>r?1:0);o=s.to,s.next()}}static of(e,t=!1){let r=new Ee;for(let n of e instanceof we?[e]:t?function(e){if(e.length>1)for(let t=e[0],r=1;r<e.length;r++){let n=e[r];if(De(t,n)>0)return e.slice().sort(De);t=n}return e}(e):e)r.add(n.from,n.to,n.value);return r.finish()}static join(e){if(!e.length)return ke.empty;let t=e[e.length-1];for(let r=e.length-2;r>=0;r--)for(let n=e[r];n!=ke.empty;n=n.nextLayer)t=new ke(n.chunkPos,n.chunk,t,Math.max(n.maxPoint,t.maxPoint));return t}}ke.empty=new ke([],[],null,-1),ke.empty.nextLayer=ke.empty;class Ee{finishChunk(e){this.chunks.push(new Se(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,r){this.addInner(e,t,r)||(this.nextLayer||(this.nextLayer=new Ee)).add(e,t,r)}addInner(e,t,r){let n=e-this.lastTo||r.startSide-this.last.endSide;if(n<=0&&(e-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(n<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=r,this.lastFrom=e,this.lastTo=t,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let r=t.value.length-1;return this.last=t.value[r],this.lastFrom=t.from[r]+e,this.lastTo=t.to[r]+e,!0}finish(){return this.finishInner(ke.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=ke.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Ce(e,t,r){let n=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&n.set(t.chunk[e],t.chunkPos[e]);let i=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let s=n.get(e.chunk[t]);null==s||(r?r.mapPos(s):s)!=e.chunkPos[t]||(null==r?void 0:r.touchesRange(s,s+e.chunk[t].length))||i.add(e.chunk[t])}return i}class Te{constructor(e,t,r,n=0){this.layer=e,this.skip=t,this.minPoint=r,this.rank=n}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,r){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,r=!1}if(this.chunkIndex<this.layer.chunk.length){let n=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!r||this.rangeIndex<n)&&this.setRangeIndex(n)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],r=e+t.from[this.rangeIndex];if(this.from=r,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Pe{constructor(e){this.heap=e}static from(e,t=null,r=-1){let n=[];for(let i=0;i<e.length;i++)for(let s=e[i];!s.isEmpty;s=s.nextLayer)s.maxPoint>=r&&n.push(new Te(s,t,r,i));return 1==n.length?n[0]:new Pe(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let r of this.heap)r.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)Ae(this.heap,e);return this.next(),this}forward(e,t){for(let r of this.heap)r.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)Ae(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Ae(this.heap,0)}}}function Ae(e,t){for(let r=e[t];;){let n=1+(t<<1);if(n>=e.length)break;let i=e[n];if(n+1<e.length&&i.compare(e[n+1])>=0&&(i=e[n+1],n++),r.compare(i)<0)break;e[n]=r,e[t]=i,t=n}}class Fe{constructor(e,t,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Pe.from(e,t,r)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Be(this.active,e),Be(this.activeTo,e),Be(this.activeRank,e),this.minActive=$e(this.active,this.activeTo)}addActive(e){let t=0,{value:r,to:n,rank:i}=this.cursor;for(;t<this.activeRank.length&&(i-this.activeRank[t]||n-this.activeTo[t])>0;)t++;Ne(this.active,t,r),Ne(this.activeTo,t,n),Ne(this.activeRank,t,i),e&&Ne(e,t,this.cursor.from),this.minActive=$e(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>e){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),r&&Be(r,n)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(r),this.cursor.next()}}}if(r){this.openStart=0;for(let t=r.length-1;t>=0&&r[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let r=this.active.length-1;r>=0&&!(this.activeRank[r]<this.pointRank);r--)(this.activeTo[r]>e||this.activeTo[r]==e&&this.active[r].endSide>=this.point.endSide)&&t.push(this.active[r]);return t.reverse()}openEnd(e){let t=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>e;r--)t++;return t}}function _e(e,t,r,n,i,s){e.goto(t),r.goto(n);let o=n+i,a=n,l=n-t;for(;;){let t=e.to+l-r.to||e.endSide-r.endSide,n=t<0?e.to+l:r.to,i=Math.min(n,o);if(e.point||r.point?e.point&&r.point&&(e.point==r.point||e.point.eq(r.point))&&Ie(e.activeForPoint(e.to),r.activeForPoint(r.to))||s.comparePoint(a,i,e.point,r.point):i>a&&!Ie(e.active,r.active)&&s.compareRange(a,i,e.active,r.active),n>o)break;a=n,t<=0&&e.next(),t>=0&&r.next()}}function Ie(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r]&&!e[r].eq(t[r]))return!1;return!0}function Be(e,t){for(let r=t,n=e.length-1;r<n;r++)e[r]=e[r+1];e.pop()}function Ne(e,t,r){for(let r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=r}function $e(e,t){let r=-1,n=1e9;for(let i=0;i<t.length;i++)(t[i]-n||e[i].endSide-e[r].endSide)<0&&(r=i,n=t[i]);return r}t.Annotation=oe,t.AnnotationType=ae,t.ChangeDesc=k,t.ChangeSet=E,t.Compartment=Y,t.EditorSelection=B,t.EditorState=be,t.Facet=Q,t.Line=c,t.Prec=V,t.Range=we,t.RangeSet=ke,t.RangeSetBuilder=Ee,t.RangeValue=ve,t.SelectionRange=I,t.StateEffect=ue,t.StateEffectType=le,t.StateField=W,t.Text=r,t.Transaction=ce,t.codePointAt=v,t.codePointSize=w,t.combineConfig=function(e,t,r={}){let n={};for(let t of e)for(let e of Object.keys(t)){let i=t[e],s=n[e];if(void 0===s)n[e]=i;else if(s===i||void 0===i);else{if(!Object.hasOwnProperty.call(r,e))throw new Error("Config merge conflict for field "+e);n[e]=r[e](s,i)}}for(let e in t)void 0===n[e]&&(n[e]=t[e]);return n},t.countColumn=function(e,t,r=e.length){let n=0;for(let i=0;i<r;)9==e.charCodeAt(i)?(n+=t-n%t,i++):(n++,i=g(e,i));return n},t.findClusterBreak=g,t.findColumn=function(e,t,r,n){for(let n=0,i=0;;){if(i>=t)return n;if(n==e.length)break;i+=9==e.charCodeAt(n)?r-i%r:1,n=g(e,n)}return!0===n?-1:e.length},t.fromCodePoint=function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}},1506:(e,t,r)=>{"use strict";var n=r(9064),i=r(9172),s=r(6237);function o(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function a(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function l(e,t){if(!t.anchorNode)return!1;try{return a(e,t.anchorNode)}catch(e){return!1}}function u(e){return 3==e.nodeType?v(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function c(e,t,r,n){return!!r&&(p(e,t,r,n,-1)||p(e,t,r,n,1))}function h(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function p(e,t,r,n,i){for(;;){if(e==r&&t==n)return!0;if(t==(i<0?0:d(e))){if("DIV"==e.nodeName)return!1;let r=e.parentNode;if(!r||1!=r.nodeType)return!1;t=h(e)+(i<0?0:1),e=r}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?d(e):0}}}function d(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function f(e,t){let r=t?e.left:e.right;return{left:r,right:r,top:e.top,bottom:e.bottom}}function m(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function g(e,t){let r=t.width/e.offsetWidth,n=t.height/e.offsetHeight;return(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.width-e.offsetWidth)<1)&&(r=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.height-e.offsetHeight)<1)&&(n=1),{scaleX:r,scaleY:n}}class y{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:r}=e;this.set(t,Math.min(e.anchorOffset,t?d(t):0),r,Math.min(e.focusOffset,r?d(r):0))}set(e,t,r,n){this.anchorNode=e,this.anchorOffset=t,this.focusNode=r,this.focusOffset=n}}let O,x=null;function b(e){if(e.setActive)return e.setActive();if(x)return e.focus(x);let t=[];for(let r=e;r&&(t.push(r,r.scrollTop,r.scrollLeft),r!=r.ownerDocument);r=r.parentNode);if(e.focus(null==x?{get preventScroll(){return x={preventScroll:!0},!0}}:void 0),!x){x=!1;for(let e=0;e<t.length;){let r=t[e++],n=t[e++],i=t[e++];r.scrollTop!=n&&(r.scrollTop=n),r.scrollLeft!=i&&(r.scrollLeft=i)}}}function v(e,t,r=t){let n=O||(O=document.createRange());return n.setEnd(e,r),n.setStart(e,t),n}function w(e,t,r){let n={key:t,code:t,keyCode:r,which:r,cancelable:!0},i=new KeyboardEvent("keydown",n);i.synthetic=!0,e.dispatchEvent(i);let s=new KeyboardEvent("keyup",n);return s.synthetic=!0,e.dispatchEvent(s),i.defaultPrevented||s.defaultPrevented}function D(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function S(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}class k{constructor(e,t,r=!0){this.node=e,this.offset=t,this.precise=r}static before(e,t){return new k(e.parentNode,h(e),t)}static after(e,t){return new k(e.parentNode,h(e)+1,t)}}const E=[];class C{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let r of this.children){if(r==e)return t;t+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.flags){let r,n=this.dom,i=null;for(let s of this.children){if(7&s.flags){if(!s.dom&&(r=i?i.nextSibling:n.firstChild)){let e=C.get(r);(!e||!e.parent&&e.canReuseDOM(s))&&s.reuseDOM(r)}s.sync(e,t),s.flags&=-8}if(r=i?i.nextSibling:n.firstChild,t&&!t.written&&t.node==n&&r!=s.dom&&(t.written=!0),s.dom.parentNode==n)for(;r&&r!=s.dom;)r=T(r);else n.insertBefore(s.dom,r);i=s.dom}for(r=i?i.nextSibling:n.firstChild,r&&t&&t.node==n&&(t.written=!0);r;)r=T(r)}else if(1&this.flags)for(let r of this.children)7&r.flags&&(r.sync(e,t),r.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let r;if(e==this.dom)r=this.dom.childNodes[t];else{let n=0==d(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==n&&t.firstChild!=t.lastChild&&(n=e==t.firstChild?-1:1),e=t}r=n<0?e:e.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!C.get(r);)r=r.nextSibling;if(!r)return this.length;for(let e=0,t=0;;e++){let n=this.children[e];if(n.dom==r)return t;t+=n.length+n.breakAfter}}domBoundsAround(e,t,r=0){let n=-1,i=-1,s=-1,o=-1;for(let a=0,l=r,u=r;a<this.children.length;a++){let r=this.children[a],c=l+r.length;if(l<e&&c>t)return r.domBoundsAround(e,t,l);if(c>=e&&-1==n&&(n=a,i=l),l>t&&r.dom.parentNode==this.dom){s=a,o=u;break}u=c,l=c+r.breakAfter}return{from:i,to:o<0?r+this.length:o,startDOM:(n?this.children[n-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s<this.children.length&&s>=0?this.children[s].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,r=E){this.markDirty();for(let n=e;n<t;n++){let e=this.children[n];e.parent==this&&r.indexOf(e)<0&&e.destroy()}this.children.splice(e,t-e,...r);for(let e=0;e<r.length;e++)r[e].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new P(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,r,n,i,s){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!(8&(this.flags|e.flags))}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}function T(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}C.prototype.breakAfter=0;class P{constructor(e,t,r){this.children=e,this.pos=t,this.i=r,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function A(e,t,r,n,i,s,o,a,l){let{children:u}=e,c=u.length?u[t]:null,h=s.length?s[s.length-1]:null,p=h?h.breakAfter:o;if(!(t==n&&c&&!o&&!p&&s.length<2&&c.merge(r,i,s.length?h:null,0==r,a,l))){if(n<u.length){let e=u[n];e&&(i<e.length||e.breakAfter&&(null==h?void 0:h.breakAfter))?(t==n&&(e=e.split(i),i=0),!p&&h&&e.merge(0,i,h,!0,0,l)?s[s.length-1]=e:((i||e.children.length&&!e.children[0].length)&&e.merge(0,i,null,!1,0,l),s.push(e))):(null==e?void 0:e.breakAfter)&&(h?h.breakAfter=1:o=1),n++}for(c&&(c.breakAfter=o,r>0&&(!o&&s.length&&c.merge(r,c.length,s[0],!1,a,0)?c.breakAfter=s.shift().breakAfter:(r<c.length||c.children.length&&0==c.children[c.children.length-1].length)&&c.merge(r,c.length,null,!1,a,0),t++));t<n&&s.length;)if(u[n-1].become(s[s.length-1]))n--,s.pop(),l=s.length?0:a;else{if(!u[t].become(s[0]))break;t++,s.shift(),a=s.length?0:l}!s.length&&t&&n<u.length&&!u[t-1].breakAfter&&u[n].merge(0,0,u[t-1],!1,a,l)&&t--,(t<n||s.length)&&e.replaceChildren(t,n,s)}}function F(e,t,r,n,i,s){let o=e.childCursor(),{i:a,off:l}=o.findPos(r,1),{i:u,off:c}=o.findPos(t,-1),h=t-r;for(let e of n)h+=e.length;e.length+=h,A(e,u,c,a,l,n,0,i,s)}let _="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},I="undefined"!=typeof document?document:{documentElement:{style:{}}};const B=/Edge\/(\d+)/.exec(_.userAgent),N=/MSIE \d/.test(_.userAgent),$=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(_.userAgent),Q=!!(N||$||B),L=!Q&&/gecko\/(\d+)/i.test(_.userAgent),M=!Q&&/Chrome\/(\d+)/.exec(_.userAgent),R="webkitFontSmoothing"in I.documentElement.style,j=!Q&&/Apple Computer/.test(_.vendor),Z=j&&(/Mobile\/\w+/.test(_.userAgent)||_.maxTouchPoints>2);var q={mac:Z||/Mac/.test(_.platform),windows:/Win/.test(_.platform),linux:/Linux|X11/.test(_.platform),ie:Q,ie_version:N?I.documentMode||6:$?+$[1]:B?+B[1]:0,gecko:L,gecko_version:L?+(/Firefox\/(\d+)/.exec(_.userAgent)||[0,0])[1]:0,chrome:!!M,chrome_version:M?+M[1]:0,ios:Z,android:/Android\b/.test(_.userAgent),webkit:R,safari:j,webkit_version:R?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=I.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class W extends C{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,r){return!(8&this.flags||r&&(!(r instanceof W)||this.length-(t-e)+r.length>256||8&r.flags)||(this.text=this.text.slice(0,e)+(r?r.text:"")+this.text.slice(t),this.markDirty(),0))}split(e){let t=new W(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new k(this.dom,e)}domBoundsAround(e,t,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return function(e,t,r){let n=e.nodeValue.length;t>n&&(t=n);let i=t,s=t,o=0;0==t&&r<0||t==n&&r>=0?q.chrome||q.gecko||(t?(i--,o=1):s<n&&(s++,o=-1)):r<0?i--:s<n&&s++;let a=v(e,i,s).getClientRects();if(!a.length)return null;let l=a[(o?o<0:r>=0)?0:a.length-1];return q.safari&&!o&&0==l.width&&(l=Array.prototype.find.call(a,(e=>e.width))||l),o?f(l,o<0):l||null}(this.dom,e,t)}}class X extends C{constructor(e,t=[],r=0){super(),this.mark=e,this.children=t,this.length=r;for(let e of t)e.setParent(this)}setAttrs(e){if(D(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,r,n,i,s){return!(r&&(!(r instanceof X&&r.mark.eq(this.mark))||e&&i<=0||t<this.length&&s<=0)||(F(this,e,t,r?r.children.slice():[],i-1,s-1),this.markDirty(),0))}split(e){let t=[],r=0,n=-1,i=0;for(let s of this.children){let o=r+s.length;o>e&&t.push(r<e?s.split(e-r):s),n<0&&r>=e&&(n=i),r=o,i++}let s=this.length-e;return this.length=e,n>-1&&(this.children.length=n,this.markDirty()),new X(this.mark,t,s)}domAtPos(e){return Y(this,e)}coordsAt(e,t){return G(this,e,t)}}class V extends C{static create(e,t,r){return new V(e,t,r)}constructor(e,t,r){super(),this.widget=e,this.length=t,this.side=r,this.prevWidget=null}split(e){let t=V.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,r,n,i,s){return!(r&&(!(r instanceof V&&this.widget.compare(r.widget))||e>0&&i<=0||t<this.length&&s<=0)||(this.length=e+(r?r.length:0)+(this.length-t),0))}become(e){return e instanceof V&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(0==this.length)return n.Text.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,r=t&&t.state.doc,i=this.posAtStart;return r?r.slice(i,i+this.length):n.Text.empty}domAtPos(e){return(this.length?0==e:this.side>0)?k.before(this.dom):k.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let r=this.widget.coordsAt(this.dom,e,t);if(r)return r;let n=this.dom.getClientRects(),i=null;if(!n.length)return null;let s=this.side?this.side<0:e>0;for(let t=s?n.length-1:0;i=n[t],!(e>0?0==t:t==n.length-1||i.top<i.bottom);t+=s?-1:1);return f(i,!s)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class U extends C{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof U&&e.side==this.side}split(){return new U(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?k.before(this.dom):k.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return n.Text.empty}get isHidden(){return!0}}function Y(e,t){let r=e.dom,{children:n}=e,i=0;for(let e=0;i<n.length;i++){let s=n[i],o=e+s.length;if(!(o==e&&s.getSide()<=0)){if(t>e&&t<o&&s.dom.parentNode==r)return s.domAtPos(t-e);if(t<=e)break;e=o}}for(let e=i;e>0;e--){let t=n[e-1];if(t.dom.parentNode==r)return t.domAtPos(t.length)}for(let e=i;e<n.length;e++){let t=n[e];if(t.dom.parentNode==r)return t.domAtPos(0)}return new k(r,0)}function z(e,t,r){let n,{children:i}=e;r>0&&t instanceof X&&i.length&&(n=i[i.length-1])instanceof X&&n.mark.eq(t.mark)?z(n,t.children[0],r-1):(i.push(t),t.setParent(e)),e.length+=t.length}function G(e,t,r){let n=null,i=-1,s=null,o=-1;!function e(t,a){for(let l=0,u=0;l<t.children.length&&u<=a;l++){let c=t.children[l],h=u+c.length;h>=a&&(c.children.length?e(c,a-u):(!s||s.isHidden&&r>0)&&(h>a||u==h&&c.getSide()>0)?(s=c,o=a-u):(u<a||u==h&&c.getSide()<0&&!c.isHidden)&&(n=c,i=a-u)),u=h}}(e,t);let a=(r<0?n:s)||n||s;return a?a.coordsAt(Math.max(0,a==n?i:o),r):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let r=u(t);return r[r.length-1]||null}(e)}function H(e,t){for(let r in e)"class"==r&&t.class?t.class+=" "+e.class:"style"==r&&t.style?t.style+=";"+e.style:t[r]=e[r];return t}W.prototype.children=V.prototype.children=U.prototype.children=E;const J=Object.create(null);function K(e,t,r){if(e==t)return!0;e||(e=J),t||(t=J);let n=Object.keys(e),i=Object.keys(t);if(n.length-(r&&n.indexOf(r)>-1?1:0)!=i.length-(r&&i.indexOf(r)>-1?1:0))return!1;for(let s of n)if(s!=r&&(-1==i.indexOf(s)||e[s]!==t[s]))return!1;return!0}function ee(e,t,r){let n=!1;if(t)for(let i in t)r&&i in r||(n=!0,"style"==i?e.style.cssText="":e.removeAttribute(i));if(r)for(let i in r)t&&t[i]==r[i]||(n=!0,"style"==i?e.style.cssText=r[i]:e.setAttribute(i,r[i]));return n}function te(e){let t=Object.create(null);for(let r=0;r<e.attributes.length;r++){let n=e.attributes[r];t[n.name]=n.value}return t}class re extends C{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,r,n,i,s){if(r){if(!(r instanceof re))return!1;this.dom||r.transferDOM(this)}return n&&this.setDeco(r?r.attrs:null),F(this,e,t,r?r.children.slice():[],i,s),!0}split(e){let t=new re;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:r,off:n}=this.childPos(e);n&&(t.append(this.children[r].split(n),0),this.children[r].merge(n,this.children[r].length,null,!1,0,0),r++);for(let e=r;e<this.children.length;e++)t.append(this.children[e],0);for(;r>0&&0==this.children[r-1].length;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){K(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){z(this,e,t)}addLineDeco(e){let t=e.spec.attributes,r=e.spec.class;t&&(this.attrs=H(t,this.attrs||{})),r&&(this.attrs=H({class:r},this.attrs||{}))}domAtPos(e){return Y(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var r;this.dom?4&this.flags&&(D(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ee(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let n=this.dom.lastChild;for(;n&&C.get(n)instanceof X;)n=n.lastChild;if(!(n&&this.length&&("BR"==n.nodeName||0!=(null===(r=C.get(n))||void 0===r?void 0:r.isEditable)||q.ios&&this.children.some((e=>e instanceof W))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let r of this.children){if(!(r instanceof W)||/[^ -~]/.test(r.text))return null;let n=u(r.dom);if(1!=n.length)return null;t+=n[0].width,e=n[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let r=G(this,e,t);if(!this.children.length&&r&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=r.bottom-r.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight<t){let n=(t-e.textHeight)/2;return{top:r.top+n,bottom:r.bottom-n,left:r.left,right:r.left}}}return r}become(e){return!1}covers(){return!0}static find(e,t){for(let r=0,n=0;r<e.children.length;r++){let i=e.children[r],s=n+i.length;if(s>=t){if(i instanceof re)return i;if(s>t)break}n=s+i.breakAfter}return null}}class ne extends C{constructor(e,t,r){super(),this.widget=e,this.length=t,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(e,t,r,n,i,s){return!(r&&(!(r instanceof ne&&this.widget.compare(r.widget))||e>0&&i<=0||t<this.length&&s<=0)||(this.length=e+(r?r.length:0)+(this.length-t),0))}domAtPos(e){return 0==e?k.before(this.dom):k.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let r=new ne(this.widget,t,this.deco);return r.breakAfter=this.breakAfter,r}get children(){return E}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):n.Text.empty}domBoundsAround(){return null}become(e){return e instanceof ne&&e.widget.constructor==this.widget.constructor&&(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){return this.widget.coordsAt(this.dom,e,t)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:r}=this.deco;return t!=r&&(e<0?t<0:r>0)}}class ie{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var se,oe;t.BlockType=void 0,(se=t.BlockType||(t.BlockType={}))[se.Text=0]="Text",se[se.WidgetBefore=1]="WidgetBefore",se[se.WidgetAfter=2]="WidgetAfter",se[se.WidgetRange=3]="WidgetRange";class ae extends n.RangeValue{constructor(e,t,r,n){super(),this.startSide=e,this.endSide=t,this.widget=r,this.spec=n}get heightRelevant(){return!1}static mark(e){return new le(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),r=!!e.block;return t+=r&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new ce(e,t,t,r,e.widget||null,!1)}static replace(e){let t,r,n=!!e.block;if(e.isBlockGap)t=-5e8,r=4e8;else{let{start:i,end:s}=he(e,n);t=(i?n?-3e8:-1:5e8)-1,r=1+(s?n?2e8:1:-6e8)}return new ce(e,t,r,n,e.widget||null,!0)}static line(e){return new ue(e)}static set(e,t=!1){return n.RangeSet.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}ae.none=n.RangeSet.empty;class le extends ae{constructor(e){let{start:t,end:r}=he(e);super(t?-1:5e8,r?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,r;return this==e||e instanceof le&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(r=e.attrs)||void 0===r?void 0:r.class))&&K(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}le.prototype.point=!1;class ue extends ae{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof ue&&this.spec.class==e.spec.class&&K(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}ue.prototype.mapMode=n.MapMode.TrackBefore,ue.prototype.point=!0;class ce extends ae{constructor(e,t,r,i,s,o){super(t,r,s,e),this.block=i,this.isReplace=o,this.mapMode=i?t<=0?n.MapMode.TrackBefore:n.MapMode.TrackAfter:n.MapMode.TrackDel}get type(){return this.startSide!=this.endSide?t.BlockType.WidgetRange:this.startSide<=0?t.BlockType.WidgetBefore:t.BlockType.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof ce&&((t=this.widget)==(r=e.widget)||!!(t&&r&&t.compare(r)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,r}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function he(e,t=!1){let{inclusiveStart:r,inclusiveEnd:n}=e;return null==r&&(r=e.inclusive),null==n&&(n=e.inclusive),{start:null!=r?r:t,end:null!=n?n:t}}function pe(e,t,r,n=0){let i=r.length-1;i>=0&&r[i]+n>=e?r[i]=Math.max(r[i],t):r.push(e,t)}ce.prototype.point=!0;class de{constructor(e,t,r,n){this.doc=e,this.pos=t,this.end=r,this.disallowBlockEffectsFor=n,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof ne&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new re),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(fe(new U(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||e&&this.content.length&&this.content[this.content.length-1]instanceof ne||this.getLine()}buildText(e,t,r){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:r,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw new Error("Ran out of text content when drawing inline views");if(r){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let n=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-r)),this.getLine().append(fe(new W(this.text.slice(this.textOff,this.textOff+n)),t),r),this.atCursorPos=!0,this.textOff+=n,e-=n,r=0}}span(e,t,r,n){this.buildText(t-e,r,n),this.pos=t,this.openStart<0&&(this.openStart=n)}point(e,t,r,n,i,s){if(this.disallowBlockEffectsFor[s]&&r instanceof ce){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let o=t-e;if(r instanceof ce)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new ne(r.widget||new me("div"),o,r));else{let s=V.create(r.widget||new me("span"),o,o?0:r.startSide),a=this.atCursorPos&&!s.isEditable&&i<=n.length&&(e<t||r.startSide>0),l=!s.isEditable&&(e<t||i>n.length||r.startSide<=0),u=this.getLine();2!=this.pendingBuffer||a||s.isEditable||(this.pendingBuffer=0),this.flushBuffer(n),a&&(u.append(fe(new U(1),n),i),i=n.length+Math.max(0,i-n.length)),u.append(fe(s,n),i),this.atCursorPos=l,this.pendingBuffer=l?e<t||i>n.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=n.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);o&&(this.textOff+o<=this.text.length?this.textOff+=o:(this.skip+=o-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}static build(e,t,r,i,s){let o=new de(e,t,r,s);return o.openEnd=n.RangeSet.spans(i,t,r,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function fe(e,t){for(let r of t)e=new X(r,[e],e.length);return e}class me extends ie{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}t.Direction=void 0,(oe=t.Direction||(t.Direction={}))[oe.LTR=0]="LTR",oe[oe.RTL=1]="RTL";const ge=t.Direction.LTR,ye=t.Direction.RTL;function Oe(e){let t=[];for(let r=0;r<e.length;r++)t.push(1<<+e[r]);return t}const xe=Oe("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),be=Oe("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),ve=Object.create(null),we=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),r=e.charCodeAt(1);ve[t]=r,ve[r]=-t}function De(e){return e<=247?xe[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?be[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}const Se=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class ke{get dir(){return this.level%2?ye:ge}constructor(e,t,r){this.from=e,this.to=t,this.level=r}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,r,n){let i=-1;for(let s=0;s<e.length;s++){let o=e[s];if(o.from<=t&&o.to>=t){if(o.level==r)return s;(i<0||(0!=n?n<0?o.from<t:o.to>t:e[i].level>o.level))&&(i=s)}}if(i<0)throw new RangeError("Index out of range");return i}}function Ee(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],i=t[r];if(n.from!=i.from||n.to!=i.to||n.direction!=i.direction||!Ee(n.inner,i.inner))return!1}return!0}const Ce=[];function Te(e,t,r,n,i,s,o){let a=n%2?2:1;if(n%2==i%2)for(let l=t,u=0;l<r;){let t=!0,c=!1;if(u==s.length||l<s[u].from){let e=Ce[l];e!=a&&(t=!1,c=16==e)}let h=t||1!=a?null:[],p=t?n:n+1,d=l;e:for(;;)if(u<s.length&&d==s[u].from){if(c)break e;let f=s[u];if(!t)for(let e=f.to,t=u+1;;){if(e==r)break e;if(!(t<s.length&&s[t].from==e)){if(Ce[e]==a)break e;break}e=s[t++].to}u++,h?h.push(f):(f.from>l&&o.push(new ke(l,f.from,p)),Pe(e,f.direction==ge!=!(p%2)?n+1:n,i,f.inner,f.from,f.to,o),l=f.to),d=f.to}else{if(d==r||(t?Ce[d]!=a:Ce[d]==a))break;d++}h?Te(e,l,d,n+1,i,h,o):l<d&&o.push(new ke(l,d,p)),l=d}else for(let l=r,u=s.length;l>t;){let r=!0,c=!1;if(!u||l>s[u-1].to){let e=Ce[l-1];e!=a&&(r=!1,c=16==e)}let h=r||1!=a?null:[],p=r?n:n+1,d=l;e:for(;;)if(u&&d==s[u-1].to){if(c)break e;let f=s[--u];if(!r)for(let e=f.from,r=u;;){if(e==t)break e;if(!r||s[r-1].to!=e){if(Ce[e-1]==a)break e;break}e=s[--r].from}h?h.push(f):(f.to<l&&o.push(new ke(f.to,l,p)),Pe(e,f.direction==ge!=!(p%2)?n+1:n,i,f.inner,f.from,f.to,o),l=f.from),d=f.from}else{if(d==t||(r?Ce[d-1]!=a:Ce[d-1]==a))break;d--}h?Te(e,d,l,n+1,i,h,o):d<l&&o.push(new ke(d,l,p)),l=d}}function Pe(e,t,r,n,i,s,o){let a=t%2?2:1;!function(e,t,r,n,i){for(let s=0;s<=n.length;s++){let o=s?n[s-1].to:t,a=s<n.length?n[s].from:r,l=s?256:i;for(let t=o,r=l,n=l;t<a;t++){let i=De(e.charCodeAt(t));512==i?i=r:8==i&&4==n&&(i=16),Ce[t]=4==i?2:i,7&i&&(n=i),r=i}for(let e=o,t=l,n=l;e<a;e++){let i=Ce[e];if(128==i)e<a-1&&t==Ce[e+1]&&24&t?i=Ce[e]=t:Ce[e]=256;else if(64==i){let i=e+1;for(;i<a&&64==Ce[i];)i++;let s=e&&8==t||i<r&&8==Ce[i]?1==n?1:8:256;for(let t=e;t<i;t++)Ce[t]=s;e=i-1}else 8==i&&1==n&&(Ce[e]=1);t=i,7&i&&(n=i)}}}(e,i,s,n,a),function(e,t,r,n,i){let s=1==i?2:1;for(let o=0,a=0,l=0;o<=n.length;o++){let u=o?n[o-1].to:t,c=o<n.length?n[o].from:r;for(let t,r,n,o=u;o<c;o++)if(r=ve[t=e.charCodeAt(o)])if(r<0){for(let e=a-3;e>=0;e-=3)if(we[e+1]==-r){let t=we[e+2],r=2&t?i:4&t?1&t?s:i:0;r&&(Ce[o]=Ce[we[e]]=r),a=e;break}}else{if(189==we.length)break;we[a++]=o,we[a++]=t,we[a++]=l}else if(2==(n=Ce[o])||1==n){let e=n==i;l=e?0:1;for(let t=a-3;t>=0;t-=3){let r=we[t+2];if(2&r)break;if(e)we[t+2]|=2;else{if(4&r)break;we[t+2]|=4}}}}}(e,i,s,n,a),function(e,t,r,n){for(let i=0,s=n;i<=r.length;i++){let o=i?r[i-1].to:e,a=i<r.length?r[i].from:t;for(let l=o;l<a;){let o=Ce[l];if(256==o){let o=l+1;for(;;)if(o==a){if(i==r.length)break;o=r[i++].to,a=i<r.length?r[i].from:t}else{if(256!=Ce[o])break;o++}let u=1==s,c=u==(1==(o<t?Ce[o]:n))?u?1:2:n;for(let t=o,n=i,s=n?r[n-1].to:e;t>l;)t==s&&(t=r[--n].from,s=n?r[n-1].to:e),Ce[--t]=c;l=o}else s=o,l++}}}(i,s,n,a),Te(e,i,s,t,r,n,o)}function Ae(e,t,r){if(!e)return[new ke(0,0,t==ye?1:0)];if(t==ge&&!r.length&&!Se.test(e))return Fe(e.length);if(r.length)for(;e.length>Ce.length;)Ce[Ce.length]=256;let n=[],i=t==ge?0:1;return Pe(e,i,i,r,0,e.length,n),n}function Fe(e){return[new ke(0,e,0)]}let _e="";function Ie(e,t,r,i,s){var o;let a=i.head-e.from,l=ke.find(t,a,null!==(o=i.bidiLevel)&&void 0!==o?o:-1,i.assoc),u=t[l],c=u.side(s,r);if(a==c){let e=l+=s?1:-1;if(e<0||e>=t.length)return null;u=t[l=e],a=u.side(!s,r),c=u.side(s,r)}let h=n.findClusterBreak(e.text,a,u.forward(s,r));(h<u.from||h>u.to)&&(h=c),_e=e.text.slice(Math.min(a,h),Math.max(a,h));let p=l==(s?t.length-1:0)?null:t[l+(s?1:-1)];return p&&h==c&&p.level+(s?0:1)<u.level?n.EditorSelection.cursor(p.side(!s,r)+e.from,p.forward(s,r)?1:-1,p.level):n.EditorSelection.cursor(h+e.from,u.forward(s,r)?-1:1,u.level)}function Be(e,t,r){for(let n=t;n<r;n++){let t=De(e.charCodeAt(n));if(1==t)return ge;if(2==t||4==t)return ye}return ge}const Ne=n.Facet.define(),$e=n.Facet.define(),Qe=n.Facet.define(),Le=n.Facet.define(),Me=n.Facet.define(),Re=n.Facet.define(),je=n.Facet.define(),Ze=n.Facet.define({combine:e=>e.some((e=>e))}),qe=n.Facet.define({combine:e=>e.some((e=>e))});class We{constructor(e,t="nearest",r="nearest",n=5,i=5,s=!1){this.range=e,this.y=t,this.x=r,this.yMargin=n,this.xMargin=i,this.isSnapshot=s}map(e){return e.empty?this:new We(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new We(n.EditorSelection.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Xe=n.StateEffect.define({map:(e,t)=>e.map(t)});function Ve(e,t,r){let n=e.facet(Le);n.length?n[0](t):window.onerror?window.onerror(String(t),r,void 0,void 0,t):r?console.error(r+":",t):console.error(t)}const Ue=n.Facet.define({combine:e=>!e.length||e[0]});let Ye=0;const ze=n.Facet.define();class Ge{constructor(e,t,r,n,i){this.id=e,this.create=t,this.domEventHandlers=r,this.domEventObservers=n,this.extension=i(this)}static define(e,t){const{eventHandlers:r,eventObservers:n,provide:i,decorations:s}=t||{};return new Ge(Ye++,e,r,n,(e=>{let t=[ze.of(e)];return s&&t.push(et.of((t=>{let r=t.plugin(e);return r?s(r):ae.none}))),i&&t.push(i(e)),t}))}static fromClass(e,t){return Ge.define((t=>new e(t)),t)}}class He{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(Ve(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){Ve(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){Ve(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Je=n.Facet.define(),Ke=n.Facet.define(),et=n.Facet.define(),tt=n.Facet.define(),rt=n.Facet.define(),nt=n.Facet.define();function it(e,t){let r=e.state.facet(nt);if(!r.length)return r;let i=r.map((t=>t instanceof Function?t(e):t)),s=[];return n.RangeSet.spans(i,t.from,t.to,{point(){},span(e,r,n,i){let o=e-t.from,a=r-t.from,l=s;for(let e=n.length-1;e>=0;e--,i--){let r,s=n[e].spec.bidiIsolate;if(null==s&&(s=Be(t.text,o,a)),i>0&&l.length&&(r=l[l.length-1]).to==o&&r.direction==s)r.to=a,l=r.inner;else{let e={from:o,to:a,direction:s,inner:[]};l.push(e),l=e.inner}}}}),s}const st=n.Facet.define();function ot(e){let t=0,r=0,n=0,i=0;for(let s of e.state.facet(st)){let o=s(e);o&&(null!=o.left&&(t=Math.max(t,o.left)),null!=o.right&&(r=Math.max(r,o.right)),null!=o.top&&(n=Math.max(n,o.top)),null!=o.bottom&&(i=Math.max(i,o.bottom)))}return{left:t,right:r,top:n,bottom:i}}const at=n.Facet.define();class lt{constructor(e,t,r,n){this.fromA=e,this.toA=t,this.fromB=r,this.toB=n}join(e){return new lt(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,r=this;for(;t>0;t--){let n=e[t-1];if(!(n.fromA>r.toA)){if(n.toA<r.fromA)break;r=r.join(n),e.splice(t-1,1)}}return e.splice(t,0,r),e}static extendWithRanges(e,t){if(0==t.length)return e;let r=[];for(let n=0,i=0,s=0,o=0;;n++){let a=n==e.length?null:e[n],l=s-o,u=a?a.fromB:1e9;for(;i<t.length&&t[i]<u;){let e=t[i],n=t[i+1],s=Math.max(o,e),a=Math.min(u,n);if(s<=a&&new lt(s+l,a+l,s,a).addToSet(r),n>u)break;i+=2}if(!a)return r;new lt(a.fromA,a.toA,a.fromB,a.toB).addToSet(r),s=a.toA,o=a.toB}}}class ut{constructor(e,t,r){this.view=e,this.state=t,this.transactions=r,this.flags=0,this.startState=e.state,this.changes=n.ChangeSet.empty(this.startState.doc.length);for(let e of r)this.changes=this.changes.compose(e.changes);let i=[];this.changes.iterChangedRanges(((e,t,r,n)=>i.push(new lt(e,t,r,n)))),this.changedRanges=i}static create(e,t,r){return new ut(e,t,r)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}class ct extends C{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new re],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new lt(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let r=e.changedRanges;this.minWidth>0&&r.length&&(r.every((({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let i=-1;this.view.inputState.composing>=0&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?i=this.domChanged.newSel.head:function(e,t){let r=!1;return t&&e.iterChangedRanges(((e,n)=>{e<t.to&&n>t.from&&(r=!0)})),r}(e.changes,this.hasComposition)||e.selectionSet||(i=e.state.selection.main.head));let s=i>-1?function(e,t,r){let n=pt(e,r);if(!n)return null;let{node:i,from:s,to:o}=n,a=i.nodeValue;if(/[\n\r]/.test(a))return null;if(e.state.doc.sliceString(n.from,n.to)!=a)return null;let l=t.invertedDesc,u=new lt(l.mapPos(s),l.mapPos(o),s,o),c=[];for(let t=i.parentNode;;t=t.parentNode){let r=C.get(t);if(r instanceof X)c.push({node:t,deco:r.mark});else{if(r instanceof re||"DIV"==t.nodeName&&t.parentNode==e.contentDOM)return{range:u,text:i,marks:c,line:t};if(t==e.contentDOM)return null;c.push({node:t,deco:new le({inclusive:!0,attributes:te(t),tagName:t.tagName.toLowerCase()})})}}}(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:t,to:n}=this.hasComposition;r=new lt(t,n,e.changes.mapPos(t,-1),e.changes.mapPos(n,1)).addToSet(r.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(q.ie||q.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=function(e,t,r){let i=new ft;return n.RangeSet.compare(e,t,r,i),i.changes}(this.decorations,this.updateDeco(),e.changes);return r=lt.extendWithRanges(r,o),!!(7&this.flags||0!=r.length)&&(this.updateInner(r,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,r);let{observer:n}=this.view;n.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=q.chrome||q.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.flags&=-8,e&&(e.written||n.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((e=>e.flags&=-9));let i=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.children)e instanceof ne&&e.widget instanceof ht&&i.push(e.dom);n.updateGaps(i)}updateChildren(e,t,r){let n=r?r.range.addToSet(e.slice()):e,i=this.childCursor(t);for(let e=n.length-1;;e--){let t=e>=0?n[e]:null;if(!t)break;let s,o,a,l,{fromA:u,toA:c,fromB:h,toB:p}=t;if(r&&r.range.fromB<p&&r.range.toB>h){let e=de.build(this.view.state.doc,h,r.range.fromB,this.decorations,this.dynamicDecorationMap),t=de.build(this.view.state.doc,r.range.toB,p,this.decorations,this.dynamicDecorationMap);o=e.breakAtStart,a=e.openStart,l=t.openEnd;let n=this.compositionView(r);t.breakAtStart?n.breakAfter=1:t.content.length&&n.merge(n.length,n.length,t.content[0],!1,t.openStart,0)&&(n.breakAfter=t.content[0].breakAfter,t.content.shift()),e.content.length&&n.merge(0,0,e.content[e.content.length-1],!0,0,e.openEnd)&&e.content.pop(),s=e.content.concat(n).concat(t.content)}else({content:s,breakAtStart:o,openStart:a,openEnd:l}=de.build(this.view.state.doc,h,p,this.decorations,this.dynamicDecorationMap));let{i:d,off:f}=i.findPos(c,1),{i:m,off:g}=i.findPos(u,-1);A(this,m,g,d,f,s,o,a,l)}r&&this.fixCompositionDOM(r)}compositionView(e){let t=new W(e.text.nodeValue);t.flags|=8;for(let{deco:r}of e.marks)t=new X(r,[t],t.length);let r=new re;return r.append(t,0),r}fixCompositionDOM(e){let t=(e,t)=>{t.flags|=8|(t.children.some((e=>7&e.flags))?1:0),this.markedForComposition.add(t);let r=C.get(e);r&&r!=t&&(r.dom=null),t.setDOM(e)},r=this.childPos(e.range.fromB,1),n=this.children[r.i];t(e.line,n);for(let i=e.marks.length-1;i>=-1;i--)r=n.childPos(r.off,1),n=n.children[r.i],t(i>=0?e.marks[i].node:e.text,n)}updateSelection(e=!1,t=!1){!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let r=this.view.root.activeElement,n=r==this.dom,i=!n&&l(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(n||t||i))return;let s=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,u=this.moveToLine(this.domAtPos(a.anchor)),h=a.empty?u:this.moveToLine(this.domAtPos(a.head));if(q.gecko&&a.empty&&!this.hasComposition&&1==(p=u).node.nodeType&&p.node.firstChild&&(0==p.offset||"false"==p.node.childNodes[p.offset-1].contentEditable)&&(p.offset==p.node.childNodes.length||"false"==p.node.childNodes[p.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore((()=>u.node.insertBefore(e,u.node.childNodes[u.offset]||null))),u=h=new k(e,0),s=!0}var p;let d=this.view.observer.selectionRange;!s&&d.focusNode&&(c(u.node,u.offset,d.anchorNode,d.anchorOffset)&&c(h.node,h.offset,d.focusNode,d.focusOffset)||this.suppressWidgetCursorChange(d,a))||(this.view.observer.ignore((()=>{q.android&&q.chrome&&this.dom.contains(d.focusNode)&&function(e,t){for(let r=e;r&&r!=t;r=r.assignedSlot||r.parentNode)if(1==r.nodeType&&"false"==r.contentEditable)return!0;return!1}(d.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=o(this.view.root);if(e)if(a.empty){if(q.gecko){let e=(t=u.node,n=u.offset,1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(n<t.childNodes.length&&"false"==t.childNodes[n].contentEditable?2:0));if(e&&3!=e){let t=dt(u.node,u.offset,1==e?1:-1);t&&(u=new k(t.node,t.offset))}}e.collapse(u.node,u.offset),null!=a.bidiLevel&&void 0!==e.caretBidiLevel&&(e.caretBidiLevel=a.bidiLevel)}else if(e.extend){e.collapse(u.node,u.offset);try{e.extend(h.node,h.offset)}catch(e){}}else{let t=document.createRange();a.anchor>a.head&&([u,h]=[h,u]),t.setEnd(h.node,h.offset),t.setStart(u.node,u.offset),e.removeAllRanges(),e.addRange(t)}var t,n;i&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())})),this.view.observer.setSelectionRange(u,h)),this.impreciseAnchor=u.precise?null:new k(d.anchorNode,d.anchorOffset),this.impreciseHead=h.precise?null:new k(d.focusNode,d.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&c(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,r=o(e.root),{anchorNode:n,anchorOffset:i}=e.observer.selectionRange;if(!(r&&t.empty&&t.assoc&&r.modify))return;let s=re.find(this,t.head);if(!s)return;let a=s.posAtStart;if(t.head==a||t.head==a+s.length)return;let l=this.coordsAt(t.head,-1),u=this.coordsAt(t.head,1);if(!l||!u||l.bottom>u.top)return;let c=this.domAtPos(t.head+t.assoc);r.collapse(c.node,c.offset),r.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let h=e.observer.selectionRange;e.docView.posFromDOM(h.anchorNode,h.anchorOffset)!=t.from&&r.collapse(n,i)}moveToLine(e){let t,r=this.dom;if(e.node!=r)return e;for(let n=e.offset;!t&&n<r.childNodes.length;n++){let e=C.get(r.childNodes[n]);e instanceof re&&(t=e.domAtPos(0))}for(let n=e.offset-1;!t&&n>=0;n--){let e=C.get(r.childNodes[n]);e instanceof re&&(t=e.domAtPos(e.length))}return t?new k(t.node,t.offset,!0):e}nearest(e){for(let t=e;t;){let e=C.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let r=this.nearest(e);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(e,t)+r.posAtStart}domAtPos(e){let{i:t,off:r}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let e=this.children[t];if(r<e.length||e instanceof re)break;t++,r=0}return this.children[t].domAtPos(r)}coordsAt(e,t){let r=null,n=0;for(let i=this.length,s=this.children.length-1;s>=0;s--){let o=this.children[s],a=i-o.breakAfter,l=a-o.length;if(a<e)break;l<=e&&(l<e||o.covers(-1))&&(a>e||o.covers(1))&&(!r||o instanceof re&&!(r instanceof re&&t>=0))&&(r=o,n=l),i=l}return r?r.coordsAt(e-n,t):null}coordsForChar(e){let{i:t,off:r}=this.childPos(e,1),i=this.children[t];if(!(i instanceof re))return null;for(;i.children.length;){let{i:e,off:t}=i.childPos(r,1);for(;;e++){if(e==i.children.length)return null;if((i=i.children[e]).length)break}r=t}if(!(i instanceof W))return null;let s=n.findClusterBreak(i.text,r);if(s==r)return null;let o=v(i.dom,r,s).getClientRects();for(let e=0;e<o.length;e++){let t=o[e];if(e==o.length-1||t.top<t.bottom&&t.left<t.right)return t}return null}measureVisibleLineHeights(e){let r=[],{from:n,to:i}=e,s=this.view.contentDOM.clientWidth,o=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==t.Direction.LTR;for(let e=0,t=0;t<this.children.length;t++){let c=this.children[t],h=e+c.length;if(h>i)break;if(e>=n){let t=c.dom.getBoundingClientRect();if(r.push(t.height),o){let r=c.dom.lastChild,n=r?u(r):[];if(n.length){let r=n[n.length-1],i=l?r.right-t.left:t.right-r.left;i>a&&(a=i,this.minWidth=s,this.minWidthFrom=e,this.minWidthTo=h)}}}e=h+c.breakAfter}return r}textDirectionAt(e){let{i:r}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[r].dom).direction?t.Direction.RTL:t.Direction.LTR}measureTextSize(){for(let e of this.children)if(e instanceof re){let t=e.measureTextSize();if(t)return t}let e,t,r,n=document.createElement("div");return n.className="cm-line",n.style.width="99999px",n.style.position="absolute",n.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(n);let i=u(n.firstChild)[0];e=n.getBoundingClientRect().height,t=i?i.width/27:7,r=i?i.height:e,n.remove()})),{lineHeight:e,charWidth:t,textHeight:r}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new P(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let r=0,n=0;;n++){let i=n==t.viewports.length?null:t.viewports[n],s=i?i.from-1:this.length;if(s>r){let n=(t.lineBlockAt(s).bottom-t.lineBlockAt(r).top)/this.view.scaleY;e.push(ae.replace({widget:new ht(n),block:!0,inclusive:!0,isBlockGap:!0}).range(r,s))}if(!i)break;r=i.to+1}return ae.set(e)}updateDeco(){let e=this.view.state.facet(et).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e)),t=!1,r=this.view.state.facet(tt).map(((e,r)=>{let n="function"==typeof e;return n&&(t=!0),n?e(this.view):e}));r.length&&(this.dynamicDecorationMap[e.length]=t,e.push(n.RangeSet.join(r)));for(let t=e.length;t<e.length+3;t++)this.dynamicDecorationMap[t]=!1;return this.decorations=[...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);return this.view.scrollDOM.scrollTop=t.top-e.yMargin,void(this.view.scrollDOM.scrollLeft=e.xMargin)}let r,{range:n}=e,i=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1);if(!i)return;!n.empty&&(r=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(i={left:Math.min(i.left,r.left),top:Math.min(i.top,r.top),right:Math.max(i.right,r.right),bottom:Math.max(i.bottom,r.bottom)});let s=ot(this.view),o={left:i.left-s.left,top:i.top-s.top,right:i.right+s.right,bottom:i.bottom+s.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;!function(e,t,r,n,i,s,o,a){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e,h=!1;c&&!h;)if(1==c.nodeType){let e,p=c==l.body,d=1,f=1;if(p)e=m(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(h=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let t=c.getBoundingClientRect();({scaleX:d,scaleY:f}=g(c,t)),e={left:t.left,right:t.left+c.clientWidth*d,top:t.top,bottom:t.top+c.clientHeight*f}}let y=0,O=0;if("nearest"==i)t.top<e.top?(O=-(e.top-t.top+o),r>0&&t.bottom>e.bottom+O&&(O=t.bottom-e.bottom+O+o)):t.bottom>e.bottom&&(O=t.bottom-e.bottom+o,r<0&&t.top-O<e.top&&(O=-(e.top+O-t.top+o)));else{let n=t.bottom-t.top,s=e.bottom-e.top;O=("center"==i&&n<=s?t.top+n/2-s/2:"start"==i||"center"==i&&r<0?t.top-o:t.bottom-s+o)-e.top}if("nearest"==n?t.left<e.left?(y=-(e.left-t.left+s),r>0&&t.right>e.right+y&&(y=t.right-e.right+y+s)):t.right>e.right&&(y=t.right-e.right+s,r<0&&t.left<e.left+y&&(y=-(e.left+y-t.left+s))):y=("center"==n?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==n==a?t.left-s:t.right-(e.right-e.left)+s)-e.left,y||O)if(p)u.scrollBy(y,O);else{let e=0,r=0;if(O){let e=c.scrollTop;c.scrollTop+=O/f,r=(c.scrollTop-e)*f}if(y){let t=c.scrollLeft;c.scrollLeft+=y/d,e=(c.scrollLeft-t)*d}t={left:t.left-e,top:t.top-r,right:t.right-e,bottom:t.bottom-r},e&&Math.abs(e-y)<1&&(n="nearest"),r&&Math.abs(r-O)<1&&(i="nearest")}if(p)break;c=c.assignedSlot||c.parentNode}else{if(11!=c.nodeType)break;c=c.host}}(this.view.scrollDOM,o,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,a),-a),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==t.Direction.LTR)}}class ht extends ie{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}}function pt(e,t){let r=e.observer.selectionRange,n=r.focusNode&&dt(r.focusNode,r.focusOffset,0);if(!n)return null;let i=t-n.offset;return{from:i,to:i+n.node.nodeValue.length,node:n.node}}function dt(e,t,r){if(r<=0)for(let r=e,n=t;;){if(3==r.nodeType)return{node:r,offset:n};if(!(1==r.nodeType&&n>0))break;r=r.childNodes[n-1],n=d(r)}if(r>=0)for(let n=e,i=t;;){if(3==n.nodeType)return{node:n,offset:i};if(!(1==n.nodeType&&i<n.childNodes.length&&r>=0))break;n=n.childNodes[i],i=0}return null}let ft=class{constructor(){this.changes=[]}compareRange(e,t){pe(e,t,this.changes)}comparePoint(e,t){pe(e,t,this.changes)}};function mt(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function gt(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function yt(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function Ot(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function xt(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function bt(e,t,r){let n,i,s,o,a,l,c,h,p=!1;for(let d=e.firstChild;d;d=d.nextSibling){let e=u(d);for(let u=0;u<e.length;u++){let f=e[u];i&&yt(i,f)&&(f=Ot(xt(f,i.bottom),i.top));let m=mt(t,f),g=gt(r,f);if(0==m&&0==g)return 3==d.nodeType?vt(d,t,r):bt(d,t,r);if(!n||o>g||o==g&&s>m){n=d,i=f,s=m,o=g;let a=g?r<f.top?-1:1:m?t<f.left?-1:1:0;p=!a||(a>0?u<e.length-1:u>0)}0==m?r>f.bottom&&(!c||c.bottom<f.bottom)?(a=d,c=f):r<f.top&&(!h||h.top>f.top)&&(l=d,h=f):c&&yt(c,f)?c=xt(c,f.bottom):h&&yt(h,f)&&(h=Ot(h,f.top))}}if(c&&c.bottom>=r?(n=a,i=c):h&&h.top<=r&&(n=l,i=h),!n)return{node:e,offset:0};let d=Math.max(i.left,Math.min(i.right,t));return 3==n.nodeType?vt(n,d,r):p&&"false"!=n.contentEditable?bt(n,d,r):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,n)+(t>=(i.left+i.right)/2?1:0)}}function vt(e,t,r){let n=e.nodeValue.length,i=-1,s=1e9,o=0;for(let a=0;a<n;a++){let n=v(e,a,a+1).getClientRects();for(let l=0;l<n.length;l++){let u=n[l];if(u.top==u.bottom)continue;o||(o=t-u.left);let c=(u.top>r?u.top-r:r-u.bottom)-1;if(u.left-1<=t&&u.right+1>=t&&c<s){let r=t>=(u.left+u.right)/2,n=r;if((q.chrome||q.gecko)&&v(e,a).getBoundingClientRect().left==u.right&&(n=!r),c<=0)return{node:e,offset:a+(n?1:0)};i=a+(n?1:0),s=c}}}return{node:e,offset:i>-1?i:o>0?e.nodeValue.length:0}}function wt(e,r,n,i=-1){var s,o;let a,l=e.contentDOM.getBoundingClientRect(),u=l.top+e.viewState.paddingTop,{docHeight:c}=e.viewState,{x:h,y:p}=r,d=p-u;if(d<0)return 0;if(d>c)return e.state.doc.length;for(let r=e.viewState.heightOracle.textHeight/2,s=!1;a=e.elementAtHeight(d),a.type!=t.BlockType.Text;)for(;d=i>0?a.bottom+r:a.top-r,!(d>=0&&d<=c);){if(s)return n?null:0;s=!0,i=-i}p=u+d;let f=a.from;if(f<e.viewport.from)return 0==e.viewport.from?0:n?null:Dt(e,l,a,h,p);if(f>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:Dt(e,l,a,h,p);let m=e.dom.ownerDocument,g=e.root.elementFromPoint?e.root:m,y=g.elementFromPoint(h,p);y&&!e.contentDOM.contains(y)&&(y=null),y||(h=Math.max(l.left+1,Math.min(l.right-1,h)),y=g.elementFromPoint(h,p),y&&!e.contentDOM.contains(y)&&(y=null));let O,x=-1;if(y&&0!=(null===(s=e.docView.nearest(y))||void 0===s?void 0:s.isEditable))if(m.caretPositionFromPoint){let e=m.caretPositionFromPoint(h,p);e&&({offsetNode:O,offset:x}=e)}else if(m.caretRangeFromPoint){let t=m.caretRangeFromPoint(h,p);t&&(({startContainer:O,startOffset:x}=t),(!e.contentDOM.contains(O)||q.safari&&function(e,t,r){let n;if(3!=e.nodeType||t!=(n=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return v(e,n-1,n).getBoundingClientRect().left>r}(O,x,h)||q.chrome&&function(e,t,r){if(0!=t)return!1;for(let t=e;;){let e=t.parentNode;if(!e||1!=e.nodeType||e.firstChild!=t)return!1;if(e.classList.contains("cm-line"))break;t=e}return r-(1==e.nodeType?e.getBoundingClientRect():v(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect()).left>5}(O,x,h))&&(O=void 0))}if(!O||!e.docView.dom.contains(O)){let t=re.find(e.docView,f);if(!t)return d>a.top+a.height/2?a.to:a.from;({node:O,offset:x}=bt(t.dom,h,p))}let b=e.docView.nearest(O);if(!b)return null;if(b.isWidget&&1==(null===(o=b.dom)||void 0===o?void 0:o.nodeType)){let e=b.dom.getBoundingClientRect();return r.y<e.top||r.y<=e.bottom&&r.x<=(e.left+e.right)/2?b.posAtStart:b.posAtEnd}return b.localPosFromDOM(O,x)+b.posAtStart}function Dt(e,t,r,i,s){let o=Math.round((i-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&r.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;o+=Math.floor((s-r.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(r.from,r.to);return r.from+n.findColumn(a,o,e.state.tabSize)}function St(e,r){let n=e.lineBlockAt(r);if(Array.isArray(n.type))for(let e of n.type)if(e.to>r||e.to==r&&(e.to==n.to||e.type==t.BlockType.Text))return e;return n}function kt(e,t,r,n){let i=e.state.doc.lineAt(t.head),s=e.bidiSpans(i),o=e.textDirectionAt(i.from);for(let a=t,l=null;;){let t=Ie(i,s,o,a,r),u=_e;if(!t){if(i.number==(r?e.state.doc.lines:1))return a;u="\n",i=e.state.doc.line(i.number+(r?1:-1)),s=e.bidiSpans(i),t=e.visualLineSide(i,!r)}if(l){if(!l(u))return a}else{if(!n)return t;l=n(u)}a=t}}function Et(e,t,r){for(;;){let n=0;for(let i of e)i.between(t-1,t+1,((e,i,s)=>{if(t>e&&t<i){let s=n||r||(t-e<i-t?-1:1);t=s<0?e:i,n=s}}));if(!n)return t}}function Ct(e,t,r){let i=Et(e.state.facet(rt).map((t=>t(e))),r.from,t.head>r.from?-1:1);return i==r.from?r:n.EditorSelection.cursor(i,i<r.from?1:-1)}class Tt{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,q.safari&&e.contentDOM.addEventListener("input",(()=>null)),q.gecko&&function(e){tr.has(e)||(tr.add(e),e.addEventListener("copy",(()=>{})),e.addEventListener("cut",(()=>{})))}(e.contentDOM.ownerDocument)}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let r,n=t.target;n!=e.contentDOM;n=n.parentNode)if(!n||11==n.nodeType||(r=C.get(n))&&r.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e))}runHandlers(e,t){let r=this.handlers[e];if(r){for(let e of r.observers)e(this.view,t);for(let e of r.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=At(e),r=this.handlers,n=this.view.contentDOM;for(let e in t)if("scroll"!=e){let i=!t[e].handlers.length,s=r[e];s&&i!=!s.handlers.length&&(n.removeEventListener(e,this.handleEvent),s=null),s||n.addEventListener(e,this.handleEvent,{passive:i})}for(let e in r)"scroll"==e||t[e]||n.removeEventListener(e,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()<this.lastEscPress+2e3)return!0;if(27!=e.keyCode&&It.indexOf(e.keyCode)<0&&(this.view.inputState.lastEscPress=0),q.android&&q.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return!q.ios||e.synthetic||e.altKey||e.metaKey||!((t=Ft.find((t=>t.keyCode==e.keyCode)))&&!e.ctrlKey||_t.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(){let e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,w(this.view.contentDOM,e.key,e.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(q.safari&&!q.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Pt(e,t){return(r,n)=>{try{return t.call(e,n,r)}catch(e){Ve(r.state,e)}}}function At(e){let t=Object.create(null);function r(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec;if(e&&e.domEventHandlers)for(let n in e.domEventHandlers){let i=e.domEventHandlers[n];i&&r(n).handlers.push(Pt(t.value,i))}if(e&&e.domEventObservers)for(let n in e.domEventObservers){let i=e.domEventObservers[n];i&&r(n).observers.push(Pt(t.value,i))}}for(let e in $t)r(e).handlers.push($t[e]);for(let e in Qt)r(e).observers.push(Qt[e]);return t}const Ft=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],_t="dthko",It=[16,17,18,20,91,92,224,225];function Bt(e){return.7*Math.max(0,e)+8}class Nt{constructor(e,t,r,i){this.view=e,this.startEvent=t,this.style=r,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=function(e){let t=e.ownerDocument;for(let r=e.parentNode;r&&r!=t.body;)if(1==r.nodeType){if(r.scrollHeight>r.clientHeight||r.scrollWidth>r.clientWidth)return r;r=r.assignedSlot||r.parentNode}else{if(11!=r.nodeType)break;r=r.host}return null}(e.contentDOM),this.atoms=e.state.facet(rt).map((t=>t(e)));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(n.EditorState.allowMultipleSelections)&&function(e,t){let r=e.state.facet(Ne);return r.length?r[0](t):q.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:r}=e.state.selection;if(r.empty)return!1;let n=o(e.root);if(!n||0==n.rangeCount)return!0;let i=n.getRangeAt(0).getClientRects();for(let e=0;e<i.length;e++){let r=i[e];if(r.left<=t.clientX&&r.right>=t.clientX&&r.top<=t.clientY&&r.bottom>=t.clientY)return!0}return!1}(e,t)||1!=zt(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var t,r,n;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(r=this.startEvent,n=e,Math.max(Math.abs(r.clientX-n.clientX),Math.abs(r.clientY-n.clientY))<10))return;this.select(this.lastEvent=e);let i=0,s=0,o=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=ot(this.view);e.clientX-a.left<=o.left+6?i=-Bt(o.left-e.clientX):e.clientX+a.right>=o.right-6&&(i=Bt(e.clientX-o.right)),e.clientY-a.top<=o.top+6?s=-Bt(o.top-e.clientY):e.clientY+a.bottom>=o.bottom-6&&(s=Bt(e.clientY-o.bottom)),this.setScrollSpeed(i,s)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let r=0;r<e.ranges.length;r++){let i=e.ranges[r],s=null;if(i.empty){let e=Et(this.atoms,i.from,0);e!=i.from&&(s=n.EditorSelection.cursor(e,-1))}else{let e=Et(this.atoms,i.from,-1),t=Et(this.atoms,i.to,1);e==i.from&&t==i.to||(s=n.EditorSelection.range(i.from==i.anchor?e:t,i.from==i.head?e:t))}s&&(t||(t=e.ranges.slice()),t[r]=s)}return t?n.EditorSelection.create(t,e.mainIndex):e}select(e){let{view:t}=this,r=this.skipAtoms(this.style.get(e,this.extend,this.multiple));!this.mustSelect&&r.eq(t.state.selection,!1===this.dragging)||this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){this.style.update(e)&&setTimeout((()=>this.select(this.lastEvent)),20)}}const $t=Object.create(null),Qt=Object.create(null),Lt=q.ie&&q.ie_version<15||q.ios&&q.webkit_version<604;function Mt(e,t){let r,{state:i}=e,s=1,o=i.toText(t),a=o.lines==i.selection.ranges.length;if(null!=Ht&&i.selection.ranges.every((e=>e.empty))&&Ht==o.toString()){let e=-1;r=i.changeByRange((r=>{let l=i.doc.lineAt(r.from);if(l.from==e)return{range:r};e=l.from;let u=i.toText((a?o.line(s++).text:t)+i.lineBreak);return{changes:{from:l.from,insert:u},range:n.EditorSelection.cursor(r.from+u.length)}}))}else r=a?i.changeByRange((e=>{let t=o.line(s++);return{changes:{from:e.from,to:e.to,insert:t.text},range:n.EditorSelection.cursor(e.from+t.length)}})):i.replaceSelection(o);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}function Rt(e,t,r,i){if(1==i)return n.EditorSelection.cursor(t,r);if(2==i)return function(e,t,r=1){let i=e.charCategorizer(t),s=e.doc.lineAt(t),o=t-s.from;if(0==s.length)return n.EditorSelection.cursor(t);0==o?r=1:o==s.length&&(r=-1);let a=o,l=o;r<0?a=n.findClusterBreak(s.text,o,!1):l=n.findClusterBreak(s.text,o);let u=i(s.text.slice(a,l));for(;a>0;){let e=n.findClusterBreak(s.text,a,!1);if(i(s.text.slice(e,a))!=u)break;a=e}for(;l<s.length;){let e=n.findClusterBreak(s.text,l);if(i(s.text.slice(l,e))!=u)break;l=e}return n.EditorSelection.range(a+s.from,l+s.from)}(e.state,t,r);{let r=re.find(e.docView,t),i=e.state.doc.lineAt(r?r.posAtEnd:t),s=r?r.posAtStart:i.from,o=r?r.posAtEnd:i.to;return o<e.state.doc.length&&o==i.to&&o++,n.EditorSelection.range(s,o)}}Qt.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},$t.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&(e.inputState.lastEscPress=Date.now()),!1),Qt.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},Qt.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},$t.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let r=null;for(let n of e.state.facet(Qe))if(r=n(e,t),r)break;if(r||0!=t.button||(r=function(e,t){let r=Wt(e,t),i=zt(t),s=e.state.selection;return{update(e){e.docChanged&&(r.pos=e.changes.mapPos(r.pos),s=s.map(e.changes))},get(t,o,a){let l,u=Wt(e,t),c=Rt(e,u.pos,u.bias,i);if(r.pos!=u.pos&&!o){let t=Rt(e,r.pos,r.bias,i),s=Math.min(t.from,c.from),o=Math.max(t.to,c.to);c=s<c.from?n.EditorSelection.range(s,o):n.EditorSelection.range(o,s)}return o?s.replaceRange(s.main.extend(c.from,c.to)):a&&1==i&&s.ranges.length>1&&(l=function(e,t){for(let r=0;r<e.ranges.length;r++){let{from:i,to:s}=e.ranges[r];if(i<=t&&s>=t)return n.EditorSelection.create(e.ranges.slice(0,r).concat(e.ranges.slice(r+1)),e.mainIndex==r?0:e.mainIndex-(e.mainIndex>r?1:0))}return null}(s,u.pos))?l:a?s.addRange(c):n.EditorSelection.create([c])}}}(e,t)),r){let n=!e.hasFocus;e.inputState.startMouseSelection(new Nt(e,t,r,n)),n&&e.observer.ignore((()=>b(e.contentDOM)));let i=e.inputState.mouseSelection;if(i)return i.start(t),!1===i.dragging}return!1};let jt=(e,t)=>e>=t.top&&e<=t.bottom,Zt=(e,t,r)=>jt(t,r)&&e>=r.left&&e<=r.right;function qt(e,t,r,n){let i=re.find(e.docView,t);if(!i)return 1;let s=t-i.posAtStart;if(0==s)return 1;if(s==i.length)return-1;let o=i.coordsAt(s,-1);if(o&&Zt(r,n,o))return-1;let a=i.coordsAt(s,1);return a&&Zt(r,n,a)?1:o&&jt(n,o)?-1:1}function Wt(e,t){let r=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:r,bias:qt(e,r,t.clientX,t.clientY)}}const Xt=q.ie&&q.ie_version<=11;let Vt=null,Ut=0,Yt=0;function zt(e){if(!Xt)return e.detail;let t=Vt,r=Yt;return Vt=e,Yt=Date.now(),Ut=!t||r>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(Ut+1)%3:1}function Gt(e,t,r,n){if(!r)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:s}=e.inputState,o=n&&s&&function(e,t){let r=e.state.facet($e);return r.length?r[0](t):q.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:s.from,to:s.to}:null,a={from:i,insert:r},l=e.state.changes(o?[o,a]:a);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:o?"move.drop":"input.drop"}),e.inputState.draggedContent=null}$t.dragstart=(e,t)=>{let{selection:{main:r}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let e=i.posAtStart,t=e+i.length;(e>=r.to||t<=r.from)&&(r=n.EditorSelection.range(e,t))}}let{inputState:i}=e;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=r,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(r.from,r.to)),t.dataTransfer.effectAllowed="copyMove"),!1},$t.dragend=e=>(e.inputState.draggedContent=null,!1),$t.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let r=t.dataTransfer.files;if(r&&r.length){let n=Array(r.length),i=0,s=()=>{++i==r.length&&Gt(e,t,n.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e<r.length;e++){let t=new FileReader;t.onerror=s,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(n[e]=t.result),s()},t.readAsText(r[e])}return!0}{let r=t.dataTransfer.getData("Text");if(r)return Gt(e,t,r,!0),!0}return!1},$t.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let r=Lt?null:t.clipboardData;return r?(Mt(e,r.getData("text/plain")||r.getData("text/uri-text")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let r=t.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout((()=>{e.focus(),r.remove(),Mt(e,r.value)}),50)}(e),!1)};let Ht=null;$t.copy=$t.cut=(e,t)=>{let{text:r,ranges:n,linewise:i}=function(e){let t=[],r=[],n=!1;for(let n of e.selection.ranges)n.empty||(t.push(e.sliceDoc(n.from,n.to)),r.push(n));if(!t.length){let i=-1;for(let{from:n}of e.selection.ranges){let s=e.doc.lineAt(n);s.number>i&&(t.push(s.text),r.push({from:s.from,to:Math.min(e.doc.length,s.to+1)})),i=s.number}n=!0}return{text:t.join(e.lineBreak),ranges:r,linewise:n}}(e.state);if(!r&&!i)return!1;Ht=i?r:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let s=Lt?null:t.clipboardData;return s?(s.clearData(),s.setData("text/plain",r),!0):(function(e,t){let r=e.dom.parentNode;if(!r)return;let n=r.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=t,n.focus(),n.selectionEnd=t.length,n.selectionStart=0,setTimeout((()=>{n.remove(),e.focus()}),50)}(e,r),!1)};const Jt=n.Annotation.define();function Kt(e,t){let r=[];for(let n of e.facet(je)){let i=n(e,t);i&&r.push(i)}return r?e.update({effects:r,annotations:Jt.of(!0)}):null}function er(e){setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let r=Kt(e.state,t);r?e.dispatch(r):e.update([])}}),10)}Qt.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),er(e)},Qt.blur=e=>{e.observer.clearSelectionRange(),er(e)},Qt.compositionstart=Qt.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)},Qt.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,q.chrome&&q.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((()=>e.observer.flush())):setTimeout((()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])}),50)},Qt.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},$t.beforeinput=(e,t)=>{var r;let n;if(q.chrome&&q.android&&(n=Ft.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(n.key,n.keyCode),"Backspace"==n.key||"Delete"==n.key)){let t=(null===(r=window.visualViewport)||void 0===r?void 0:r.height)||0;setTimeout((()=>{var r;((null===(r=window.visualViewport)||void 0===r?void 0:r.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}return!1};const tr=new Set,rr=["pre-wrap","normal","pre-line","break-spaces"];class nr{constructor(e){this.lineWrapping=e,this.doc=n.Text.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let r=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((t-e-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return rr.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let r=0;r<e.length;r++){let n=e[r];n<0?r++:this.heightSamples[Math.floor(10*n)]||(t=!0,this.heightSamples[Math.floor(10*n)]=!0)}return t}refresh(e,t,r,n,i,s){let o=rr.indexOf(e)>-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=t,this.charWidth=r,this.textHeight=n,this.lineLength=i,a){this.heightSamples={};for(let e=0;e<s.length;e++){let t=s[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return a}}class ir{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class sr{constructor(e,t,r,n,i){this.from=e,this.length=t,this.top=r,this.height=n,this._content=i}get type(){return"number"==typeof this._content?t.BlockType.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof ce?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new sr(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var or;!function(e){e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight"}(or||(or={}));const ar=.001;class lr{constructor(e,t,r=2){this.length=e,this.height=t,this.flags=r}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>ar&&(e.heightChanged=!0),this.height=t)}replace(e,t,r){return lr.of(r)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,r,n){let i=this,s=r.doc;for(let o=n.length-1;o>=0;o--){let{fromA:a,toA:l,fromB:u,toB:c}=n[o],h=i.lineAt(a,or.ByPosNoHeight,r.setDoc(t),0,0),p=h.to>=l?h:i.lineAt(l,or.ByPosNoHeight,r,0,0);for(c+=p.to-l,l=p.to;o>0&&h.from<=n[o-1].toA;)a=n[o-1].fromA,u=n[o-1].fromB,o--,a<h.from&&(h=i.lineAt(a,or.ByPosNoHeight,r,0,0));u+=h.from-a,a=h.from;let d=fr.build(r.setDoc(s),e,u,c);i=i.replace(a,l,d)}return i.updateHeight(r,0)}static empty(){return new cr(0,0)}static of(e){if(1==e.length)return e[0];let t=0,r=e.length,n=0,i=0;for(;;)if(t==r)if(n>2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),r+=1+i.break,n-=i.size}else{if(!(i>2*n))break;{let t=e[r];t.break?e.splice(r,1,t.left,null,t.right):e.splice(r,1,t.left,t.right),r+=2+t.break,i-=t.size}}else if(n<i){let r=e[t++];r&&(n+=r.size)}else{let t=e[--r];t&&(i+=t.size)}let s=0;return null==e[t-1]?(s=1,t--):null==e[t]&&(s=1,r++),new pr(lr.of(e.slice(0,t)),s,lr.of(e.slice(r)))}}lr.prototype.size=1;class ur extends lr{constructor(e,t,r){super(e,t),this.deco=r}blockAt(e,t,r,n){return new sr(n,this.length,r,this.height,this.deco||0)}lineAt(e,t,r,n,i){return this.blockAt(0,r,n,i)}forEachLine(e,t,r,n,i,s){e<=i+this.length&&t>=i&&s(this.blockAt(0,r,n,i))}updateHeight(e,t=0,r=!1,n){return n&&n.from<=t&&n.more&&this.setHeight(e,n.heights[n.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class cr extends ur{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,r,n){return new sr(n,this.length,r,this.height,this.breaks)}replace(e,t,r){let n=r[0];return 1==r.length&&(n instanceof cr||n instanceof hr&&4&n.flags)&&Math.abs(this.length-n.length)<10?(n instanceof hr?n=new cr(n.length,this.height):n.height=this.height,this.outdated||(n.outdated=!1),n):lr.of(r)}updateHeight(e,t=0,r=!1,n){return n&&n.from<=t&&n.more?this.setHeight(e,n.heights[n.index++]):(r||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class hr extends lr{constructor(e){super(e,0)}heightMetrics(e,t){let r,n=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,s=i-n+1,o=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*s);r=t/s,this.length>s+1&&(o=(this.height-t)/(this.length-s-1))}else r=this.height/s;return{firstLine:n,lastLine:i,perLine:r,perChar:o}}blockAt(e,t,r,n){let{firstLine:i,lastLine:s,perLine:o,perChar:a}=this.heightMetrics(t,n);if(t.lineWrapping){let i=n+Math.round(Math.max(0,Math.min(1,(e-r)/this.height))*this.length),s=t.doc.lineAt(i),l=o+s.length*a,u=Math.max(r,e-l/2);return new sr(s.from,s.length,u,l,0)}{let n=Math.max(0,Math.min(s-i,Math.floor((e-r)/o))),{from:a,length:l}=t.doc.line(i+n);return new sr(a,l,r+o*n,o,0)}}lineAt(e,t,r,n,i){if(t==or.ByHeight)return this.blockAt(e,r,n,i);if(t==or.ByPosNoHeight){let{from:t,to:n}=r.doc.lineAt(e);return new sr(t,n-t,0,0,0)}let{firstLine:s,perLine:o,perChar:a}=this.heightMetrics(r,i),l=r.doc.lineAt(e),u=o+l.length*a,c=l.number-s,h=n+o*c+a*(l.from-i-c);return new sr(l.from,l.length,Math.max(n,Math.min(h,n+this.height-u)),u,0)}forEachLine(e,t,r,n,i,s){e=Math.max(e,i),t=Math.min(t,i+this.length);let{firstLine:o,perLine:a,perChar:l}=this.heightMetrics(r,i);for(let u=e,c=n;u<=t;){let t=r.doc.lineAt(u);if(u==e){let r=t.number-o;c+=a*r+l*(e-i-r)}let n=a+l*t.length;s(new sr(t.from,t.length,c,n,0)),c+=n,u=t.to+1}}replace(e,t,r){let n=this.length-t;if(n>0){let e=r[r.length-1];e instanceof hr?r[r.length-1]=new hr(e.length+n):r.push(null,new hr(n-1))}if(e>0){let t=r[0];t instanceof hr?r[0]=new hr(e+t.length):r.unshift(new hr(e-1),null)}return lr.of(r)}decomposeLeft(e,t){t.push(new hr(e-1),null)}decomposeRight(e,t){t.push(null,new hr(this.length-e-1))}updateHeight(e,t=0,r=!1,n){let i=t+this.length;if(n&&n.from<=t+this.length&&n.more){let r=[],s=Math.max(t,n.from),o=-1;for(n.from>t&&r.push(new hr(n.from-t-1).updateHeight(e,t));s<=i&&n.more;){let t=e.doc.lineAt(s).length;r.length&&r.push(null);let i=n.heights[n.index++];-1==o?o=i:Math.abs(i-o)>=ar&&(o=-2);let a=new cr(t,i);a.outdated=!1,r.push(a),s+=t+1}s<=i&&r.push(null,new hr(i-s).updateHeight(e,s));let a=lr.of(r);return(o<0||Math.abs(a.height-this.height)>=ar||Math.abs(o-this.heightMetrics(e,t).perLine)>=ar)&&(e.heightChanged=!0),a}return(r||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class pr extends lr{constructor(e,t,r){super(e.length+t+r.length,e.height+r.height,t|(e.outdated||r.outdated?2:0)),this.left=e,this.right=r,this.size=e.size+r.size}get break(){return 1&this.flags}blockAt(e,t,r,n){let i=r+this.left.height;return e<i?this.left.blockAt(e,t,r,n):this.right.blockAt(e,t,i,n+this.left.length+this.break)}lineAt(e,t,r,n,i){let s=n+this.left.height,o=i+this.left.length+this.break,a=t==or.ByHeight?e<s:e<o,l=a?this.left.lineAt(e,t,r,n,i):this.right.lineAt(e,t,r,s,o);if(this.break||(a?l.to<o:l.from>o))return l;let u=t==or.ByPosNoHeight?or.ByPosNoHeight:or.ByPos;return a?l.join(this.right.lineAt(o,u,r,s,o)):this.left.lineAt(o,u,r,n,i).join(l)}forEachLine(e,t,r,n,i,s){let o=n+this.left.height,a=i+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,r,n,i,s),t>=a&&this.right.forEachLine(e,t,r,o,a,s);else{let l=this.lineAt(a,or.ByPos,r,n,i);e<l.from&&this.left.forEachLine(e,l.from-1,r,n,i,s),l.to>=e&&l.from<=t&&s(l),t>l.to&&this.right.forEachLine(l.to+1,t,r,o,a,s)}}replace(e,t,r){let n=this.left.length+this.break;if(t<n)return this.balanced(this.left.replace(e,t,r),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-n,t-n,r));let i=[];e>0&&this.decomposeLeft(e,i);let s=i.length;for(let e of r)i.push(e);if(e>0&&dr(i,s-1),t<this.length){let e=i.length;this.decomposeRight(t,i),dr(i,e)}return lr.of(i)}decomposeLeft(e,t){let r=this.left.length;if(e<=r)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(r++,e>=r&&t.push(null)),e>r&&this.right.decomposeLeft(e-r,t)}decomposeRight(e,t){let r=this.left.length,n=r+this.break;if(e>=n)return this.right.decomposeRight(e-n,t);e<r&&this.left.decomposeRight(e,t),this.break&&e<n&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?lr.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,r=!1,n){let{left:i,right:s}=this,o=t+i.length+this.break,a=null;return n&&n.from<=t+i.length&&n.more?a=i=i.updateHeight(e,t,r,n):i.updateHeight(e,t,r),n&&n.from<=o+s.length&&n.more?a=s=s.updateHeight(e,o,r,n):s.updateHeight(e,o,r),a?this.balanced(i,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function dr(e,t){let r,n;null==e[t]&&(r=e[t-1])instanceof hr&&(n=e[t+1])instanceof hr&&e.splice(t-1,3,new hr(r.length+1+n.length))}class fr{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof cr?r.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new cr(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,r){if(e<t||r.heightRelevant){let n=r.widget?r.widget.estimatedHeight:0,i=r.widget?r.widget.lineBreaks:0;n<0&&(n=this.oracle.lineHeight);let s=t-e;r.block?this.addBlock(new ur(s,n,r)):(s||i||n>=5)&&this.addLineDeco(n,i,s)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new cr(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let r=new hr(t-e);return this.oracle.doc.lineAt(e).to==t&&(r.flags|=4),r}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof cr)return e;let t=new cr(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,r){let n=this.ensureLine();n.length+=r,n.collapsed+=r,n.widgetHeight=Math.max(n.widgetHeight,e),n.breaks+=t,this.writtenTo=this.pos=this.pos+r}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof cr||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new cr(0,-1));let r=e;for(let e of this.nodes)e instanceof cr&&e.updateHeight(this.oracle,r),r+=e?e.length:1;return this.nodes}static build(e,t,r,i){let s=new fr(r,e);return n.RangeSet.spans(t,r,i,s,0),s.finish(r)}}class mr{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,r,n){(e<t||r&&r.heightRelevant||n&&n.heightRelevant)&&pe(e,t,this.changes,5)}}function gr(e,t){let r=e.getBoundingClientRect(),n=e.ownerDocument,i=n.defaultView||window,s=Math.max(0,r.left),o=Math.min(i.innerWidth,r.right),a=Math.max(0,r.top),l=Math.min(i.innerHeight,r.bottom);for(let t=e.parentNode;t&&t!=n.body;)if(1==t.nodeType){let r=t,n=window.getComputedStyle(r);if((r.scrollHeight>r.clientHeight||r.scrollWidth>r.clientWidth)&&"visible"!=n.overflow){let n=r.getBoundingClientRect();s=Math.max(s,n.left),o=Math.min(o,n.right),a=Math.max(a,n.top),l=t==e.parentNode?n.bottom:Math.min(l,n.bottom)}t="absolute"==n.position||"fixed"==n.position?r.offsetParent:r.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:s-r.left,right:Math.max(s,o)-r.left,top:a-(r.top+t),bottom:Math.max(a,l)-(r.top+t)}}function yr(e,t){let r=e.getBoundingClientRect();return{left:0,right:r.right-r.left,top:t,bottom:r.bottom-(r.top+t)}}class Or{constructor(e,t,r){this.from=e,this.to=t,this.size=r}static same(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],i=t[r];if(n.from!=i.from||n.to!=i.to||n.size!=i.size)return!1}return!0}draw(e,t){return ae.replace({widget:new xr(this.size*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class xr extends ie{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class br{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!0,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=kr,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=t.Direction.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let r=e.facet(Ke).some((e=>"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new nr(r),this.stateDeco=e.facet(et).filter((e=>"function"!=typeof e)),this.heightMap=lr.empty().applyChanges(this.stateDeco,n.Text.empty,this.heightOracle.setDoc(e.doc),[new lt(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=ae.set(this.lineGaps.map((e=>e.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let r=0;r<=1;r++){let n=r?t.head:t.anchor;if(!e.some((({from:e,to:t})=>n>=e&&n<=t))){let{from:t,to:r}=this.lineBlockAt(n);e.push(new vr(t,r))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?kr:new Er(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:Cr(e,this.scaler))}))}update(e,t=null){this.state=e.state;let r=this.stateDeco;this.stateDeco=this.state.facet(et).filter((e=>"function"!=typeof e));let i=e.changedRanges,s=lt.extendWithRanges(i,function(e,t,r){let i=new mr;return n.RangeSet.compare(e,t,r,i,0),i.changes}(r,this.stateDeco,e?e.changes:n.ChangeSet.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=o&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<l.from||t.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let u=!e.changes.empty||2&e.flags||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(qe)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let r=e.contentDOM,i=window.getComputedStyle(r),s=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?t.Direction.RTL:t.Direction.LTR;let a=this.heightOracle.mustRefreshForWrapping(o),l=r.getBoundingClientRect(),u=a||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let c=0,h=0;if(l.width&&l.height){let{scaleX:e,scaleY:t}=g(r,l);this.scaleX==e&&this.scaleY==t||(this.scaleX=e,this.scaleY=t,c|=8,a=u=!0)}let p=(parseInt(i.paddingTop)||0)*this.scaleY,d=(parseInt(i.paddingBottom)||0)*this.scaleY;this.paddingTop==p&&this.paddingBottom==d||(this.paddingTop=p,this.paddingBottom=d,c|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(s.lineWrapping&&(u=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=8);let f=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=S(e.scrollDOM);let m=(this.printing?yr:gr)(r,this.paddingTop),y=m.top-this.pixelViewport.top,O=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let x=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(x!=this.inView&&(this.inView=x,x&&(u=!0)),!this.inView&&!this.scrollTarget)return 0;let b=l.width;if(this.contentDOMWidth==b&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,c|=8),u){let t=e.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(t)&&(a=!0),a||s.lineWrapping&&Math.abs(b-this.contentDOMWidth)>s.charWidth){let{lineHeight:r,charWidth:n,textHeight:i}=e.docView.measureTextSize();a=r>0&&s.refresh(o,r,n,i,b/n,t),a&&(e.docView.minWidth=0,c|=8)}y>0&&O>0?h=Math.max(y,O):y<0&&O<0&&(h=Math.min(y,O)),s.heightChanged=!1;for(let r of this.viewports){let i=r.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(r);this.heightMap=(a?lr.empty().applyChanges(this.stateDeco,n.Text.empty,this.heightOracle,[new lt(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(s,0,a,new ir(r.from,i))}s.heightChanged&&(c|=2)}let v=!this.viewportIsAppropriate(this.viewport,h)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return v&&(this.viewport=this.getViewport(h,this.scrollTarget)),this.updateForViewport(),(2&c||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let r=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),n=this.heightMap,i=this.heightOracle,{visibleTop:s,visibleBottom:o}=this,a=new vr(n.lineAt(s-1e3*r,or.ByHeight,i,0,0).from,n.lineAt(o+1e3*(1-r),or.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(e<a.from||e>a.to){let r,s=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),o=n.lineAt(e,or.ByPos,i,0,0);r="center"==t.y?(o.top+o.bottom)/2-s/2:"start"==t.y||"nearest"==t.y&&e<a.from?o.top:o.bottom-s,a=new vr(n.lineAt(r-500,or.ByHeight,i,0,0).from,n.lineAt(r+s+500,or.ByHeight,i,0,0).to)}}return a}mapViewport(e,t){let r=t.mapPos(e.from,-1),n=t.mapPos(e.to,1);return new vr(this.heightMap.lineAt(r,or.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(n,or.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},r=0){if(!this.inView)return!0;let{top:n}=this.heightMap.lineAt(e,or.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(t,or.ByPos,this.heightOracle,0,0),{visibleTop:s,visibleBottom:o}=this;return(0==e||n<=s-Math.max(10,Math.min(-r,250)))&&(t==this.state.doc.length||i>=o+Math.max(10,Math.min(r,250)))&&n>s-2e3&&i<o+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let r=[];for(let n of e)t.touchesRange(n.from,n.to)||r.push(new Or(t.mapPos(n.from),t.mapPos(n.to),n.size));return r}ensureLineGaps(e,r){let i=this.heightOracle.lineWrapping,s=i?1e4:2e3,o=s>>1,a=s<<1;if(this.defaultTextDirection!=t.Direction.LTR&&!i)return[];let l=[],u=(t,s,a,c)=>{if(s-t<o)return;let h=this.state.selection.main,p=[h.from];h.empty||p.push(h.to);for(let e of p)if(e>t&&e<s)return u(t,e-10,a,c),void u(e+10,s,a,c);let d=function(e,t){for(let r of e)if(t(r))return r}(e,(e=>e.from>=a.from&&e.to<=a.to&&Math.abs(e.from-t)<o&&Math.abs(e.to-s)<o&&!p.some((t=>e.from<t&&e.to>t))));if(!d){if(s<a.to&&r&&i&&r.visibleRanges.some((e=>e.from<=s&&e.to>=s))){let e=r.moveToLineBoundary(n.EditorSelection.cursor(s),!1,!0).head;e>t&&(s=e)}d=new Or(t,s,this.gapSize(a,t,s,c))}l.push(d)};for(let e of this.viewportLines){if(e.length<a)continue;let t=wr(e.from,e.to,this.stateDeco);if(t.total<a)continue;let r,n,o=this.scrollTarget?this.scrollTarget.range.head:null;if(i){let i,a,l=s/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=o){let r=Sr(t,o),n=((this.visibleBottom-this.visibleTop)/2+l)/e.height;i=r-n,a=r+n}else i=(this.visibleTop-e.top-l)/e.height,a=(this.visibleBottom-e.top+l)/e.height;r=Dr(t,i),n=Dr(t,a)}else{let e,i,a=t.total*this.heightOracle.charWidth,l=s*this.heightOracle.charWidth;if(null!=o){let r=Sr(t,o),n=((this.pixelViewport.right-this.pixelViewport.left)/2+l)/a;e=r-n,i=r+n}else e=(this.pixelViewport.left-l)/a,i=(this.pixelViewport.right+l)/a;r=Dr(t,e),n=Dr(t,i)}r>e.from&&u(e.from,r,e,t),n<e.to&&u(n,e.to,e,t)}return l}gapSize(e,t,r,n){let i=Sr(n,r)-Sr(n,t);return this.heightOracle.lineWrapping?e.height*i:n.total*this.heightOracle.charWidth*i}updateLineGaps(e){Or.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=ae.set(e.map((e=>e.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];n.RangeSet.spans(e,this.viewport.from,this.viewport.to,{span(e,r){t.push({from:e,to:r})},point(){}},20);let r=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,r)=>e.from!=t[r].from||e.to!=t[r].to));return this.visibleRanges=t,r?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||Cr(this.heightMap.lineAt(e,or.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return Cr(this.heightMap.lineAt(this.scaler.fromDOM(e),or.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Cr(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class vr{constructor(e,t){this.from=e,this.to=t}}function wr(e,t,r){let i=[],s=e,o=0;return n.RangeSet.spans(r,e,t,{span(){},point(e,t){e>s&&(i.push({from:s,to:e}),o+=e-s),s=t}},20),s<t&&(i.push({from:s,to:t}),o+=t-s),{total:o,ranges:i}}function Dr({total:e,ranges:t},r){if(r<=0)return t[0].from;if(r>=1)return t[t.length-1].to;let n=Math.floor(e*r);for(let e=0;;e++){let{from:r,to:i}=t[e],s=i-r;if(n<=s)return r+n;n-=s}}function Sr(e,t){let r=0;for(let{from:n,to:i}of e.ranges){if(t<=i){r+=t-n;break}r+=i-n}return r/e.total}const kr={toDOM:e=>e,fromDOM:e=>e,scale:1};class Er{constructor(e,t,r){let n=0,i=0,s=0;this.viewports=r.map((({from:r,to:i})=>{let s=t.lineAt(r,or.ByPos,e,0,0).top,o=t.lineAt(i,or.ByPos,e,0,0).bottom;return n+=o-s,{from:r,to:i,top:s,bottom:o,domTop:0,domBottom:0}})),this.scale=(7e6-n)/(t.height-n);for(let e of this.viewports)e.domTop=s+(e.top-i)*this.scale,s=e.domBottom=e.domTop+(e.bottom-e.top),i=e.bottom}toDOM(e){for(let t=0,r=0,n=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.top)return n+(e-r)*this.scale;if(e<=i.bottom)return i.domTop+(e-i.top);r=i.bottom,n=i.domBottom}}fromDOM(e){for(let t=0,r=0,n=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.domTop)return r+(e-n)/this.scale;if(e<=i.domBottom)return i.top+(e-i.domTop);r=i.bottom,n=i.domBottom}}}function Cr(e,t){if(1==t.scale)return e;let r=t.toDOM(e.top),n=t.toDOM(e.bottom);return new sr(e.from,e.length,r,n-r,Array.isArray(e._content)?e._content.map((e=>Cr(e,t))):e._content)}const Tr=n.Facet.define({combine:e=>e.join(" ")}),Pr=n.Facet.define({combine:e=>e.indexOf(!0)>-1}),Ar=i.StyleModule.newName(),Fr=i.StyleModule.newName(),_r=i.StyleModule.newName(),Ir={"&light":"."+Fr,"&dark":"."+_r};function Br(e,t,r){return new i.StyleModule(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!r||!r[t])throw new RangeError(`Unsupported selector: ${t}`);return r[t]})):e+" "+t})}const Nr=Br("."+Ar,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Ir),$r="￿";class Qr{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(n.EditorState.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=$r}readRange(e,t){if(!e)return this;let r=e.parentNode;for(let n=e;;){this.findPointBefore(r,n);let e=this.text.length;this.readNode(n);let i=n.nextSibling;if(i==t)break;let s=C.get(n),o=C.get(i);(s&&o?s.breakAfter:(s?s.breakAfter:Mr(n))||Mr(i)&&("BR"!=n.nodeName||n.cmIgnore)&&this.text.length>e)&&this.lineBreak(),n=i}return this.findPointBefore(r,t),this}readTextNode(e){let t=e.nodeValue;for(let r of this.points)r.node==e&&(r.pos=this.text.length+Math.min(r.offset,t.length));for(let r=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let i,s=-1,o=1;if(this.lineSeparator?(s=t.indexOf(this.lineSeparator,r),o=this.lineSeparator.length):(i=n.exec(t))&&(s=i.index,o=i[0].length),this.append(t.slice(r,s<0?t.length:s)),s<0)break;if(this.lineBreak(),o>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=o-1);r=s+o}}readNode(e){if(e.cmIgnore)return;let t=C.get(e),r=t&&t.overrideDOMText;if(null!=r){this.findPointInside(e,r.length);for(let e=r.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let r of this.points)r.node==e&&e.childNodes[r.offset]==t&&(r.pos=this.text.length)}findPointInside(e,t){for(let r of this.points)(3==e.nodeType?r.node==e:e.contains(r.node))&&(r.pos=this.text.length+(Lr(e,r.node,r.offset)?t:0))}}function Lr(e,t,r){for(;;){if(!t||r<d(t))return!1;if(t==e)return!0;r=h(t)+1,t=t.parentNode}}function Mr(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class Rr{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class jr{constructor(e,t,r,i){this.typeOver=i,this.bounds=null,this.text="";let{impreciseHead:s,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,r,0))){let t=s||o?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:r,anchorOffset:n,focusNode:i,focusOffset:s}=e.observer.selectionRange;return r&&(t.push(new Rr(r,n)),i==r&&s==n||t.push(new Rr(i,s))),t}(e),r=new Qr(t,e.state);r.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=r.text,this.newSel=function(e,t){if(0==e.length)return null;let r=e[0].pos,i=2==e.length?e[1].pos:r;return r>-1&&i>-1?n.EditorSelection.single(r+t,i+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,r=s&&s.node==t.focusNode&&s.offset==t.focusOffset||!a(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),i=o&&o.node==t.anchorNode&&o.offset==t.anchorOffset||!a(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),l=e.viewport;if(q.ios&&e.state.selection.main.empty&&r!=i&&(l.from>0||l.to<e.state.doc.length)){let t=l.from-Math.min(r,i),n=l.to-Math.max(r,i);0!=t&&1!=t||0!=n&&-1!=n||(r=0,i=e.state.doc.length)}this.newSel=n.EditorSelection.single(i,r)}}}function Zr(e,t){let r,{newSel:i}=t,s=e.state.selection.main,o=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:i,to:a}=t.bounds,l=s.from,u=null;(8===o||q.android&&t.text.length<a-i)&&(l=s.to,u="end");let c=function(e,t,r,n){let i=Math.min(e.length,t.length),s=0;for(;s<i&&e.charCodeAt(s)==t.charCodeAt(s);)s++;if(s==i&&e.length==t.length)return null;let o=e.length,a=t.length;for(;o>0&&a>0&&e.charCodeAt(o-1)==t.charCodeAt(a-1);)o--,a--;return"end"==n&&(r-=o+Math.max(0,s-Math.min(o,a))-s),o<s&&e.length<t.length?(s-=r<=s&&r>=o?s-r:0,a=s+(a-o),o=s):a<s&&(s-=r<=s&&r>=a?s-r:0,o=s+(o-a),a=s),{from:s,toA:o,toB:a}}(e.state.doc.sliceString(i,a,$r),t.text,l-i,u);c&&(q.chrome&&13==o&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==$r+$r&&c.toB--,r={from:i+c.from,to:i+c.toA,insert:n.Text.of(t.text.slice(c.from,c.toB).split($r))})}else i&&(!e.hasFocus&&e.state.facet(Ue)||i.main.eq(s))&&(i=null);if(!r&&!i)return!1;if(!r&&t.typeOver&&!s.empty&&i&&i.main.empty?r={from:s.from,to:s.to,insert:e.state.doc.slice(s.from,s.to)}:r&&r.from>=s.from&&r.to<=s.to&&(r.from!=s.from||r.to!=s.to)&&s.to-s.from-(r.to-r.from)<=4?r={from:s.from,to:s.to,insert:e.state.doc.slice(s.from,r.from).append(r.insert).append(e.state.doc.slice(r.to,s.to))}:(q.mac||q.android)&&r&&r.from==r.to&&r.from==s.head-1&&/^\. ?$/.test(r.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(i&&2==r.insert.length&&(i=n.EditorSelection.single(i.main.anchor-1,i.main.head-1)),r={from:s.from,to:s.to,insert:n.Text.of([" "])}):q.chrome&&r&&r.from==r.to&&r.from==s.head&&"\n "==r.insert.toString()&&e.lineWrapping&&(i&&(i=n.EditorSelection.single(i.main.anchor-1,i.main.head-1)),r={from:s.from,to:s.to,insert:n.Text.of([" "])}),r){if(q.ios&&e.inputState.flushIOSKey())return!0;if(q.android&&(r.from==s.from&&r.to==s.to&&1==r.insert.length&&2==r.insert.lines&&w(e.contentDOM,"Enter",13)||(r.from==s.from-1&&r.to==s.to&&0==r.insert.length||8==o&&r.insert.length<r.to-r.from&&r.to>s.head)&&w(e.contentDOM,"Backspace",8)||r.from==s.from&&r.to==s.to+1&&0==r.insert.length&&w(e.contentDOM,"Delete",46)))return!0;let t,a=r.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let l=()=>t||(t=function(e,t,r){let i,s=e.state,o=s.selection.main;if(t.from>=o.from&&t.to<=o.to&&t.to-t.from>=(o.to-o.from)/3&&(!r||r.main.empty&&r.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let r=o.from<t.from?s.sliceDoc(o.from,t.from):"",n=o.to>t.to?s.sliceDoc(t.to,o.to):"";i=s.replaceSelection(e.state.toText(r+t.insert.sliceString(0,void 0,e.state.lineBreak)+n))}else{let a=s.changes(t),l=r&&r.main.to<=a.newLength?r.main:void 0;if(s.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=o.to&&t.to>=o.to-10){let u,c=e.state.sliceDoc(t.from,t.to),h=r&&pt(e,r.main.head);if(h){let e=t.insert.length-(t.to-t.from);u={from:h.from,to:h.to-e}}else u=e.state.doc.lineAt(o.head);let p=o.to-t.to,d=o.to-o.from;i=s.changeByRange((r=>{if(r.from==o.from&&r.to==o.to)return{changes:a,range:l||r.map(a)};let i=r.to-p,h=i-c.length;if(r.to-r.from!=d||e.state.sliceDoc(h,i)!=c||r.to>=u.from&&r.from<=u.to)return{range:r};let f=s.changes({from:h,to:i,insert:t.insert}),m=r.to-o.to;return{changes:f,range:l?n.EditorSelection.range(Math.max(0,l.anchor+m),Math.max(0,l.head+m)):r.map(f)}}))}else i={changes:a,selection:l&&s.selection.replaceRange(l)}}let a="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1)),s.update(i,{userEvent:a,scrollIntoView:!0})}(e,r,i));return e.state.facet(Re).some((t=>t(e,r.from,r.to,a,l)))||e.dispatch(l()),!0}if(i&&!i.main.eq(s)){let t=!1,r="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),r=e.inputState.lastSelectionOrigin),e.dispatch({selection:i,scrollIntoView:t,userEvent:r}),!0}return!1}const qr={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Wr=q.ie&&q.ie_version<=11;class Xr{constructor(e){this.view=e,this.active=!1,this.selectionRange=new y,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(q.ie&&q.ie_version<=11||q.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),Wr&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()})),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,r)=>t!=e[r])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,n=this.selectionRange;if(r.state.facet(Ue)?r.root.activeElement!=this.dom:!l(r.dom,n))return;let i=n.anchorNode&&r.docView.nearest(n.anchorNode);i&&i.ignoreEvent(e)?t||(this.selectionChanged=!1):(q.ie&&q.ie_version<=11||q.android&&q.chrome)&&!r.state.selection.main.empty&&n.focusNode&&c(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=q.safari&&11==e.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e){let t=null;function r(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",r,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",r,!0),!t)return null;let n=t.startContainer,i=t.startOffset,s=t.endContainer,o=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor);return c(a.node,a.offset,s,o)&&([n,i,s,o]=[s,o,n,i]),{anchorNode:n,anchorOffset:i,focusNode:s,focusOffset:o}}(this.view)||o(e.root);if(!t||this.selectionRange.eq(t))return!1;let r=l(this.dom,t);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let r=t.focusNode,n=t.focusOffset;if(!r||t.anchorNode!=r||t.anchorOffset!=n)return!1;for(n=Math.min(n,d(r));;)if(n){if(1!=r.nodeType)return!1;let e=r.childNodes[n-1];"false"==e.contentEditable?n--:(r=e,n=d(r))}else{if(r==e)return!0;n=h(r),r=r.parentNode}}(this.dom,t)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(t),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let r=this.dom;r;)if(1==r.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==r?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(r),r=r.assignedSlot||r.parentNode;else{if(11!=r.nodeType)break;r=r.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,qr),Wr&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Wr&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var r;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&w(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null===(r=this.delayedAndroidKey)||void 0===r?void 0:r.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame((()=>{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,r=-1,n=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(n=!0),-1==t?({from:t,to:r}=e):(t=Math.min(e.from,t),r=Math.max(e.to,r)))}return{from:t,to:r,typeOver:n}}readChange(){let{from:e,to:t,typeOver:r}=this.processRecords(),n=this.selectionChanged&&l(this.dom,this.selectionRange);if(e<0&&!n)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new jr(this.view,e,t,r);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let r=this.view.state,n=Zr(this.view,t);return this.view.state==r&&this.view.update([]),n}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){let r=Vr(t,e.previousSibling||e.target.previousSibling,-1),n=Vr(t,e.nextSibling||e.target.nextSibling,1);return{from:r?t.posAfter(r):t.posAtStart,to:n?t.posBefore(n):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,r;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(r=this.resizeScroll)||void 0===r||r.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Vr(e,t,r){for(;t;){let n=C.get(t);if(n&&n.parent==e)return n;let i=t.parentNode;t=i!=e.dom?i:r>0?t.nextSibling:t.previousSibling}return null}class Ur{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(e=>e.forEach((e=>t(e,this))))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new br(e.state||n.EditorState.create(e)),e.scrollTo&&e.scrollTo.is(Xe)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(ze).map((e=>new He(e)));for(let e of this.plugins)e.update(this);this.observer=new Xr(this),this.inputState=new Tt(this),this.inputState.ensureHandlers(this.plugins),this.docView=new ct(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let t=1==e.length&&e[0]instanceof n.Transaction?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,r=!1,i=!1,s=this.state;for(let t of e){if(t.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=t.state}if(this.destroyed)return void(this.viewState.state=s);let o=this.hasFocus,a=0,l=null;e.some((e=>e.annotation(Jt)))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=Kt(s,o),l||(a=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(c=null)):this.observer.clear(),s.facet(n.EditorState.phrases)!=this.state.facet(n.EditorState.phrases))return this.setState(s);t=ut.create(this,s,e),t.flags|=a;let h=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(h&&(h=h.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;h=new We(e.empty?e:n.EditorSelection.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(Xe)&&(h=e.value.clip(this.state))}this.viewState.update(t,h),this.bidiCache=Gr.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),r=this.docView.update(t),this.state.facet(at)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(r,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(Tr)!=t.state.facet(Tr)&&(this.viewState.mustMeasureContent=!0),(r||i||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let e of this.state.facet(Me))try{e(t)}catch(e){Ve(this.state,e,"update listener")}(l||c)&&Promise.resolve().then((()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!Zr(this,c)&&u.force&&w(this.contentDOM,u.key,u.keyCode)}))}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new br(e),this.plugins=e.facet(ze).map((e=>new He(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new ct(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(ze),r=e.state.facet(ze);if(t!=r){let n=[];for(let i of r){let r=t.indexOf(i);if(r<0)n.push(new He(i));else{let t=this.plugins[r];t.mustUpdate=e,n.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=n,this.pluginMap.clear()}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this);t!=r&&this.inputState.ensureHandlers(this.plugins)}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,r=this.scrollDOM,n=r.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:s}=this.viewState;Math.abs(n-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(s<0)if(S(r))i=-1,s=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(n);i=e.from,s=e.top}this.updateState=1;let o=this.viewState.measure(this);if(!o&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let a=[];4&o||([this.measureRequests,a]=[a,this.measureRequests]);let l=a.map((e=>{try{return e.read(this)}catch(e){return Ve(this.state,e),zr}})),u=ut.create(this,this.state,[]),c=!1;u.flags|=o,t?t.flags|=o:t=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),c=this.docView.update(u));for(let e=0;e<a.length;e++)if(l[e]!=zr)try{let t=a[e];t.write&&t.write(l[e],this)}catch(e){Ve(this.state,e)}if(c&&this.docView.updateSelection(!0),!u.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,s=-1;continue}{let e=(i<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(i).top)-s;if(e>1||e<-1){n+=e,r.scrollTop=n/this.scaleY,s=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(Me))e(t)}get themeClasses(){return Ar+" "+(this.state.facet(Pr)?_r:Fr)+" "+this.state.facet(Tr)}updateAttrs(){let e=Hr(this,Je,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Ue)?"true":"false",class:"cm-content",style:`${q.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),Hr(this,Ke,t);let r=this.observer.ignore((()=>{let r=ee(this.contentDOM,this.contentAttrs,t),n=ee(this.dom,this.editorAttrs,e);return r||n}));return this.editorAttrs=e,this.contentAttrs=t,r}showAnnouncements(e){let t=!0;for(let r of e)for(let e of r.effects)e.is(Ur.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(at);let e=this.state.facet(Ur.cspNonce);i.StyleModule.mount(this.root,this.styleModules.concat(Nr).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key)return void(this.measureRequests[t]=e);this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find((t=>t.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,r){return Ct(this,e,kt(this,e,t,r))}moveByGroup(e,t){return Ct(this,e,kt(this,e,t,(t=>function(e,t,r){let i=e.state.charCategorizer(t),s=i(r);return e=>{let t=i(e);return s==n.CharCategory.Space&&(s=t),s==t}}(this,e.head,t))))}visualLineSide(e,t){let r=this.bidiSpans(e),i=this.textDirectionAt(e.from),s=r[t?r.length-1:0];return n.EditorSelection.cursor(s.side(t,i)+e.from,s.forward(!t,i)?1:-1)}moveToLineBoundary(e,r,i=!0){return function(e,r,i,s){let o=St(e,r.head),a=s&&o.type==t.BlockType.Text&&(e.lineWrapping||o.widgetLineBreaks)?e.coordsAtPos(r.assoc<0&&r.head>o.from?r.head-1:r.head):null;if(a){let r=e.dom.getBoundingClientRect(),s=e.textDirectionAt(o.from),l=e.posAtCoords({x:i==(s==t.Direction.LTR)?r.right-1:r.left+1,y:(a.top+a.bottom)/2});if(null!=l)return n.EditorSelection.cursor(l,i?-1:1)}return n.EditorSelection.cursor(i?o.to:o.from,i?-1:1)}(this,e,r,i)}moveVertically(e,t,r){return Ct(this,e,function(e,t,r,i){let s=t.head,o=r?1:-1;if(s==(r?e.state.doc.length:0))return n.EditorSelection.cursor(s,t.assoc);let a,l=t.goalColumn,u=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(s,t.assoc||-1),h=e.documentTop;if(c)null==l&&(l=c.left-u.left),a=o<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(s);null==l&&(l=Math.min(u.right-u.left,e.defaultCharacterWidth*(s-t.from))),a=(o<0?t.top:t.bottom)+h}let p=u.left+l,d=null!=i?i:e.viewState.heightOracle.textHeight>>1;for(let t=0;;t+=10){let r=a+(d+t)*o,i=wt(e,{x:p,y:r},!1,o);if(r<u.top||r>u.bottom||(o<0?i<s:i>s)){let t=e.docView.coordsForChar(i),s=!t||r<t.top?-1:1;return n.EditorSelection.cursor(i,s,void 0,l)}}}(this,e,t,r))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),wt(this,e,t)}coordsAtPos(e,r=1){this.readMeasured();let n=this.docView.coordsAt(e,r);if(!n||n.left==n.right)return n;let i=this.state.doc.lineAt(e),s=this.bidiSpans(i);return f(n,s[ke.find(s,e-i.from,-1,r)].dir==t.Direction.LTR==r>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Ze)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Yr)return Fe(e.length);let t,r=this.textDirectionAt(e.from);for(let n of this.bidiCache)if(n.from==e.from&&n.dir==r&&(n.fresh||Ee(n.isolates,t=it(this,e))))return n.order;t||(t=it(this,e));let n=Ae(e.text,r,t);return this.bidiCache.push(new Gr(e.from,e.to,r,t,!0,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||q.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{b(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return Xe.of(new We("number"==typeof e?n.EditorSelection.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,r=this.viewState.scrollAnchorAt(e);return Xe.of(new We(n.EditorSelection.cursor(r.from),"start","start",r.top-e,t,!0))}static domEventHandlers(e){return Ge.define((()=>({})),{eventHandlers:e})}static domEventObservers(e){return Ge.define((()=>({})),{eventObservers:e})}static theme(e,t){let r=i.StyleModule.newName(),n=[Tr.of(r),at.of(Br(`.${r}`,e))];return t&&t.dark&&n.push(Pr.of(!0)),n}static baseTheme(e){return n.Prec.lowest(at.of(Br("."+Ar,e,Ir)))}static findFromDOM(e){var t;let r=e.querySelector(".cm-content"),n=r&&C.get(r)||C.get(e);return(null===(t=null==n?void 0:n.rootView)||void 0===t?void 0:t.view)||null}}Ur.styleModule=at,Ur.inputHandler=Re,Ur.focusChangeEffect=je,Ur.perLineTextDirection=Ze,Ur.exceptionSink=Le,Ur.updateListener=Me,Ur.editable=Ue,Ur.mouseSelectionStyle=Qe,Ur.dragMovesSelection=$e,Ur.clickAddsSelectionRange=Ne,Ur.decorations=et,Ur.outerDecorations=tt,Ur.atomicRanges=rt,Ur.bidiIsolatedRanges=nt,Ur.scrollMargins=st,Ur.darkTheme=Pr,Ur.cspNonce=n.Facet.define({combine:e=>e.length?e[0]:""}),Ur.contentAttributes=Ke,Ur.editorAttributes=Je,Ur.lineWrapping=Ur.contentAttributes.of({class:"cm-lineWrapping"}),Ur.announce=n.StateEffect.define();const Yr=4096,zr={};class Gr{constructor(e,t,r,n,i,s){this.from=e,this.to=t,this.dir=r,this.isolates=n,this.fresh=i,this.order=s}static update(e,r){if(r.empty&&!e.some((e=>e.fresh)))return e;let n=[],i=e.length?e[e.length-1].dir:t.Direction.LTR;for(let t=Math.max(0,e.length-10);t<e.length;t++){let s=e[t];s.dir!=i||r.touchesRange(s.from,s.to)||n.push(new Gr(r.mapPos(s.from,1),r.mapPos(s.to,-1),s.dir,s.isolates,!1,s.order))}return n}}function Hr(e,t,r){for(let n=e.state.facet(t),i=n.length-1;i>=0;i--){let t=n[i],s="function"==typeof t?t(e):t;s&&H(s,r)}return r}const Jr=q.mac?"mac":q.windows?"win":q.linux?"linux":"key";function Kr(e,t,r){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==r&&t.shiftKey&&(e="Shift-"+e),e}const en=n.Prec.default(Ur.domEventHandlers({keydown:(e,t)=>an(nn(t.state),e,t,"editor")})),tn=n.Facet.define({enables:en}),rn=new WeakMap;function nn(e){let t=e.facet(tn),r=rn.get(t);return r||rn.set(t,r=function(e,t=Jr){let r=Object.create(null),n=Object.create(null),i=(e,t)=>{let r=n[e];if(null==r)n[e]=t;else if(r!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},s=(e,n,s,o,a)=>{var l,u;let c=r[e]||(r[e]=Object.create(null)),h=n.split(/ (?!$)/).map((e=>function(e,t){const r=e.split(/-(?!$)/);let n,i,s,o,a=r[r.length-1];"Space"==a&&(a=" ");for(let e=0;e<r.length-1;++e){const a=r[e];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))n=!0;else if(/^(c|ctrl|control)$/i.test(a))i=!0;else if(/^s(hift)?$/i.test(a))s=!0;else{if(!/^mod$/i.test(a))throw new Error("Unrecognized modifier name: "+a);"mac"==t?o=!0:i=!0}}return n&&(a="Alt-"+a),i&&(a="Ctrl-"+a),o&&(a="Meta-"+a),s&&(a="Shift-"+a),a}(e,t)));for(let t=1;t<h.length;t++){let r=h.slice(0,t).join(" ");i(r,!0),c[r]||(c[r]={preventDefault:!0,stopPropagation:!1,run:[t=>{let n=sn={view:t,prefix:r,scope:e};return setTimeout((()=>{sn==n&&(sn=null)}),on),!0}]})}let p=h.join(" ");i(p,!1);let d=c[p]||(c[p]={preventDefault:!1,stopPropagation:!1,run:(null===(u=null===(l=c._any)||void 0===l?void 0:l.run)||void 0===u?void 0:u.slice())||[]});s&&d.run.push(s),o&&(d.preventDefault=!0),a&&(d.stopPropagation=!0)};for(let n of e){let e=n.scope?n.scope.split(" "):["editor"];if(n.any)for(let t of e){let e=r[t]||(r[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let t in e)e[t].run.push(n.any)}let i=n[t]||n.key;if(i)for(let t of e)s(t,i,n.run,n.preventDefault,n.stopPropagation),n.shift&&s(t,"Shift-"+i,n.shift,n.preventDefault,n.stopPropagation)}return r}(t.reduce(((e,t)=>e.concat(t)),[]))),r}let sn=null;const on=4e3;function an(e,t,r,i){let o=s.keyName(t),a=n.codePointAt(o,0),l=n.codePointSize(a)==o.length&&" "!=o,u="",c=!1,h=!1,p=!1;sn&&sn.view==r&&sn.scope==i&&(u=sn.prefix+" ",It.indexOf(t.keyCode)<0&&(h=!0,sn=null));let d,f,m=new Set,g=e=>{if(e){for(let n of e.run)if(!m.has(n)&&(m.add(n),n(r,t)))return e.stopPropagation&&(p=!0),!0;e.preventDefault&&(e.stopPropagation&&(p=!0),h=!0)}return!1},y=e[i];return y&&(g(y[u+Kr(o,t,!l)])?c=!0:l&&(t.altKey||t.metaKey||t.ctrlKey)&&!(q.windows&&t.ctrlKey&&t.altKey)&&(d=s.base[t.keyCode])&&d!=o?(g(y[u+Kr(d,t,!0)])||t.shiftKey&&(f=s.shift[t.keyCode])!=o&&f!=d&&g(y[u+Kr(f,t,!1)]))&&(c=!0):l&&t.shiftKey&&g(y[u+Kr(o,t,!0)])&&(c=!0),!c&&g(y._any)&&(c=!0)),h&&(c=!0),c&&p&&t.stopPropagation(),c}class ln{constructor(e,t,r,n,i){this.className=e,this.left=t,this.top=r,this.width=n,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,r,n){if(n.empty){let t=e.coordsAtPos(n.head,n.assoc||1);if(!t)return[];let i=un(e);return[new ln(r,t.left-i.left,t.top-i.top,null,t.bottom-t.top)]}return function(e,r,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let i=Math.max(n.from,e.viewport.from),s=Math.min(n.to,e.viewport.to),o=e.textDirection==t.Direction.LTR,a=e.contentDOM,l=a.getBoundingClientRect(),u=un(e),c=a.querySelector(".cm-line"),h=c&&window.getComputedStyle(c),p=l.left+(h?parseInt(h.paddingLeft)+Math.min(0,parseInt(h.textIndent)):0),d=l.right-(h?parseInt(h.paddingRight):0),f=St(e,i),m=St(e,s),g=f.type==t.BlockType.Text?f:null,y=m.type==t.BlockType.Text?m:null;if(g&&(e.lineWrapping||f.widgetLineBreaks)&&(g=cn(e,i,g)),y&&(e.lineWrapping||m.widgetLineBreaks)&&(y=cn(e,s,y)),g&&y&&g.from==y.from)return x(b(n.from,n.to,g));{let r=g?b(n.from,null,g):v(f,!1),i=y?b(null,n.to,y):v(m,!0),s=[];return(g||f).to<(y||m).from-(g&&y?1:0)||f.widgetLineBreaks>1&&r.bottom+e.defaultLineHeight/2<i.top?s.push(O(p,r.bottom,d,i.top)):r.bottom<i.top&&e.elementAtHeight((r.bottom+i.top)/2).type==t.BlockType.Text&&(r.bottom=i.top=(r.bottom+i.top)/2),x(r).concat(s).concat(x(i))}function O(e,t,n,i){return new ln(r,e-u.left,t-u.top-.01,n-e,i-t+.01)}function x({top:e,bottom:t,horizontal:r}){let n=[];for(let i=0;i<r.length;i+=2)n.push(O(r[i],e,r[i+1],t));return n}function b(r,n,i){let s=1e9,a=-1e9,l=[];function u(r,n,u,c,h){let f=e.coordsAtPos(r,r==i.to?-2:2),m=e.coordsAtPos(u,u==i.from?2:-2);f&&m&&(s=Math.min(f.top,m.top,s),a=Math.max(f.bottom,m.bottom,a),h==t.Direction.LTR?l.push(o&&n?p:f.left,o&&c?d:m.right):l.push(!o&&c?p:m.left,!o&&n?d:f.right))}let c=null!=r?r:i.from,h=null!=n?n:i.to;for(let t of e.visibleRanges)if(t.to>c&&t.from<h)for(let i=Math.max(t.from,c),s=Math.min(t.to,h);;){let t=e.state.doc.lineAt(i);for(let o of e.bidiSpans(t)){let e=o.from+t.from,a=o.to+t.from;if(e>=s)break;a>i&&u(Math.max(e,i),null==r&&e<=c,Math.min(a,s),null==n&&a>=h,o.dir)}if(i=t.to+1,i>=s)break}return 0==l.length&&u(c,null==r,h,null==n,e.textDirection),{top:s,bottom:a,horizontal:l}}function v(e,t){let r=l.top+(t?e.top:e.bottom);return{top:r,bottom:r,horizontal:[]}}}(e,r,n)}}function un(e){let r=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==t.Direction.LTR?r.left:r.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:r.top-e.scrollDOM.scrollTop*e.scaleY}}function cn(e,r,i){let s=n.EditorSelection.cursor(r);return{from:Math.max(i.from,e.moveToLineBoundary(s,!1,!0).from),to:Math.min(i.to,e.moveToLineBoundary(s,!0,!0).from),type:t.BlockType.Text}}class hn{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(pn)!=e.state.facet(pn)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let t=0,r=e.facet(pn);for(;t<r.length&&r[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;e==this.scaleX&&t==this.scaleY||(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some(((e,t)=>{return r=e,n=this.drawn[t],!(r.constructor==n.constructor&&r.eq(n));var r,n}))){let t=this.dom.firstChild,r=0;for(let n of e)n.update&&t&&n.constructor&&this.drawn[r].constructor&&n.update(t,this.drawn[r])?(t=t.nextSibling,r++):this.dom.insertBefore(n.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const pn=n.Facet.define();function dn(e){return[Ge.define((t=>new hn(t,e))),pn.of(e)]}const fn=!q.ios,mn=n.Facet.define({combine:e=>n.combineConfig(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function gn(e){return e.startState.facet(mn)!=e.state.facet(mn)}const yn=dn({above:!0,markers(e){let{state:t}=e,r=t.facet(mn),i=[];for(let s of t.selection.ranges){let o=s==t.selection.main;if(s.empty?!o||fn:r.drawRangeCursor){let t=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",r=s.empty?s:n.EditorSelection.cursor(s.head,s.head>s.anchor?-1:1);for(let n of ln.forRange(e,t,r))i.push(n)}}return i},update(e,t){e.transactions.some((e=>e.selection))&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let r=gn(e);return r&&On(e.state,t),e.docChanged||e.selectionSet||r},mount(e,t){On(t.state,e)},class:"cm-cursorLayer"});function On(e,t){t.style.animationDuration=e.facet(mn).cursorBlinkRate+"ms"}const xn=dn({above:!1,markers:e=>e.state.selection.ranges.map((t=>t.empty?[]:ln.forRange(e,"cm-selectionBackground",t))).reduce(((e,t)=>e.concat(t))),update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||gn(e),class:"cm-selectionLayer"}),bn={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};fn&&(bn[".cm-line"].caretColor="transparent !important",bn[".cm-content"]={caretColor:"transparent !important"});const vn=n.Prec.highest(Ur.theme(bn)),wn=n.StateEffect.define({map:(e,t)=>null==e?null:t.mapPos(e)}),Dn=n.StateField.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce(((e,t)=>t.is(wn)?t.value:e),e))}),Sn=Ge.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let r=e.state.field(Dn);null==r?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(Dn)!=r||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(Dn),r=null!=t&&e.coordsAtPos(t);if(!r)return null;let n=e.scrollDOM.getBoundingClientRect();return{left:r.left-n.left+e.scrollDOM.scrollLeft*e.scaleX,top:r.top-n.top+e.scrollDOM.scrollTop*e.scaleY,height:r.bottom-r.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:r}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/r+"px",this.cursor.style.height=e.height/r+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(Dn)!=e&&this.view.dispatch({effects:wn.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function kn(e,t,r,n,i){t.lastIndex=0;for(let s,o=e.iterRange(r,n),a=r;!o.next().done;a+=o.value.length)if(!o.lineBreak)for(;s=t.exec(o.value);)i(a+s.index,s)}class En{constructor(e){const{regexp:t,decoration:r,decorate:n,boundary:i,maxLength:s=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,n)this.addMatch=(e,t,r,i)=>n(i,r,r+e[0].length,e,t);else if("function"==typeof r)this.addMatch=(e,t,n,i)=>{let s=r(e,t,n);s&&i(n,n+e[0].length,s)};else{if(!r)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,n,i)=>i(n,n+e[0].length,r)}this.boundary=i,this.maxLength=s}createDeco(e){let t=new n.RangeSetBuilder,r=t.add.bind(t);for(let{from:t,to:n}of function(e,t){let r=e.visibleRanges;if(1==r.length&&r[0].from==e.viewport.from&&r[0].to==e.viewport.to)return r;let n=[];for(let{from:i,to:s}of r)i=Math.max(e.state.doc.lineAt(i).from,i-t),s=Math.min(e.state.doc.lineAt(s).to,s+t),n.length&&n[n.length-1].to>=i?n[n.length-1].to=s:n.push({from:i,to:s});return n}(e,this.maxLength))kn(e.state.doc,this.regexp,t,n,((t,n)=>this.addMatch(n,e,t,r)));return t.finish()}updateDeco(e,t){let r=1e9,n=-1;return e.docChanged&&e.changes.iterChanges(((t,i,s,o)=>{o>e.view.viewport.from&&s<e.view.viewport.to&&(r=Math.min(s,r),n=Math.max(o,n))})),e.viewportChanged||n-r>1e3?this.createDeco(e.view):n>-1?this.updateRange(e.view,t.map(e.changes),r,n):t}updateRange(e,t,r,n){for(let i of e.visibleRanges){let s=Math.max(i.from,r),o=Math.min(i.to,n);if(o>s){let r=e.state.doc.lineAt(s),n=r.to<o?e.state.doc.lineAt(o):r,a=Math.max(i.from,r.from),l=Math.min(i.to,n.to);if(this.boundary){for(;s>r.from;s--)if(this.boundary.test(r.text[s-1-r.from])){a=s;break}for(;o<n.to;o++)if(this.boundary.test(n.text[o-n.from])){l=o;break}}let u,c=[],h=(e,t,r)=>c.push(r.range(e,t));if(r==n)for(this.regexp.lastIndex=a-r.from;(u=this.regexp.exec(r.text))&&u.index<l-r.from;)this.addMatch(u,e,u.index+r.from,h);else kn(e.state.doc,this.regexp,a,l,((t,r)=>this.addMatch(r,e,t,h)));t=t.update({filterFrom:a,filterTo:l,filter:(e,t)=>e<a||t>l,add:c})}}return t}}const Cn=null!=/x/.unicode?"gu":"g",Tn=new RegExp("[\0-\b\n--Ÿ­؜\u2028\u2029\ufeff-]",Cn),Pn={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let An=null;const Fn=n.Facet.define({combine(e){let t=n.combineConfig(e,{render:null,specialChars:Tn,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==An&&"undefined"!=typeof document&&document.body){let t=document.body.style;An=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return An||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,Cn)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,Cn)),t}});let _n=null;class In extends ie{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=(r=this.code)>=32?"•":10==r?"␤":String.fromCharCode(9216+r);var r;let n=e.state.phrase("Control character")+" "+(Pn[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,n,t);if(i)return i;let s=document.createElement("span");return s.textContent=t,s.title=n,s.setAttribute("aria-label",n),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class Bn extends ie{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const Nn=Ge.fromClass(class{constructor(){this.height=1e3,this.attrs={style:"padding-bottom: 1000px"}}update(e){let{view:t}=e,r=t.viewState.editorHeight*t.scaleY-t.defaultLineHeight-t.documentPadding.top-.5;r>=0&&r!=this.height&&(this.height=r,this.attrs={style:`padding-bottom: ${r}px`})}}),$n=ae.line({class:"cm-activeLine"}),Qn=Ge.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,r=[];for(let n of e.state.selection.ranges){let i=e.lineBlockAt(n.head);i.from>t&&(r.push($n.range(i.from)),t=i.from)}return ae.set(r)}},{decorations:e=>e.decorations});class Ln extends ie{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?u(e.firstChild):[];if(!t.length)return null;let r=window.getComputedStyle(e.parentNode),n=f(t[0],"rtl"!=r.direction),i=parseInt(r.lineHeight);return n.bottom-n.top>1.5*i?{left:n.left,right:n.right,top:n.top,bottom:n.top+i}:n}ignoreEvent(){return!1}}const Mn=2e3;function Rn(e,t){let r=e.posAtCoords({x:t.clientX,y:t.clientY},!1),i=e.state.doc.lineAt(r),s=r-i.from,o=s>Mn?-1:s==i.length?function(e,t){let r=e.coordsAtPos(e.viewport.from);return r?Math.round(Math.abs((r.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):n.countColumn(i.text,e.state.tabSize,r-i.from);return{line:i.number,col:o,off:s}}const jn={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},Zn={style:"cursor: crosshair"},qn="-10000px";class Wn{constructor(e,t,r,n){this.facet=t,this.createTooltipView=r,this.removeTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter((e=>e)),this.tooltipViews=this.tooltips.map(r)}update(e,t){var r;let n=e.state.facet(this.facet),i=n.filter((e=>e));if(n===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let s=[],o=t?[]:null;for(let r=0;r<i.length;r++){let n=i[r],a=-1;if(n){for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e];t&&t.create==n.create&&(a=e)}if(a<0)s[r]=this.createTooltipView(n),o&&(o[r]=!!n.above);else{let n=s[r]=this.tooltipViews[a];o&&(o[r]=t[a]),n.update&&n.update(e)}}}for(let e of this.tooltipViews)s.indexOf(e)<0&&(this.removeTooltipView(e),null===(r=e.destroy)||void 0===r||r.call(e));return t&&(o.forEach(((e,r)=>t[r]=e)),t.length=o.length),this.input=n,this.tooltips=i,this.tooltipViews=s,!0}}function Xn(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const Vn=n.Facet.define({combine:e=>{var t,r,n;return{position:q.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",parent:(null===(r=e.find((e=>e.parent)))||void 0===r?void 0:r.parent)||null,tooltipSpace:(null===(n=e.find((e=>e.tooltipSpace)))||void 0===n?void 0:n.tooltipSpace)||Xn}}}),Un=new WeakMap,Yn=Ge.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(Vn);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver((()=>this.measureSoon())):null,this.manager=new Wn(e,Hn,(e=>this.createTooltip(e)),(e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()})),this.above=this.manager.tooltips.map((e=>!!e.above)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let r=t||e.geometryChanged,n=e.state.facet(Vn);if(n.position!=this.position&&!this.madeAbsolute){this.position=n.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;r=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);r=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);r&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=qn,t.dom.style.left="0px",this.container.appendChild(t.dom),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var e,t,r;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),null===(e=t.destroy)||void 0===e||e.call(t);this.parent&&this.container.remove(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(r=this.intersectionObserver)||void 0===r||r.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,r=1,n=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(q.gecko)n=e.offsetParent!=this.container.ownerDocument.body;else if(e.style.top==qn&&"0px"==e.style.left){let t=e.getBoundingClientRect();n=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}}if(n||"absolute"==this.position)if(this.parent){let e=this.parent.getBoundingClientRect();e.width&&e.height&&(t=e.width/this.parent.offsetWidth,r=e.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:r}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(((e,t)=>{let r=this.manager.tooltipViews[t];return r.getCoords?r.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),size:this.manager.tooltipViews.map((({dom:e})=>e.getBoundingClientRect())),space:this.view.state.facet(Vn).tooltipSpace(this.view),scaleX:t,scaleY:r,makeAbsolute:n}}writeMeasure(e){var r;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{editor:n,space:i,scaleX:s,scaleY:o}=e,a=[];for(let l=0;l<this.manager.tooltips.length;l++){let u=this.manager.tooltips[l],c=this.manager.tooltipViews[l],{dom:h}=c,p=e.pos[l],d=e.size[l];if(!p||p.bottom<=Math.max(n.top,i.top)||p.top>=Math.min(n.bottom,i.bottom)||p.right<Math.max(n.left,i.left)-.1||p.left>Math.min(n.right,i.right)+.1){h.style.top=qn;continue}let f=u.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,m=f?7:0,g=d.right-d.left,y=null!==(r=Un.get(c))&&void 0!==r?r:d.bottom-d.top,O=c.offset||Gn,x=this.view.textDirection==t.Direction.LTR,b=d.width>i.right-i.left?x?i.left:i.right-d.width:x?Math.min(p.left-(f?14:0)+O.x,i.right-g):Math.max(i.left,p.left-g+(f?14:0)-O.x),v=this.above[l];!u.strictSide&&(v?p.top-(d.bottom-d.top)-O.y<i.top:p.bottom+(d.bottom-d.top)+O.y>i.bottom)&&v==i.bottom-p.bottom>p.top-i.top&&(v=this.above[l]=!v);let w=(v?p.top-i.top:i.bottom-p.bottom)-m;if(w<y&&!1!==c.resize){if(w<this.view.defaultLineHeight){h.style.top=qn;continue}Un.set(c,y),h.style.height=(y=w)/o+"px"}else h.style.height&&(h.style.height="");let D=v?p.top-y-m-O.y:p.bottom+m+O.y,S=b+g;if(!0!==c.overlap)for(let e of a)e.left<S&&e.right>b&&e.top<D+y&&e.bottom>D&&(D=v?e.top-y-2-m:e.bottom+m+2);if("absolute"==this.position?(h.style.top=(D-e.parent.top)/o+"px",h.style.left=(b-e.parent.left)/s+"px"):(h.style.top=D/o+"px",h.style.left=b/s+"px"),f){let e=p.left+(x?O.x:-O.x)-(b+14-7);f.style.left=e/s+"px"}!0!==c.overlap&&a.push({left:b,top:D,right:S,bottom:D+y}),h.classList.toggle("cm-tooltip-above",v),h.classList.toggle("cm-tooltip-below",!v),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=qn}},{eventObservers:{scroll(){this.maybeMeasure()}}}),zn=Ur.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Gn={x:0,y:0},Hn=n.Facet.define({enables:[Yn,zn]}),Jn=n.Facet.define();class Kn{static create(e){return new Kn(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Wn(e,Jn,(e=>this.createHostedView(e)),(e=>e.dom.remove()))}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let r of this.manager.tooltipViews){let n=r[e];if(void 0!==n)if(void 0===t)t=n;else if(t!==n)return}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const ei=Hn.compute([Jn],(e=>{let t=e.facet(Jn).filter((e=>e));return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),end:Math.max(...t.map((e=>{var t;return null!==(t=e.end)&&void 0!==t?t:e.pos}))),create:Kn.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}));class ti{constructor(e,t,r,n,i){this.view=e,this.source=t,this.field=r,this.setHover=n,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:r}=this,n=e.docView.nearest(r.target);if(!n)return;let i,s=1;if(n instanceof V)i=n.posAtStart;else{if(i=e.posAtCoords(r),null==i)return;let n=e.coordsAtPos(i);if(!n||r.y<n.top||r.y>n.bottom||r.x<n.left-e.defaultCharacterWidth||r.x>n.right+e.defaultCharacterWidth)return;let o=e.bidiSpans(e.state.doc.lineAt(i)).find((e=>e.from<=i&&e.to>=i)),a=o&&o.dir==t.Direction.RTL?-1:1;s=r.x<n.left?-a:a}let o=this.source(e,i,s);if(null==o?void 0:o.then){let t=this.pending={pos:i};o.then((r=>{this.pending==t&&(this.pending=null,r&&e.dispatch({effects:this.setHover.of(r)}))}),(t=>Ve(e.state,t,"hover tooltip")))}else o&&e.dispatch({effects:this.setHover.of(o)})}get tooltip(){let e=this.view.plugin(Yn),t=e?e.manager.tooltips.findIndex((e=>e.create==Kn.create)):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:n}=this;if(r&&n&&!function(e,t){let r=e.getBoundingClientRect();return t.clientX>=r.left-ri&&t.clientX<=r.right+ri&&t.clientY>=r.top-ri&&t.clientY<=r.bottom+ri}(n.dom,e)||this.pending){let{pos:n}=r||this.pending,i=null!==(t=null==r?void 0:r.end)&&void 0!==t?t:n;(n==i?this.view.posAtCoords(this.lastMove)==n:function(e,t,r,n,i,s){let o=e.scrollDOM.getBoundingClientRect(),a=e.documentTop+e.documentPadding.top+e.contentHeight;if(o.left>n||o.right<n||o.top>i||Math.min(o.bottom,a)<i)return!1;let l=e.posAtCoords({x:n,y:i},!1);return l>=t&&l<=r}(this.view,n,i,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(e){let t=r=>{e.removeEventListener("mouseleave",t),this.active&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const ri=4,ni=n.StateEffect.define(),ii=ni.of(null),si=n.Facet.define({combine(e){let t,r;for(let n of e)t=t||n.topContainer,r=r||n.bottomContainer;return{topContainer:t,bottomContainer:r}}}),oi=Ge.fromClass(class{constructor(e){this.input=e.state.facet(ui),this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)));let t=e.state.facet(si);this.top=new ai(e,!0,t.topContainer),this.bottom=new ai(e,!1,t.bottomContainer),this.top.sync(this.panels.filter((e=>e.top))),this.bottom.sync(this.panels.filter((e=>!e.top)));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}update(e){let t=e.state.facet(si);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new ai(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new ai(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let r=e.state.facet(ui);if(r!=this.input){let t=r.filter((e=>e)),n=[],i=[],s=[],o=[];for(let r of t){let t,a=this.specs.indexOf(r);a<0?(t=r(e.view),o.push(t)):(t=this.panels[a],t.update&&t.update(e)),n.push(t),(t.top?i:s).push(t)}this.specs=t,this.panels=n,this.top.sync(i),this.bottom.sync(s);for(let e of o)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>Ur.scrollMargins.of((t=>{let r=t.plugin(e);return r&&{top:r.top.scrollMargin(),bottom:r.bottom.scrollMargin()}}))});class ai{constructor(e,t,r){this.view=e,this.top=t,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=li(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=li(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function li(e){let t=e.nextSibling;return e.remove(),t}const ui=n.Facet.define({enables:oi});class ci extends n.RangeValue{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}ci.prototype.elementClass="",ci.prototype.toDOM=void 0,ci.prototype.mapMode=n.MapMode.TrackBefore,ci.prototype.startSide=ci.prototype.endSide=-1,ci.prototype.point=!0;const hi=n.Facet.define(),pi={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>n.RangeSet.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},di=n.Facet.define(),fi=n.Facet.define({combine:e=>e.some((e=>e))});function mi(e){let t=[gi];return e&&!1===e.fixed&&t.push(fi.of(!0)),t}const gi=Ge.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(di).map((t=>new bi(e,t)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!e.state.facet(fi),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,r=e.view.viewport,n=Math.min(t.to,r.to)-Math.max(t.from,r.from);this.syncGutters(n<.8*(r.to-r.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(fi)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let r=this.dom.nextSibling;e&&this.dom.remove();let i=n.RangeSet.iter(this.view.state.facet(hi),this.view.viewport.from),s=[],o=this.gutters.map((e=>new xi(e,this.view.viewport,-this.view.documentPadding.top)));for(let e of this.view.viewportLineBlocks)if(s.length&&(s=[]),Array.isArray(e.type)){let r=!0;for(let n of e.type)if(n.type==t.BlockType.Text&&r){Oi(i,s,n.from);for(let e of o)e.line(this.view,n,s);r=!1}else if(n.widget)for(let e of o)e.widget(this.view,n)}else if(e.type==t.BlockType.Text){Oi(i,s,e.from);for(let t of o)t.line(this.view,e,s)}else if(e.widget)for(let t of o)t.widget(this.view,e);for(let e of o)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,r)}updateGutters(e){let t=e.startState.facet(di),r=e.state.facet(di),i=e.docChanged||e.heightChanged||e.viewportChanged||!n.RangeSet.eq(e.startState.facet(hi),e.state.facet(hi),e.view.viewport.from,e.view.viewport.to);if(t==r)for(let t of this.gutters)t.update(e)&&(i=!0);else{i=!0;let n=[];for(let i of r){let r=t.indexOf(i);r<0?n.push(new bi(this.view,i)):(this.gutters[r].update(e),n.push(this.gutters[r]))}for(let e of this.gutters)e.dom.remove(),n.indexOf(e)<0&&e.destroy();for(let e of n)this.dom.appendChild(e.dom);this.gutters=n}return i}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>Ur.scrollMargins.of((r=>{let n=r.plugin(e);return n&&0!=n.gutters.length&&n.fixed?r.textDirection==t.Direction.LTR?{left:n.dom.offsetWidth*r.scaleX}:{right:n.dom.offsetWidth*r.scaleX}:null}))});function yi(e){return Array.isArray(e)?e:[e]}function Oi(e,t,r){for(;e.value&&e.from<=r;)e.from==r&&t.push(e.value),e.next()}class xi{constructor(e,t,r){this.gutter=e,this.height=r,this.i=0,this.cursor=n.RangeSet.iter(e.markers,t.from)}addElement(e,t,r){let{gutter:n}=this,i=(t.top-this.height)/e.scaleY,s=t.height/e.scaleY;if(this.i==n.elements.length){let t=new vi(e,s,i,r);n.elements.push(t),n.dom.appendChild(t.dom)}else n.elements[this.i].update(e,s,i,r);this.height=t.bottom,this.i++}line(e,t,r){let n=[];Oi(this.cursor,n,t.from),r.length&&(n=n.concat(r));let i=this.gutter.config.lineMarker(e,t,n);i&&n.unshift(i);let s=this.gutter;(0!=n.length||s.config.renderEmptyElements)&&this.addElement(e,t,n)}widget(e,t){let r=this.gutter.config.widgetMarker(e,t.widget,t);r&&this.addElement(e,t,[r])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class bi{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in t.domEventHandlers)this.dom.addEventListener(r,(n=>{let i,s=n.target;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let e=s.getBoundingClientRect();i=(e.top+e.bottom)/2}else i=n.clientY;let o=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[r](e,o,n)&&n.preventDefault()}));this.markers=yi(t.markers(e)),t.initialSpacer&&(this.spacer=new vi(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=yi(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let r=e.view.viewport;return!n.RangeSet.eq(this.markers,t,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class vi{constructor(e,t,r,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,r,n)}update(e,t,r,n){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].compare(t[r]))return!1;return!0}(this.markers,n)||this.setMarkers(e,n)}setMarkers(e,t){let r="cm-gutterElement",n=this.dom.firstChild;for(let i=0,s=0;;){let o=s,a=i<t.length?t[i++]:null,l=!1;if(a){let e=a.elementClass;e&&(r+=" "+e);for(let e=s;e<this.markers.length;e++)if(this.markers[e].compare(a)){o=e,l=!0;break}}else o=this.markers.length;for(;s<o;){let e=this.markers[s++];if(e.toDOM){e.destroy(n);let t=n.nextSibling;n.remove(),n=t}}if(!a)break;a.toDOM&&(l?n=n.nextSibling:this.dom.insertBefore(a.toDOM(e),n)),l&&s++}this.dom.className=r,this.markers=t}destroy(){this.setMarkers(null,[])}}const wi=n.Facet.define(),Di=n.Facet.define({combine:e=>n.combineConfig(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let r=Object.assign({},e);for(let e in t){let n=r[e],i=t[e];r[e]=n?(e,t,r)=>n(e,t,r)||i(e,t,r):i}return r}})});class Si extends ci{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function ki(e,t){return e.state.facet(Di).formatNumber(t,e.state)}const Ei=di.compute([Di],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(wi),lineMarker:(e,t,r)=>r.some((e=>e.toDOM))?null:new Si(ki(e,e.state.doc.lineAt(t.from).number)),widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Di)!=e.state.facet(Di),initialSpacer:e=>new Si(ki(e,Ci(e.state.doc.lines))),updateSpacer(e,t){let r=ki(t.view,Ci(t.view.state.doc.lines));return r==e.number?e:new Si(r)},domEventHandlers:e.facet(Di).domEventHandlers})));function Ci(e){let t=9;for(;t<e;)t=10*t+9;return t}const Ti=new class extends ci{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},Pi=hi.compute(["selection"],(e=>{let t=[],r=-1;for(let n of e.selection.ranges){let i=e.doc.lineAt(n.head).from;i>r&&(r=i,t.push(Ti.range(i)))}return n.RangeSet.of(t)})),Ai=new Map;function Fi(e){return Ge.define((t=>({decorations:e.createDeco(t),update(t){this.decorations=e.updateDeco(t,this.decorations)}})),{decorations:e=>e.decorations})}const _i=Fi(new En({regexp:/\t| +/g,decoration:e=>function(e){let t=Ai.get(e);return t||Ai.set(e,t=ae.mark({attributes:"\t"===e?{class:"cm-highlightTab"}:{class:"cm-highlightSpace","data-display":e.replace(/ /g,"·")}})),t}(e[0]),boundary:/\S/})),Ii=Fi(new En({regexp:/\s+$/g,decoration:ae.mark({class:"cm-trailingSpace"}),boundary:/\S/})),Bi={HeightMap:lr,HeightOracle:nr,MeasuredHeights:ir,QueryType:or,ChangedRange:lt,computeOrder:Ae,moveVisually:Ie};t.BidiSpan=ke,t.BlockInfo=sr,t.Decoration=ae,t.EditorView=Ur,t.GutterMarker=ci,t.MatchDecorator=En,t.RectangleMarker=ln,t.ViewPlugin=Ge,t.ViewUpdate=ut,t.WidgetType=ie,t.__test=Bi,t.closeHoverTooltips=ii,t.crosshairCursor=function(e={}){let[t,r]=jn[e.key||"Alt"],n=Ge.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||r(e))},keyup(e){e.keyCode!=t&&r(e)||this.set(!1)},mousemove(e){this.set(r(e))}}});return[n,Ur.contentAttributes.of((e=>{var t;return(null===(t=e.plugin(n))||void 0===t?void 0:t.isDown)?Zn:null}))]},t.drawSelection=function(e={}){return[mn.of(e),yn,xn,vn,qe.of(!0)]},t.dropCursor=function(){return[Dn,Sn]},t.getDrawSelectionConfig=function(e){return e.facet(mn)},t.getPanel=function(e,t){let r=e.plugin(oi),n=r?r.specs.indexOf(t):-1;return n>-1?r.panels[n]:null},t.getTooltip=function(e,t){let r=e.plugin(Yn);if(!r)return null;let n=r.manager.tooltips.indexOf(t);return n<0?null:r.manager.tooltipViews[n]},t.gutter=function(e){return[mi(),di.of(Object.assign(Object.assign({},pi),e))]},t.gutterLineClass=hi,t.gutters=mi,t.hasHoverTooltips=function(e){return e.facet(Jn).some((e=>e))},t.highlightActiveLine=function(){return Qn},t.highlightActiveLineGutter=function(){return Pi},t.highlightSpecialChars=function(e={}){return[Fn.of(e),_n||(_n=Ge.fromClass(class{constructor(e){this.view=e,this.decorations=ae.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(Fn)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new En({regexp:e.specialChars,decoration:(t,r,i)=>{let{doc:s}=r.state,o=n.codePointAt(t[0],0);if(9==o){let e=s.lineAt(i),t=r.state.tabSize,o=n.countColumn(e.text,t,i-e.from);return ae.replace({widget:new Bn((t-o%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=ae.replace({widget:new In(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(Fn);e.startState.facet(Fn)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]},t.highlightTrailingWhitespace=function(){return Ii},t.highlightWhitespace=function(){return _i},t.hoverTooltip=function(e,t={}){let r=n.StateEffect.define(),i=n.StateField.define({create:()=>null,update(e,i){if(e&&(t.hideOnChange&&(i.docChanged||i.selection)||t.hideOn&&t.hideOn(i,e)))return null;if(e&&i.docChanged){let t=i.changes.mapPos(e.pos,-1,n.MapMode.TrackDel);if(null==t)return null;let r=Object.assign(Object.create(null),e);r.pos=t,null!=e.end&&(r.end=i.changes.mapPos(e.end)),e=r}for(let t of i.effects)t.is(r)&&(e=t.value),t.is(ni)&&(e=null);return e},provide:e=>Jn.from(e)});return[i,Ge.define((n=>new ti(n,e,i,r,t.hoverTime||300))),ei]},t.keymap=tn,t.layer=dn,t.lineNumberMarkers=wi,t.lineNumbers=function(e={}){return[Di.of(e),mi(),Ei]},t.logException=Ve,t.panels=function(e){return e?[si.of(e)]:[]},t.placeholder=function(e){return Ge.fromClass(class{constructor(t){this.view=t,this.placeholder=e?ae.set([ae.widget({widget:new Ln(e),side:1}).range(0)]):ae.none}get decorations(){return this.view.state.doc.length?ae.none:this.placeholder}},{decorations:e=>e.decorations})},t.rectangularSelection=function(e){let t=(null==e?void 0:e.eventFilter)||(e=>e.altKey&&0==e.button);return Ur.mouseSelectionStyle.of(((e,r)=>t(r)?function(e,t){let r=Rn(e,t),i=e.state.selection;return r?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(r.line).from),n=e.state.doc.lineAt(t);r={line:n.number,col:r.col,off:Math.min(r.off,n.length)},i=i.map(e.changes)}},get(t,s,o){let a=Rn(e,t);if(!a)return i;let l=function(e,t,r){let i=Math.min(t.line,r.line),s=Math.max(t.line,r.line),o=[];if(t.off>Mn||r.off>Mn||t.col<0||r.col<0){let a=Math.min(t.off,r.off),l=Math.max(t.off,r.off);for(let t=i;t<=s;t++){let r=e.doc.line(t);r.length<=l&&o.push(n.EditorSelection.range(r.from+a,r.to+l))}}else{let a=Math.min(t.col,r.col),l=Math.max(t.col,r.col);for(let t=i;t<=s;t++){let r=e.doc.line(t),i=n.findColumn(r.text,a,e.tabSize,!0);if(i<0)o.push(n.EditorSelection.cursor(r.to));else{let t=n.findColumn(r.text,l,e.tabSize);o.push(n.EditorSelection.range(r.from+i,r.from+t))}}}return o}(e.state,r,a);return l.length?o?n.EditorSelection.create(l.concat(i.ranges)):n.EditorSelection.create(l):i}}:null}(e,r):null))},t.repositionTooltips=function(e){let t=e.plugin(Yn);t&&t.maybeMeasure()},t.runScopeHandlers=function(e,t,r){return an(nn(e.state),t,e,r)},t.scrollPastEnd=function(){return[Nn,Ke.of((e=>{var t;return(null===(t=e.plugin(Nn))||void 0===t?void 0:t.attrs)||null}))]},t.showPanel=ui,t.showTooltip=Hn,t.tooltips=function(e={}){return Vn.of(e)}},2696:(e,t)=>{"use strict";const r=1024;let n=0;class i{constructor(e,t){this.from=e,this.to=t}}class s{constructor(e={}){this.id=n++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=l.match(e)),t=>{let r=e(t);return void 0===r?null:[this,r]}}}s.closedBy=new s({deserialize:e=>e.split(" ")}),s.openedBy=new s({deserialize:e=>e.split(" ")}),s.group=new s({deserialize:e=>e.split(" ")}),s.isolate=new s({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),s.contextHash=new s({perNode:!0}),s.lookAhead=new s({perNode:!0}),s.mounted=new s({perNode:!0});class o{constructor(e,t,r){this.tree=e,this.overlay=t,this.parser=r}static get(e){return e&&e.props&&e.props[s.mounted.id]}}const a=Object.create(null);class l{constructor(e,t,r,n=0){this.name=e,this.props=t,this.id=r,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):a,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),n=new l(e.name||"",t,e.id,r);if(e.props)for(let r of e.props)if(Array.isArray(r)||(r=r(n)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}return n}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(s.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let r in e)for(let n of r.split(" "))t[n]=e[r];return e=>{for(let r=e.prop(s.group),n=-1;n<(r?r.length:0);n++){let i=t[n<0?e.name:r[n]];if(i)return i}}}}l.none=new l("",Object.create(null),0,8);class u{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let r of this.types){let n=null;for(let t of e){let e=t(r);e&&(n||(n=Object.assign({},r.props)),n[e[0].id]=e[1])}t.push(n?new l(r.name,n,r.id,r.flags):r)}return new u(t)}}const c=new WeakMap,h=new WeakMap;var p;t.IterMode=void 0,(p=t.IterMode||(t.IterMode={}))[p.ExcludeBuffers=1]="ExcludeBuffers",p[p.IncludeAnonymous=2]="IncludeAnonymous",p[p.IgnoreMounts=4]="IgnoreMounts",p[p.IgnoreOverlays=8]="IgnoreOverlays";class d{constructor(e,t,r,n,i){if(this.type=e,this.children=t,this.positions=r,this.length=n,this.props=null,i&&i.length){this.props=Object.create(null);for(let[e,t]of i)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=o.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let r=e.toString();r&&(t&&(t+=","),t+=r)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new E(this.topNode,e)}cursorAt(e,t=0,r=0){let n=c.get(this)||this.topNode,i=new E(n);return i.moveTo(e,t),c.set(this,i._tree),i}get topNode(){return new x(this,0,0,null)}resolve(e,t=0){let r=y(c.get(this)||this.topNode,e,t,!1);return c.set(this,r),r}resolveInner(e,t=0){let r=y(h.get(this)||this.topNode,e,t,!0);return h.set(this,r),r}resolveStack(e,t=0){return function(e,t,r){let n=e.resolveInner(t,r),i=null;for(let e=n instanceof x?n:n.context.parent;e;e=e.parent)if(e.index<0){let s=e.parent;(i||(i=[n])).push(s.resolve(t,r)),e=s}else{let s=o.get(e.tree);if(s&&s.overlay&&s.overlay[0].from<=t&&s.overlay[s.overlay.length-1].to>=t){let o=new x(s.tree,s.overlay[0].from+e.from,-1,e);(i||(i=[n])).push(y(o,t,r,!1))}}return i?S(i):n}(this,e,t)}iterate(e){let{enter:r,leave:n,from:i=0,to:s=this.length}=e,o=e.mode||0,a=(o&t.IterMode.IncludeAnonymous)>0;for(let e=this.cursor(o|t.IterMode.IncludeAnonymous);;){let t=!1;if(e.from<=s&&e.to>=i&&(!a&&e.type.isAnonymous||!1!==r(e))){if(e.firstChild())continue;t=!0}for(;t&&n&&(a||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;t=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:A(l.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,r)=>new d(this.type,e,t,r,this.propValues)),e.makeTree||((e,t,r)=>new d(l.none,e,t,r)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:i,maxBufferLength:o=r,reused:a=[],minRepeatType:l=i.types.length}=e,u=Array.isArray(n)?new f(n,n.length):n,c=i.types,h=0,p=0;function g(e,t,r,n,f,v){let{id:w,start:D,end:S,size:k}=u,E=p;for(;k<0;){if(u.next(),-1==k){let t=a[w];return r.push(t),void n.push(D-e)}if(-3==k)return void(h=w);if(-4==k)return void(p=w);throw new RangeError(`Unrecognized record size: ${k}`)}let C,T,P=c[w],F=D-e;if(S-D<=o&&(T=function(e,t){let r=u.fork(),n=0,i=0,s=0,a=r.end-o,c={size:0,start:0,skip:0};e:for(let o=r.pos-e;r.pos>o;){let e=r.size;if(r.id==t&&e>=0){c.size=n,c.start=i,c.skip=s,s+=4,n+=4,r.next();continue}let u=r.pos-e;if(e<0||u<o||r.start<a)break;let h=r.id>=l?4:0,p=r.start;for(r.next();r.pos>u;){if(r.size<0){if(-3!=r.size)break e;h+=4}else r.id>=l&&(h+=4);r.next()}i=p,n+=e,s+=h}return(t<0||n==e)&&(c.size=n,c.start=i,c.skip=s),c.size>4?c:void 0}(u.pos-t,f))){let t=new Uint16Array(T.size-T.skip),r=u.pos-T.size,n=t.length;for(;u.pos>r;)n=b(T.start,t,n);C=new m(t,S-T.start,i),F=T.start-e}else{let e=u.pos-k;u.next();let t=[],r=[],n=w>=l?w:-1,i=0,a=S;for(;u.pos>e;)n>=0&&u.id==n&&u.size>=0?(u.end<=a-o&&(O(t,r,D,i,u.end,a,n,E),i=t.length,a=u.end),u.next()):v>2500?y(D,e,t,r):g(D,e,t,r,n,v+1);if(n>=0&&i>0&&i<t.length&&O(t,r,D,i,D,a,n,E),t.reverse(),r.reverse(),n>-1&&i>0){let e=function(e){return(t,r,n)=>{let i,o,a=0,l=t.length-1;if(l>=0&&(i=t[l])instanceof d){if(!l&&i.type==e&&i.length==n)return i;(o=i.prop(s.lookAhead))&&(a=r[l]+i.length+o)}return x(e,t,r,n,a)}}(P);C=A(P,t,r,0,t.length,0,S-D,e,e)}else C=x(P,t,r,S-D,E-S)}r.push(C),n.push(F)}function y(e,t,r,n){let s=[],a=0,l=-1;for(;u.pos>t;){let{id:e,start:t,end:r,size:n}=u;if(n>4)u.next();else{if(l>-1&&t<l)break;l<0&&(l=r-o),s.push(e,t,r),a++,u.next()}}if(a){let t=new Uint16Array(4*a),o=s[s.length-2];for(let e=s.length-3,r=0;e>=0;e-=3)t[r++]=s[e],t[r++]=s[e+1]-o,t[r++]=s[e+2]-o,t[r++]=r;r.push(new m(t,s[2]-o,i)),n.push(o-e)}}function O(e,t,r,n,s,o,a,l){let u=[],c=[];for(;e.length>n;)u.push(e.pop()),c.push(t.pop()+r-s);e.push(x(i.types[a],u,c,o-s,l-o)),t.push(s-r)}function x(e,t,r,n,i=0,o){if(h){let e=[s.contextHash,h];o=o?[e].concat(o):[e]}if(i>25){let e=[s.lookAhead,i];o=o?[e].concat(o):[e]}return new d(e,t,r,n,o)}function b(e,t,r){let{id:n,start:i,end:s,size:o}=u;if(u.next(),o>=0&&n<l){let a=r;if(o>4){let n=u.pos-(o-4);for(;u.pos>n;)r=b(e,t,r)}t[--r]=a,t[--r]=s-e,t[--r]=i-e,t[--r]=n}else-3==o?h=n:-4==o&&(p=n);return r}let v=[],w=[];for(;u.pos>0;)g(e.start||0,e.bufferStart||0,v,w,-1,0);let D=null!==(t=e.length)&&void 0!==t?t:v.length?w[0]+v[0].length:0;return new d(c[e.topID],v.reverse(),w.reverse(),D)}(e)}}d.empty=new d(l.none,[],[],0);class f{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new f(this.buffer,this.index)}}class m{constructor(e,t,r){this.buffer=e,this.length=t,this.set=r}get type(){return l.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],r=this.buffer[e+3],n=this.set.types[t],i=n.name;if(/\W/.test(i)&&!n.isError&&(i=JSON.stringify(i)),r==(e+=4))return i;let s=[];for(;e<r;)s.push(this.childString(e)),e=this.buffer[e+3];return i+"("+s.join(",")+")"}findChild(e,t,r,n,i){let{buffer:s}=this,o=-1;for(let a=e;a!=t&&!(g(i,n,s[a+1],s[a+2])&&(o=a,r>0));a=s[a+3]);return o}slice(e,t,r){let n=this.buffer,i=new Uint16Array(t-e),s=0;for(let o=e,a=0;o<t;){i[a++]=n[o++],i[a++]=n[o++]-r;let t=i[a++]=n[o++]-r;i[a++]=n[o++]-e,s=Math.max(s,t)}return new m(i,s,this.set)}}function g(e,t,r,n){switch(e){case-2:return r<t;case-1:return n>=t&&r<t;case 0:return r<t&&n>t;case 1:return r<=t&&n>t;case 2:return n>t;case 4:return!0}}function y(e,r,n,i){for(var s;e.from==e.to||(n<1?e.from>=r:e.from>r)||(n>-1?e.to<=r:e.to<r);){let t=!i&&e instanceof x&&e.index<0?null:e.parent;if(!t)return e;e=t}let o=i?0:t.IterMode.IgnoreOverlays;if(i)for(let t=e,i=t.parent;i;t=i,i=t.parent)t instanceof x&&t.index<0&&(null===(s=i.enter(r,n,o))||void 0===s?void 0:s.from)!=t.from&&(e=i);for(;;){let t=e.enter(r,n,o);if(!t)return e;e=t}}class O{cursor(e=0){return new E(this,e)}getChild(e,t=null,r=null){let n=b(this,e,t,r);return n.length?n[0]:null}getChildren(e,t=null,r=null){return b(this,e,t,r)}resolve(e,t=0){return y(this,e,t,!1)}resolveInner(e,t=0){return y(this,e,t,!0)}matchContext(e){return v(this,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),r=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(r=t,t=e.prevSibling):t=e}return r}get node(){return this}get next(){return this.parent}}class x extends O{constructor(e,t,r,n){super(),this._tree=e,this.from=t,this.index=r,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,r,n,i,s=0){for(let a=this;;){for(let{children:l,positions:u}=a._tree,c=r>0?l.length:-1;e!=c;e+=r){let c=l[e],h=u[e]+a.from;if(g(i,n,h,h+c.length))if(c instanceof m){if(s&t.IterMode.ExcludeBuffers)continue;let o=c.findChild(0,c.buffer.length,r,n-h,i);if(o>-1)return new D(new w(a,c,e,h),null,o)}else if(s&t.IterMode.IncludeAnonymous||!c.type.isAnonymous||C(c)){let l;if(!(s&t.IterMode.IgnoreMounts)&&(l=o.get(c))&&!l.overlay)return new x(l.tree,h,e,a);let u=new x(c,h,e,a);return s&t.IterMode.IncludeAnonymous||!u.type.isAnonymous?u:u.nextChild(r<0?c.children.length-1:0,r,n,i)}}if(s&t.IterMode.IncludeAnonymous||!a.type.isAnonymous)return null;if(e=a.index>=0?a.index+r:r<0?-1:a._parent._tree.children.length,a=a._parent,!a)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,r,n=0){let i;if(!(n&t.IterMode.IgnoreOverlays)&&(i=o.get(this._tree))&&i.overlay){let t=e-this.from;for(let{from:e,to:n}of i.overlay)if((r>0?e<=t:e<t)&&(r<0?n>=t:n>t))return new x(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,r,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function b(e,t,r,n){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(null!=r)for(let e=!1;!e;)if(e=i.type.is(r),!i.nextSibling())return s;for(;;){if(null!=n&&i.type.is(n))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return null==n?s:[]}}function v(e,t,r=t.length-1){for(let n=e.parent;r>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[r]&&t[r]!=n.name)return!1;r--}}return!0}class w{constructor(e,t,r,n){this.parent=e,this.buffer=t,this.index=r,this.start=n}}class D extends O{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,r){super(),this.context=e,this._parent=t,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,t,r){let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,r);return i<0?null:new D(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,r,n=0){if(n&t.IterMode.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],r>0?1:-1,e-this.context.start,r);return s<0?null:new D(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new D(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new D(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:r}=this.context,n=this.index+4,i=r.buffer[this.index+3];if(i>n){let s=r.buffer[this.index+1];e.push(r.slice(n,i,s)),t.push(0)}return new d(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function S(e){if(!e.length)return null;let t=0,r=e[0];for(let n=1;n<e.length;n++){let i=e[n];(i.from>r.from||i.to<r.to)&&(r=i,t=n)}let n=r instanceof x&&r.index<0?null:r.parent,i=e.slice();return n?i[t]=n:i.splice(t,1),new k(i,r)}class k{constructor(e,t){this.heads=e,this.node=t}get next(){return S(this.heads)}}class E{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof x)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:r,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=r+n.buffer[e+1],this.to=r+n.buffer[e+2],!0}yield(e){return!!e&&(e instanceof x?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,r,this.mode));let{buffer:n}=this.buffer,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,r);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,r,n=this.mode){return this.buffer?!(n&t.IterMode.ExcludeBuffers)&&this.enterChild(1,e,r):this.yield(this._tree.enter(e,r,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&t.IterMode.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&t.IterMode.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,r=this.stack.length-1;if(e<0){let e=r<0?0:this.stack[r]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(r<0?t.buffer.length:t.buffer[this.stack[r]+3]))return this.yieldBuf(e)}return r<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let r,n,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(i.buffer.buffer[e+3]<this.index)return!1;({index:r,parent:n}=i)}else({index:r,_parent:n}=this._tree);for(;n;({index:r,_parent:n}=n))if(r>-1)for(let i=r+e,s=e<0?-1:n._tree.children.length;i!=s;i+=e){let e=n._tree.children[i];if(this.mode&t.IterMode.IncludeAnonymous||e instanceof m||!e.type.isAnonymous||C(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,r=0;if(e&&e.context==this.buffer)e:for(let n=this.index,i=this.stack.length;i>=0;){for(let s=e;s;s=s._parent)if(s.index==n){if(n==this.index)return s;t=s,r=i+1;break e}n=this.stack[--i]}for(let e=r;e<this.stack.length;e++)t=new D(this.buffer,t,this.stack[e]);return this.bufferNode=new D(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let r=0;;){let n=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){r++;continue}this.type.isAnonymous||(n=!0)}for(;n&&t&&t(this),n=this.type.isAnonymous,!this.nextSibling();){if(!r)return;this.parent(),r--,n=!0}}}matchContext(e){if(!this.buffer)return v(this.node,e);let{buffer:t}=this.buffer,{types:r}=t.set;for(let n=e.length-1,i=this.stack.length-1;n>=0;i--){if(i<0)return v(this.node,e,n);let s=r[t.buffer[this.stack[i]]];if(!s.isAnonymous){if(e[n]&&e[n]!=s.name)return!1;n--}}return!0}}function C(e){return e.children.some((e=>e instanceof m||!e.type.isAnonymous||C(e)))}const T=new WeakMap;function P(e,t){if(!e.isAnonymous||t instanceof m||t.type!=e)return 1;let r=T.get(t);if(null==r){r=1;for(let n of t.children){if(n.type!=e||!(n instanceof d)){r=1;break}r+=P(e,n)}T.set(t,r)}return r}function A(e,t,r,n,i,s,o,a,l){let u=0;for(let r=n;r<i;r++)u+=P(e,t[r]);let c=Math.ceil(1.5*u/8),h=[],p=[];return function t(r,n,i,o,a){for(let u=i;u<o;){let i=u,d=n[u],f=P(e,r[u]);for(u++;u<o;u++){let t=P(e,r[u]);if(f+t>=c)break;f+=t}if(u==i+1){if(f>c){let e=r[i];t(e.children,e.positions,0,e.children.length,n[i]+a);continue}h.push(r[i])}else{let t=n[u-1]+r[u-1].length-d;h.push(A(e,r,n,i,u,d,t,null,l))}p.push(d+a-s)}}(t,r,n,i,0),(a||l)(h,p,o)}class F{constructor(e,t,r,n,i=!1,s=!1){this.from=e,this.to=t,this.tree=r,this.offset=n,this.open=(i?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],r=!1){let n=[new F(0,e.length,e,0,!1,r)];for(let r of t)r.to>e.length&&n.push(r);return n}static applyChanges(e,t,r=128){if(!t.length)return e;let n=[],i=1,s=e.length?e[0]:null;for(let o=0,a=0,l=0;;o++){let u=o<t.length?t[o]:null,c=u?u.fromA:1e9;if(c-a>=r)for(;s&&s.from<c;){let t=s;if(a>=t.from||c<=t.to||l){let e=Math.max(t.from,a)-l,r=Math.min(t.to,c)-l;t=e>=r?null:new F(e,r,t.tree,t.offset+l,o>0,!!u)}if(t&&n.push(t),s.to>c)break;s=i<e.length?e[i++]:null}if(!u)break;a=u.toA,l=u.toA-u.toB}return n}}class _{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}class I{constructor(e,t,r,n,i){this.parser=e,this.parse=t,this.overlay=r,this.target=n,this.from=i}}function B(e){if(!e.length||e.some((e=>e.from>=e.to)))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class N{constructor(e,t,r,n,i,s,o){this.parser=e,this.predicate=t,this.mounts=r,this.index=n,this.start=i,this.target=s,this.prev=o,this.depth=0,this.ranges=[]}}const $=new s({perNode:!0});class Q{constructor(e,t,r,n,i){this.nest=t,this.input=r,this.fragments=n,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new d(e.type,e.children,e.positions,e.length,e.propValues.concat([[$,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let r=Object.assign(Object.create(null),e.target.props);r[s.mounted.id]=new o(t,e.overlay,e.parser),e.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new Z(this.fragments),r=null,n=null,s=new E(new x(this.baseTree,this.ranges[0].from,0,null),t.IterMode.IncludeAnonymous|t.IterMode.IgnoreMounts);e:for(let t,o;;){let a,l=!0;if(null!=this.stoppedAt&&s.from>=this.stoppedAt)l=!1;else if(e.hasNode(s)){if(r){let e=r.mounts.find((e=>e.frag.from<=s.from&&e.frag.to>=s.to&&e.mount.overlay));if(e)for(let t of e.mount.overlay){let n=t.from+e.pos,i=t.to+e.pos;n>=s.from&&i<=s.to&&!r.ranges.some((e=>e.from<i&&e.to>n))&&r.ranges.push({from:n,to:i})}}l=!1}else if(n&&(o=L(n.ranges,s.from,s.to)))l=2!=o;else if(!s.type.isAnonymous&&(t=this.nest(s,this.input))&&(s.from<s.to||!t.overlay)){s.tree||R(s);let o=e.findMounts(s.from,t.parser);if("function"==typeof t.overlay)r=new N(t.parser,t.overlay,o,this.inner.length,s.from,s.tree,r);else{let e=q(this.ranges,t.overlay||(s.from<s.to?[new i(s.from,s.to)]:[]));e.length&&B(e),!e.length&&t.overlay||this.inner.push(new I(t.parser,e.length?t.parser.startParse(this.input,X(o,e),e):t.parser.startParse(""),t.overlay?t.overlay.map((e=>new i(e.from-s.from,e.to-s.from))):null,s.tree,e.length?e[0].from:s.from)),t.overlay?e.length&&(n={ranges:e,depth:0,prev:n}):l=!1}}else r&&(a=r.predicate(s))&&(!0===a&&(a=new i(s.from,s.to)),a.from<a.to&&r.ranges.push(a));if(l&&s.firstChild())r&&r.depth++,n&&n.depth++;else for(;!s.nextSibling();){if(!s.parent())break e;if(r&&! --r.depth){let e=q(this.ranges,r.ranges);e.length&&(B(e),this.inner.splice(r.index,0,new I(r.parser,r.parser.startParse(this.input,X(r.mounts,e),e),r.ranges.map((e=>new i(e.from-r.start,e.to-r.start))),r.target,e[0].from))),r=r.prev}n&&! --n.depth&&(n=n.prev)}}}}function L(e,t,r){for(let n of e){if(n.from>=r)break;if(n.to>t)return n.from<=t&&n.to>=r?2:1}return 0}function M(e,t,r,n,i,s){if(t<r){let o=e.buffer[t+1];n.push(e.slice(t,r,o)),i.push(o-s)}}function R(e){let{node:t}=e,r=[],n=t.context.buffer;do{r.push(e.index),e.parent()}while(!e.tree);let i=e.tree,s=i.children.indexOf(n),o=i.children[s],a=o.buffer,u=[s];i.children[s]=function e(n,i,s,l,c,h){let p=r[h],f=[],m=[];M(o,n,p,f,m,l);let g=a[p+1],y=a[p+2];u.push(f.length);let O=h?e(p+4,a[p+3],o.set.types[a[p]],g,y-g,h-1):t.toTree();return f.push(O),m.push(g-l),M(o,a[p+3],i,f,m,l),new d(s,f,m,c)}(0,a.length,l.none,0,o.length,r.length-1);for(let t of u){let r=e.tree.children[t],n=e.tree.positions[t];e.yield(new x(r,n+e.from,t,e._tree))}}class j{constructor(e,r){this.offset=r,this.done=!1,this.cursor=e.cursor(t.IterMode.IncludeAnonymous|t.IterMode.IgnoreMounts)}moveTo(e){let{cursor:r}=this,n=e-this.offset;for(;!this.done&&r.from<n;)r.to>=e&&r.enter(n,1,t.IterMode.IgnoreOverlays|t.IterMode.ExcludeBuffers)||r.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(!(t.children.length&&0==t.positions[0]&&t.children[0]instanceof d))break;t=t.children[0]}return!1}}class Z{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let r=this.curFrag=e[0];this.curTo=null!==(t=r.tree.prop($))&&void 0!==t?t:r.to,this.inner=new j(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop($))&&void 0!==e?e:t.to,this.inner=new j(t.tree,-t.offset)}}findMounts(e,t){var r;let n=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let i=null===(r=e.tree)||void 0===r?void 0:r.prop(s.mounted);if(i&&i.parser==t)for(let t=this.fragI;t<this.fragments.length;t++){let r=this.fragments[t];if(r.from>=e.to)break;r.tree==this.curFrag.tree&&n.push({frag:r,pos:e.from-r.offset,mount:i})}}}return n}}function q(e,t){let r=null,n=t;for(let s=1,o=0;s<e.length;s++){let a=e[s-1].to,l=e[s].from;for(;o<n.length;o++){let e=n[o];if(e.from>=l)break;e.to<=a||(r||(n=r=t.slice()),e.from<a?(r[o]=new i(e.from,a),e.to>l&&r.splice(o+1,0,new i(l,e.to))):e.to>l?r[o--]=new i(l,e.to):r.splice(o--,1))}}return n}function W(e,t,r,n){let s=0,o=0,a=!1,l=!1,u=-1e9,c=[];for(;;){let h=s==e.length?1e9:a?e[s].to:e[s].from,p=o==t.length?1e9:l?t[o].to:t[o].from;if(a!=l){let e=Math.max(u,r),t=Math.min(h,p,n);e<t&&c.push(new i(e,t))}if(u=Math.min(h,p),1e9==u)break;h==u&&(a?(a=!1,s++):a=!0),p==u&&(l?(l=!1,o++):l=!0)}return c}function X(e,t){let r=[];for(let{pos:n,mount:s,frag:o}of e){let e=n+(s.overlay?s.overlay[0].from:0),a=e+s.tree.length,l=Math.max(o.from,e),u=Math.min(o.to,a);if(s.overlay){let a=W(t,s.overlay.map((e=>new i(e.from+n,e.to+n))),l,u);for(let t=0,n=l;;t++){let i=t==a.length,l=i?u:a[t].from;if(l>n&&r.push(new F(n,l,s.tree,-e,o.from>=n||o.openStart,o.to<=l||o.openEnd)),i)break;n=a[t].to}}else r.push(new F(l,u,s.tree,-e,o.from>=e||o.openStart,o.to<=a||o.openEnd))}return r}t.DefaultBufferLength=r,t.MountedTree=o,t.NodeProp=s,t.NodeSet=u,t.NodeType=l,t.NodeWeakMap=class{constructor(){this.map=new WeakMap}setBuffer(e,t,r){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(t,r)}getBuffer(e,t){let r=this.map.get(e);return r&&r.get(t)}set(e,t){e instanceof D?this.setBuffer(e.context.buffer,e.index,t):e instanceof x&&this.map.set(e.tree,t)}get(e){return e instanceof D?this.getBuffer(e.context.buffer,e.index):e instanceof x?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}},t.Parser=class{startParse(e,t,r){return"string"==typeof e&&(e=new _(e)),r=r?r.length?r.map((e=>new i(e.from,e.to))):[new i(0,0)]:[new i(0,e.length)],this.createParse(e,t||[],r)}parse(e,t,r){let n=this.startParse(e,t,r);for(;;){let e=n.advance();if(e)return e}}},t.Tree=d,t.TreeBuffer=m,t.TreeCursor=E,t.TreeFragment=F,t.parseMixed=function(e){return(t,r,n,i)=>new Q(t,e,r,n,i)}},4628:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1827),i=r(7359);const s=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function o(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}const a=new n.ExternalTokenizer(((e,t)=>{for(let n=!1,i=0,s=0;;s++){let{next:a}=e;if(o(a)||45==a||95==a||n&&(r=a)>=48&&r<=57)!n&&(45!=a||s>0)&&(n=!0),i===s&&45==a&&i++,e.advance();else{if(92!=a||10==e.peek(1)){n&&e.acceptToken(40==a?100:2==i&&t.canShift(2)?2:101);break}e.advance(),e.next>-1&&e.advance(),n=!0}}var r})),l=new n.ExternalTokenizer((e=>{if(s.includes(e.peek(-1))){let{next:t}=e;(o(t)||95==t||35==t||46==t||91==t||58==t&&o(e.peek(1))||45==t||38==t)&&e.acceptToken(99)}})),u=new n.ExternalTokenizer((e=>{if(!s.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),o(t)){do{e.advance()}while(o(e.next));e.acceptToken(1)}}})),c=i.styleTags({"AtKeyword import charset namespace keyframes media supports":i.tags.definitionKeyword,"from to selector":i.tags.keyword,NamespaceName:i.tags.namespace,KeyframeName:i.tags.labelName,KeyframeRangeName:i.tags.operatorKeyword,TagName:i.tags.tagName,ClassName:i.tags.className,PseudoClassName:i.tags.constant(i.tags.className),IdName:i.tags.labelName,"FeatureName PropertyName":i.tags.propertyName,AttributeName:i.tags.attributeName,NumberLiteral:i.tags.number,KeywordQuery:i.tags.keyword,UnaryQueryOp:i.tags.operatorKeyword,"CallTag ValueName":i.tags.atom,VariableName:i.tags.variableName,Callee:i.tags.operatorKeyword,Unit:i.tags.unit,"UniversalSelector NestingSelector":i.tags.definitionOperator,MatchOp:i.tags.compareOperator,"ChildOp SiblingOp, LogicOp":i.tags.logicOperator,BinOp:i.tags.arithmeticOperator,Important:i.tags.modifier,Comment:i.tags.blockComment,ColorLiteral:i.tags.color,"ParenthesizedContent StringLiteral":i.tags.string,":":i.tags.punctuation,"PseudoOp #":i.tags.derefOperator,"; ,":i.tags.separator,"( )":i.tags.paren,"[ ]":i.tags.squareBracket,"{ }":i.tags.brace}),h={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},p={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},d={__proto__:null,not:132,only:132},f=n.LRParser.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#CsO+ZQtO,5:ROOQO'#Cx'#CxO)lQWO'#CwO+oQWO'#CyO+tQ[O'#DOOOQS'#Ep'#EpOOQO'#Dj'#DjO+|Q[O'#DqO,[QWO'#EtO&`Q[O'#DoO,jQWO'#DrOOQO'#Eu'#EuO)OQWO,5:`O,oQpO,5:bOOQS'#Dz'#DzO,wQWO,5:dO,|Q[O,5:dOOQO'#D}'#D}O-UQWO,5:gO-ZQWO,5:mO-cQWO,5:oOOQS-E8U-E8UO${QdO,59}O-kQ[O'#E^O-xQWO,5;_O-xQWO,5;_POOO'#EV'#EVP.TO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.zQXO,5:vOOQO-E8Y-E8YOOQS1G.g1G.gOOQP1G.n1G.nO)gQWO1G.nO)lQWO1G.nOOQP1G/Z1G/ZO/XQ`O1G/^O/rQXO1G/aO0YQXO1G/cO0pQXO1G/dO1WQWO,59|O1]Q[O'#DSO1dQdO'#CoOOQP1G/^1G/^O${QdO1G/^O1kQpO,59]OOQS,59_,59_O${QdO,59aO1sQWO1G/mOOQS,59c,59cO1xQ!bO,59eOOQS'#DP'#DPOOQS'#EY'#EYO2QQ[O,59jOOQS,59j,59jO2YQWO'#DjO2eQWO,5:VO2jQWO,5:]O&`Q[O,5:XO&`Q[O'#E_O2rQWO,5;`O2}QWO,5:ZO(aQ[O,5:^OOQS1G/z1G/zOOQS1G/|1G/|OOQS1G0O1G0OO3`QWO1G0OO3eQdO'#EOOOQS1G0R1G0ROOQS1G0X1G0XOOQS1G0Z1G0ZO3pQtO1G/iOOQO,5:x,5:xO4WQ[O,5:xOOQO-E8[-E8[O4eQWO1G0yPOOO-E8T-E8TPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$x7+$xO${QdO7+$xOOQS1G/h1G/hO4pQXO'#ErO4wQWO,59nO4|QtO'#EXO5tQdO'#EoO6OQWO,59ZO6TQpO7+$xOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%X7+%XO6]QWO1G/POOQS-E8W-E8WOOQS1G/U1G/UO${QdO1G/qOOQO1G/w1G/wOOQO1G/s1G/sO6bQWO,5:yOOQO-E8]-E8]O6pQXO1G/xOOQS7+%j7+%jO6wQYO'#CsOOQO'#EQ'#EQO7SQ`O'#EPOOQO'#EP'#EPO7_QWO'#E`O7gQdO,5:jOOQS,5:j,5:jO7rQtO'#E]O${QdO'#E]O8sQdO7+%TOOQO7+%T7+%TOOQO1G0d1G0dO9WQpO<<HdO9`QWO,5;^OOQP1G/Y1G/YOOQS-E8V-E8VO${QdO'#EZO9hQWO,5;ZOOQT1G.u1G.uOOQP<<Hd<<HdOOQS7+$k7+$kO9pQdO7+%]OOQO7+%d7+%dOOQO,5:k,5:kO3hQdO'#EaO7_QWO,5:zOOQS,5:z,5:zOOQS-E8^-E8^OOQS1G0U1G0UO9wQtO,5:wOOQS-E8Z-E8ZOOQO<<Ho<<HoOOQPAN>OAN>OO:xQdO,5:uOOQO-E8X-E8XOOQO<<Hw<<HwOOQO,5:{,5:{OOQO-E8_-E8_OOQS1G0f1G0f",stateData:";[~O#ZOS#[QQ~OUYOXYO]VO^VOqXOxWO![aO!]ZO!i[O!k]O!m^O!p_O!v`O#XRO#bTO~OQfOUYOXYO]VO^VOqXOxWO![aO!]ZO!i[O!k]O!m^O!p_O!v`O#XeO#bTO~O#U#gP~P!ZO#[jO~O#XlO~O]qO^qOqsOtoOxrO!OtO!RvO#VuO#bnO~O!TwO~P#pO`}O#WzO#XyO~O#X!OO~O#X!QO~OQ![Ob!TOf![Oh![On!YOq!ZO#W!WO#X!SO#e!UO~Ob!^O!d!`O!g!aO#X!]O!T#hP~Oh!fOn!YO#X!eO~Oh!hO#X!hO~Ob!^O!d!`O!g!aO#X!]O~O!Y#hP~P%jO]WX]!WX^WXqWXtWXxWX!OWX!RWX!TWX#VWX#bWX~O]!mO~O!Y!nO#U#gX!S#gX~O#U#gX!S#gX~P!ZO#]!qO#^!qO#_!sO~OUYOXYO]VO^VOqXOxWO#XRO#bTO~OtoO!TwO~O`!zO#WzO#XyO~O!S#gP~P!ZOb#RO~Ob#SO~Op#TO|#UO~OP#WObgXjgX!YgX!dgX!ggX#XgXagXQgXfgXhgXngXqgXtgX!XgX#UgX#WgX#egXpgX!SgX~Ob!^Oj#XO!d!`O!g!aO#X!]O!Y#hP~Ob#[O~Op#`O#X#]O~Ob!^O!d!`O!g!aO#X#aO~Ot#eO!b#dO!T#hX!Y#hX~Ob#hO~Oj#XO!Y#jO~O!Y#kO~Oh#lOn!YO~O!T#mO~O!TwO!b#dO~O!TwO!Y#pO~O!Y#QX#U#QX!S#QX~P!ZO!Y!nO#U#ga!S#ga~O#]!qO#^!qO#_#wO~O]qO^qOqsOxrO!OtO!RvO#VuO#bnO~Ot#Oa!T#Oaa#Oa~P.`Op#yO|#zO~O]qO^qOqsOxrO#bnO~Ot}i!O}i!R}i!T}i#V}ia}i~P/aOt!Pi!O!Pi!R!Pi!T!Pi#V!Pia!Pi~P/aOt!Qi!O!Qi!R!Qi!T!Qi#V!Qia!Qi~P/aO!S#{O~Oa#fP~P(aOa#cP~P${Oa$SOj#XO~O!Y$UO~Oh$VOo$VO~Op$XO#X#]O~O]!`Xa!^X!b!^X~O]$YO~Oa$ZO!b#dO~Ot#eO!T#ha!Y#ha~O!b#dOt!ca!T!ca!Y!caa!ca~O!Y$`O~O!S$gO#X$bO#e$aO~Oj#XOt$iO!X$kO!Y!Vi#U!Vi!S!Vi~P${O!Y#Qa#U#Qa!S#Qa~P!ZO!Y!nO#U#gi!S#gi~Oa#fX~P#pOa$oO~Oj#XOQ!{Xa!{Xb!{Xf!{Xh!{Xn!{Xq!{Xt!{X#W!{X#X!{X#e!{X~Ot$qOa#cX~P${Oa$sO~Oj#XOp$tO~Oa$uO~O!b#dOt#Ra!T#Ra!Y#Ra~Oa$wO~P.`OP#WOtgX!TgX~O#e$aOt!sX!T!sX~Ot$yO!TwO~O!S$}O#X$bO#e$aO~Oj#XOQ#PXb#PXf#PXh#PXn#PXq#PXt#PX!X#PX!Y#PX#U#PX#W#PX#X#PX#e#PX!S#PX~Ot$iO!X%QO!Y!Vq#U!Vq!S!Vq~P${Oj#XOp%RO~OtoOa#fa~Ot$qOa#ca~Oa%UO~P${Oj#XOQ#Pab#Paf#Pah#Pan#Paq#Pat#Pa!X#Pa!Y#Pa#U#Pa#W#Pa#X#Pa#e#Pa!S#Pa~Oa!}at!}a~P${O#Zo#[#ej!R#e~",goto:"-g#jPPP#kP#nP#w$WP#w$g#wPP$mPPP$s$|$|P%`P$|P$|%z&^PPPP$|&vP&z'Q#wP'W#w'^P#wP#w#wPPP'd'y(WPP#nPP(_(_(i(_P(_P(_(_P#nP#nP#nP(l#nP(o(r(u(|#nP#nP)R)X)h)v)|*S*^*d*n*t*zPPPPPPPPPP+Q+ZP+v+yP,o,r,x-RRkQ_bOPdhw!n#skYOPdhotuvw!n#R#h#skSOPdhotuvw!n#R#h#sQmTR!tnQ{VR!xqQ!x}Q#Z!XR#x!zq![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%Sp![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%SU$d#m$f$yR$x$cq!XZ]!T!m#S#U#X#q#z$P$Y$i$j$q$v%Sp![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%SQ!f^R#l!gT#^!Z#_Q|VR!yqQ!x|R#x!yQ!PWR!{rQ!RXR!|sQxUQ!wpQ#i!cQ#o!jQ#p!kQ${$eR%X$zSgPwQ!phQ#r!nR$l#sZfPhw!n#sa!b[`a!V!^!`#d#eR#b!^R!g^R!i_R#n!iS$e#m$fR%V$yV$c#m$f$yQ!rjR#v!rQdOShPwU!ldh#sR#s!nQ$P#SU$p$P$v%SQ$v$YR%S$qQ#_!ZR$W#_Q$r$PR%T$rQpUS!vp$nR$n#|Q$j#qR%P$jQ!ogS#t!o#uR#u!pQ#f!_R$^#fQ$f#mR$|$fQ$z$eR%W$z_cOPdhw!n#s^UOPdhw!n#sQ!uoQ!}tQ#OuQ#PvQ#|#RR$_#hR$Q#SQ!VZQ!d]Q#V!TQ#q!m[$O#S$P$Y$q$v%SQ$R#UQ$T#XS$h#q$jQ$m#zR%O$iR#}#RQiPR#QwQ!c[Q!kaR#Y!VU!_[a!VQ!j`Q#c!^Q#g!`Q$[#dR$]#e",nodeNames:"⚠ Unit VariableName Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName , PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtRule Styles",maxTerm:117,nodeProps:[["isolate",-2,3,24,""],["openedBy",17,"(",32,"[",50,"{"],["closedBy",18,")",33,"]",51,"}"]],propSources:[c],skippedNodes:[0,3,87],repeatNodeCount:11,tokenData:"J^~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Ab![!]B]!]!^CX!^!_$}!_!`Cj!`!aC{!a!b$}!b!cDw!c!}$}!}#OFa#O#P$}#P#QFr#Q#R6d#R#T$}#T#UGT#U#c$}#c#dHf#d#o$}#o#pH{#p#q6d#q#rI^#r#sIo#s#y$}#y#z%u#z$f$}$f$g%u$g#BY$}#BY#BZ%u#BZ$IS$}$IS$I_%u$I_$I|$}$I|$JO%u$JO$JT$}$JT$JU%u$JU$KV$}$KV$KW%u$KW&FU$}&FU&FV%u&FV;'S$};'S;=`JW<%lO$}`%QSOy%^z;'S%^;'S;=`%o<%lO%^`%cSo`Oy%^z;'S%^;'S;=`%o<%lO%^`%rP;=`<%l%^~%zh#Z~OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^~'mh#Z~o`OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^l)[UOy%^z#]%^#]#^)n#^;'S%^;'S;=`%o<%lO%^l)sUo`Oy%^z#a%^#a#b*V#b;'S%^;'S;=`%o<%lO%^l*[Uo`Oy%^z#d%^#d#e*n#e;'S%^;'S;=`%o<%lO%^l*sUo`Oy%^z#c%^#c#d+V#d;'S%^;'S;=`%o<%lO%^l+[Uo`Oy%^z#f%^#f#g+n#g;'S%^;'S;=`%o<%lO%^l+sUo`Oy%^z#h%^#h#i,V#i;'S%^;'S;=`%o<%lO%^l,[Uo`Oy%^z#T%^#T#U,n#U;'S%^;'S;=`%o<%lO%^l,sUo`Oy%^z#b%^#b#c-V#c;'S%^;'S;=`%o<%lO%^l-[Uo`Oy%^z#h%^#h#i-n#i;'S%^;'S;=`%o<%lO%^l-uS!X[o`Oy%^z;'S%^;'S;=`%o<%lO%^~.UWOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o<%lO.R~.sOh~~.vRO;'S.R;'S;=`/P;=`O.R~/SXOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o;=`<%l.R<%lO.R~/rP;=`<%l.Rn/zYxQOy%^z!Q%^!Q![0j![!c%^!c!i0j!i#T%^#T#Z0j#Z;'S%^;'S;=`%o<%lO%^l0oYo`Oy%^z!Q%^!Q![1_![!c%^!c!i1_!i#T%^#T#Z1_#Z;'S%^;'S;=`%o<%lO%^l1dYo`Oy%^z!Q%^!Q![2S![!c%^!c!i2S!i#T%^#T#Z2S#Z;'S%^;'S;=`%o<%lO%^l2ZYf[o`Oy%^z!Q%^!Q![2y![!c%^!c!i2y!i#T%^#T#Z2y#Z;'S%^;'S;=`%o<%lO%^l3QYf[o`Oy%^z!Q%^!Q![3p![!c%^!c!i3p!i#T%^#T#Z3p#Z;'S%^;'S;=`%o<%lO%^l3uYo`Oy%^z!Q%^!Q![4e![!c%^!c!i4e!i#T%^#T#Z4e#Z;'S%^;'S;=`%o<%lO%^l4lYf[o`Oy%^z!Q%^!Q![5[![!c%^!c!i5[!i#T%^#T#Z5[#Z;'S%^;'S;=`%o<%lO%^l5aYo`Oy%^z!Q%^!Q![6P![!c%^!c!i6P!i#T%^#T#Z6P#Z;'S%^;'S;=`%o<%lO%^l6WSf[o`Oy%^z;'S%^;'S;=`%o<%lO%^d6gUOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^d7QS|So`Oy%^z;'S%^;'S;=`%o<%lO%^b7cSXQOy%^z;'S%^;'S;=`%o<%lO%^~7rWOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W<%lO7o~8_RO;'S7o;'S;=`8h;=`O7o~8kXOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W;=`<%l7o<%lO7o~9ZP;=`<%l7on9cSb^Oy%^z;'S%^;'S;=`%o<%lO%^~9tOa~n9{UUQjWOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^n:fWjW!RQOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#e[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l<cYo`Oy%^z{%^{|=R|}%^}!O=R!O!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l=WUo`Oy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l=qUo`#e[Oy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l>[[o`#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSt^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#bQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#[~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Y^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS|SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!OQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[l,u,a,1,2,3,4,new n.LocalTokenGroup("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>h[e]||-1},{term:58,get:e=>p[e]||-1},{term:101,get:e=>d[e]||-1}],tokenPrec:1200});t.parser=f},7359:(e,t,r)=>{"use strict";var n=r(2696);let i=0;class s{constructor(e,t,r){this.set=e,this.base=t,this.modified=r,this.id=i++}static define(e){if(null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new s([],null,[]);if(t.set.push(t),e)for(let r of e.set)t.set.push(r);return t}static defineModifier(){let e=new a;return t=>t.modified.indexOf(e)>-1?t:a.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let o=0;class a{constructor(){this.instances=[],this.id=o++}static get(e,t){if(!t.length)return e;let r=t[0].instances.find((r=>{return r.base==e&&(n=t,i=r.modified,n.length==i.length&&n.every(((e,t)=>e==i[t])));var n,i}));if(r)return r;let n=[],i=new s(n,e,t);for(let e of t)e.instances.push(i);let o=function(e){let t=[[]];for(let r=0;r<e.length;r++)for(let n=0,i=t.length;n<i;n++)t.push(t[n].concat(e[r]));return t.sort(((e,t)=>t.length-e.length))}(t);for(let t of e.set)if(!t.modified.length)for(let e of o)n.push(a.get(t,e));return i}}const l=new n.NodeProp;class u{constructor(e,t,r,n){this.tags=e,this.mode=t,this.context=r,this.next=n}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function c(e,t){let r=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)r[e.id]=t.class;else r[t.tag.id]=t.class;let{scope:n,all:i=null}=t||{};return{style:e=>{let t=i;for(let n of e)for(let e of n.set){let n=r[e.id];if(n){t=t?t+" "+n:n;break}}return t},scope:n}}function h(e,t,r,n=0,i=e.length){let s=new p(n,Array.isArray(t)?t:[t],r);s.highlightRange(e.cursor(),n,i,"",s.highlighters),s.flush(i)}u.empty=new u([],2,null);class p{constructor(e,t,r){this.at=e,this.highlighters=t,this.span=r,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,r,i,s){let{type:o,from:a,to:l}=e;if(a>=r||l<=t)return;o.isTop&&(s=this.highlighters.filter((e=>!e.scope||e.scope(o))));let c=i,h=d(e)||u.empty,p=function(e,t){let r=null;for(let n of e){let e=n.style(t);e&&(r=r?r+" "+e:e)}return r}(s,h.tags);if(p&&(c&&(c+=" "),c+=p,1==h.mode&&(i+=(i?" ":"")+p)),this.startSpan(Math.max(t,a),c),h.opaque)return;let f=e.tree&&e.tree.prop(n.NodeProp.mounted);if(f&&f.overlay){let n=e.node.enter(f.overlay[0].from+a,1),o=this.highlighters.filter((e=>!e.scope||e.scope(f.tree.type))),u=e.firstChild();for(let h=0,p=a;;h++){let d=h<f.overlay.length?f.overlay[h]:null,m=d?d.from+a:l,g=Math.max(t,p),y=Math.min(r,m);if(g<y&&u)for(;e.from<y&&(this.highlightRange(e,g,y,i,s),this.startSpan(Math.min(y,e.to),c),!(e.to>=m)&&e.nextSibling()););if(!d||m>r)break;p=d.to+a,p>t&&(this.highlightRange(n.cursor(),Math.max(t,d.from+a),Math.min(r,p),"",o),this.startSpan(Math.min(r,p),c))}u&&e.parent()}else if(e.firstChild()){f&&(i="");do{if(!(e.to<=t)){if(e.from>=r)break;this.highlightRange(e,t,r,i,s),this.startSpan(Math.min(r,e.to),c)}}while(e.nextSibling());e.parent()}}}function d(e){let t=e.type.prop(l);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const f=s.define,m=f(),g=f(),y=f(g),O=f(g),x=f(),b=f(x),v=f(x),w=f(),D=f(w),S=f(),k=f(),E=f(),C=f(E),T=f(),P={comment:m,lineComment:f(m),blockComment:f(m),docComment:f(m),name:g,variableName:f(g),typeName:y,tagName:f(y),propertyName:O,attributeName:f(O),className:f(g),labelName:f(g),namespace:f(g),macroName:f(g),literal:x,string:b,docString:f(b),character:f(b),attributeValue:f(b),number:v,integer:f(v),float:f(v),bool:f(x),regexp:f(x),escape:f(x),color:f(x),url:f(x),keyword:S,self:f(S),null:f(S),atom:f(S),unit:f(S),modifier:f(S),operatorKeyword:f(S),controlKeyword:f(S),definitionKeyword:f(S),moduleKeyword:f(S),operator:k,derefOperator:f(k),arithmeticOperator:f(k),logicOperator:f(k),bitwiseOperator:f(k),compareOperator:f(k),updateOperator:f(k),definitionOperator:f(k),typeOperator:f(k),controlOperator:f(k),punctuation:E,separator:f(E),bracket:C,angleBracket:f(C),squareBracket:f(C),paren:f(C),brace:f(C),content:w,heading:D,heading1:f(D),heading2:f(D),heading3:f(D),heading4:f(D),heading5:f(D),heading6:f(D),contentSeparator:f(w),list:f(w),quote:f(w),emphasis:f(w),strong:f(w),link:f(w),monospace:f(w),strikethrough:f(w),inserted:f(),deleted:f(),changed:f(),invalid:f(),meta:T,documentMeta:f(T),annotation:f(T),processingInstruction:f(T),definition:s.defineModifier(),constant:s.defineModifier(),function:s.defineModifier(),standard:s.defineModifier(),local:s.defineModifier(),special:s.defineModifier()},A=c([{tag:P.link,class:"tok-link"},{tag:P.heading,class:"tok-heading"},{tag:P.emphasis,class:"tok-emphasis"},{tag:P.strong,class:"tok-strong"},{tag:P.keyword,class:"tok-keyword"},{tag:P.atom,class:"tok-atom"},{tag:P.bool,class:"tok-bool"},{tag:P.url,class:"tok-url"},{tag:P.labelName,class:"tok-labelName"},{tag:P.inserted,class:"tok-inserted"},{tag:P.deleted,class:"tok-deleted"},{tag:P.literal,class:"tok-literal"},{tag:P.string,class:"tok-string"},{tag:P.number,class:"tok-number"},{tag:[P.regexp,P.escape,P.special(P.string)],class:"tok-string2"},{tag:P.variableName,class:"tok-variableName"},{tag:P.local(P.variableName),class:"tok-variableName tok-local"},{tag:P.definition(P.variableName),class:"tok-variableName tok-definition"},{tag:P.special(P.variableName),class:"tok-variableName2"},{tag:P.definition(P.propertyName),class:"tok-propertyName tok-definition"},{tag:P.typeName,class:"tok-typeName"},{tag:P.namespace,class:"tok-namespace"},{tag:P.className,class:"tok-className"},{tag:P.macroName,class:"tok-macroName"},{tag:P.propertyName,class:"tok-propertyName"},{tag:P.operator,class:"tok-operator"},{tag:P.comment,class:"tok-comment"},{tag:P.meta,class:"tok-meta"},{tag:P.invalid,class:"tok-invalid"},{tag:P.punctuation,class:"tok-punctuation"}]);t.Tag=s,t.classHighlighter=A,t.getStyleTags=d,t.highlightCode=function(e,t,r,n,i,s=0,o=e.length){let a=s;function l(t,r){if(!(t<=a)){for(let s=e.slice(a,t),o=0;;){let e=s.indexOf("\n",o),t=e<0?s.length:e;if(t>o&&n(s.slice(o,t),r),e<0)break;i(),o=e+1}a=t}}h(t,r,((e,t,r)=>{l(e,""),l(t,r)}),s,o),l(o,"")},t.highlightTree=h,t.styleTags=function(e){let t=Object.create(null);for(let r in e){let n=e[r];Array.isArray(n)||(n=[n]);for(let e of r.split(" "))if(e){let r=[],i=2,s=e;for(let t=0;;){if("..."==s&&t>0&&t+3==e.length){i=1;break}let n=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!n)throw new RangeError("Invalid path: "+e);if(r.push("*"==n[0]?"":'"'==n[0][0]?JSON.parse(n[0]):n[0]),t+=n[0].length,t==e.length)break;let o=e[t++];if(t==e.length&&"!"==o){i=0;break}if("/"!=o)throw new RangeError("Invalid path: "+e);s=e.slice(t)}let o=r.length-1,a=r[o];if(!a)throw new RangeError("Invalid path: "+e);let l=new u(n,i,o>0?r.slice(0,o):null);t[a]=l.sort(t[a])}}return l.add(t)},t.tagHighlighter=c,t.tags=P},772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1827),i=r(7359),s=r(2696);const o=23,a=24,l=26,u=27,c={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},h={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},p={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function d(e){return 9==e||10==e||13==e||32==e}let f=null,m=null,g=0;function y(e,t){let r=e.pos+t;if(g==r&&m==e)return f;let n=e.peek(t);for(;d(n);)n=e.peek(++t);let i="";for(;45==(s=n)||46==s||58==s||s>=65&&s<=90||95==s||s>=97&&s<=122||s>=161;)i+=String.fromCharCode(n),n=e.peek(++t);var s;return m=e,g=r,f=i?i.toLowerCase():n==O||n==x?void 0:null}const O=63,x=33;function b(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let t=0;t<e.length;t++)this.hash+=(this.hash<<4)+e.charCodeAt(t)+(e.charCodeAt(t)<<8)}const v=[6,10,7,8,9],w=new n.ContextTracker({start:null,shift:(e,t,r,n)=>v.indexOf(t)>-1?new b(y(n,1)||"",e):e,reduce:(e,t)=>20==t&&e?e.parent:e,reuse(e,t,r,n){let i=t.type.id;return 6==i||36==i?new b(y(n,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),D=new n.ExternalTokenizer(((e,t)=>{if(60!=e.next)return void(e.next<0&&t.context&&e.acceptToken(57));e.advance();let r=47==e.next;r&&e.advance();let n=y(e,0);if(void 0===n)return;if(!n)return e.acceptToken(r?14:6);let i=t.context?t.context.name:null;if(r){if(n==i)return e.acceptToken(11);if(i&&h[i])return e.acceptToken(57,-2);if(t.dialectEnabled(0))return e.acceptToken(12);for(let e=t.context;e;e=e.parent)if(e.name==n)return;e.acceptToken(13)}else{if("script"==n)return e.acceptToken(7);if("style"==n)return e.acceptToken(8);if("textarea"==n)return e.acceptToken(9);if(c.hasOwnProperty(n))return e.acceptToken(10);i&&p[i]&&p[i][n]?e.acceptToken(57,-1):e.acceptToken(6)}}),{contextual:!0}),S=new n.ExternalTokenizer((e=>{for(let t=0,r=0;;r++){if(e.next<0){r&&e.acceptToken(58);break}if(45==e.next)t++;else{if(62==e.next&&t>=2){r>=3&&e.acceptToken(58,-2);break}t=0}e.advance()}})),k=new n.ExternalTokenizer(((e,t)=>{if(47==e.next&&62==e.peek(1)){let r=t.dialectEnabled(1)||function(e){for(;e;e=e.parent)if("svg"==e.name||"math"==e.name)return!0;return!1}(t.context);e.acceptToken(r?5:4,2)}else 62==e.next&&e.acceptToken(4,1)}));function E(e,t,r){let i=2+e.length;return new n.ExternalTokenizer((n=>{for(let s=0,o=0,a=0;;a++){if(n.next<0){a&&n.acceptToken(t);break}if(0==s&&60==n.next||1==s&&47==n.next||s>=2&&s<i&&n.next==e.charCodeAt(s-2))s++,o++;else if(2!=s&&s!=i||!d(n.next)){if(s==i&&62==n.next){a>o?n.acceptToken(t,-o):n.acceptToken(r,-(o-2));break}if((10==n.next||13==n.next)&&a){n.acceptToken(t,1);break}s=o=0}else o++;n.advance()}}))}const C=E("script",54,1),T=E("style",55,2),P=E("textarea",56,3),A=i.styleTags({"Text RawText":i.tags.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":i.tags.angleBracket,TagName:i.tags.tagName,"MismatchedCloseTag/TagName":[i.tags.tagName,i.tags.invalid],AttributeName:i.tags.attributeName,"AttributeValue UnquotedAttributeValue":i.tags.attributeValue,Is:i.tags.definitionOperator,"EntityReference CharacterReference":i.tags.character,Comment:i.tags.blockComment,ProcessingInst:i.tags.processingInstruction,DoctypeDecl:i.tags.documentMeta}),F=n.LRParser.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:w,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[A],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pT`POv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!cpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({W`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!a`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!a`!cpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYkWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]``P!a`!cp!^^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebhSkWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXhSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vchS`P!a`!cpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!`h`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WihSkWc!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QchSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[C,T,P,k,D,S,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:485},tokenPrec:487});function _(e,t){let r=Object.create(null);for(let n of e.getChildren(o)){let e=n.getChild(a),i=n.getChild(l)||n.getChild(u);e&&(r[t.read(e.from,e.to)]=i?i.type.id==l?t.read(i.from+1,i.to-1):t.read(i.from,i.to):"")}return r}function I(e,t){let r=e.getChild(22);return r?t.read(r.from,r.to):" "}function B(e,t,r){let n;for(let i of r)if(!i.attrs||i.attrs(n||(n=_(e.node.parent.firstChild,t))))return{parser:i.parser};return null}t.configureNesting=function(e=[],t=[]){let r=[],n=[],i=[],a=[];for(let t of e)("script"==t.tag?r:"style"==t.tag?n:"textarea"==t.tag?i:a).push(t);let c=t.length?Object.create(null):null;for(let e of t)(c[e.name]||(c[e.name]=[])).push(e);return s.parseMixed(((e,t)=>{let s=e.type.id;if(28==s)return B(e,t,r);if(31==s)return B(e,t,n);if(34==s)return B(e,t,i);if(20==s&&a.length){let r,n=e.node,i=n.firstChild,s=i&&I(i,t);if(s)for(let e of a)if(e.tag==s&&(!e.attrs||e.attrs(r||(r=_(n,t))))){let t=n.lastChild,r=37==t.type.id?t.from:n.to;if(r>i.to)return{parser:e.parser,overlay:[{from:i.to,to:r}]}}}if(c&&s==o){let r,n=e.node;if(r=n.firstChild){let e=c[t.read(r.from,r.to)];if(e)for(let r of e){if(r.tagName&&r.tagName!=I(n.parent,t))continue;let e=n.lastChild;if(e.type.id==l){let t=e.from+1,n=e.lastChild,i=e.to-(n&&n.isError?0:1);if(i>t)return{parser:r.parser,overlay:[{from:t,to:i}]}}else if(e.type.id==u)return{parser:r.parser,overlay:[{from:e.from,to:e.to}]}}}}return null}))},t.parser=F},9922:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1827),i=r(7359);const s=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],o=new n.ContextTracker({start:!1,shift:(e,t)=>4==t||5==t||312==t?e:313==t,strict:!1}),a=new n.ExternalTokenizer(((e,t)=>{let{next:r}=e;(125==r||-1==r||t.context)&&e.acceptToken(310)}),{contextual:!0,fallback:!0}),l=new n.ExternalTokenizer(((e,t)=>{let r,{next:n}=e;s.indexOf(n)>-1||(47!=n||47!=(r=e.peek(1))&&42!=r)&&(125==n||59==n||-1==n||t.context||e.acceptToken(309))}),{contextual:!0}),u=new n.ExternalTokenizer(((e,t)=>{let{next:r}=e;if((43==r||45==r)&&(e.advance(),r==e.next)){e.advance();let r=!t.context&&t.canShift(1);e.acceptToken(r?1:2)}}),{contextual:!0});function c(e,t){return e>=65&&e<=90||e>=97&&e<=122||95==e||e>=192||!t&&e>=48&&e<=57}const h=new n.ExternalTokenizer(((e,t)=>{if(60!=e.next||!t.dialectEnabled(0))return;if(e.advance(),47==e.next)return;let r=0;for(;s.indexOf(e.next)>-1;)e.advance(),r++;if(c(e.next,!0)){for(e.advance(),r++;c(e.next,!1);)e.advance(),r++;for(;s.indexOf(e.next)>-1;)e.advance(),r++;if(44==e.next)return;for(let t=0;;t++){if(7==t){if(!c(e.next,!0))return;break}if(e.next!="extends".charCodeAt(t))break;e.advance(),r++}}e.acceptToken(3,-r)})),p=i.styleTags({"get set async static":i.tags.modifier,"for while do if else switch try catch finally return throw break continue default case":i.tags.controlKeyword,"in of await yield void typeof delete instanceof":i.tags.operatorKeyword,"let var const using function class extends":i.tags.definitionKeyword,"import export from":i.tags.moduleKeyword,"with debugger as new":i.tags.keyword,TemplateString:i.tags.special(i.tags.string),super:i.tags.atom,BooleanLiteral:i.tags.bool,this:i.tags.self,null:i.tags.null,Star:i.tags.modifier,VariableName:i.tags.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":i.tags.function(i.tags.variableName),VariableDefinition:i.tags.definition(i.tags.variableName),Label:i.tags.labelName,PropertyName:i.tags.propertyName,PrivatePropertyName:i.tags.special(i.tags.propertyName),"CallExpression/MemberExpression/PropertyName":i.tags.function(i.tags.propertyName),"FunctionDeclaration/VariableDefinition":i.tags.function(i.tags.definition(i.tags.variableName)),"ClassDeclaration/VariableDefinition":i.tags.definition(i.tags.className),PropertyDefinition:i.tags.definition(i.tags.propertyName),PrivatePropertyDefinition:i.tags.definition(i.tags.special(i.tags.propertyName)),UpdateOp:i.tags.updateOperator,"LineComment Hashbang":i.tags.lineComment,BlockComment:i.tags.blockComment,Number:i.tags.number,String:i.tags.string,Escape:i.tags.escape,ArithOp:i.tags.arithmeticOperator,LogicOp:i.tags.logicOperator,BitOp:i.tags.bitwiseOperator,CompareOp:i.tags.compareOperator,RegExp:i.tags.regexp,Equals:i.tags.definitionOperator,Arrow:i.tags.function(i.tags.punctuation),": Spread":i.tags.punctuation,"( )":i.tags.paren,"[ ]":i.tags.squareBracket,"{ }":i.tags.brace,"InterpolationStart InterpolationEnd":i.tags.special(i.tags.brace),".":i.tags.derefOperator,", ;":i.tags.separator,"@":i.tags.meta,TypeName:i.tags.typeName,TypeDefinition:i.tags.definition(i.tags.typeName),"type enum interface implements namespace module declare":i.tags.definitionKeyword,"abstract global Privacy readonly override":i.tags.modifier,"is keyof unique infer":i.tags.operatorKeyword,JSXAttributeValue:i.tags.attributeValue,JSXText:i.tags.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":i.tags.angleBracket,"JSXIdentifier JSXNameSpacedName":i.tags.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":i.tags.attributeName,"JSXBuiltin/JSXIdentifier":i.tags.standard(i.tags.tagName)}),d={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},f={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},m={__proto__:null,"<":143},g=n.LRParser.deserialize({version:14,states:"$<UO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ08SO'#ChO+RO!bO'#CiO+aO#tO'#CiO+oO?MpO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DyO0fQ^O'#EROOQ07b'#EZ'#EZO1PQWO'#EWOOQO'#El'#ElOOQO'#Ie'#IeO1XQWO'#GmO1dQWO'#EkO1iQWO'#EkO3kQ08SO'#JiO6[Q08SO'#JjO6xQWO'#FZO6}Q&jO'#FqOOQ07b'#Fc'#FcO7YO,YO'#FcO7hQ7[O'#FxO9UQWO'#FwOOQ07b'#Jj'#JjOOQ07`'#Ji'#JiO9ZQWO'#GqOOQU'#KU'#KUO9fQWO'#IRO9kQ07hO'#ISOOQU'#JW'#JWOOQU'#IW'#IWQ`Q^OOO`Q^OOO%[Q^O'#DqO9sQ^O'#D}O9zQ^O'#EPO9aQWO'#GmO:RQ7[O'#CnO:aQWO'#EjO:lQWO'#EuO:qQ7[O'#FbO;`QWO'#GmOOQO'#KV'#KVO;eQWO'#KVO;sQWO'#GuO;sQWO'#GvO;sQWO'#GxO9aQWO'#G{O<jQWO'#HOO>RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJkQWO,5;YOJpQWO'#JwOOQ07f,5:Z,5:ZOJwQ^O,5:ZOLxQ08SO,5:eOMiQWO,5:mONSQ07hO'#JvONZQWO'#JuO9ZQWO'#JuONoQWO'#JuONwQWO,5;XON|QWO'#JuO!#UQrO'#JjOOQ07b'#Ch'#ChO%[Q^O'#ERO!#tQpO,5:rOOQO'#Jr'#JrOOQO-E<c-E<cO9aQWO,5=XO!$[QWO,5=XO!$aQ^O,5;VO!&dQ7[O'#EgO!'}QWO,5;VO!)mQ7[O'#DsO!)tQ^O'#DxO!*OQ`O,5;`O!*WQ`O,5;`O%[Q^O,5;`OOQU'#FR'#FROOQU'#FT'#FTO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aOOQU'#FX'#FXO!*fQ^O,5;rOOQ07b,5;w,5;wOOQ07b,5;x,5;xO!,iQWO,5;xOOQ07b,5;y,5;yO%[Q^O'#IiO!,qQ07hO,5<eO!&dQ7[O,5;aO!-`Q7[O,5;aO%[Q^O,5;uO!-gQ&jO'#FgO!.dQ&jO'#J}O!.OQ&jO'#J}O!.kQ&jO'#J}OOQO'#J}'#J}O!/PQ&jO,5<POOOS,5<],5<]O!/bQ^O'#FsOOOS'#Ih'#IhO7YO,YO,5;}O!/iQ&jO'#FuOOQ07b,5;},5;}O!0YQMhO'#CuOOQ07b'#Cy'#CyO!0mQWO'#CyO!0rO?MpO'#C}O!1`Q7[O,5<bO!1gQWO,5<dO!3SQ!LQO'#GSO!3aQWO'#GTO!3fQWO'#GTO!3kQ!LQO'#GXO!4jQ`O'#G]OOQO'#Gh'#GhO!(SQ7[O'#GgOOQO'#Gj'#GjO!(SQ7[O'#GiO!5]QMhO'#JdOOQ07b'#Jd'#JdO!5gQWO'#JcO!5uQWO'#JbO!5}QWO'#CtOOQ07b'#Cw'#CwOOQ07b'#DR'#DROOQ07b'#DT'#DTO1SQWO'#DVO!(SQ7[O'#FzO!(SQ7[O'#F|O!6VQWO'#GOO!6[QWO'#GPO!3fQWO'#GVO!(SQ7[O'#G[O!6aQWO'#EmO!7OQWO,5<cOOQ07`'#Cq'#CqO!7WQWO'#EnO!8QQ`O'#EoOOQ07`'#Jw'#JwO!8XQ07hO'#KWO9kQ07hO,5=]O`Q^O,5>mOOQU'#J`'#J`OOQU,5>n,5>nOOQU-E<U-E<UO!:ZQ08SO,5:]O!<wQ08SO,5:iO%[Q^O,5:iO!?bQ08SO,5:kOOQO,5@q,5@qO!@RQ7[O,5=XO!@aQ07hO'#JaO9UQWO'#JaO!@rQ07hO,59YO!@}Q`O,59YO!AVQ7[O,59YO:RQ7[O,59YO!AbQWO,5;VO!AjQWO'#HZO!BOQWO'#KZO%[Q^O,5;zO!7{Q`O,5;|O!BWQWO,5=tO!B]QWO,5=tO!BbQWO,5=tO9kQ07hO,5=tO;sQWO,5=dOOQO'#Cu'#CuO!BpQ`O,5=aO!BxQ7[O,5=bO!CTQWO,5=dO!CYQpO,5=gO!CbQWO'#KVO>pQWO'#HQO9aQWO'#HSO!CgQWO'#HSO:RQ7[O'#HUO!ClQWO'#HUOOQU,5=j,5=jO!CqQWO'#HVO!DSQWO'#CnO!DXQWO,59OO!DcQWO,59OO!FhQ^O,59OOOQU,59O,59OO!FxQ07hO,59OO%[Q^O,59OO!ITQ^O'#H^OOQU'#H_'#H_OOQU'#H`'#H`O`Q^O,5=vO!IkQWO,5=vO`Q^O,5=|O`Q^O,5>OO!IpQWO,5>QO`Q^O,5>SO!IuQWO,5>VO!IzQ^O,5>]OOQU,5>c,5>cO%[Q^O,5>cO9kQ07hO,5>eOOQU,5>g,5>gO!NUQWO,5>gOOQU,5>i,5>iO!NUQWO,5>iOOQU,5>k,5>kO!NZQ`O'#D[O%[Q^O'#JmO!NxQ`O'#JmO# gQ`O'#DjO# xQ`O'#DjO#$ZQ^O'#DjO#$bQWO'#JlO#$jQWO,5:TO#$oQWO'#EpO#$}QWO'#JzO#%VQWO,5;ZO#%[Q`O'#DjO#%iQ`O'#EUOOQ07b,5:n,5:nO%[Q^O,5:nO#%pQWO,5:nO>pQWO,5;UO!@}Q`O,5;UO!AVQ7[O,5;UO:RQ7[O,5;UO#%xQWO,5@XO#%}Q$ISO,5:rOOQO-E<`-E<`O#'TQ07pO,5:}OCnQ`O,5:qO#'_Q`O,5:qOCnQ`O,5:}O!@rQ07hO,5:qOOQ07`'#Ef'#EfOOQO,5:},5:}O%[Q^O,5:}O#'lQ07hO,5:}O#'wQ07hO,5:}O!@}Q`O,5:qOOQO,5;T,5;TO#(VQ07hO,5:}POOO'#IV'#IVP#(kO!0LbO,58{POOO,58{,58{OOOO-E<V-E<VOOQ07b1G.o1G.oOOOO-E<W-E<WO#(vQpO,59zOOOO-E<Y-E<YOOQ07b1G/d1G/dO#({QrO,5>wO+}Q^O,5>wOOQO,5>},5>}O#)VQ^O'#I]OOQO-E<Z-E<ZO#)dQWO,5@VO#)lQrO,5@VO#)sQWO,5@dOOQ07b1G/j1G/jO%[Q^O,5@eO#){QWO'#IcOOQO-E<a-E<aO#)sQWO,5@dOOQ07`1G0t1G0tOOQ07f1G/u1G/uOOQ07f1G0X1G0XO%[Q^O,5@bO#*aQ07hO,5@bO#*rQ07hO,5@bO#*yQWO,5@aO9ZQWO,5@aO#+RQWO,5@aO#+aQWO'#IfO#*yQWO,5@aOOQ07`1G0s1G0sO!*OQ`O,5:tO!*ZQ`O,5:tOOQO,5:v,5:vO#,RQWO,5:vO#,ZQ7[O1G2sO9aQWO1G2sOOQ07b1G0q1G0qO#,iQ08SO1G0qO#-nQ08QO,5;ROOQ07b'#GR'#GRO#.[Q08SO'#JdO!$aQ^O1G0qO#0dQ7[O'#JnO#0nQWO,5:_O#0sQrO'#JoO%[Q^O'#JoO#0}QWO,5:dOOQ07b'#D['#D[OOQ07b1G0z1G0zO%[Q^O1G0zOOQ07b1G1d1G1dO#1SQWO1G0zO#3kQ08SO1G0{O#3rQ08SO1G0{O#6]Q08SO1G0{O#6dQ08SO1G0{O#8nQ08SO1G0{O#9UQ08SO1G0{O#<OQ08SO1G0{O#<VQ08SO1G0{O#>jQ08SO1G0{O#>wQ08SO1G0{O#@uQ08SO1G0{O#CuQ(CYO'#ChO#EsQ(CYO1G1^O#EzQ(CYO'#JjO!,lQWO1G1dO#F[Q08SO,5?TOOQ07`-E<g-E<gO#GOQ08SO1G0{OOQ07b1G0{1G0{O#IZQ08SO1G1aO#I}Q&jO,5<TO#JVQ&jO,5<UO#J_Q&jO'#FlO#JvQWO'#FkOOQO'#KO'#KOOOQO'#Ig'#IgO#J{Q&jO1G1kOOQ07b1G1k1G1kOOOS1G1v1G1vO#K^Q(CYO'#JiO#KhQWO,5<_O!*fQ^O,5<_OOOS-E<f-E<fOOQ07b1G1i1G1iO#KmQ`O'#J}OOQ07b,5<a,5<aO#KuQ`O,5<aOOQ07b,59e,59eO!&dQ7[O'#DPOOOO'#IZ'#IZO#KzO?MpO,59iOOQ07b,59i,59iO%[Q^O1G1|O!6[QWO'#IkO#LVQ7[O,5<uOOQ07b,5<r,5<rO!(SQ7[O'#InO#LuQ7[O,5=RO!(SQ7[O'#IpO#MhQ7[O,5=TO!&dQ7[O,5=VOOQO1G2O1G2OO#MrQpO'#CqO#NVQpO,5<nO#N^QWO'#KRO9aQWO'#KRO#NlQWO,5<pO!(SQ7[O,5<oO#NqQWO'#GUO#N|QWO,5<oO$ RQpO'#GRO$ `QpO'#KSO$ jQWO'#KSO!&dQ7[O'#KSO$ oQWO,5<sO$ tQ`O'#G^O!4eQ`O'#G^O$!VQWO'#G`O$![QWO'#GbO!3fQWO'#GeO$!aQ07hO'#ImO$!lQ`O,5<wOOQ07f,5<w,5<wO$!sQ`O'#G^O$#RQ`O'#G_O$#ZQ`O'#G_O$#`Q7[O,5=RO$#pQ7[O,5=TOOQ07b,5=W,5=WO!(SQ7[O,5?}O!(SQ7[O,5?}O$$QQWO'#IrO$$]QWO,5?|O$$eQWO,59`O$%UQ7[O,59qOOQ07b,59q,59qO$%wQ7[O,5<fO$&jQ7[O,5<hO@bQWO,5<jOOQ07b,5<k,5<kO$&tQWO,5<qO$&yQ7[O,5<vO$'ZQWO'#JuO!$aQ^O1G1}O$'`QWO1G1}O9ZQWO'#JxO9ZQWO'#EpO%[Q^O'#EpO9ZQWO'#ItO$'eQ07hO,5@rOOQU1G2w1G2wOOQU1G4X1G4XOOQ07b1G/w1G/wO!,iQWO1G/wO$)jQ08SO1G0TOOQU1G2s1G2sO!&dQ7[O1G2sO%[Q^O1G2sO#,^QWO1G2sO$+nQ7[O'#EgOOQ07`,5?{,5?{O$+xQ07hO,5?{OOQU1G.t1G.tO!@rQ07hO1G.tO!@}Q`O1G.tO!AVQ7[O1G.tO$,ZQWO1G0qO$,`QWO'#ChO$,kQWO'#K[O$,sQWO,5=uO$,xQWO'#K[O$,}QWO'#K[O$-]QWO'#IzO$-kQWO,5@uO$-sQrO1G1fOOQ07b1G1h1G1hO9aQWO1G3`O@bQWO1G3`O$-zQWO1G3`O$.PQWO1G3`OOQU1G3`1G3`O!CTQWO1G3OO!&dQ7[O1G2{O$.UQWO1G2{OOQU1G2|1G2|O!&dQ7[O1G2|O$.ZQWO1G2|O$.cQ`O'#GzOOQU1G3O1G3OO!4eQ`O'#IvO!CYQpO1G3ROOQU1G3R1G3ROOQU,5=l,5=lO$.kQ7[O,5=nO9aQWO,5=nO$![QWO,5=pO9UQWO,5=pO!@}Q`O,5=pO!AVQ7[O,5=pO:RQ7[O,5=pO$.yQWO'#KYO$/UQWO,5=qOOQU1G.j1G.jO$/ZQ07hO1G.jO@bQWO1G.jO$/fQWO1G.jO9kQ07hO1G.jO$1kQrO,5@wO$1{QWO,5@wO9ZQWO,5@wO$2WQ^O,5=xO$2_QWO,5=xOOQU1G3b1G3bO`Q^O1G3bOOQU1G3h1G3hOOQU1G3j1G3jO>kQWO1G3lO$2dQ^O1G3nO$6hQ^O'#HmOOQU1G3q1G3qO$6uQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6}Q^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;UQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;ZQ(CYO,5:UOOQO,5;[,5;[O$;eQ`O'#I^O$;{QWO,5@WOOQ07b1G/o1G/oO$<TQ`O'#IdO$<_QWO,5@fOOQ07`1G0u1G0uO# xQ`O,5:UOOQO'#Ia'#IaO$<gQ`O,5:pOOQ07f,5:p,5:pO#%sQWO1G0YOOQ07b1G0Y1G0YO%[Q^O1G0YOOQ07b1G0p1G0pO>pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$<nQ07hO1G0iO$<yQ07hO1G0iO!@}Q`O1G0]OCnQ`O1G0]O$=XQ07hO1G0iOOQO1G0]1G0]O$=mQ08SO1G0iPOOO-E<T-E<TPOOO1G.g1G.gOOOO1G/f1G/fO$=wQpO,5<eO$>PQrO1G4cOOQO1G4i1G4iO%[Q^O,5>wO$>ZQWO1G5qO$>cQWO1G6OO$>kQrO1G6PO9ZQWO,5>}O$>uQ08SO1G5|O%[Q^O1G5|O$?VQ07hO1G5|O$?hQWO1G5{O$?hQWO1G5{O9ZQWO1G5{O$?pQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@UQWO,5?QO$'ZQWO,5?QOOQO-E<d-E<dOOQO1G0`1G0`OOQO1G0b1G0bO!,lQWO1G0bOOQU7+(_7+(_O!&dQ7[O7+(_O%[Q^O7+(_O$@dQWO7+(_O$@oQ7[O7+(_O$@}Q08SO,5=RO$CYQ08SO,5=TO$EeQ08SO,5=RO$GvQ08SO,5=TO$JXQ08SO,59qO$LaQ08SO,5<fO$NlQ08SO,5<hO%!wQ08SO,5<vOOQ07b7+&]7+&]O%%YQ08SO7+&]O%%|Q7[O'#I_O%&WQWO,5@YOOQ07b1G/y1G/yO%&`Q^O'#I`O%&mQWO,5@ZO%&uQrO,5@ZOOQ07b1G0O1G0OO%'PQWO7+&fOOQ07b7+&f7+&fO%'UQ(CYO,5:eO%[Q^O7+&xO%'`Q(CYO,5:]O%'mQ(CYO,5:iO%'wQ(CYO,5:kOOQ07b7+'O7+'OOOQO1G1o1G1oOOQO1G1p1G1pO%(RQtO,5<WO!*fQ^O,5<VOOQO-E<e-E<eOOQ07b7+'V7+'VOOOS7+'b7+'bOOOS1G1y1G1yO%(^QWO1G1yOOQ07b1G1{1G1{O%(cQpO,59kOOOO-E<X-E<XOOQ07b1G/T1G/TO%(jQ08SO7+'hOOQ07b,5?V,5?VO%)^QpO,5?VOOQ07b1G2a1G2aP!&dQ7[O'#IkPOQ07b-E<i-E<iO%)|Q7[O,5?YOOQ07b-E<l-E<lO%*oQ7[O,5?[OOQ07b-E<n-E<nO%*yQpO1G2qOOQ07b1G2Y1G2YO%+QQWO'#IjO%+`QWO,5@mO%+`QWO,5@mO%+hQWO,5@mO%+sQWO,5@mOOQO1G2[1G2[O%,RQ7[O1G2ZO!(SQ7[O1G2ZO%,cQ!LQO'#IlO%,sQWO,5@nO!&dQ7[O,5@nO%,{QpO,5@nOOQ07b1G2_1G2_OOQ07`,5<x,5<xOOQ07`,5<y,5<yO$'ZQWO,5<yOC_QWO,5<yO!@}Q`O,5<xOOQO'#Ga'#GaO%-VQWO,5<zOOQ07`,5<|,5<|O$'ZQWO,5=POOQO,5?X,5?XOOQO-E<k-E<kOOQ07f1G2c1G2cO!4eQ`O,5<xO%-_QWO,5<yO$!VQWO,5<zO!4eQ`O,5<yO!(SQ7[O'#InO%.RQ7[O1G2mO!(SQ7[O'#IpO%.tQ7[O1G2oO%/OQ7[O1G5iO%/YQ7[O1G5iOOQO,5?^,5?^OOQO-E<p-E<pOOQO1G.z1G.zO!7{Q`O,59sO%[Q^O,59sO%/gQWO1G2UO!(SQ7[O1G2]O%/lQ08SO7+'iOOQ07b7+'i7+'iO!$aQ^O7+'iO%0`QWO,5;[OOQ07`,5?`,5?`OOQ07`-E<r-E<rOOQ07b7+%c7+%cO%0eQpO'#KTO#%sQWO7+(_O%0oQrO7+(_O$@gQWO7+(_O%0vQ08QO'#ChO%1ZQ08QO,5<}O%1{QWO,5<}OOQ07`1G5g1G5gOOQU7+$`7+$`O!@rQ07hO7+$`O!@}Q`O7+$`O!$aQ^O7+&]O%2QQWO'#IyO%2iQWO,5@vOOQO1G3a1G3aO9aQWO,5@vO%2iQWO,5@vO%2qQWO,5@vOOQO,5?f,5?fOOQO-E<x-E<xOOQ07b7+'Q7+'QO%2vQWO7+(zO9kQ07hO7+(zO9aQWO7+(zO@bQWO7+(zOOQU7+(j7+(jO%2{Q08QO7+(gO!&dQ7[O7+(gO%3VQpO7+(hOOQU7+(h7+(hO!&dQ7[O7+(hO%3^QWO'#KXO%3iQWO,5=fOOQO,5?b,5?bOOQO-E<t-E<tOOQU7+(m7+(mO%4xQ`O'#HTOOQU1G3Y1G3YO!&dQ7[O1G3YO%[Q^O1G3YO%5PQWO1G3YO%5[Q7[O1G3YO9kQ07hO1G3[O$![QWO1G3[O9UQWO1G3[O!@}Q`O1G3[O!AVQ7[O1G3[O%5jQWO'#IxO%6OQWO,5@tO%6WQ`O,5@tOOQ07`1G3]1G3]OOQU7+$U7+$UO@bQWO7+$UO9kQ07hO7+$UO%6cQWO7+$UO%[Q^O1G6cO%[Q^O1G6dO%6hQ07hO1G6cO%6rQ^O1G3dO%6yQWO1G3dO%7OQ^O1G3dOOQU7+(|7+(|O9kQ07hO7+)WO`Q^O7+)YOOQU'#K_'#K_OOQU'#I{'#I{O%7VQ^O,5>XOOQU,5>X,5>XO%[Q^O'#HnO%7dQWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7iQ`O1G5sO%7}Q(CYO1G0vO%8XQWO1G0vOOQO1G/p1G/pO%8dQ(CYO1G/pO>pQWO1G/pO!*fQ^O'#DjOOQO,5>x,5>xOOQO-E<[-E<[OOQO,5?O,5?OOOQO-E<b-E<bO!@}Q`O1G/pOOQO-E<_-E<_OOQ07f1G0[1G0[OOQ07b7+%t7+%tO#%sQWO7+%tOOQ07b7+&[7+&[O>pQWO7+&[O!@}Q`O7+&[OOQO7+%w7+%wO$=mQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8nQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8yQ07hO7+&TO%9XQ08SO7++hO%[Q^O7++hO%9iQWO7++gO%9iQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9qQWO1G4lOOQO7+%|7+%|O#%sQWO<<KyO%0oQrO<<KyO%:PQWO<<KyOOQU<<Ky<<KyO!&dQ7[O<<KyO%[Q^O<<KyO%:XQWO<<KyO%:dQ08SO,5?YO%<oQ08SO,5?[O%>zQ08SO1G2ZO%A]Q08SO1G2mO%ChQ08SO1G2oO%EsQ7[O,5>yOOQO-E<]-E<]O%E}QrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FXQWO1G5uOOQ07b<<JQ<<JQO%FaQ(CYO1G0qO%HkQ(CYO1G0{O%HrQ(CYO1G0{O%JvQ(CYO1G0{O%J}Q(CYO1G0{O%LrQ(CYO1G0{O%MYQ(CYO1G0{O& mQ(CYO1G0{O& tQ(CYO1G0{O&#rQ(CYO1G0{O&$PQ(CYO1G0{O&%}Q(CYO1G0{O&&bQ08SO<<JdO&'gQ(CYO1G0{O&)]Q(CYO'#JdO&+`Q(CYO1G1aO&+mQ(CYO1G0TO!*fQ^O'#FnOOQO'#KP'#KPOOQO1G1r1G1rO&+wQWO1G1qO&+|Q(CYO,5?TOOOS7+'e7+'eOOOO1G/V1G/VOOQ07b1G4q1G4qO!(SQ7[O7+(]O&,WQWO,5?UO9aQWO,5?UOOQO-E<h-E<hO&,fQWO1G6XO&,fQWO1G6XO&,nQWO1G6XO&,yQ7[O7+'uO&-ZQpO,5?WO&-eQWO,5?WO!&dQ7[O,5?WOOQO-E<j-E<jO&-jQpO1G6YO&-tQWO1G6YOOQ07`1G2e1G2eO$'ZQWO1G2eOOQ07`1G2d1G2dO&-|QWO1G2fO!&dQ7[O1G2fOOQ07`1G2k1G2kO!@}Q`O1G2dOC_QWO1G2eO&.RQWO1G2fO&.ZQWO1G2eO&.}Q7[O,5?YOOQ07b-E<m-E<mO&/pQ7[O,5?[OOQ07b-E<o-E<oO!(SQ7[O7++TOOQ07b1G/_1G/_O&/zQWO1G/_OOQ07b7+'p7+'pO&0PQ7[O7+'wO&0aQ08SO<<KTOOQ07b<<KT<<KTO&1TQWO1G0vO!&dQ7[O'#IsO&1YQWO,5@oO!&dQ7[O1G2iOOQU<<Gz<<GzO!@rQ07hO<<GzO&1bQ08SO<<IwOOQ07b<<Iw<<IwOOQO,5?e,5?eO&2UQWO,5?eO&2ZQWO,5?eOOQO-E<w-E<wO&2iQWO1G6bO&2iQWO1G6bO9aQWO1G6bO@bQWO<<LfOOQU<<Lf<<LfO&2qQWO<<LfO9kQ07hO<<LfOOQU<<LR<<LRO%2{Q08QO<<LROOQU<<LS<<LSO%3VQpO<<LSO&2vQ`O'#IuO&3RQWO,5@sO!*fQ^O,5@sOOQU1G3Q1G3QO&3ZQ^O'#JmOOQO'#Iw'#IwO9kQ07hO'#IwO&3eQ`O,5=oOOQU,5=o,5=oO&3lQ`O'#EcO&4QQWO7+(tO&4VQWO7+(tOOQU7+(t7+(tO!&dQ7[O7+(tO%[Q^O7+(tO&4_QWO7+(tOOQU7+(v7+(vO9kQ07hO7+(vO$![QWO7+(vO9UQWO7+(vO!@}Q`O7+(vO&4jQWO,5?dOOQO-E<v-E<vOOQO'#HW'#HWO&4uQWO1G6`O9kQ07hO<<GpOOQU<<Gp<<GpO@bQWO<<GpO&4}QWO7++}O&5SQWO7+,OO%[Q^O7++}O%[Q^O7+,OOOQU7+)O7+)OO&5XQWO7+)OO&5^Q^O7+)OO&5eQWO7+)OOOQU<<Lr<<LrOOQU<<Lt<<LtOOQU-E<y-E<yOOQU1G3s1G3sO&5jQWO,5>YOOQU,5>[,5>[O&5oQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5tQ(CYO1G6PO>pQWO7+%[OOQ07b<<I`<<I`OOQ07b<<Iv<<IvO>pQWO<<IvOOQO<<Io<<IoO$=mQ08SO<<IoO%[Q^O<<IoOOQO<<Ic<<IcO!@rQ07hO<<IcO&6OQ07hO<<IoO&6ZQ08SO<= SO&6kQWO<= ROOQO7+*W7+*WO9ZQWO7+*WOOQUANAeANAeO&6sQWOANAeO!&dQ7[OANAeO#%sQWOANAeO%0oQrOANAeO%[Q^OANAeO&6{Q08SO7+'uO&9^Q08SO,5?YO&;iQ08SO,5?[O&=tQ08SO7+'wO&@VQrO1G4fO&@aQ(CYO7+&]O&BeQ(CYO,5=RO&DlQ(CYO,5=TO&D|Q(CYO,5=RO&E^Q(CYO,5=TO&EnQ(CYO,59qO&GqQ(CYO,5<fO&ItQ(CYO,5<hO&KwQ(CYO,5<vO&MmQ(CYO7+'hO&MzQ(CYO7+'iO&NXQWO,5<YOOQO7+']7+']O&N^Q7[O<<KwOOQO1G4p1G4pO&NeQWO1G4pO&NpQWO1G4pO' OQWO7++sO' OQWO7++sO!&dQ7[O1G4rO' WQpO1G4rO' bQWO7++tOOQ07`7+(P7+(PO$'ZQWO7+(QO' jQpO7+(QOOQ07`7+(O7+(OO$'ZQWO7+(PO' qQWO7+(QO!&dQ7[O7+(QOC_QWO7+(PO' vQ7[O<<NoOOQ07b7+$y7+$yO'!QQpO,5?_OOQO-E<q-E<qO'![Q08QO7+(TOOQUAN=fAN=fO9aQWO1G5POOQO1G5P1G5PO'!lQWO1G5PO'!qQWO7++|O'!qQWO7++|O9kQ07hOANBQO@bQWOANBQOOQUANBQANBQOOQUANAmANAmOOQUANAnANAnO'!yQWO,5?aOOQO-E<s-E<sO'#UQ(CYO1G6_O'%fQrO'#ChOOQO,5?c,5?cOOQO-E<u-E<uOOQU1G3Z1G3ZO&3ZQ^O,5<zOOQU<<L`<<L`O!&dQ7[O<<L`O&4QQWO<<L`O'%pQWO<<L`O%[Q^O<<L`OOQU<<Lb<<LbO9kQ07hO<<LbO$![QWO<<LbO9UQWO<<LbO'%xQ`O1G5OO'&TQWO7++zOOQUAN=[AN=[O9kQ07hOAN=[OOQU<= i<= iOOQU<= j<= jO'&]QWO<= iO'&bQWO<= jOOQU<<Lj<<LjO'&gQWO<<LjO'&lQ^O<<LjOOQU1G3t1G3tO>pQWO7+)eO'&sQWO<<I|O''OQ(CYO<<I|OOQO<<Hv<<HvOOQ07bAN?bAN?bOOQOAN?ZAN?ZO$=mQ08SOAN?ZOOQOAN>}AN>}O%[Q^OAN?ZOOQO<<Mr<<MrOOQUG27PG27PO!&dQ7[OG27PO#%sQWOG27PO''YQWOG27PO%0oQrOG27PO''bQ(CYO<<JdO''oQ(CYO1G2ZO')eQ(CYO,5?YO'+hQ(CYO,5?[O'-kQ(CYO1G2mO'/nQ(CYO1G2oO'1qQ(CYO<<KTO'2OQ(CYO<<IwOOQO1G1t1G1tO!(SQ7[OANAcOOQO7+*[7+*[O'2]QWO7+*[O'2hQWO<= _O'2pQpO7+*^OOQ07`<<Kl<<KlO$'ZQWO<<KlOOQ07`<<Kk<<KkO'2zQpO<<KlO$'ZQWO<<KkOOQO7+*k7+*kO9aQWO7+*kO'3RQWO<= hOOQUG27lG27lO9kQ07hOG27lO!*fQ^O1G4{O'3ZQWO7++yO&4QQWOANAzOOQUANAzANAzO!&dQ7[OANAzO'3cQWOANAzOOQUANA|ANA|O9kQ07hOANA|O$![QWOANA|OOQO'#HX'#HXOOQO7+*j7+*jOOQUG22vG22vOOQUANETANETOOQUANEUANEUOOQUANBUANBUO'3kQWOANBUOOQU<<MP<<MPO!*fQ^OAN?hOOQOG24uG24uO$=mQ08SOG24uO#%sQWOLD,kOOQULD,kLD,kO!&dQ7[OLD,kO'3pQWOLD,kO'3xQ(CYO7+'uO'5nQ(CYO,5?YO'7qQ(CYO,5?[O'9tQ(CYO7+'wO';jQ7[OG26}OOQO<<Mv<<MvOOQ07`ANAWANAWO$'ZQWOANAWOOQ07`ANAVANAVOOQO<<NV<<NVOOQULD-WLD-WO';zQ(CYO7+*gOOQUG27fG27fO&4QQWOG27fO!&dQ7[OG27fOOQUG27hG27hO9kQ07hOG27hOOQUG27pG27pO'<UQ(CYOG25SOOQOLD*aLD*aOOQU!$(!V!$(!VO#%sQWO!$(!VO!&dQ7[O!$(!VO'<`Q08SOG26}OOQ07`G26rG26rOOQULD-QLD-QO&4QQWOLD-QOOQULD-SLD-SOOQU!)9Eq!)9EqO#%sQWO!)9EqOOQU!$(!l!$(!lOOQU!.K;]!.K;]O'>qQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@gQrO'#JiO!*fQ^O'#DqO'@nQ^O'#D}O'@uQrO'#ChO'C]QrO'#ChO!*fQ^O'#EPO'CmQ^O,5;VO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O'#IiO'EpQWO,5<eO'ExQ7[O,5;aO'GcQ7[O,5;aO!*fQ^O,5;uO!&dQ7[O'#GgO'ExQ7[O'#GgO!&dQ7[O'#GiO'ExQ7[O'#GiO1SQWO'#DVO1SQWO'#DVO!&dQ7[O'#FzO'ExQ7[O'#FzO!&dQ7[O'#F|O'ExQ7[O'#F|O!&dQ7[O'#G[O'ExQ7[O'#G[O!*fQ^O,5:iO!*fQ^O,5@eO'CmQ^O1G0qO'GjQ(CYO'#ChO!*fQ^O1G1|O!&dQ7[O'#InO'ExQ7[O'#InO!&dQ7[O'#IpO'ExQ7[O'#IpO!&dQ7[O,5<oO'ExQ7[O,5<oO'CmQ^O1G1}O!*fQ^O7+&xO!&dQ7[O1G2ZO'ExQ7[O1G2ZO!&dQ7[O'#InO'ExQ7[O'#InO!&dQ7[O'#IpO'ExQ7[O'#IpO!&dQ7[O1G2]O'ExQ7[O1G2]O'CmQ^O7+'iO'CmQ^O7+&]O!&dQ7[OANAcO'ExQ7[OANAcO'GtQWO'#EkO'GyQWO'#EkO'HRQWO'#FZO'HWQWO'#EuO'H]QWO'#JyO'HhQWO'#JwO'HsQWO,5;VO'HxQ7[O,5<bO'IPQWO'#GTO'IUQWO'#GTO'IZQWO,5<cO'IcQWO,5;VO'IkQ(CYO1G1^O'IrQWO,5<oO'IwQWO,5<oO'I|QWO,5<qO'JRQWO,5<qO'JWQWO1G1}O'J]QWO1G0qO'JbQ7[O<<KwO'JiQ7[O<<KwO7hQ7[O'#FxO9UQWO'#FwOA]QWO'#EjO!*fQ^O,5;rO!3fQWO'#GTO!3fQWO'#GTO!3fQWO'#GVO!3fQWO'#GVO!(SQ7[O7+(]O!(SQ7[O7+(]O%*yQpO1G2qO%*yQpO1G2qO!&dQ7[O,5=VO!&dQ7[O,5=V",stateData:"'Km~O'tOS'uOSSOS'vRQ~OPYOQYORfOX!VO`qOczOdyOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![XO!fuO!kZO!nYO!oYO!pYO!rvO!twO!wxO!{]O#s!PO$T|O%b}O%d!QO%f!OO%g!OO%h!OO%k!RO%m!SO%p!TO%q!TO%s!UO&P!WO&V!XO&X!YO&Z!ZO&]![O&`!]O&f!^O&l!_O&n!`O&p!aO&r!bO&t!cO'{SO'}TO(QUO(XVO(g[O(tiO~OVtO~P`OPYOQYORfOc!jOd!iOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![!eO!fuO!kZO!nYO!oYO!pYO!rvO!t!gO!w!hO$T!kO'{!dO'}TO(QUO(XVO(g[O(tiO~O`!vOo!nO!P!oO!_!xO!`!uO!a!uO!{:dO#P!pO#Q!pO#R!wO#S!pO#T!pO#W!yO#X!yO'|!lO'}TO(QUO([!mO(g!sO~O'v!zO~OP[XZ[X`[Xn[X|[X}[X!P[X!Y[X!h[X!i[X!k[X!o[X#[[X#geX#j[X#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#t[X#v[X#x[X#y[X$O[X'r[X(X[X(h[X(o[X(p[X~O!d$|X~P(qO^!|O'}#OO(O!|O(P#OO~O^#PO(P#OO(Q#OO(R#PO~Ot#RO!R#SO(Y#SO(Z#UO~OPYOQYORfOc!jOd!iOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![!eO!fuO!kZO!nYO!oYO!pYO!rvO!t!gO!w!hO$T!kO'{:hO'}TO(QUO(XVO(g[O(tiO~O!X#YO!Y#VO!V(_P!V(lP~P+}O!Z#bO~P`OPYOQYORfOc!jOd!iOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![!eO!fuO!kZO!nYO!oYO!pYO!rvO!t!gO!w!hO$T!kO'}TO(QUO(XVO(g[O(tiO~Ol#lO!X#hO!{]O#e#kO#f#hO'{:iO!j(iP~P.iO!k#nO'{#mO~O!w#rO!{]O%b#sO~O#g#tO~O!d#uO#g#tO~OP$]OZ$dOn$QO|#yO}#zO!P#{O!Y$aO!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO#x$XO#y$YO(XVO(h$ZO(o#|O(p#}O~O`(]X'r(]X'p(]X!j(]X!V(]X![(]X%c(]X!d(]X~P1qO#[$eO$O$eOP(^XZ(^Xn(^X|(^X}(^X!P(^X!Y(^X!h(^X!k(^X!o(^X#j(^X#k(^X#l(^X#m(^X#n(^X#o(^X#p(^X#q(^X#r(^X#t(^X#v(^X#x(^X#y(^X(X(^X(h(^X(o(^X(p(^X![(^X%c(^X~O`(^X!i(^X'r(^X'p(^X!V(^X!j(^Xr(^X!d(^X~P4XO#[$eO~O$Y$gO$[$fO$c$lO~ORfO![$mO$f$nO$h$pO~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz%ZO!P${O![$|O!f%`O!k$xO#f%aO$T%^O$o%[O$q%]O$t%_O'{$rO'}TO(QUO(X$uO(o$}O(p%POf(UP~O!k%bO~O!P%eO![%fO'{%dO~O!d%jO~O`%kO'r%kO~O'|!lO~P%[O%h%rO~P%[Og%VO!k%bO'{%dO'|!lO~Od%yO!k%bO'{%dO~O#r$SO~O|&OO![%{O!k%}O%d&RO'{%dO'|!lO'}TO(QUO_(}P~O!w#rO~O%m&TO!P(yX![(yX'{(yX~O'{&UO~O!t&ZO#s!PO%d!QO%f!OO%g!OO%h!OO%k!RO%m!SO%p!TO%q!TO~Oc&`Od&_O!w&]O%b&^O%u&[O~P;xOc&cOdyO![&bO!t&ZO!wxO!{]O#s!PO%b}O%f!OO%g!OO%h!OO%k!RO%m!SO%p!TO%q!TO%s!UO~Oa&fO#[&iO%d&dO'|!lO~P<}O!k&jO!t&nO~O!k#nO~O![XO~O`%kO'q&vO'r%kO~O`%kO'q&yO'r%kO~O`%kO'q&{O'r%kO~O'p[X!V[Xr[X!j[X&T[X![[X%c[X!d[X~P(qO!_'YO!`'RO!a'RO'|!lO'}TO(QUO~Oo'PO!P'OO!X'SO([&}O!Z(`P!Z(nP~P@UOj']O!['ZO'{%dO~Od'bO!k%bO'{%dO~O|&OO!k%}O~Oo!nO!P!oO!{:dO#P!pO#Q!pO#S!pO#T!pO'|!lO'}TO(QUO([!mO(g!sO~O!_'hO!`'gO!a'gO#R!pO#W'iO#X'iO~PApO`%kOg%VO!d#uO!k%bO'r%kO(h'kO~O!o'oO#['mO~PCOOo!nO!P!oO'}TO(QUO([!mO(g!sO~O![XOo(eX!P(eX!_(eX!`(eX!a(eX!{(eX#P(eX#Q(eX#R(eX#S(eX#T(eX#W(eX#X(eX'|(eX'}(eX(Q(eX([(eX(g(eX~O!`'gO!a'gO'|!lO~PCnO'w'sO'x'sO'y'uO~O^!|O'}'wO(O!|O(P'wO~O^#PO(P'wO(Q'wO(R#PO~Ot#RO!R#SO(Y#SO(Z'{O~O!X'}O!V'PX!V'VX!Y'PX!Y'VX~P+}O!Y(PO!V(_X~OP$]OZ$dOn$QO|#yO}#zO!P#{O!Y(PO!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO#x$XO#y$YO(XVO(h$ZO(o#|O(p#}O~O!V(_X~PGbO!V(UO~O!V(kX!Y(kX!d(kX!j(kX(h(kX~O#[(kX#g#`X!Z(kX~PIhO#[(VO!V(mX!Y(mX~O!Y(WO!V(lX~O!V(ZO~O#[$eO~PIhO!Z([O~P`O|#yO}#zO!P#{O!i#wO!k#xO(XVOP!maZ!man!ma!Y!ma!h!ma!o!ma#j!ma#k!ma#l!ma#m!ma#n!ma#o!ma#p!ma#q!ma#r!ma#t!ma#v!ma#x!ma#y!ma(h!ma(o!ma(p!ma~O`!ma'r!ma'p!ma!V!ma!j!mar!ma![!ma%c!ma!d!ma~PKOO!j(]O~O!d#uO#[(^O(h'kO!Y(jX`(jX'r(jX~O!j(jX~PMnO!P%eO![%fO!{]O#e(cO#f(bO'{%dO~O!Y(dO!j(iX~O!j(fO~O!P%eO![%fO#f(bO'{%dO~OP(^XZ(^Xn(^X|(^X}(^X!P(^X!Y(^X!h(^X!i(^X!k(^X!o(^X#j(^X#k(^X#l(^X#m(^X#n(^X#o(^X#p(^X#q(^X#r(^X#t(^X#v(^X#x(^X#y(^X(X(^X(h(^X(o(^X(p(^X~O!d#uO!j(^X~P! [O|(gO}(hO!i#wO!k#xO!{!za!P!za~O!w!za%b!za![!za#e!za#f!za'{!za~P!#`O!w(lO~OPYOQYORfOc!jOd!iOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![XO!fuO!kZO!nYO!oYO!pYO!rvO!t!gO!w!hO$T!kO'{!dO'}TO(QUO(XVO(g[O(tiO~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz;QO!P${O![$|O!f<`O!k$xO#f;WO$T%^O$o;SO$q;UO$t%_O'{(pO'}TO(QUO(X$uO(o$}O(p%PO~O#g(rO~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz%ZO!P${O![$|O!f%`O!k$xO#f%aO$T%^O$o%[O$q%]O$t%_O'{(pO'}TO(QUO(X$uO(o$}O(p%PO~Of(bP~P!(SO!X(vO!j(cP~P%[O([(xO(g[O~O!P(zO!k#xO([(xO(g[O~OP:cOQ:cORfOc<[Od!iOlkOn:cOokOpkOvkOx:cOz:cO!PWO!TkO!UkO![!eO!f:fO!kZO!n:cO!o:cO!p:cO!r:gO!t:jO!w!hO$T!kO'{)YO'}TO(QUO(XVO(g[O(t<YO~O})]O!k#xO~O!Y$aO`$ma'r$ma'p$ma!j$ma!V$ma![$ma%c$ma!d$ma~O#s)aO~P!&dO|)dO!d)cO![$ZX$W$ZX$Y$ZX$[$ZX$c$ZX~O!d)cO![(qX$W(qX$Y(qX$[(qX$c(qX~O|)dO~P!.OO|)dO![(qX$W(qX$Y(qX$[(qX$c(qX~O![)fO$W)jO$Y)eO$[)eO$c)kO~O!X)nO~P!*fO$Y$gO$[$fO$c)rO~Oj$uX|$uX!P$uX!i$uX(o$uX(p$uX~OfiXf$uXjiX!YiX#[iX~P!/tOo)tO~Ot)uO(Y)vO(Z)xO~Oj*RO|)zO!P){O(o$}O(p%PO~Of)yO~P!0}Of*SO~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz;QO!P${O![$|O!f<`O!k$xO#f;WO$T%^O$o;SO$q;UO$t%_O'}TO(QUO(X$uO(o$}O(p%PO~O!X*WO'{*TO!j(uP~P!1lO#g*YO~O!k*ZO~O!X*`O'{*]O!V(vP~P!1lOn*lO!P*dO!_*jO!`*cO!a*cO!k*ZO#W*kO%Y*fO'|!lO([!mO~O!Z*iO~P!3xO!i#wOj(WX|(WX!P(WX(o(WX(p(WX!Y(WX#[(WX~Of(WX#|(WX~P!4qOj*qO#[*pOf(VX!Y(VX~O!Y*rOf(UX~O'{&UOf(UP~O!k*yO~O'{(pO~Ol*}O!P%eO!X#hO![%fO!{]O#e#kO#f#hO'{%dO!j(iP~O!d#uO#g+OO~O!P%eO!X+QO!Y(WO![%fO'{%dO!V(lP~Oo'VO!P+SO!X+RO'}TO(QUO([(xO~O!Z(nP~P!7lO!Y+TO`(zX'r(zX~OP$]OZ$dOn$QO|#yO}#zO!P#{O!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO#x$XO#y$YO(XVO(h$ZO(o#|O(p#}O~O`!ea!Y!ea'r!ea'p!ea!V!ea!j!ear!ea![!ea%c!ea!d!ea~P!8dO|#yO}#zO!P#{O!i#wO!k#xO(XVOP!qaZ!qan!qa!Y!qa!h!qa!o!qa#j!qa#k!qa#l!qa#m!qa#n!qa#o!qa#p!qa#q!qa#r!qa#t!qa#v!qa#x!qa#y!qa(h!qa(o!qa(p!qa~O`!qa'r!qa'p!qa!V!qa!j!qar!qa![!qa%c!qa!d!qa~P!:}O|#yO}#zO!P#{O!i#wO!k#xO(XVOP!saZ!san!sa!Y!sa!h!sa!o!sa#j!sa#k!sa#l!sa#m!sa#n!sa#o!sa#p!sa#q!sa#r!sa#t!sa#v!sa#x!sa#y!sa(h!sa(o!sa(p!sa~O`!sa'r!sa'p!sa!V!sa!j!sar!sa![!sa%c!sa!d!sa~P!=hOg%VOj+^O!['ZO%c+]O~O!d+`O`(TX![(TX'r(TX!Y(TX~O`%kO![XO'r%kO~Og%VO!k%bO~Og%VO!k%bO'{%dO~O!d#uO#g(rO~Oa+kO%d+lO'{+hO'}TO(QUO!Z)OP~O!Y+mO_(}X~OZ+qO~O_+rO~O![%{O'{%dO'|!lO_(}P~Og%VO#[+wO~Og%VOj+zO![$|O~O![+|O~O|,OO![XO~O%h%rO~O!w,TO~Od,YO~Oa,ZO'{#mO'}TO(QUO!Z(|P~Od%yO~O%d!QO'{&UO~P<}OZ,`O_,_O~OPYOQYORfOczOdyOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO!fuO!kZO!nYO!oYO!pYO!rvO!wxO!{]O%b}O'}TO(QUO(XVO(g[O(tiO~O![!eO!t!gO$T!kO'{!dO~P!DkO_,_O`%kO'r%kO~OPYOQYORfOc!jOd!iOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![!eO!fuO!kZO!nYO!oYO!pYO!rvO!w!hO$T!kO'{!dO'}TO(QUO(XVO(g[O(tiO~O`,eO!twO#s!OO%f!OO%g!OO%h!OO~P!GTO!k&jO~O&V,kO~O![,mO~O&h,oO&j,pOP&eaQ&eaR&eaX&ea`&eac&ead&eal&ean&eao&eap&eav&eax&eaz&ea!P&ea!T&ea!U&ea![&ea!f&ea!k&ea!n&ea!o&ea!p&ea!r&ea!t&ea!w&ea!{&ea#s&ea$T&ea%b&ea%d&ea%f&ea%g&ea%h&ea%k&ea%m&ea%p&ea%q&ea%s&ea&P&ea&V&ea&X&ea&Z&ea&]&ea&`&ea&f&ea&l&ea&n&ea&p&ea&r&ea&t&ea'p&ea'{&ea'}&ea(Q&ea(X&ea(g&ea(t&ea!Z&ea&^&eaa&ea&c&ea~O'{,uO~Og!bX!Y!OX!Y!bX!Z!OX!Z!bX!d!OX!d!bX!k!bX#[!OX~O!d,zO#[,yOg(aX!Y#dX!Y(aX!Z#dX!Z(aX!d(aX!k(aX~Og%VO!d,|O!k%bO!Y!^X!Z!^X~Oo!nO!P!oO'}TO(QUO([!mO~OP:cOQ:cORfOc<[Od!iOlkOn:cOokOpkOvkOx:cOz:cO!PWO!TkO!UkO![!eO!f:fO!kZO!n:cO!o:cO!p:cO!r:gO!t:jO!w!hO$T!kO'}TO(QUO(XVO(g[O(t<YO~O'{;]O~P#!ZO!Y-QO!Z(`X~O!Z-SO~O!d,zO#[,yO!Y#dX!Z#dX~O!Y-TO!Z(nX~O!Z-VO~O!`-WO!a-WO'|!lO~P# xO!Z-ZO~P'_Oj-^O!['ZO~O!V-cO~Oo!za!_!za!`!za!a!za#P!za#Q!za#R!za#S!za#T!za#W!za#X!za'|!za'}!za(Q!za([!za(g!za~P!#`O!o-hO#[-fO~PCOO!`-jO!a-jO'|!lO~PCnO`%kO#[-fO'r%kO~O`%kO!d#uO#[-fO'r%kO~O`%kO!d#uO!o-hO#[-fO'r%kO(h'kO~O'w'sO'x'sO'y-oO~Or-pO~O!V'Pa!Y'Pa~P!8dO!X-tO!V'PX!Y'PX~P%[O!Y(PO!V(_a~O!V(_a~PGbO!Y(WO!V(la~O!P%eO!X-xO![%fO'{%dO!V'VX!Y'VX~O#[-zO!Y(ja!j(ja`(ja'r(ja~O!d#uO~P#*aO!Y(dO!j(ia~O!P%eO![%fO#f.OO'{%dO~Ol.TO!P%eO!X.QO![%fO!{]O#e.SO#f.QO'{%dO!Y'YX!j'YX~O}.XO!k#xO~Og%VOj.[O!['ZO%c.ZO~O`#_i!Y#_i'r#_i'p#_i!V#_i!j#_ir#_i![#_i%c#_i!d#_i~P!8dOj<fO|)zO!P){O(o$}O(p%PO~O#g#Za`#Za#[#Za'r#Za!Y#Za!j#Za![#Za!V#Za~P#-]O#g(WXP(WXZ(WX`(WXn(WX}(WX!h(WX!k(WX!o(WX#j(WX#k(WX#l(WX#m(WX#n(WX#o(WX#p(WX#q(WX#r(WX#t(WX#v(WX#x(WX#y(WX'r(WX(X(WX(h(WX!j(WX!V(WX'p(WXr(WX![(WX%c(WX!d(WX~P!4qO!Y.iOf(bX~P!0}Of.kO~O!Y.lO!j(cX~P!8dO!j.oO~O!V.qO~OP$]O|#yO}#zO!P#{O!i#wO!k#xO!o$]O(XVOZ#ii`#iin#ii!Y#ii!h#ii#k#ii#l#ii#m#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii'r#ii(h#ii(o#ii(p#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~O#j#ii~P#1XO#j$OO~P#1XOP$]O|#yO}#zO!P#{O!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO(XVOZ#ii`#ii!Y#ii!h#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii'r#ii(h#ii(o#ii(p#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~On#ii~P#3yOn$QO~P#3yOP$]On$QO|#yO}#zO!P#{O!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO(XVO`#ii!Y#ii#t#ii#v#ii#x#ii#y#ii'r#ii(h#ii(o#ii(p#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~OZ#ii!h#ii#o#ii#p#ii#q#ii#r#ii~P#6kOZ$dO!h$SO#o$SO#p$SO#q$cO#r$SO~P#6kOP$]OZ$dOn$QO|#yO}#zO!P#{O!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO(XVO(p#}O`#ii!Y#ii#x#ii#y#ii'r#ii(h#ii(o#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~O#v$VO~P#9lO#v#ii~P#9lOP$]OZ$dOn$QO|#yO}#zO!P#{O!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO(XVO`#ii!Y#ii#x#ii#y#ii'r#ii(h#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~O#v#ii(o#ii(p#ii~P#<^O#v$VO(o#|O(p#}O~P#<^OP$]OZ$dOn$QO|#yO}#zO!P#{O!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO#x$XO(XVO(o#|O(p#}O~O`#ii!Y#ii#y#ii'r#ii(h#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~P#?UOP[XZ[Xn[X|[X}[X!P[X!h[X!i[X!k[X!o[X#[[X#geX#j[X#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#t[X#v[X#x[X#y[X$O[X(X[X(h[X(o[X(p[X!Y[X!Z[X~O#|[X~P#AoOP$]OZ:zOn:nO|#yO}#zO!P#{O!h:pO!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO#o:pO#p:pO#q:yO#r:pO#t:qO#v:sO#x:uO#y:vO(XVO(h$ZO(o#|O(p#}O~O#|.sO~P#C|O#[:{O$O:{O#|(^X!Z(^X~P! [O`']a!Y']a'r']a'p']a!j']a!V']ar']a![']a%c']a!d']a~P!8dOP#iiZ#ii`#iin#ii}#ii!Y#ii!h#ii!i#ii!k#ii!o#ii#j#ii#k#ii#l#ii#m#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii'r#ii(X#ii(h#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~P#-]O`#}i!Y#}i'r#}i'p#}i!V#}i!j#}ir#}i![#}i%c#}i!d#}i~P!8dO$Y.xO$[.xO~O$Y.yO$[.yO~O!d)cO#[.zO![$`X$W$`X$Y$`X$[$`X$c$`X~O!X.{O~O![)fO$W.}O$Y)eO$[)eO$c/OO~O!Y:wO!Z(]X~P#C|O!Z/PO~O!d)cO$c(qX~O$c/RO~Ot)uO(Y)vO(Z/UO~O!V/YO~P!&dO(o$}Oj%Za|%Za!P%Za(p%Za!Y%Za#[%Za~Of%Za#|%Za~P#L^O(p%POj%]a|%]a!P%]a(o%]a!Y%]a#[%]a~Of%]a#|%]a~P#MPO!YeX!deX!jeX!j$uX(heX~P!/tO!j/bO~P#-]O!Y/cO!d#uO(h'kO!j(uX~O!j/hO~O!X*WO'{%dO!j(uP~O#g/jO~O!V$uX!Y$uX!d$|X~P!/tO!Y/kO!V(vX~P#-]O!d/mO~O!V/oO~Og%VOn/sO!d#uO!k%bO(h'kO~O'{/uO~O!d+`O~O`%kO!Y/yO'r%kO~O!Z/{O~P!3xO!`/|O!a/|O'|!lO([!mO~O!P0OO([!mO~O#W0PO~Of%Za!Y%Za#[%Za#|%Za~P!0}Of%]a!Y%]a#[%]a#|%]a~P!0}O'{&UOf'fX!Y'fX~O!Y*rOf(Ua~Of0YO~O|0ZO}0ZO!P0[Ojya(oya(pya!Yya#[ya~Ofya#|ya~P$$jO|)zO!P){Oj$na(o$na(p$na!Y$na#[$na~Of$na#|$na~P$%`O|)zO!P){Oj$pa(o$pa(p$pa!Y$pa#[$pa~Of$pa#|$pa~P$&RO#g0^O~Of%Oa!Y%Oa#[%Oa#|%Oa~P!0}O!d#uO~O#g0aO~O!Y+TO`(za'r(za~O|#yO}#zO!P#{O!i#wO!k#xO(XVOP!qiZ!qin!qi!Y!qi!h!qi!o!qi#j!qi#k!qi#l!qi#m!qi#n!qi#o!qi#p!qi#q!qi#r!qi#t!qi#v!qi#x!qi#y!qi(h!qi(o!qi(p!qi~O`!qi'r!qi'p!qi!V!qi!j!qir!qi![!qi%c!qi!d!qi~P$'pOg%VOn$tOo$sOp$sOv%XOx%YOz;QO!P${O![$|O!f<`O!k$xO#f;WO$T%^O$o;SO$q;UO$t%_O'}TO(QUO(X$uO(o$}O(p%PO~Ol0kO'{0jO~P$*ZO!d+`O`(Ta![(Ta'r(Ta!Y(Ta~O#g0qO~OZ[X!YeX!ZeX~O!Y0rO!Z)OX~O!Z0tO~OZ0uO~Oa0wO'{+hO'}TO(QUO~O![%{O'{%dO_'nX!Y'nX~O!Y+mO_(}a~O!j0zO~P!8dOZ0}O~O_1OO~O#[1RO~Oj1UO![$|O~O([(xO!Z({P~Og%VOj1_O![1[O%c1^O~OZ1iO!Y1gO!Z(|X~O!Z1jO~O_1lO`%kO'r%kO~O'{#mO'}TO(QUO~O#[$eO$O$eOP(^XZ(^Xn(^X|(^X}(^X!P(^X!Y(^X!h(^X!k(^X!o(^X#j(^X#k(^X#l(^X#m(^X#n(^X#o(^X#p(^X#q(^X#t(^X#v(^X#x(^X#y(^X(X(^X(h(^X(o(^X(p(^X~O#r1oO&T1pO`(^X!i(^X~P$/qO#[$eO#r1oO&T1pO~O`1rO~P%[O`1tO~O&^1wOP&[iQ&[iR&[iX&[i`&[ic&[id&[il&[in&[io&[ip&[iv&[ix&[iz&[i!P&[i!T&[i!U&[i![&[i!f&[i!k&[i!n&[i!o&[i!p&[i!r&[i!t&[i!w&[i!{&[i#s&[i$T&[i%b&[i%d&[i%f&[i%g&[i%h&[i%k&[i%m&[i%p&[i%q&[i%s&[i&P&[i&V&[i&X&[i&Z&[i&]&[i&`&[i&f&[i&l&[i&n&[i&p&[i&r&[i&t&[i'p&[i'{&[i'}&[i(Q&[i(X&[i(g&[i(t&[i!Z&[ia&[i&c&[i~Oa1}O!Z1{O&c1|O~P`O![XO!k2PO~O&j,pOP&eiQ&eiR&eiX&ei`&eic&eid&eil&ein&eio&eip&eiv&eix&eiz&ei!P&ei!T&ei!U&ei![&ei!f&ei!k&ei!n&ei!o&ei!p&ei!r&ei!t&ei!w&ei!{&ei#s&ei$T&ei%b&ei%d&ei%f&ei%g&ei%h&ei%k&ei%m&ei%p&ei%q&ei%s&ei&P&ei&V&ei&X&ei&Z&ei&]&ei&`&ei&f&ei&l&ei&n&ei&p&ei&r&ei&t&ei'p&ei'{&ei'}&ei(Q&ei(X&ei(g&ei(t&ei!Z&ei&^&eia&ei&c&ei~O!V2VO~O!Y!^a!Z!^a~P#C|Oo!nO!P!oO!X2]O([!mO!Y'QX!Z'QX~P@UO!Y-QO!Z(`a~O!Y'WX!Z'WX~P!7lO!Y-TO!Z(na~O!Z2dO~P'_O`%kO#[2mO'r%kO~O`%kO!d#uO#[2mO'r%kO~O`%kO!d#uO!o2qO#[2mO'r%kO(h'kO~O`%kO'r%kO~P!8dO!Y$aOr$ma~O!V'Pi!Y'Pi~P!8dO!Y(PO!V(_i~O!Y(WO!V(li~O!V(mi!Y(mi~P!8dO!Y(ji!j(ji`(ji'r(ji~P!8dO#[2sO!Y(ji!j(ji`(ji'r(ji~O!Y(dO!j(ii~O!P%eO![%fO!{]O#e2xO#f2wO'{%dO~O!P%eO![%fO#f2wO'{%dO~Oj3PO!['ZO%c3OO~Og%VOj3PO!['ZO%c3OO~O#g%ZaP%ZaZ%Za`%Zan%Za}%Za!h%Za!i%Za!k%Za!o%Za#j%Za#k%Za#l%Za#m%Za#n%Za#o%Za#p%Za#q%Za#r%Za#t%Za#v%Za#x%Za#y%Za'r%Za(X%Za(h%Za!j%Za!V%Za'p%Zar%Za![%Za%c%Za!d%Za~P#L^O#g%]aP%]aZ%]a`%]an%]a}%]a!h%]a!i%]a!k%]a!o%]a#j%]a#k%]a#l%]a#m%]a#n%]a#o%]a#p%]a#q%]a#r%]a#t%]a#v%]a#x%]a#y%]a'r%]a(X%]a(h%]a!j%]a!V%]a'p%]ar%]a![%]a%c%]a!d%]a~P#MPO#g%ZaP%ZaZ%Za`%Zan%Za}%Za!Y%Za!h%Za!i%Za!k%Za!o%Za#j%Za#k%Za#l%Za#m%Za#n%Za#o%Za#p%Za#q%Za#r%Za#t%Za#v%Za#x%Za#y%Za'r%Za(X%Za(h%Za!j%Za!V%Za'p%Za#[%Zar%Za![%Za%c%Za!d%Za~P#-]O#g%]aP%]aZ%]a`%]an%]a}%]a!Y%]a!h%]a!i%]a!k%]a!o%]a#j%]a#k%]a#l%]a#m%]a#n%]a#o%]a#p%]a#q%]a#r%]a#t%]a#v%]a#x%]a#y%]a'r%]a(X%]a(h%]a!j%]a!V%]a'p%]a#[%]ar%]a![%]a%c%]a!d%]a~P#-]O#gyaPyaZya`yanya!hya!iya!kya!oya#jya#kya#lya#mya#nya#oya#pya#qya#rya#tya#vya#xya#yya'rya(Xya(hya!jya!Vya'pyarya![ya%cya!dya~P$$jO#g$naP$naZ$na`$nan$na}$na!h$na!i$na!k$na!o$na#j$na#k$na#l$na#m$na#n$na#o$na#p$na#q$na#r$na#t$na#v$na#x$na#y$na'r$na(X$na(h$na!j$na!V$na'p$nar$na![$na%c$na!d$na~P$%`O#g$paP$paZ$pa`$pan$pa}$pa!h$pa!i$pa!k$pa!o$pa#j$pa#k$pa#l$pa#m$pa#n$pa#o$pa#p$pa#q$pa#r$pa#t$pa#v$pa#x$pa#y$pa'r$pa(X$pa(h$pa!j$pa!V$pa'p$par$pa![$pa%c$pa!d$pa~P$&RO#g%OaP%OaZ%Oa`%Oan%Oa}%Oa!Y%Oa!h%Oa!i%Oa!k%Oa!o%Oa#j%Oa#k%Oa#l%Oa#m%Oa#n%Oa#o%Oa#p%Oa#q%Oa#r%Oa#t%Oa#v%Oa#x%Oa#y%Oa'r%Oa(X%Oa(h%Oa!j%Oa!V%Oa'p%Oa#[%Oar%Oa![%Oa%c%Oa!d%Oa~P#-]O`#_q!Y#_q'r#_q'p#_q!V#_q!j#_qr#_q![#_q%c#_q!d#_q~P!8dOf'RX!Y'RX~P!(SO!Y.iOf(ba~O!X3ZO!Y'SX!j'SX~P%[O!Y.lO!j(ca~O!Y.lO!j(ca~P!8dO!V3^O~O#|!ma!Z!ma~PKOO#|!ea!Y!ea!Z!ea~P#C|O#|!qa!Z!qa~P!:}O#|!sa!Z!sa~P!=hORfO![3pO$a3qO~O!Z3uO~Or3vO~P#-]O`$jq!Y$jq'r$jq'p$jq!V$jq!j$jqr$jq![$jq%c$jq!d$jq~P!8dO!V3wO~P#-]O|)zO!P){O(p%POj'ba(o'ba!Y'ba#['ba~Of'ba#|'ba~P%)eO|)zO!P){Oj'da(o'da(p'da!Y'da#['da~Of'da#|'da~P%*WO(h$ZO~P#-]O!X3zO'{%dO!Y'^X!j'^X~O!Y/cO!j(ua~O!Y/cO!d#uO!j(ua~O!Y/cO!d#uO(h'kO!j(ua~Of$wi!Y$wi#[$wi#|$wi~P!0}O!X4SO'{*]O!V'`X!Y'`X~P!1lO!Y/kO!V(va~O!Y/kO!V(va~P#-]O!d#uO#r4[O~On4_O!d#uO(h'kO~O(o$}Oj%Zi|%Zi!P%Zi(p%Zi!Y%Zi#[%Zi~Of%Zi#|%Zi~P%-jO(p%POj%]i|%]i!P%]i(o%]i!Y%]i#[%]i~Of%]i#|%]i~P%.]Of(Vi!Y(Vi~P!0}O#[4fOf(Vi!Y(Vi~P!0}O!j4iO~O`$kq!Y$kq'r$kq'p$kq!V$kq!j$kqr$kq![$kq%c$kq!d$kq~P!8dO!V4mO~O!Y4nO![(wX~P#-]O!i#wO~P4XO`$uX![$uX%W[X'r$uX!Y$uX~P!/tO%W4pO`kXjkX|kX!PkX![kX'rkX(okX(pkX!YkX~O%W4pO~Oa4vO%d4wO'{+hO'}TO(QUO!Y'mX!Z'mX~O!Y0rO!Z)Oa~OZ4{O~O_4|O~O`%kO'r%kO~P#-]O![$|O~P#-]O!Y5UO#[5WO!Z({X~O!Z5XO~Oo!nO!P5YO!_!xO!`!uO!a!uO!{:dO#P!pO#Q!pO#R!pO#S!pO#T!pO#W5_O#X!yO'|!lO'}TO(QUO([!mO(g!sO~O!Z5^O~P%3nOj5dO![1[O%c5cO~Og%VOj5dO![1[O%c5cO~Oa5kO'{#mO'}TO(QUO!Y'lX!Z'lX~O!Y1gO!Z(|a~O'}TO(QUO([5mO~O_5qO~O#r5tO&T5uO~PMnO!j5vO~P%[O`5xO~O`5xO~P%[Oa1}O!Z5}O&c1|O~P`O!d6PO~O!d6ROg(ai!Y(ai!Z(ai!d(ai!k(ai~O!Y#di!Z#di~P#C|O#[6SO!Y#di!Z#di~O!Y!^i!Z!^i~P#C|O`%kO#[6]O'r%kO~O`%kO!d#uO#[6]O'r%kO~O!Y(jq!j(jq`(jq'r(jq~P!8dO!Y(dO!j(iq~O!P%eO![%fO#f6dO'{%dO~O!['ZO%c6gO~Oj6jO!['ZO%c6gO~O#g'baP'baZ'ba`'ban'ba}'ba!h'ba!i'ba!k'ba!o'ba#j'ba#k'ba#l'ba#m'ba#n'ba#o'ba#p'ba#q'ba#r'ba#t'ba#v'ba#x'ba#y'ba'r'ba(X'ba(h'ba!j'ba!V'ba'p'bar'ba!['ba%c'ba!d'ba~P%)eO#g'daP'daZ'da`'dan'da}'da!h'da!i'da!k'da!o'da#j'da#k'da#l'da#m'da#n'da#o'da#p'da#q'da#r'da#t'da#v'da#x'da#y'da'r'da(X'da(h'da!j'da!V'da'p'dar'da!['da%c'da!d'da~P%*WO#g$wiP$wiZ$wi`$win$wi}$wi!Y$wi!h$wi!i$wi!k$wi!o$wi#j$wi#k$wi#l$wi#m$wi#n$wi#o$wi#p$wi#q$wi#r$wi#t$wi#v$wi#x$wi#y$wi'r$wi(X$wi(h$wi!j$wi!V$wi'p$wi#[$wir$wi![$wi%c$wi!d$wi~P#-]O#g%ZiP%ZiZ%Zi`%Zin%Zi}%Zi!h%Zi!i%Zi!k%Zi!o%Zi#j%Zi#k%Zi#l%Zi#m%Zi#n%Zi#o%Zi#p%Zi#q%Zi#r%Zi#t%Zi#v%Zi#x%Zi#y%Zi'r%Zi(X%Zi(h%Zi!j%Zi!V%Zi'p%Zir%Zi![%Zi%c%Zi!d%Zi~P%-jO#g%]iP%]iZ%]i`%]in%]i}%]i!h%]i!i%]i!k%]i!o%]i#j%]i#k%]i#l%]i#m%]i#n%]i#o%]i#p%]i#q%]i#r%]i#t%]i#v%]i#x%]i#y%]i'r%]i(X%]i(h%]i!j%]i!V%]i'p%]ir%]i![%]i%c%]i!d%]i~P%.]Of'Ra!Y'Ra~P!0}O!Y'Sa!j'Sa~P!8dO!Y.lO!j(ci~O#|#_i!Y#_i!Z#_i~P#C|OP$]O|#yO}#zO!P#{O!i#wO!k#xO!o$]O(XVOZ#iin#ii!h#ii#k#ii#l#ii#m#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii#|#ii(h#ii(o#ii(p#ii!Y#ii!Z#ii~O#j#ii~P%FnO#j:lO~P%FnOP$]O|#yO}#zO!P#{O!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO(XVOZ#ii!h#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii#|#ii(h#ii(o#ii(p#ii!Y#ii!Z#ii~On#ii~P%HyOn:nO~P%HyOP$]On:nO|#yO}#zO!P#{O!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO(XVO#t#ii#v#ii#x#ii#y#ii#|#ii(h#ii(o#ii(p#ii!Y#ii!Z#ii~OZ#ii!h#ii#o#ii#p#ii#q#ii#r#ii~P%KUOZ:zO!h:pO#o:pO#p:pO#q:yO#r:pO~P%KUOP$]OZ:zOn:nO|#yO}#zO!P#{O!h:pO!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO#o:pO#p:pO#q:yO#r:pO#t:qO(XVO(p#}O#x#ii#y#ii#|#ii(h#ii(o#ii!Y#ii!Z#ii~O#v:sO~P%MpO#v#ii~P%MpOP$]OZ:zOn:nO|#yO}#zO!P#{O!h:pO!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO#o:pO#p:pO#q:yO#r:pO#t:qO(XVO#x#ii#y#ii#|#ii(h#ii!Y#ii!Z#ii~O#v#ii(o#ii(p#ii~P& {O#v:sO(o#|O(p#}O~P& {OP$]OZ:zOn:nO|#yO}#zO!P#{O!h:pO!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO#o:pO#p:pO#q:yO#r:pO#t:qO#v:sO#x:uO(XVO(o#|O(p#}O~O#y#ii#|#ii(h#ii!Y#ii!Z#ii~P&$^O`#zy!Y#zy'r#zy'p#zy!V#zy!j#zyr#zy![#zy%c#zy!d#zy~P!8dOj<gO|)zO!P){O(o$}O(p%PO~OP#iiZ#iin#ii}#ii!h#ii!i#ii!k#ii!o#ii#j#ii#k#ii#l#ii#m#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii#|#ii(X#ii(h#ii!Y#ii!Z#ii~P&'UO!i#wOP(WXZ(WXj(WXn(WX|(WX}(WX!P(WX!h(WX!k(WX!o(WX#j(WX#k(WX#l(WX#m(WX#n(WX#o(WX#p(WX#q(WX#r(WX#t(WX#v(WX#x(WX#y(WX#|(WX(X(WX(h(WX(o(WX(p(WX!Y(WX!Z(WX~O#|#}i!Y#}i!Z#}i~P#C|O#|!qi!Z!qi~P$'pO!Z6|O~O!Y']a!Z']a~P#C|O!d#uO(h'kO!Y'^a!j'^a~O!Y/cO!j(ui~O!Y/cO!d#uO!j(ui~Of$wq!Y$wq#[$wq#|$wq~P!0}O!V'`a!Y'`a~P#-]O!d7TO~O!Y/kO!V(vi~P#-]O!Y/kO!V(vi~O!V7XO~O!d#uO#r7^O~On7_O!d#uO(h'kO~O|)zO!P){O(p%POj'ca(o'ca!Y'ca#['ca~Of'ca#|'ca~P&.fO|)zO!P){Oj'ea(o'ea(p'ea!Y'ea#['ea~Of'ea#|'ea~P&/XO!V7aO~Of$yq!Y$yq#[$yq#|$yq~P!0}O`$ky!Y$ky'r$ky'p$ky!V$ky!j$kyr$ky![$ky%c$ky!d$ky~P!8dO!d6RO~O!Y4nO![(wa~O`#_y!Y#_y'r#_y'p#_y!V#_y!j#_yr#_y![#_y%c#_y!d#_y~P!8dOZ7fO~Oa7hO'{+hO'}TO(QUO~O!Y0rO!Z)Oi~O_7lO~O([(xO!Y'iX!Z'iX~O!Y5UO!Z({a~OlkO'{7sO~P.iO!Z7vO~P%3nOo!nO!P7wO'}TO(QUO([!mO(g!sO~O![1[O~O![1[O%c7yO~Oj7|O![1[O%c7yO~OZ8RO!Y'la!Z'la~O!Y1gO!Z(|i~O!j8VO~O!j8WO~O!j8ZO~O!j8ZO~P%[O`8]O~O!d8^O~O!j8_O~O!Y(mi!Z(mi~P#C|O`%kO#[8gO'r%kO~O!Y(jy!j(jy`(jy'r(jy~P!8dO!Y(dO!j(iy~O!['ZO%c8jO~O#g$wqP$wqZ$wq`$wqn$wq}$wq!Y$wq!h$wq!i$wq!k$wq!o$wq#j$wq#k$wq#l$wq#m$wq#n$wq#o$wq#p$wq#q$wq#r$wq#t$wq#v$wq#x$wq#y$wq'r$wq(X$wq(h$wq!j$wq!V$wq'p$wq#[$wqr$wq![$wq%c$wq!d$wq~P#-]O#g'caP'caZ'ca`'can'ca}'ca!h'ca!i'ca!k'ca!o'ca#j'ca#k'ca#l'ca#m'ca#n'ca#o'ca#p'ca#q'ca#r'ca#t'ca#v'ca#x'ca#y'ca'r'ca(X'ca(h'ca!j'ca!V'ca'p'car'ca!['ca%c'ca!d'ca~P&.fO#g'eaP'eaZ'ea`'ean'ea}'ea!h'ea!i'ea!k'ea!o'ea#j'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#t'ea#v'ea#x'ea#y'ea'r'ea(X'ea(h'ea!j'ea!V'ea'p'ear'ea!['ea%c'ea!d'ea~P&/XO#g$yqP$yqZ$yq`$yqn$yq}$yq!Y$yq!h$yq!i$yq!k$yq!o$yq#j$yq#k$yq#l$yq#m$yq#n$yq#o$yq#p$yq#q$yq#r$yq#t$yq#v$yq#x$yq#y$yq'r$yq(X$yq(h$yq!j$yq!V$yq'p$yq#[$yqr$yq![$yq%c$yq!d$yq~P#-]O!Y'Si!j'Si~P!8dO#|#_q!Y#_q!Z#_q~P#C|O(o$}OP%ZaZ%Zan%Za}%Za!h%Za!i%Za!k%Za!o%Za#j%Za#k%Za#l%Za#m%Za#n%Za#o%Za#p%Za#q%Za#r%Za#t%Za#v%Za#x%Za#y%Za#|%Za(X%Za(h%Za!Y%Za!Z%Za~Oj%Za|%Za!P%Za(p%Za~P&@nO(p%POP%]aZ%]an%]a}%]a!h%]a!i%]a!k%]a!o%]a#j%]a#k%]a#l%]a#m%]a#n%]a#o%]a#p%]a#q%]a#r%]a#t%]a#v%]a#x%]a#y%]a#|%]a(X%]a(h%]a!Y%]a!Z%]a~Oj%]a|%]a!P%]a(o%]a~P&BuOj<gO|)zO!P){O(p%PO~P&@nOj<gO|)zO!P){O(o$}O~P&BuO|0ZO}0ZO!P0[OPyaZyajyanya!hya!iya!kya!oya#jya#kya#lya#mya#nya#oya#pya#qya#rya#tya#vya#xya#yya#|ya(Xya(hya(oya(pya!Yya!Zya~O|)zO!P){OP$naZ$naj$nan$na}$na!h$na!i$na!k$na!o$na#j$na#k$na#l$na#m$na#n$na#o$na#p$na#q$na#r$na#t$na#v$na#x$na#y$na#|$na(X$na(h$na(o$na(p$na!Y$na!Z$na~O|)zO!P){OP$paZ$paj$pan$pa}$pa!h$pa!i$pa!k$pa!o$pa#j$pa#k$pa#l$pa#m$pa#n$pa#o$pa#p$pa#q$pa#r$pa#t$pa#v$pa#x$pa#y$pa#|$pa(X$pa(h$pa(o$pa(p$pa!Y$pa!Z$pa~OP%OaZ%Oan%Oa}%Oa!h%Oa!i%Oa!k%Oa!o%Oa#j%Oa#k%Oa#l%Oa#m%Oa#n%Oa#o%Oa#p%Oa#q%Oa#r%Oa#t%Oa#v%Oa#x%Oa#y%Oa#|%Oa(X%Oa(h%Oa!Y%Oa!Z%Oa~P&'UO#|$jq!Y$jq!Z$jq~P#C|O#|$kq!Y$kq!Z$kq~P#C|O!Z8vO~O#|8wO~P!0}O!d#uO!Y'^i!j'^i~O!d#uO(h'kO!Y'^i!j'^i~O!Y/cO!j(uq~O!V'`i!Y'`i~P#-]O!Y/kO!V(vq~O!V8}O~P#-]O!V8}O~Of(Vy!Y(Vy~P!0}O!Y'ga!['ga~P#-]O`%Vq![%Vq'r%Vq!Y%Vq~P#-]OZ9SO~O!Y0rO!Z)Oq~O#[9WO!Y'ia!Z'ia~O!Y5UO!Z({i~P#C|OP[XZ[Xn[X|[X}[X!P[X!V[X!Y[X!h[X!i[X!k[X!o[X#[[X#geX#j[X#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#t[X#v[X#x[X#y[X$O[X(X[X(h[X(o[X(p[X~O!d%TX#r%TX~P'#`O![1[O%c9[O~O'}TO(QUO([9aO~O!Y1gO!Z(|q~O!j9dO~O!j9eO~O!j9fO~O!j9fO~P%[O#[9iO!Y#dy!Z#dy~O!Y#dy!Z#dy~P#C|O!['ZO%c9nO~O#|#zy!Y#zy!Z#zy~P#C|OP$wiZ$win$wi}$wi!h$wi!i$wi!k$wi!o$wi#j$wi#k$wi#l$wi#m$wi#n$wi#o$wi#p$wi#q$wi#r$wi#t$wi#v$wi#x$wi#y$wi#|$wi(X$wi(h$wi!Y$wi!Z$wi~P&'UO|)zO!P){O(p%POP'baZ'baj'ban'ba}'ba!h'ba!i'ba!k'ba!o'ba#j'ba#k'ba#l'ba#m'ba#n'ba#o'ba#p'ba#q'ba#r'ba#t'ba#v'ba#x'ba#y'ba#|'ba(X'ba(h'ba(o'ba!Y'ba!Z'ba~O|)zO!P){OP'daZ'daj'dan'da}'da!h'da!i'da!k'da!o'da#j'da#k'da#l'da#m'da#n'da#o'da#p'da#q'da#r'da#t'da#v'da#x'da#y'da#|'da(X'da(h'da(o'da(p'da!Y'da!Z'da~O(o$}OP%ZiZ%Zij%Zin%Zi|%Zi}%Zi!P%Zi!h%Zi!i%Zi!k%Zi!o%Zi#j%Zi#k%Zi#l%Zi#m%Zi#n%Zi#o%Zi#p%Zi#q%Zi#r%Zi#t%Zi#v%Zi#x%Zi#y%Zi#|%Zi(X%Zi(h%Zi(p%Zi!Y%Zi!Z%Zi~O(p%POP%]iZ%]ij%]in%]i|%]i}%]i!P%]i!h%]i!i%]i!k%]i!o%]i#j%]i#k%]i#l%]i#m%]i#n%]i#o%]i#p%]i#q%]i#r%]i#t%]i#v%]i#x%]i#y%]i#|%]i(X%]i(h%]i(o%]i!Y%]i!Z%]i~O#|$ky!Y$ky!Z$ky~P#C|O#|#_y!Y#_y!Z#_y~P#C|O!d#uO!Y'^q!j'^q~O!Y/cO!j(uy~O!V'`q!Y'`q~P#-]O!V9wO~P#-]O!Y0rO!Z)Oy~O!Y5UO!Z({q~O![1[O%c:OO~O!j:RO~O!['ZO%c:WO~OP$wqZ$wqn$wq}$wq!h$wq!i$wq!k$wq!o$wq#j$wq#k$wq#l$wq#m$wq#n$wq#o$wq#p$wq#q$wq#r$wq#t$wq#v$wq#x$wq#y$wq#|$wq(X$wq(h$wq!Y$wq!Z$wq~P&'UO|)zO!P){O(p%POP'caZ'caj'can'ca}'ca!h'ca!i'ca!k'ca!o'ca#j'ca#k'ca#l'ca#m'ca#n'ca#o'ca#p'ca#q'ca#r'ca#t'ca#v'ca#x'ca#y'ca#|'ca(X'ca(h'ca(o'ca!Y'ca!Z'ca~O|)zO!P){OP'eaZ'eaj'ean'ea}'ea!h'ea!i'ea!k'ea!o'ea#j'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#t'ea#v'ea#x'ea#y'ea#|'ea(X'ea(h'ea(o'ea(p'ea!Y'ea!Z'ea~OP$yqZ$yqn$yq}$yq!h$yq!i$yq!k$yq!o$yq#j$yq#k$yq#l$yq#m$yq#n$yq#o$yq#p$yq#q$yq#r$yq#t$yq#v$yq#x$yq#y$yq#|$yq(X$yq(h$yq!Y$yq!Z$yq~P&'UOf%_!Z!Y%_!Z#[%_!Z#|%_!Z~P!0}O!Y'iq!Z'iq~P#C|O!Y#d!Z!Z#d!Z~P#C|O#g%_!ZP%_!ZZ%_!Z`%_!Zn%_!Z}%_!Z!Y%_!Z!h%_!Z!i%_!Z!k%_!Z!o%_!Z#j%_!Z#k%_!Z#l%_!Z#m%_!Z#n%_!Z#o%_!Z#p%_!Z#q%_!Z#r%_!Z#t%_!Z#v%_!Z#x%_!Z#y%_!Z'r%_!Z(X%_!Z(h%_!Z!j%_!Z!V%_!Z'p%_!Z#[%_!Zr%_!Z![%_!Z%c%_!Z!d%_!Z~P#-]OP%_!ZZ%_!Zn%_!Z}%_!Z!h%_!Z!i%_!Z!k%_!Z!o%_!Z#j%_!Z#k%_!Z#l%_!Z#m%_!Z#n%_!Z#o%_!Z#p%_!Z#q%_!Z#r%_!Z#t%_!Z#v%_!Z#x%_!Z#y%_!Z#|%_!Z(X%_!Z(h%_!Z!Y%_!Z!Z%_!Z~P&'UOr(]X~P1qO'|!lO~P!*fO!VeX!YeX#[eX~P'#`OP[XZ[Xn[X|[X}[X!P[X!Y[X!YeX!h[X!i[X!k[X!o[X#[[X#[eX#geX#j[X#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#t[X#v[X#x[X#y[X$O[X(X[X(h[X(o[X(p[X~O!deX!j[X!jeX(heX~P'ASOP:cOQ:cORfOc<[Od!iOlkOn:cOokOpkOvkOx:cOz:cO!PWO!TkO!UkO![XO!f:fO!kZO!n:cO!o:cO!p:cO!r:gO!t:jO!w!hO$T!kO'{)YO'}TO(QUO(XVO(g[O(t<YO~O!Y:wO!Z$ma~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz;RO!P${O![$|O!f<aO!k$xO#f;XO$T%^O$o;TO$q;VO$t%_O'{(pO'}TO(QUO(X$uO(o$}O(p%PO~O#s)aO~P'ExO!Z[X!ZeX~P'ASO#g:kO~O!d#uO#g:kO~O#[:{O~O#r:pO~O#[;ZO!Y(mX!Z(mX~O#[:{O!Y(kX!Z(kX~O#g;[O~Of;^O~P!0}O#g;cO~O#g;dO~O!d#uO#g;eO~O!d#uO#g;[O~O#|;fO~P#C|O#g;gO~O#g;hO~O#g;mO~O#g;nO~O#g;oO~O#g;pO~O#|;qO~P!0}O#|;rO~P!0}O!i#P#Q#S#T#W#e#f#q(t$o$q$t%W%b%c%d%k%m%p%q%s%u~'vS#k!U't'|#lo#j#mn|'u$Y'u'{$[([~",goto:"$2p)SPPPPP)TPP)WP)iP*x.|PPPP5pPP6WPP<S?gP?zP?zPPP?zPAxP?zP?zP?zPA|PPBRPBlPGdPPPGhPPPPGhJiPPPJoKjPGhPMxPPPP!!WGhPPPGhPGhP!$fGhP!'z!(|!)VP!)y!)}!)yPPPPP!-Y!(|PP!-v!.pP!1dGhGh!1i!4s!9Y!9Y!=OPPP!=VGhPPPPPPPPPPP!@dP!AqPPGh!CSPGhPGhGhGhGhPGh!DfP!GnP!JrP!Jv!KQ!KU!KUP!GkP!KY!KYP!N^P!NbGhGh!Nh##k?zP?zP?z?zP#$v?z?z#'O?z#)k?z#+m?z?z#,[#.f#.f#.j#.r#.f#.zP#.fP?z#/d?z#3R?z?z5pPPP#6vPPP#7a#7aP#7aP#7w#7aPP#7}P#7tP#7t#8b#7t#8|#9S5m)W#9V)WP#9^#9^#9^P)WP)WP)WP)WPP)WP#9d#9gP#9g)WP#9kP#9nP)WP)WP)WP)WP)WP)W)WPP#9t#9z#:V#:]#:c#:i#:o#:}#;T#;Z#;e#;k#;u#<U#<[#<|#=`#=f#=l#=z#>a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#Ip#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r<Y<b<c<f<gQ&S|Q'P!eS'V%f-TQ+k%{Q,Z&bQ0]*yQ0w+lQ0|+rQ1m,_Q1n,`Q4v0rQ5P1OQ5k1gQ5n1iQ5o1lQ7h4wQ7k4|Q8U5qQ9V7lR9b8RrnOXst!V!Z#c%j&d&m&o&p&r,h,m1w1zR,]&f&v^OPXYstuvwz!Z!`!g!j!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O']'m(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<[<][#[WZ#V#Y'S'}!S%gm#g#h#k%b%e(W(b(c(d+Q+R+T,d,z-x.O.P.Q.S2P2w2x6R6dQ%sxQ%wyS%||&RQ&Y!TQ'^!hQ'`!iQ(k#rS*V$x*ZS+e%x%yQ+i%{Q,S&]Q,W&_S-a'a'bQ.^(lQ/g*WQ0p+fQ0v+lQ0x+mQ0{+qQ1a,TS1e,X,YQ2i-bQ3y/cQ4u0rQ4y0uQ5O0}Q5j1fQ7Q3zQ7g4wQ7j4{Q9R7fR9y9S!O$zi#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<c!S%uy!i!t%w%x%y'Q'`'a'b'f'p*b+e+f,}-a-b-i/t0p2b2i2p4^Q+_%sQ+x&VQ+{&WQ,V&_Q.](kQ1`,SU1d,W,X,YQ3Q.^Q5e1aS5i1e1fQ8Q5j#W<^#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<go<_:y:z:};P;T;V;X;`;b;d;h;j;l;n;rW%Ti%V*r<YS&V!Q&dQ&W!RQ&X!SR+v&T$w%Si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r<Y<b<c<f<gT)v$u)wV*v%Z;Q;RU'V!e%f-TS(y#y#zQ+p&OS.V(g(hQ1V+|Q4g0ZR7p5U&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]$i$`c#X#d%n%o%q'|(S(n(u(})O)P)Q)R)S)T)U)V)W)X)Z)^)b)l+Z+o-O-m-r-w-y.h.n.r.t.u.v/V0_2W2Z2k2r3Y3_3`3a3b3c3d3e3f3g3h3i3j3k3n3o3t4k4s6U6[6a6o6p6y6z7r8a8e8n8t8u9k9{:S:e<PT#SV#T&}kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q'T!eR2^-Qv!nQ!e!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_S*b$|*hS/t*c*jQ/}*kQ1X,OQ4^/|R4a0PnqOXst!Z#c%j&m&o&p&r,h,m1w1zQ&t!^Q'q!wS(m#t:kQ+c%vQ,Q&YQ,R&[Q-_'_Q-l'jS.g(r;[S0`+O;eQ0n+dQ1Z,PQ2O,oQ2Q,pQ2Y,{Q2g-`Q2j-dS4l0a;oQ4q0oS4t0q;pQ6T2[Q6X2hQ6^2oQ7e4rQ8b6VQ8c6YQ8f6_R9h8_$d$_c#X#d%o%q'|(S(n(u(})O)P)Q)R)S)T)U)V)W)X)Z)^)b)l+Z+o-O-m-r-w-y.h.n.r.u.v/V0_2W2Z2k2r3Y3_3`3a3b3c3d3e3f3g3h3i3j3k3n3o3t4k4s6U6[6a6o6p6y6z7r8a8e8n8t8u9k9{:S:e<PS(j#o'dU*o%R(q3mS+Y%n.tQ2|0hQ6f2{Q8l6iR9o8m$d$^c#X#d%o%q'|(S(n(u(})O)P)Q)R)S)T)U)V)W)X)Z)^)b)l+Z+o-O-m-r-w-y.h.n.r.u.v/V0_2W2Z2k2r3Y3_3`3a3b3c3d3e3f3g3h3i3j3k3n3o3t4k4s6U6[6a6o6p6y6z7r8a8e8n8t8u9k9{:S:e<PS(i#o'dS({#z$_S+X%n.tS.W(h(jQ.w)]Q0e+YR2y.X&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]S#p]:dQ&o!XQ&p!YQ&r![Q&s!]R1v,kQ'[!hQ+[%sQ-]'^S.Y(k+_Q2e-[W2}.].^0g0iQ6W2fU6e2z2|3QS8i6f6hS9m8k8lS:U9l9oQ:^:VR:a:_U!vQ'Z-YT5Z1[5]!Q_OXZ`st!V!Z#c#g%b%j&d&f&m&o&p&r(d,h,m.P1w1z]!pQ!r'Z-Y1[5]T#p]:d%Y{OPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&j&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S+^,e,h,m-^-f-t-z.[.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8gS(y#y#zS.V(g(h!s;v$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Y!tQ'Z-Y1[5]Q'f!rS'p!u!xS'r!y5_S-i'g'hQ-k'iR2p-jQ'o!tS(`#f1qS-h'f'rQ/f*VQ/r*bQ2q-kQ4O/gS4X/s/}Q7P3yS7[4_4aQ8y7QR9Q7_Q#vbQ'n!tS(_#f1qS(a#l*}Q+P%cQ+a%tQ+g%zU-g'f'o'rQ-{(`Q/e*VQ/q*bQ/w*eQ0m+bQ1b,US2n-h-kQ2v.TS3}/f/gS4W/r/}Q4Z/vQ4]/xQ5g1cQ6`2qQ7O3yQ7S4OS7W4X4aQ7]4`Q8O5hS8x7P7QQ8|7XQ9O7[Q9_8PQ9u8yQ9v8}Q9x9QQ:Q9`Q:Y9wQ;y;tQ<U;}R<V<OV!vQ'Z-Y%YaOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&j&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S+^,e,h,m-^-f-t-z.[.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8gS#vz!j!r;s$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]R;y<[%YbOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&j&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S+^,e,h,m-^-f-t-z.[.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8gQ%cj!S%ty!i!t%w%x%y'Q'`'a'b'f'p*b+e+f,}-a-b-i/t0p2b2i2p4^S%zz!jQ+b%uQ,U&_W1c,V,W,X,YU5h1d1e1fS8P5i5jQ9`8Q!r;t$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q;}<ZR<O<[$|eOPXYstuvw!Z!`!g!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m(P(V(^(r(v(z)y+O+S+^,e,h,m-^-f-t-z.[.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8gY#aWZ#V#Y'}!S%gm#g#h#k%b%e(W(b(c(d+Q+R+T,d,z-x.O.P.Q.S2P2w2x6R6dQ,c&j!p;u$[$m)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]R;x'SS'W!e%fR2`-T%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8g!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q,b&jQ0h+^Q2{.[Q6i3PR8m6j!b$Uc#X%n'|(S(n(u)W)X)^)b+o-m-r-w-y.h.n/V0_2k2r3Y3k4k4s6[6a6o8e9k:e!P:r)Z)l-O.t2W2Z3_3i3j3n3t6U6p6y6z7r8a8n8t8u9{:S<P!f$Wc#X%n'|(S(n(u)T)U)W)X)^)b+o-m-r-w-y.h.n/V0_2k2r3Y3k4k4s6[6a6o8e9k:e!T:t)Z)l-O.t2W2Z3_3f3g3i3j3n3t6U6p6y6z7r8a8n8t8u9{:S<P!^$[c#X%n'|(S(n(u)^)b+o-m-r-w-y.h.n/V0_2k2r3Y3k4k4s6[6a6o8e9k:eQ3x/az<])Z)l-O.t2W2Z3_3n3t6U6p6y6z7r8a8n8t8u9{:S<PQ<b<dR<c<e&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]S$nh$oR3q.z'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.z.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]T$jf$pQ$hfS)e$k)iR)q$pT$if$pT)g$k)i'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.z.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]T$nh$oQ$qhR)p$o%YjOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&j&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S+^,e,h,m-^-f-t-z.[.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8g!s<Z$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]#clOPXZst!Z!`!o#R#c#n#{$m%j&f&i&j&m&o&p&r&v'O'](z)n+S+^,e,h,m-^.[.{0[1_1o1p1r1t1w1z1|3P3p5Y5d5t5u5x6j7w7|8]!O%Ri#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<c#W(q#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<gQ*z%_Q/W)zo3m:y:z:};P;T;V;X;`;b;d;h;j;l;n;r!O$yi#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<cQ*[$zS*e$|*hQ*{%`Q/x*f#W;{#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<gn;|:y:z:};P;T;V;X;`;b;d;h;j;l;n;rQ<Q<^Q<R<_Q<S<`R<T<a!O%Ri#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<c#W(q#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<go3m:y:z:};P;T;V;X;`;b;d;h;j;l;n;rnoOXst!Z#c%j&m&o&p&r,h,m1w1zQ*_${Q,v&yQ,w&{R4R/k$v%Si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r<Y<b<c<f<gQ+y&WQ1T+{Q5S1SR7o5TT*g$|*hS*g$|*hT5[1[5]S/v*d5YT4`0O7wQ+a%tQ/w*eQ0m+bQ1b,UQ5g1cQ8O5hQ9_8PR:Q9`!O%Oi#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<cr)}$v(s*O*n*|/i0U0V3W4P4j6}7`9t;z<W<XS0Q*m0R#W:|#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<gn:}:y:z:};P;T;V;X;`;b;d;h;j;l;n;r!^;_(o)`*U*^._.b.f/S/X/a/n0f1Q1S3T4Q4U5R5T6k6n7U7Y7b7d8{9P:X<d<e`;`3l6q6t6x8o9p9s:bS;i.a3UT;j6s8r!O%Qi#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<cv*P$v(s*Q*m*|/]/i0U0V3W4P4b4j6}7`9t;z<W<XS0S*n0T#W;O#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<gn;P:y:z:};P;T;V;X;`;b;d;h;j;l;n;r!b;a(o)`*U*^.`.a.f/S/X/a/n0f1Q1S3R3T4Q4U5R5T6k6l6n7U7Y7b7d8{9P:X<d<ed;b3l6r6s6x8o8p9p9q9s:bS;k.b3VT;l6t8srnOXst!V!Z#c%j&d&m&o&p&r,h,m1w1zQ&a!UR,e&jrnOXst!V!Z#c%j&d&m&o&p&r,h,m1w1zR&a!UQ+}&XR1P+vsnOXst!V!Z#c%j&d&m&o&p&r,h,m1w1zQ1],SS5b1`1aU7x5`5a5eS9Z7z7{S9|9Y9]Q:Z9}R:`:[Q&h!VR,^&dR5n1iS%||&RR0x+mQ&m!WR,h&nR,n&sT1x,m1zR,r&tQ,q&tR2R,rQ't!zR-n'tSsOtQ#cXT%ms#cQ!}TR'v!}Q#QUR'x#QQ)w$uR/T)wQ#TVR'z#TQ#WWU(Q#W(R-uQ(R#XR-u(SQ-R'TR2_-RQ.j(sR3X.jQ.m(uS3[.m3]R3].nQ-Y'ZR2c-YY!rQ'Z-Y1[5]R'e!rS#^W%eU(X#^(Y-vQ(Y#_R-v(TQ-U'WR2a-Ut`OXst!V!Z#c%j&d&f&m&o&p&r,h,m1w1zS#gZ%bU#q`#g.PR.P(dQ(e#iQ-|(aW.U(e-|2t6bQ2t-}R6b2uQ)i$kR.|)iQ$ohR)o$oQ$bcU)_$b-q:xQ-q:eR:x)lQ/d*VW3{/d3|7R8zU3|/e/f/gS7R3}4OR8z7S$X)|$v(o(s)`*U*^*m*n*w*x*|.a.b.d.e.f/S/X/]/_/a/i/n0U0V0f1Q1S3R3S3T3W3l4P4Q4U4b4d4j5R5T6k6l6m6n6s6t6v6w6x6}7U7Y7`7b7d8o8p8q8{9P9p9q9r9s9t:X:b;z<W<X<d<eQ/l*^U4T/l4V7VQ4V/nR7V4UQ*h$|R/z*hr*O$v(s*m*n*|/i0U0V3W4P4j6}7`9t;z<W<X!^._(o)`*U*^.a.b.f/S/X/a/n0f1Q1S3T4Q4U5R5T6k6n7U7Y7b7d8{9P:X<d<eU/^*O._6qa6q3l6s6t6x8o9p9s:bQ0R*mQ3U.aU4c0R3U8rR8r6sv*Q$v(s*m*n*|/]/i0U0V3W4P4b4j6}7`9t;z<W<X!b.`(o)`*U*^.a.b.f/S/X/a/n0f1Q1S3R3T4Q4U5R5T6k6l6n7U7Y7b7d8{9P:X<d<eU/`*Q.`6re6r3l6s6t6x8o8p9p9q9s:bQ0T*nQ3V.bU4e0T3V8sR8s6tQ*s%UR0X*sQ4o0fR7c4oQ+U%hR0d+UQ5V1VS7q5V9XR9X7rQ,P&YR1Y,PQ5]1[R7u5]Q1h,ZS5l1h8SR8S5nQ0s+iW4x0s4z7i9TQ4z0vQ7i4yR9T7jQ+n%|R0y+nQ1z,mR5|1zYrOXst#cQ&q!ZQ+W%jQ,g&mQ,i&oQ,j&pQ,l&rQ1u,hS1x,m1zR5{1wQ%lpQ&u!_Q&x!aQ&z!bQ&|!cQ'l!tQ+V%iQ+c%vQ+u&SQ,]&hQ,t&wW-e'f'n'o'rQ-l'jQ/y*gQ0n+dS1k,^,aQ2S,sQ2T,vQ2U,wQ2j-dW2l-g-h-k-mQ4q0oQ4}0|Q5Q1QQ5f1bQ5p1mQ5z1vU6Z2k2n2qQ6^2oQ7e4rQ7m5PQ7n5RQ7t5[Q7}5gQ8T5oS8d6[6`Q8f6_Q9U7kQ9^8OQ9c8UQ9j8eQ9z9VQ:P9_Q:T9kR:]:QQ%vyQ'_!iQ'j!tU+d%w%x%yQ,{'QU-`'`'a'bS-d'f'pQ/p*bS0o+e+fQ2[,}S2h-a-bQ2o-iQ4Y/tQ4r0pQ6V2bQ6Y2iQ6_2pR7Z4^S$wi<YR*t%VU%Ui%V<YR0W*rQ$viS(o#u+`Q(s#wS)`$c$dQ*U$xQ*^${Q*m%OQ*n%QQ*w%[Q*x%]Q*|%aQ.a:|Q.b;OQ.d;SQ.e;UQ.f;WQ/S)uS/X){/ZQ/])}Q/_*PQ/a*RQ/i*YQ/n*`Q0U*pQ0V*qh0f+].Z1^3O5c6g7y8j9[9n:O:WQ1Q+wQ1S+zQ3R;_Q3S;aQ3T;cQ3W.iS3l:y:zQ4P/jQ4Q/kQ4U/mQ4b0QQ4d0SQ4j0^Q5R1RQ5T1UQ6k;gQ6l;iQ6m;kQ6n;mQ6s:}Q6t;PQ6v;TQ6w;VQ6x;XQ6}3xQ7U4SQ7Y4[Q7`4fQ7b4nQ7d4pQ8o;dQ8p;`Q8q;bQ8{7TQ9P7^Q9p;hQ9q;jQ9r;lQ9s;nQ9t8wQ:X;qQ:b;rQ;z<YQ<W<bQ<X<cQ<d<fR<e<gnpOXst!Z#c%j&m&o&p&r,h,m1w1zQ!fPS#eZ#nQ&w!`U'c!o5Y7wQ'y#RQ(|#{Q)m$mS,a&f&iQ,f&jQ,s&vQ,x'OQ-[']Q.p(zQ/Q)nQ0b+SQ0i+^Q1s,eQ2f-^Q2|.[Q3s.{Q4h0[Q5a1_Q5r1oQ5s1pQ5w1rQ5y1tQ6O1|Q6f3PQ6{3pQ7{5dQ8X5tQ8Y5uQ8[5xQ8l6jQ9]7|R9g8]#WcOPXZst!Z!`!o#c#n#{%j&f&i&j&m&o&p&r&v'O'](z+S+^,e,h,m-^.[0[1_1o1p1r1t1w1z1|3P5Y5d5t5u5x6j7w7|8]Q#XWQ#dYQ%nuQ%ovS%qw!gS'|#V(PQ(S#YQ(n#tQ(u#xQ(}$OQ)O$PQ)P$QQ)Q$RQ)R$SQ)S$TQ)T$UQ)U$VQ)V$WQ)W$XQ)X$YQ)Z$[Q)^$aQ)b$eW)l$m)n.{3pQ+Z%pQ+o%}S-O'S2]Q-m'mS-r'}-tQ-w(VQ-y(^Q.h(rQ.n(vQ.r:cQ.t:fQ.u:gQ.v:jQ/V)yQ0_+OQ2W,yQ2Z,|Q2k-fQ2r-zQ3Y.lQ3_:kQ3`:lQ3a:mQ3b:nQ3c:oQ3d:pQ3e:qQ3f:rQ3g:sQ3h:tQ3i:uQ3j:vQ3k.sQ3n:{Q3o;YQ3t:wQ4k0aQ4s0qQ6U;ZQ6[2mQ6a2sQ6o3ZQ6p;[Q6y;^Q6z;eQ7r5WQ8a6SQ8e6]Q8n;fQ8t;oQ8u;pQ9k8gQ9{9WQ:S9iQ:e#RR<P<]R#ZWR'U!eY!tQ'Z-Y1[5]S'Q!e-QQ'f!rS'p!u!xS'r!y5_S,}'R'YS-i'g'hQ-k'iQ2b-WR2p-jR(t#wR(w#xQ!fQT-X'Z-Y]!qQ!r'Z-Y1[5]Q#o]R'd:dT#jZ%bS#iZ%bS%hm,dU(a#g#h#kS-}(b(cQ.R(dQ0c+TQ2u.OU2v.P.Q.SS6c2w2xR8h6d`#]W#V#Y%e'}(W+Q-xr#fZm#g#h#k%b(b(c(d+T.O.P.Q.S2w2x6dQ1q,dQ2X,zQ6Q2PQ8`6RT;w'S+RT#`W%eS#_W%eS(O#V(WS(T#Y+QS-P'S+RT-s'}-xT'X!e%fQ$kfR)s$pT)h$k)iR3r.zT*X$x*ZR*a${Q0g+]Q2z.ZQ5`1^Q6h3OQ7z5cQ8k6gQ9Y7yQ9l8jQ9}9[Q:V9nQ:[:OR:_:WnqOXst!Z#c%j&m&o&p&r,h,m1w1zQ&g!VR,]&dtmOXst!U!V!Z#c%j&d&m&o&p&r,h,m1w1zR,d&jT%im,dR1W+|R,[&bQ&Q|R+t&RR+j%{T&k!W&nT&l!W&nT1y,m1z",nodeNames:"⚠ ArithOp ArithOp JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:o,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[p],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$<k#p#q$=a#q#r$>q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$f&j(Op(R!b't(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST(P#S$f&j'u(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$f&j(Op(R!b'u(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$f&j!o$Ip(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|3l_'}$(n$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$f&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$a`$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$a``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$a`$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(R!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$a`(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k#%|:hh$f&j(Op(R!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__VS$f&j(Op(R!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]VS$f&j(R!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$f&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(R!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$f&j(OpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(OpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Op(R!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S#%|C}i$f&j(g!L^(Op(R!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr#%|EoP;=`<%lCr(CSFRk$f&j(Op(R!b$Y#t'{&;d([!LYOY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$f&j(Op(R!b$Y#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv(CSJPP;=`<%lEr%#SJ_`$f&j(Op(R!b#l$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#SKl_$f&j$O$Id(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&COLva(p&;`$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#SNW`$f&j#x$Id(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|! c_(Q$)`$f&j(OpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$f&j(OpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$f&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$a`$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(OpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$a`(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b(*Q!'t_!k(!b$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z!'l!)O_!jM|$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'+h!*[b$f&j(Op(R!b'|#)d#m$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S!+o`$f&j(Op(R!b#j$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&-O!,|`$f&j(Op(R!bn&%`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&C[!.Z_!Y&;l$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS!/ec$f&j(Op(R!b|'<nOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z!'d!0ya$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z!'d!2Z_!XMt$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!3eg$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!5Vg$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!6wc$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!8_c$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS!9uf$f&j(Op(R!b#k$IdOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpxz!;Zz{#,f{!P!;Z!P!Q#-{!Q!^!;Z!^!_#'Z!_!`#5k!`!a#7Q!a!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(r!;fb$f&j(Op(R!b!USOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(Q!<w`$f&j(R!b!USOY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eb!Q!^!<n!^!_!GY!_!}!<n!}#O!Ja#O#P!Dj#P#o!<n#o#p!GY#p;'S!<n;'S;=`!Kj<%lO!<n&n!>Q^$f&j!USOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$f&j!USO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!USOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!US#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$f&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$f&j(R!b!USOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(R!b!USOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(R!b!USOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(R!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$f&j(R!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!<n#Q#o!Ja#o#p!Ic#p;'S!Ja;'S;=`!Kd<%lO!Ja(Q!KgP;=`<%l!Ja(Q!KmP;=`<%l!<n'`!Ky`$f&j(Op!USOY!KpYZ&cZr!Kprs!=ys!P!Kp!P!Q!L{!Q!^!Kp!^!_!Ns!_!}!Kp!}#O##z#O#P!Dj#P#o!Kp#o#p!Ns#p;'S!Kp;'S;=`#%T<%lO!Kp'`!MUi$f&j(Op!USOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#Z(r#Z#[!L{#[#](r#]#^!L{#^#a(r#a#b!L{#b#g(r#g#h!L{#h#i(r#i#j!L{#j#m(r#m#n!L{#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rt!NzZ(Op!USOY!NsZr!Nsrs!@Ys!P!Ns!P!Q# m!Q!}!Ns!}#O#!|#O#P!Bb#P;'S!Ns;'S;=`##t<%lO!Nst# tb(Op!USOY)rZr)rs#O)r#P#Z)r#Z#[# m#[#])r#]#^# m#^#a)r#a#b# m#b#g)r#g#h# m#h#i)r#i#j# m#j#m)r#m#n# m#n;'S)r;'S;=`*Z<%lO)rt##RX(OpOY#!|Zr#!|rs!Acs#O#!|#O#P!A{#P#Q!Ns#Q;'S#!|;'S;=`##n<%lO#!|t##qP;=`<%l#!|t##wP;=`<%l!Ns'`#$R^$f&j(OpOY##zYZ&cZr##zrs!Bws!^##z!^!_#!|!_#O##z#O#P!Cr#P#Q!Kp#Q#o##z#o#p#!|#p;'S##z;'S;=`#$}<%lO##z'`#%QP;=`<%l##z'`#%WP;=`<%l!Kp(r#%fk$f&j(Op(R!b!USOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#Z%Z#Z#[#%Z#[#]%Z#]#^#%Z#^#a%Z#a#b#%Z#b#g%Z#g#h#%Z#h#i%Z#i#j#%Z#j#m%Z#m#n#%Z#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#W#'d](Op(R!b!USOY#'ZZr#'Zrs!GYsw#'Zwx!Nsx!P#'Z!P!Q#(]!Q!}#'Z!}#O#)w#O#P!Bb#P;'S#'Z;'S;=`#*w<%lO#'Z#W#(fe(Op(R!b!USOY*gZr*grs'}sw*gwx)rx#O*g#P#Z*g#Z#[#(]#[#]*g#]#^#(]#^#a*g#a#b#(]#b#g*g#g#h#(]#h#i*g#i#j#(]#j#m*g#m#n#(]#n;'S*g;'S;=`+Z<%lO*g#W#*OZ(Op(R!bOY#)wZr#)wrs!Icsw#)wwx#!|x#O#)w#O#P!A{#P#Q#'Z#Q;'S#)w;'S;=`#*q<%lO#)w#W#*tP;=`<%l#)w#W#*zP;=`<%l#'Z(r#+W`$f&j(Op(R!bOY#*}YZ&cZr#*}rs!Jasw#*}wx##zx!^#*}!^!_#)w!_#O#*}#O#P!Cr#P#Q!;Z#Q#o#*}#o#p#)w#p;'S#*};'S;=`#,Y<%lO#*}(r#,]P;=`<%l#*}(r#,cP;=`<%l!;Z(CS#,sb$f&j(Op(R!b'v(;d!USOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(CS#.W_$f&j(Op(R!bS(;dOY#-{YZ&cZr#-{rs#/Vsw#-{wx#2gx!^#-{!^!_#4f!_#O#-{#O#P#0X#P#o#-{#o#p#4f#p;'S#-{;'S;=`#5e<%lO#-{(Bb#/`]$f&j(R!bS(;dOY#/VYZ&cZw#/Vwx#0Xx!^#/V!^!_#1j!_#O#/V#O#P#0X#P#o#/V#o#p#1j#p;'S#/V;'S;=`#2a<%lO#/V(AO#0`X$f&jS(;dOY#0XYZ&cZ!^#0X!^!_#0{!_#o#0X#o#p#0{#p;'S#0X;'S;=`#1d<%lO#0X(;d#1QSS(;dOY#0{Z;'S#0{;'S;=`#1^<%lO#0{(;d#1aP;=`<%l#0{(AO#1gP;=`<%l#0X(<v#1qW(R!bS(;dOY#1jZw#1jwx#0{x#O#1j#O#P#0{#P;'S#1j;'S;=`#2Z<%lO#1j(<v#2^P;=`<%l#1j(Bb#2dP;=`<%l#/V(Ap#2p]$f&j(OpS(;dOY#2gYZ&cZr#2grs#0Xs!^#2g!^!_#3i!_#O#2g#O#P#0X#P#o#2g#o#p#3i#p;'S#2g;'S;=`#4`<%lO#2g(<U#3pW(OpS(;dOY#3iZr#3irs#0{s#O#3i#O#P#0{#P;'S#3i;'S;=`#4Y<%lO#3i(<U#4]P;=`<%l#3i(Ap#4cP;=`<%l#2g(=h#4oY(Op(R!bS(;dOY#4fZr#4frs#1jsw#4fwx#3ix#O#4f#O#P#0{#P;'S#4f;'S;=`#5_<%lO#4f(=h#5bP;=`<%l#4f(CS#5hP;=`<%l#-{%#W#5xb$f&j$O$Id(Op(R!b!USOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z+h#7_b$W#t$f&j(Op(R!b!USOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z$/l#8rp$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#:v![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#:v#S#U%Z#U#V#>Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#<v#c#d#AY#d#l%Z#l#m#D[#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#;Rk$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#:v![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#:v#S#X%Z#X#Y!4|#Y#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#=R_$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#>Zd$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Acc$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#Bn!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#Bn#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Bye$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#Bn!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#Bn#S#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Deg$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#E|![!^%Z!^!_*g!_!c%Z!c!i#E|!i#O%Z#O#P&c#P#R%Z#R#S#E|#S#T%Z#T#Z#E|#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#FXi$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#E|![!^%Z!^!_*g!_!c%Z!c!i#E|!i#O%Z#O#P&c#P#R%Z#R#S#E|#S#T%Z#T#Z#E|#Z#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%Gh#HT_!d$b$f&j#|%<f(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#I__`l$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(@^#Jk^g!*v!h'.r(Op(R!b(tSOY*gZr*grs'}sw*gwx)rx!P*g!P!Q#Kg!Q!^*g!^!_#L]!_!`#M}!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#KpX$h&j(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#LfZ#n$Id(Op(R!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#MX!`#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#MbX$O$Id(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#NWX#o$Id(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g%Gh$ Oa#[%?x$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$!T!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#W$!`_#g$Ih$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%Gh$#nafBf#o$Id$c#|$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$$s!`!a$%}!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$%O_#o$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$&Ya#n$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$'_!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$'j`#n$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'+h$(wc(h$Ip$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P$*S!P!^%Z!^!_*g!_!a%Z!a!b$+^!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'+`$*__}'#p$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$+i`$f&j#y$Id(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&^$,v_!{!Ln$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(@^$.Q_!P(8n$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/UZ$f&jO!^$/w!^!_$0_!_#i$/w#i#j$0d#j#l$/w#l#m$2V#m#o$/w#o#p$0_#p;'S$/w;'S;=`$4b<%lO$/w(n$0OT^#S$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0dO^#S(n$0i[$f&jO!Q&c!Q![$1_![!^&c!_!c&c!c!i$1_!i#T&c#T#Z$1_#Z#o&c#o#p$3u#p;'S&c;'S;=`&w<%lO&c(n$1dZ$f&jO!Q&c!Q![$2V![!^&c!_!c&c!c!i$2V!i#T&c#T#Z$2V#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2[Z$f&jO!Q&c!Q![$2}![!^&c!_!c&c!c!i$2}!i#T&c#T#Z$2}#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3SZ$f&jO!Q&c!Q![$/w![!^&c!_!c&c!c!i$/w!i#T&c#T#Z$/w#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$3xR!Q![$4R!c!i$4R#T#Z$4R#S$4US!Q![$4R!c!i$4R#T#Z$4R#q#r$0_(n$4eP;=`<%l$/w!2r$4s_!V!+S$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$5}`#v$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&,v$7[_$f&j(Op(R!b(X&%WOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS$8jk$f&j(Op(R!b'{&;d$[#t([!LYOY%ZYZ&cZr%Zrs&}st%Ztu$8Zuw%Zwx(rx}%Z}!O$:_!O!Q%Z!Q![$8Z![!^%Z!^!_*g!_!c%Z!c!}$8Z!}#O%Z#O#P&c#P#R%Z#R#S$8Z#S#T%Z#T#o$8Z#o#p*g#p$g%Z$g;'S$8Z;'S;=`$<e<%lO$8Z+d$:jk$f&j(Op(R!b$[#tOY%ZYZ&cZr%Zrs&}st%Ztu$:_uw%Zwx(rx}%Z}!O$:_!O!Q%Z!Q![$:_![!^%Z!^!_*g!_!c%Z!c!}$:_!}#O%Z#O#P&c#P#R%Z#R#S$:_#S#T%Z#T#o$:_#o#p*g#p$g%Z$g;'S$:_;'S;=`$<_<%lO$:_+d$<bP;=`<%l$:_(CS$<hP;=`<%l$8Z!5p$<tX![!3l(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g&CO$=la(o&;`$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+^#q;'S%Z;'S;=`+a<%lO%Z%#`$?O_!Z$I`r`$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(r$@Y_!pS$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS$Aj|$f&j(Op(R!b't(;d$Y#t'{&;d([!LYOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(CS$Duk$f&j(Op(R!b'u(;d$Y#t'{&;d([!LYOY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[l,u,h,2,3,4,5,6,7,8,9,10,11,12,13,a,new n.LocalTokenGroup("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOt~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(Z~~",141,332),new n.LocalTokenGroup("j~RQYZXz{^~^O'x~~aP!P!Qd~iO'y~~",25,315)],topRules:{Script:[0,6],SingleExpression:[1,269],SingleClassItem:[2,270]},dialects:{jsx:0,ts:14614},dynamicPrecedences:{69:1,79:1,81:1,165:1,193:1},specialized:[{term:319,get:e=>d[e]||-1},{term:334,get:e=>f[e]||-1},{term:70,get:e=>m[e]||-1}],tokenPrec:14638});t.parser=g},1827:(e,t,r)=>{"use strict";var n=r(2696);class i{constructor(e,t,r,n,i,s,o,a,l,u=0,c){this.p=e,this.stack=t,this.state=r,this.reducePos=n,this.pos=i,this.score=s,this.buffer=o,this.bufferBase=a,this.curContext=l,this.lookAhead=u,this.parent=c}toString(){return`[${this.stack.filter(((e,t)=>t%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,r=0){let n=e.parser.context;return new i(e,[],t,r,r,0,[],0,n?new s(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let r=e>>19,n=65535&e,{parser:i}=this.p,s=i.dynamicPrecedence(n);if(s&&(this.score+=s),0==r)return this.pushState(i.getGoto(this.state,n,!0),this.reducePos),n<i.minRepeatTerm&&this.storeNode(n,this.reducePos,this.reducePos,4,!0),void this.reduceContext(n,this.reducePos);let o=this.stack.length-3*(r-1)-(262144&e?6:0),a=o?this.stack[o-2]:this.p.ranges[0].from,l=this.reducePos-a;l>=2e3&&!(null===(t=this.p.parser.nodeSet.types[n])||void 0===t?void 0:t.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSize<l&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=a,this.p.lastBigReductionSize=l));let u=o?this.stack[o-1]:0,c=this.bufferBase+this.buffer.length-u;if(n<i.minRepeatTerm||131072&e){let e=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,a,e,c+4,!0)}if(262144&e)this.state=this.stack[o];else{let e=this.stack[o-3];this.state=i.getGoto(e,n,!0)}for(;this.stack.length>o;)this.stack.pop();this.reduceContext(n,a)}storeNode(e,t,r,n=4,i=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this,n=this.buffer.length;if(0==n&&e.parent&&(n=e.bufferBase-e.parent.bufferBase,e=e.parent),n>0&&0==e.buffer[n-4]&&e.buffer[n-1]>-1){if(t==r)return;if(e.buffer[n-2]>=t)return void(e.buffer[n-2]=r)}}if(i&&this.pos!=r){let i=this.buffer.length;if(i>0&&0!=this.buffer[i-4])for(;i>0&&this.buffer[i-2]>r;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,n>4&&(n-=4);this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=r,this.buffer[i+3]=n}else this.buffer.push(e,t,r,n)}shift(e,t,r,n){if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){let i=e,{parser:s}=this.p;(n>this.pos||t<=s.maxNode)&&(this.pos=n,s.stateFlag(i,1)||(this.reducePos=n)),this.pushState(i,r),this.shiftContext(t,r),t<=s.maxNode&&this.buffer.push(t,r,n,4)}else this.pos=n,this.shiftContext(t,r),t<=this.p.parser.maxNode&&this.buffer.push(t,r,n,4)}apply(e,t,r,n){65536&e?this.reduce(e):this.shift(e,t,r,n)}useNode(e,t){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let n=this.pos;this.reducePos=this.pos=n+e.length,this.pushState(t,n),this.buffer.push(r,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let r=e.buffer.slice(t),n=e.bufferBase+t;for(;e&&n==e.bufferBase;)e=e.parent;return new i(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let r=e<=this.p.parser.maxNode;r&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,r?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new o(this);;){let r=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==r)return!1;if(0==(65536&r))return!0;t.reduce(r)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let r=[];for(let n,i=0;i<t.length;i+=2)(n=t[i+1])!=this.state&&this.p.parser.hasAction(n,e)&&r.push(t[i],n);if(this.stack.length<120)for(let e=0;r.length<8&&e<t.length;e+=2){let n=t[e+1];r.some(((e,t)=>1&t&&e==n))||r.push(t[e],n)}t=r}let r=[];for(let e=0;e<t.length&&r.length<4;e+=2){let n=t[e+1];if(n==this.state)continue;let i=this.split();i.pushState(n,this.pos),i.storeNode(0,i.pos,i.pos,4,!0),i.shiftContext(t[e],this.pos),i.reducePos=this.pos,i.score-=200,r.push(i)}return r}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(0==(65536&t))return!1;if(!e.validAction(this.state,t)){let r=t>>19,n=65535&t,i=this.stack.length-3*r;if(i<0||e.getGoto(this.stack[i],n,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],r=(n,i)=>{if(!t.includes(n))return t.push(n),e.allActions(n,(t=>{if(393216&t);else if(65536&t){let r=(t>>19)-i;if(r>1){let n=65535&t,i=this.stack.length-3*r;if(i>=0&&e.getGoto(this.stack[i],n,!1)>=0)return r<<19|65536|n}}else{let e=r(t,i+1);if(null!=e)return e}}))};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new s(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class s{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class o{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,r=e>>19;0==r?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(r-1);let n=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=n}}class a{constructor(e,t,r){this.stack=e,this.pos=t,this.index=r,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new a(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new a(this.stack,this.pos,this.index)}}function l(e,t=Uint16Array){if("string"!=typeof e)return e;let r=null;for(let n=0,i=0;n<e.length;){let s=0;for(;;){let t=e.charCodeAt(n++),r=!1;if(126==t){s=65535;break}t>=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,r=!0),s+=i,r)break;s*=46}r?r[i++]=s:r=new t(s)}return r}class u{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const c=new u;class h{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=c,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let r=this.range,n=this.rangeIndex,i=this.pos+e;for(;i<r.from;){if(!n)return null;let e=this.ranges[--n];i-=r.from-e.to,r=e}for(;t<0?i>r.to:i>=r.to;){if(n==this.ranges.length-1)return null;let e=this.ranges[++n];i+=e.from-r.to,r=e}return i}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t,r,n=this.chunkOff+e;if(n>=0&&n<this.chunk.length)t=this.pos+e,r=this.chunk.charCodeAt(n);else{let n=this.resolveOffset(e,1);if(null==n)return-1;if(t=n,t>=this.chunk2Pos&&t<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(t-this.chunk2Pos);else{let e=this.rangeIndex,n=this.range;for(;n.to<=t;)n=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=t),t+this.chunk2.length>n.to&&(this.chunk2=this.chunk2.slice(0,n.to-t)),r=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),r}acceptToken(e,t=0){let r=t?this.resolveOffset(t,-1):this.pos;if(null==r||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=r}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=c,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let r="";for(let n of this.ranges){if(n.from>=t)break;n.to>e&&(r+=this.input.read(Math.max(n.from,e),Math.min(n.to,t)))}return r}}class p{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:r}=t.p;f(this.data,e,t,this.id,r.data,r.tokenPrecTable)}}p.prototype.contextual=p.prototype.fallback=p.prototype.extend=!1;class d{constructor(e,t,r){this.precTable=t,this.elseToken=r,this.data="string"==typeof e?l(e):e}token(e,t){let r=e.pos,n=0;for(;;){let r=e.next<0,i=e.resolveOffset(1,1);if(f(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(r||n++,null==i)break;e.reset(i,e.token)}n&&(e.reset(r,e.token),e.acceptToken(this.elseToken,n))}}function f(e,t,r,n,i,s){let o=0,a=1<<n,{dialect:l}=r.p.parser;e:for(;0!=(a&e[o]);){let r=e[o+1];for(let n=o+3;n<r;n+=2)if((e[n+1]&a)>0){let r=e[n];if(l.allows(r)&&(-1==t.token.value||t.token.value==r||g(r,t.token.value,i,s))){t.acceptToken(r);break}}let n=t.next,u=0,c=e[o+2];if(!(t.next<0&&c>u&&65535==e[r+3*c-3])){for(;u<c;){let i=u+c>>1,s=r+i+(i<<1),a=e[s],l=e[s+1]||65536;if(n<a)c=i;else{if(!(n>=l)){o=e[s+2],t.advance();continue e}u=i+1}}break}o=e[r+3*c-1]}}function m(e,t,r){for(let n,i=t;65535!=(n=e[i]);i++)if(n==r)return i-t;return-1}function g(e,t,r,n){let i=m(r,n,t);return i<0||m(r,n,e)<i}d.prototype.contextual=p.prototype.fallback=p.prototype.extend=!1;const y="undefined"!=typeof process&&process.env&&/\bparse\b/.test(process.env.LOG);let O=null;function x(e,t,r){let i=e.cursor(n.IterMode.IncludeAnonymous);for(i.moveTo(t);;)if(!(r<0?i.childBefore(t):i.childAfter(t)))for(;;){if((r<0?i.to<t:i.from>t)&&!i.type.isError)return r<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(e.length,Math.max(i.from+1,t+25));if(r<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return r<0?0:e.length}}class b{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?x(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?x(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let r=this.trees[t],i=this.index[t];if(i==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=r.children[i],o=this.start[t]+r.positions[i];if(o>e)return this.nextStart=o,null;if(s instanceof n.Tree){if(o==e){if(o<this.safeFrom)return null;let e=o+s.length;if(e<=this.safeTo){let t=s.prop(n.NodeProp.lookAhead);if(!t||e+t<this.fragment.to)return s}}this.index[t]++,o+s.length>=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+s.length}}}class v{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new u))}getActions(e){let t=0,r=null,{parser:n}=e.p,{tokenizers:i}=n,s=n.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,a=0;for(let n=0;n<i.length;n++){if(0==(1<<n&s))continue;let l=i[n],u=this.tokens[n];if((!r||l.fallback)&&((l.contextual||u.start!=e.pos||u.mask!=s||u.context!=o)&&(this.updateCachedToken(u,l,e),u.mask=s,u.context=o),u.lookAhead>u.end+25&&(a=Math.max(u.lookAhead,a)),0!=u.value)){let n=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!l.extend&&(r=u,t>n))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),r||e.pos!=this.stream.end||(r=new u,r.value=e.p.parser.eofTerm,r.start=r.end=e.pos,t=this.addActions(e,r.value,r.end,t)),this.mainToken=r,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new u,{pos:r,p:n}=e;return t.start=r,t.end=Math.min(r+1,n.stream.end),t.value=r==n.stream.end?n.parser.eofTerm:0,t}updateCachedToken(e,t,r){let n=this.stream.clipPos(r.pos);if(t.token(this.stream.reset(n,e),r),e.value>-1){let{parser:t}=r.p;for(let n=0;n<t.specialized.length;n++)if(t.specialized[n]==e.value){let i=t.specializers[n](this.stream.read(e.start,e.end),r);if(i>=0&&r.p.parser.dialect.allows(i>>1)){0==(1&i)?e.value=i>>1:e.extended=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(n+1)}putAction(e,t,r,n){for(let t=0;t<n;t+=3)if(this.actions[t]==e)return n;return this.actions[n++]=e,this.actions[n++]=t,this.actions[n++]=r,n}addActions(e,t,r,n){let{state:i}=e,{parser:s}=e.p,{data:o}=s;for(let e=0;e<2;e++)for(let a=s.stateSlot(i,e?2:1);;a+=3){if(65535==o[a]){if(1!=o[a+1]){0==n&&2==o[a+1]&&(n=this.putAction(C(o,a+2),t,r,n));break}a=C(o,a+2)}o[a]==t&&(n=this.putAction(C(o,a+1),t,r,n))}return n}}class w{constructor(e,t,r,n){this.parser=e,this.input=t,this.ranges=n,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new h(t,n),this.tokens=new v(e,this.stream),this.topTerm=e.top[1];let{from:s}=n[0];this.stacks=[i.start(this,e.top[0],s)],this.fragments=r.length&&this.stream.end-s>4*e.bufferLength?new b(r,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,r=this.stacks,n=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==r.length){let[e]=r;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;s<r.length;s++){let o=r[s];for(;;){if(this.tokens.mainToken=null,o.pos>n)i.push(o);else{if(this.advanceStack(o,i,r))continue;{e||(e=[],t=[]),e.push(o);let r=this.tokens.getMainToken(o);t.push(r.value,r.end)}}break}}if(!i.length){let t=e&&function(e){let t=null;for(let r of e){let e=r.p.stoppedAt;(r.pos==r.p.stream.end||null!=e&&r.pos>e)&&r.p.parser.stateFlag(r.state,2)&&(!t||t.score<r.score)&&(t=r)}return t}(e);if(t)return y&&console.log("Finish with "+this.stackID(t)),this.stackToTree(t);if(this.parser.strict)throw y&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&e){let r=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,i);if(r)return y&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(i.length>e)for(i.sort(((e,t)=>t.score-e.score));i.length>e;)i.pop();i.some((e=>e.reducePos>n))&&this.recovering--}else if(i.length>1){e:for(let e=0;e<i.length-1;e++){let t=i[e];for(let r=e+1;r<i.length;r++){let n=i[r];if(t.sameState(n)||t.buffer.length>500&&n.buffer.length>500){if(!((t.score-n.score||t.buffer.length-n.buffer.length)>0)){i.splice(e--,1);continue e}i.splice(r--,1)}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let e=1;e<i.length;e++)i[e].pos<this.minStackPos&&(this.minStackPos=i[e].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,r){let i=e.pos,{parser:s}=this,o=y?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,r=t?e.curContext.hash:0;for(let a=this.fragments.nodeAt(i);a;){let i=this.parser.nodeSet.types[a.type.id]==a.type?s.getGoto(e.state,a.type.id):-1;if(i>-1&&a.length&&(!t||(a.prop(n.NodeProp.contextHash)||0)==r))return e.useNode(a,i),y&&console.log(o+this.stackID(e)+` (via reuse of ${s.getName(a.type.id)})`),!0;if(!(a instanceof n.Tree)||0==a.children.length||a.positions[0]>0)break;let l=a.children[0];if(!(l instanceof n.Tree&&0==a.positions[0]))break;a=l}}let a=s.stateSlot(e.state,4);if(a>0)return e.reduce(a),y&&console.log(o+this.stackID(e)+` (via always-reduce ${s.getName(65535&a)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let n=0;n<l.length;){let a=l[n++],u=l[n++],c=l[n++],h=n==l.length||!r,p=h?e:e.split(),d=this.tokens.mainToken;if(p.apply(a,u,d?d.start:p.pos,c),y&&console.log(o+this.stackID(p)+` (via ${0==(65536&a)?"shift":`reduce of ${s.getName(65535&a)}`} for ${s.getName(u)} @ ${i}${p==e?"":", split"})`),h)return!0;p.pos>i?t.push(p):r.push(p)}return!1}advanceFully(e,t){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>r)return D(e,t),!0}}runRecovery(e,t,r){let n=null,i=!1;for(let s=0;s<e.length;s++){let o=e[s],a=t[s<<1],l=t[1+(s<<1)],u=y?this.stackID(o)+" -> ":"";if(o.deadEnd){if(i)continue;if(i=!0,o.restart(),y&&console.log(u+this.stackID(o)+" (restarted)"),this.advanceFully(o,r))continue}let c=o.split(),h=u;for(let e=0;c.forceReduce()&&e<10&&(y&&console.log(h+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,r));e++)y&&(h=this.stackID(c)+" -> ");for(let e of o.recoverByInsert(a))y&&console.log(u+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,r);this.stream.end>o.pos?(l==o.pos&&(l++,a=0),o.recoverByDelete(a,l),y&&console.log(u+this.stackID(o)+` (via recover-delete ${this.parser.getName(a)})`),D(o,r)):(!n||n.score<o.score)&&(n=o)}return n}stackToTree(e){return e.close(),n.Tree.build({buffer:a.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(O||(O=new WeakMap)).get(e);return t||O.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function D(e,t){for(let r=0;r<t.length;r++){let n=t[r];if(n.pos==e.pos&&n.sameState(e))return void(t[r].score<e.score&&(t[r]=e))}t.push(e)}class S{constructor(e,t,r){this.source=e,this.flags=t,this.disabled=r}allows(e){return!this.disabled||0==this.disabled[e]}}const k=e=>e;class E extends n.Parser{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let r=0;r<e.repeatNodeCount;r++)t.push("");let r=Object.keys(e.topRules).map((t=>e.topRules[t][1])),i=[];for(let e=0;e<t.length;e++)i.push([]);function s(e,t,r){i[e].push([t,t.deserialize(String(r))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];"string"==typeof e&&(e=n.NodeProp[e]);for(let r=1;r<t.length;){let n=t[r++];if(n>=0)s(n,e,t[r++]);else{let i=t[r+-n];for(let o=-n;o>0;o--)s(t[r++],e,i);r++}}}this.nodeSet=new n.NodeSet(t.map(((t,s)=>n.NodeType.define({name:s>=this.minRepeatTerm?void 0:t,id:s,props:i[s],top:r.indexOf(s)>-1,error:0==s,skipped:e.skippedNodes&&e.skippedNodes.indexOf(s)>-1})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=n.DefaultBufferLength;let o=l(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(T),this.states=l(e.states,Uint32Array),this.data=l(e.stateData),this.goto=l(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map((e=>"number"==typeof e?new p(o,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,r){let n=new w(this,e,t,r);for(let i of this.wrappers)n=i(n,e,t,r);return n}getGoto(e,t,r=!1){let n=this.goto;if(t>=n[0])return-1;for(let i=n[t+1];;){let t=n[i++],s=1&t,o=n[i++];if(s&&r)return o;for(let r=i+(t>>1);i<r;i++)if(n[i]==e)return o;if(s)return-1}}hasAction(e,t){let r=this.data;for(let n=0;n<2;n++)for(let i,s=this.stateSlot(e,n?2:1);;s+=3){if(65535==(i=r[s])){if(1!=r[s+1]){if(2==r[s+1])return C(r,s+2);break}i=r[s=C(r,s+2)]}if(i==t||0==i)return C(r,s+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,(e=>e==t||null))}allActions(e,t){let r=this.stateSlot(e,4),n=r?t(r):void 0;for(let r=this.stateSlot(e,1);null==n;r+=3){if(65535==this.data[r]){if(1!=this.data[r+1])break;r=C(this.data,r+2)}n=t(C(this.data,r+1))}return n}nextStates(e){let t=[];for(let r=this.stateSlot(e,1);;r+=3){if(65535==this.data[r]){if(1!=this.data[r+1])break;r=C(this.data,r+2)}if(0==(1&this.data[r+2])){let e=this.data[r+1];t.some(((t,r)=>1&r&&t==e))||t.push(this.data[r],e)}}return t}configure(e){let t=Object.assign(Object.create(E.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let r=this.topRules[e.top];if(!r)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=r}return e.tokenizers&&(t.tokenizers=this.tokenizers.map((t=>{let r=e.tokenizers.find((e=>e.from==t));return r?r.to:t}))),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map(((r,n)=>{let i=e.specializers.find((e=>e.from==r.external));if(!i)return r;let s=Object.assign(Object.assign({},r),{external:i.to});return t.specializers[n]=T(s),s}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),r=t.map((()=>!1));if(e)for(let n of e.split(" ")){let e=t.indexOf(n);e>=0&&(r[e]=!0)}let n=null;for(let e=0;e<t.length;e++)if(!r[e])for(let r,i=this.dialects[t[e]];65535!=(r=this.data[i++]);)(n||(n=new Uint8Array(this.maxTerm+1)))[r]=1;return new S(e,r,n)}static deserialize(e){return new E(e)}}function C(e,t){return e[t]|e[t+1]<<16}function T(e){if(e.external){let t=e.extend?1:0;return(r,n)=>e.external(r,n)<<1|t}return e.get}t.ContextTracker=class{constructor(e){this.start=e.start,this.shift=e.shift||k,this.reduce=e.reduce||k,this.reuse=e.reuse||k,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}},t.ExternalTokenizer=class{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}},t.InputStream=h,t.LRParser=E,t.LocalTokenGroup=d,t.Stack=i},70:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1506),i=r(9064),s=r(2533),o=r(9277),a=r(8539),l=r(591),u=r(4126);const c=[n.lineNumbers(),n.highlightActiveLineGutter(),n.highlightSpecialChars(),o.history(),s.foldGutter(),n.drawSelection(),n.dropCursor(),i.EditorState.allowMultipleSelections.of(!0),s.indentOnInput(),s.syntaxHighlighting(s.defaultHighlightStyle,{fallback:!0}),s.bracketMatching(),l.closeBrackets(),l.autocompletion(),n.rectangularSelection(),n.crosshairCursor(),n.highlightActiveLine(),a.highlightSelectionMatches(),n.keymap.of([...l.closeBracketsKeymap,...o.defaultKeymap,...a.searchKeymap,...o.historyKeymap,...s.foldKeymap,...l.completionKeymap,...u.lintKeymap])],h=[n.highlightSpecialChars(),o.history(),n.drawSelection(),s.syntaxHighlighting(s.defaultHighlightStyle,{fallback:!0}),n.keymap.of([...o.defaultKeymap,...o.historyKeymap])];Object.defineProperty(t,"EditorView",{enumerable:!0,get:function(){return n.EditorView}}),t.basicSetup=c,t.minimalSetup=h},8748:e=>{"use strict";function t(e,r){if("string"==typeof r)e.appendChild(document.createTextNode(r));else if(null==r);else if(null!=r.nodeType)e.appendChild(r);else{if(!Array.isArray(r))throw new RangeError("Unsupported child node: "+r);for(var n=0;n<r.length;n++)t(e,r[n])}}e.exports=function(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var r=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var s=n[i];"string"==typeof s?e.setAttribute(i,s):null!=s&&(e[i]=s)}r++}for(;r<arguments.length;r++)t(e,arguments[r]);return e}},9172:(e,t)=>{var r="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),n="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{},s=t.StyleModule=function(e,t){this.rules=[];var r=(t||{}).finish;function n(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function i(e,t,s,o){var a=[],l=/^@(\w+)\b/.exec(e[0]),u=l&&"keyframes"==l[1];if(l&&null==t)return s.push(e[0]+";");for(var c in t){var h=t[c];if(/&/.test(c))i(c.split(/,\s*/).map((function(t){return e.map((function(e){return t.replace(/&/,e)}))})).reduce((function(e,t){return e.concat(t)})),h,s);else if(h&&"object"==typeof h){if(!l)throw new RangeError("The value of a property ("+c+") should be a primitive value.");i(n(c),h,a,u)}else null!=h&&a.push(c.replace(/_.*/,"").replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))+": "+h+";")}(a.length||u)&&s.push((!r||l||o?e:e.map(r)).join(", ")+" {"+a.join(" ")+"}")}for(var s in e)i(n(s),e[s],this.rules)};s.prototype.getRules=function(){return this.rules.join("\n")},s.newName=function(){var e=i[r]||1;return i[r]=e+1,"ͼ"+e.toString(36)},s.mount=function(e,t,r){var i=e[n],s=r&&r.nonce;i?s&&i.setNonce(s):i=new a(e,s),i.mount(Array.isArray(t)?t:[t])};var o=new Map,a=function(e,t){var r=e.ownerDocument||e,i=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){var s=o.get(r);if(s)return e.adoptedStyleSheets=[s.sheet].concat(e.adoptedStyleSheets),e[n]=s;this.sheet=new i.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet].concat(e.adoptedStyleSheets),o.set(r,this)}else{this.styleTag=r.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);var a=e.head||e;a.insertBefore(this.styleTag,a.firstChild)}this.modules=[],e[n]=this};a.prototype.mount=function(e){for(var t=this.sheet,r=0,n=0,i=0;i<e.length;i++){var s=e[i],o=this.modules.indexOf(s);if(o<n&&o>-1&&(this.modules.splice(o,1),n--,o=-1),-1==o){if(this.modules.splice(n++,0,s),t)for(var a=0;a<s.rules.length;a++)t.insertRule(s.rules[a],r++)}else{for(;n<o;)r+=this.modules[n++].rules.length;r+=s.rules.length,n++}}if(!t){for(var l="",u=0;u<this.modules.length;u++)l+=this.modules[u].getRules()+"\n";this.styleTag.textContent=l}},a.prototype.setNonce=function(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}},6237:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},n={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},i="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),s="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),o=0;o<10;o++)r[48+o]=r[96+o]=String(o);for(o=1;o<=24;o++)r[o+111]="F"+o;for(o=65;o<=90;o++)r[o]=String.fromCharCode(o+32),n[o]=String.fromCharCode(o);for(var a in r)n.hasOwnProperty(a)||(n[a]=r[a]);t.base=r,t.keyName=function(e){var t=!(i&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||s&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?n:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t},t.shift=n}},t={};!function r(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,r),s.exports}(1485)})();