diff --git a/package.json b/package.json index 184a220d..ec643af1 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,10 @@ "verror": "^1.10.0" }, "devDependencies": { + "@babel/core": "^7.4.3", + "@babel/preset-env": "^7.8.4", "ava": "^1.4.1", + "babel-loader": "^8.0.6", "cross-env": "^5.2.0", "husky": "^3.0.0", "mock-require": "^3.0.3", diff --git a/standalone.js b/standalone.js index f2efc371..7b83ee5e 100644 --- a/standalone.js +++ b/standalone.js @@ -1,23 +1,23 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.harToK6=t():e.harToK6=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=47)}([function(e,t,r){const{VError:n}=r(48);class i extends n{}Object.assign(t,{HarToK6Error:i,InvalidArchiveError:class extends i{},UnrecognizedError:class extends i{}})},function(e,t){const r=Object.freeze({Fixed:1,Constructed:2,Resolved:3,Runtime:4}),n=Object.freeze({Contains:0,NotContains:1,Equals:2,StartsWith:3,EndsWith:4}),i=m(n),a=Object.freeze({ResponseBody:0,ResponseHeaders:1,HttpStatusCode:2}),s=m(a),o=Object.freeze({Text:0,JSONPathValue:1,JSONPath:2,Regex:3}),u=m(o),c=Object.freeze({Top:0,Suffix:1}),l=Object.freeze({External:0,Group:1}),p=Object.freeze({Empty:1,Unstructured:2,Structured:3}),h=Object.freeze({Identifier:0,String:1,Template:2}),f=Object.freeze({JSONPath:0,Regex:1}),d=m(f);function m(e){const t=new Map;for(const r of Object.keys(e)){const n=e[r];if(t.has(n))throw new Error("Duplicate enum item encoding");t.set(n,r)}return t}Object.assign(t,{AddressSpecies:r,CheckCondition:n,CheckConditionEncoding:i,CheckSubject:a,CheckSubjectEncoding:s,CheckType:o,CheckTypeEncoding:u,CommentLocation:c,FlowItemType:l,PostSpecies:p,StringSpecies:h,VariableType:f,VariableTypeEncoding:d})},function(e,t){Object.assign(t,{empty:function(e){return null==e||""===e},isBlacklistedHeader:function(e=""){const[t]=e.split(";");return["Content-Length"].some(e=>t.toLowerCase()===e.toLowerCase())},emptyObject:function(e){return!Object.keys(e).length},extrinsic:function(e){return Math.max(...Object.values(e))+1},nought:function(e){return null==e}})},function(e,t){Object.assign(t,{absoluteUrl:/^([^:]+):\/\//,lineBreak:/\n/,lineComment:/^\/\//,multilineComment:/^\/\*/,multilineCommentEnds:/\*\//g,variable:/\${([^}]*)}/,variables:/\${([^}]*)}/g,variableStart:/^\${([^}]*)}/})},function(e,t,r){const n=r(130),i=r(131);e.exports=function(e,t){return Array.isArray(e)?n(e,t):i(e)}},function(e,t,r){"use strict"; +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.harToK6=t():e.harToK6=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=47)}([function(e,t,r){function n(e){return(n="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})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){function t(){return i(this,t),a(this,s(t).apply(this,arguments))}return o(t,e),t}(r(48).VError),l=function(e){function t(){return i(this,t),a(this,s(t).apply(this,arguments))}return o(t,e),t}(c),p=function(e){function t(){return i(this,t),a(this,s(t).apply(this,arguments))}return o(t,e),t}(c);Object.assign(t,{HarToK6Error:c,InvalidArchiveError:l,UnrecognizedError:p})},function(e,t){var r=Object.freeze({Fixed:1,Constructed:2,Resolved:3,Runtime:4}),n=Object.freeze({Contains:0,NotContains:1,Equals:2,StartsWith:3,EndsWith:4}),i=m(n),a=Object.freeze({ResponseBody:0,ResponseHeaders:1,HttpStatusCode:2}),s=m(a),o=Object.freeze({Text:0,JSONPathValue:1,JSONPath:2,Regex:3}),u=m(o),c=Object.freeze({Top:0,Suffix:1}),l=Object.freeze({External:0,Group:1}),p=Object.freeze({Empty:1,Unstructured:2,Structured:3}),h=Object.freeze({Identifier:0,String:1,Template:2}),f=Object.freeze({JSONPath:0,Regex:1}),d=m(f);function m(e){for(var t=new Map,r=0,n=Object.keys(e);r0&&void 0!==arguments[0]?arguments[0]:"",t=["Content-Length"],n=e.split(";"),i=r(n,1),a=i[0];return t.some((function(e){return a.toLowerCase()===e.toLowerCase()}))},emptyObject:function(e){return!Object.keys(e).length},extrinsic:function(e){return Math.max.apply(Math,n(Object.values(e)))+1},nought:function(e){return null==e}})},function(e,t){Object.assign(t,{absoluteUrl:/^([^:]+):\/\//,lineBreak:/\n/,lineComment:/^\/\//,multilineComment:/^\/\*/,multilineCommentEnds:/\*\//g,variable:/\${([^}]*)}/,variables:/\${([^}]*)}/g,variableStart:/^\${([^}]*)}/})},function(e,t,r){var n=r(130),i=r(131);e.exports=function(e,t){return Array.isArray(e)?n(e,t):i(e)}},function(e,t,r){"use strict"; /*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */var n=r(180);function i(e){return!0===n(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,r;return!1!==i(e)&&("function"==typeof(t=e.constructor)&&(!1!==i(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){const n=r(4),i=r(23),{variable:a}=r(3);e.exports=function(e,t){return function(e){return"string"==typeof e?a.test(e):-1!==e.findIndex(e=>a.test(e))}(e)?i(e,t):n(e,t)}},function(e,t,r){const{lineBreak:n,multilineCommentEnds:i}=r(3);function a(e){return e.replace(i,"* /")}e.exports=function(e){return n.test(e)?function(e){const t=[];t.push("/*");for(const r of e.split("\n")){const e=` * ${a(r)}`;t.push(e)}return t.push(" */"),t.join("\n")}(e):`// ${e}`}},function(e,t){e.exports=function(e){return e.split("\n").map(e=>e?` ${e}`:"").join("\n")}},function(e,t){var r,n,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,c=[],l=!1,p=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):p=-1,c.length&&f())}function f(){if(!l){var e=o(h);l=!0;for(var t=c.length;t;){for(u=c,c=[];++p1)for(var r=1;r1)for(var r=1;r * @license MIT */ -var n=r(50),i=r(51),a=r(26);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(e).length;default:if(n)return $(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var 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 T(this,t,r);case"utf8":case"utf-8":return w(this,t,r);case"ascii":return S(this,t,r);case"latin1":case"binary":return k(this,t,r);case"base64":return F(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function D(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),r=+r,isNaN(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=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,i){var a,s=1,o=e.length,u=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;s=2,o/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(a=r;ao&&(r=o-u),a=r;a>=0;a--){for(var p=!0,h=0;hi&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var s=0;s>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function F(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function w(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+p<=r)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(a=e[i+1]))&&(u=(31&c)<<6|63&a)>127&&(l=u);break;case 3:a=e[i+1],s=e[i+2],128==(192&a)&&128==(192&s)&&(u=(15&c)<<12|(63&a)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:a=e[i+1],s=e[i+2],o=e[i+3],128==(192&a)&&128==(192&s)&&128==(192&o)&&(u=(15&c)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");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;for(var a=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),o=Math.min(a,s),c=this.slice(n,i),l=e.slice(t,r),p=0;pi)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return E(this,e,t,r);case"ascii":return b(this,e,t,r);case"latin1":case"binary":return C(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function I(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function O(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function _(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,r,n,a){return a||_(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,a){return a||_(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||B(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||B(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||B(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||B(e,t,this.length);for(var n=this[e],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||B(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||B(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||B(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||B(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||B(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||N(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var a=0,s=1,o=0;for(this[t]=255&e;++a>0)-o&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var a=r-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.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;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function q(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(6))},function(e,t,r){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=a)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),u=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(r)?n.showHidden=r:r&&t._extend(n,r),g(n.showHidden)&&(n.showHidden=!1),g(n.depth)&&(n.depth=2),g(n.colors)&&(n.colors=!1),g(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),l(n,e,n.depth)}function u(e,t){var r=o.styles[t];return r?"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m":e}function c(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return D(i)||(i=l(e,i,n)),i}var a=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(D(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(y(t))return e.stylize(""+t,"number");if(d(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,r);if(a)return a;var s=Object.keys(r),o=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),C(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(r);if(0===s.length){if(x(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(v(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(b(r))return e.stylize(Date.prototype.toString.call(r),"date");if(C(r))return p(r)}var c,E="",A=!1,F=["{","}"];(f(r)&&(A=!0,F=["[","]"]),x(r))&&(E=" [Function"+(r.name?": "+r.name:"")+"]");return v(r)&&(E=" "+RegExp.prototype.toString.call(r)),b(r)&&(E=" "+Date.prototype.toUTCString.call(r)),C(r)&&(E=" "+p(r)),0!==s.length||A&&0!=r.length?n<0?v(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=A?function(e,t,r,n,i){for(var a=[],s=0,o=t.length;s=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,E,F)):F[0]+E+F[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,a){var s,o,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?o=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(o=e.stylize("[Setter]","special")),k(n,i)||(s="["+i+"]"),o||(e.seen.indexOf(u.value)<0?(o=m(r)?l(e,u.value,null):l(e,u.value,r-1)).indexOf("\n")>-1&&(o=a?o.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+o.split("\n").map((function(e){return" "+e})).join("\n")):o=e.stylize("[Circular]","special")),g(s)){if(a&&i.match(/^\d+$/))return o;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+o}function f(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function m(e){return null===e}function y(e){return"number"==typeof e}function D(e){return"string"==typeof e}function g(e){return void 0===e}function v(e){return E(e)&&"[object RegExp]"===A(e)}function E(e){return"object"==typeof e&&null!==e}function b(e){return E(e)&&"[object Date]"===A(e)}function C(e){return E(e)&&("[object Error]"===A(e)||e instanceof Error)}function x(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function F(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(g(a)&&(a=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!s[r])if(new RegExp("\\b"+r+"\\b","i").test(a)){var n=e.pid;s[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else s[r]=function(){};return s[r]},t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=d,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=D,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=g,t.isRegExp=v,t.isObject=E,t.isDate=b,t.isError=C,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(53);var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(){var e=new Date,t=[F(e.getHours()),F(e.getMinutes()),F(e.getSeconds())].join(":");return[e.getDate(),w[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",S(),t.format.apply(t,arguments))},t.inherits=r(54),t._extend=function(e,t){if(!t||!E(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t;if("function"!=typeof(t=e[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],a=0;a0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,o=u,console&&console.warn&&console.warn(o)}return e}function h(){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 f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function d(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;r0&&(s=t[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)a(u,this,t);else{var c=u.length,l=y(u,c);for(r=0;r=0;a--)if(r[a]===t||r[a].listener===t){s=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},o.prototype.listenerCount=m,o.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){(t=e.exports=r(28)).Stream=t,t.Readable=t,t.Writable=r(22),t.Duplex=r(11),t.Transform=r(32),t.PassThrough=r(63)},function(e,t,r){var n=r(16),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=s),a(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t,n,i){var a=r(18);function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=g;var o,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:a.nextTick;g.WritableState=D;var c=Object.create(r(13));c.inherits=r(12);var l={deprecate:r(61)},p=r(29),h=r(21).Buffer,f=i.Uint8Array||function(){};var d,m=r(30);function y(){}function D(e,t){o=o||r(11),e=e||{};var n=t instanceof o;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,c=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===e.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(a.nextTick(i,n),a.nextTick(A,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),A(e,t))}(e,r,n,t,i);else{var s=C(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||b(e,r),n?u(E,e,r,s,i):E(e,r,s,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function g(e){if(o=o||r(11),!(d.call(g,this)||this instanceof o))return new g(e);this._writableState=new D(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),p.call(this)}function v(e,t,r,n,i,a,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function E(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),A(e,t)}function b(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var o=0,u=!0;r;)i[o]=r,r.isBuf||(u=!1),r=r.next,o+=1;i.allBuffers=u,v(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,p=r.callback;if(v(e,t,!1,t.objectMode?1:c.length,c,l,p),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),A(e,t)}))}function A(e,t){var r=C(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}c.inherits(g,p),D.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(D.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===g&&(e&&e._writableState instanceof D)}})):d=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,r){var n,i=this._writableState,s=!1,o=!i.objectMode&&(n=e,h.isBuffer(n)||n instanceof f);return o&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=y),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),a.nextTick(t,r)}(this,r):(o||function(e,t,r,n){var i=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),a.nextTick(n,s),i=!1),i}(this,i,e,r))&&(i.pendingcb++,s=function(e,t,r,n,i,a){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,r));return t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var o=t.objectMode?1:n.length;t.length+=o;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,A(e,t),r&&(t.finished?a.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=m.destroy,g.prototype._undestroy=m.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(10),r(59).setImmediate,r(6))},function(e,t,r){const n=r(140),i=r(142);e.exports=function(e,t){return Array.isArray(e)?n(e,t):i(e)}},function(e,t,r){const n=r(160),i=r(161);e.exports=function(e){const t=e.filter(e=>e.comment);return t.length?1===e.length?t[0].comment:[i(e.filter(e=>!e.value)),n(e.filter(e=>e.value))].filter(e=>e).join("\n"):null}},function(e,t){Object.assign(t,{firstElement:function(e,t){return e[0]>t[0]?1:e[0]t.index?1:e.indext.value?1:e.value=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return q(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(n)return q(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var 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 T(this,t,r);case"utf8":case"utf-8":return F(this,t,r);case"ascii":return S(this,t,r);case"latin1":case"binary":return k(this,t,r);case"base64":return w(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function D(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),r=+r,isNaN(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=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,i){var a,s=1,o=e.length,u=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;s=2,o/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(a=r;ao&&(r=o-u),a=r;a>=0;a--){for(var p=!0,h=0;hi&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var s=0;s>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function w(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function F(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+p<=r)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(a=e[i+1]))&&(u=(31&c)<<6|63&a)>127&&(l=u);break;case 3:a=e[i+1],s=e[i+2],128==(192&a)&&128==(192&s)&&(u=(15&c)<<12|(63&a)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:a=e[i+1],s=e[i+2],o=e[i+3],128==(192&a)&&128==(192&s)&&128==(192&o)&&(u=(15&c)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");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;for(var a=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),o=Math.min(a,s),c=this.slice(n,i),l=e.slice(t,r),p=0;pi)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return E(this,e,t,r);case"ascii":return b(this,e,t,r);case"latin1":case"binary":return C(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function I(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function O(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function _(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,r,n,a){return a||_(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,a){return a||_(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||B(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||B(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||B(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||B(e,t,this.length);for(var n=this[e],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||B(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||B(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||B(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||B(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||B(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||N(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var a=0,s=1,o=0;for(this[t]=255&e;++a>0)-o&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var a=r-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.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;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function U(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(6))},function(e,t,r){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=a)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),u=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(r)?n.showHidden=r:r&&t._extend(n,r),g(n.showHidden)&&(n.showHidden=!1),g(n.depth)&&(n.depth=2),g(n.colors)&&(n.colors=!1),g(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),l(n,e,n.depth)}function u(e,t){var r=o.styles[t];return r?"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m":e}function c(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return D(i)||(i=l(e,i,n)),i}var a=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(D(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(y(t))return e.stylize(""+t,"number");if(d(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,r);if(a)return a;var s=Object.keys(r),o=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),C(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(r);if(0===s.length){if(x(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(v(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(b(r))return e.stylize(Date.prototype.toString.call(r),"date");if(C(r))return p(r)}var c,E="",A=!1,w=["{","}"];(f(r)&&(A=!0,w=["[","]"]),x(r))&&(E=" [Function"+(r.name?": "+r.name:"")+"]");return v(r)&&(E=" "+RegExp.prototype.toString.call(r)),b(r)&&(E=" "+Date.prototype.toUTCString.call(r)),C(r)&&(E=" "+p(r)),0!==s.length||A&&0!=r.length?n<0?v(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=A?function(e,t,r,n,i){for(var a=[],s=0,o=t.length;s=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,E,w)):w[0]+E+w[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,a){var s,o,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?o=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(o=e.stylize("[Setter]","special")),k(n,i)||(s="["+i+"]"),o||(e.seen.indexOf(u.value)<0?(o=m(r)?l(e,u.value,null):l(e,u.value,r-1)).indexOf("\n")>-1&&(o=a?o.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+o.split("\n").map((function(e){return" "+e})).join("\n")):o=e.stylize("[Circular]","special")),g(s)){if(a&&i.match(/^\d+$/))return o;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+o}function f(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function m(e){return null===e}function y(e){return"number"==typeof e}function D(e){return"string"==typeof e}function g(e){return void 0===e}function v(e){return E(e)&&"[object RegExp]"===A(e)}function E(e){return"object"==typeof e&&null!==e}function b(e){return E(e)&&"[object Date]"===A(e)}function C(e){return E(e)&&("[object Error]"===A(e)||e instanceof Error)}function x(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function w(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(g(a)&&(a=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!s[r])if(new RegExp("\\b"+r+"\\b","i").test(a)){var n=e.pid;s[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else s[r]=function(){};return s[r]},t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=d,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=D,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=g,t.isRegExp=v,t.isObject=E,t.isDate=b,t.isError=C,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(53);var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(){var e=new Date,t=[w(e.getHours()),w(e.getMinutes()),w(e.getSeconds())].join(":");return[e.getDate(),F[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",S(),t.format.apply(t,arguments))},t.inherits=r(54),t._extend=function(e,t){if(!t||!E(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t;if("function"!=typeof(t=e[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],a=0;a0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,o=u,console&&console.warn&&console.warn(o)}return e}function h(){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 f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function d(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;r0&&(s=t[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)a(u,this,t);else{var c=u.length,l=y(u,c);for(r=0;r=0;a--)if(r[a]===t||r[a].listener===t){s=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},o.prototype.listenerCount=m,o.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){(t=e.exports=r(28)).Stream=t,t.Readable=t,t.Writable=r(22),t.Duplex=r(11),t.Transform=r(32),t.PassThrough=r(63)},function(e,t,r){var n=r(16),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=s),a(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t,n,i){var a=r(18);function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=g;var o,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:a.nextTick;g.WritableState=D;var c=Object.create(r(13));c.inherits=r(12);var l={deprecate:r(61)},p=r(29),h=r(21).Buffer,f=i.Uint8Array||function(){};var d,m=r(30);function y(){}function D(e,t){o=o||r(11),e=e||{};var n=t instanceof o;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,c=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===e.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(a.nextTick(i,n),a.nextTick(A,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),A(e,t))}(e,r,n,t,i);else{var s=C(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||b(e,r),n?u(E,e,r,s,i):E(e,r,s,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function g(e){if(o=o||r(11),!(d.call(g,this)||this instanceof o))return new g(e);this._writableState=new D(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),p.call(this)}function v(e,t,r,n,i,a,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function E(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),A(e,t)}function b(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var o=0,u=!0;r;)i[o]=r,r.isBuf||(u=!1),r=r.next,o+=1;i.allBuffers=u,v(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,p=r.callback;if(v(e,t,!1,t.objectMode?1:c.length,c,l,p),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),A(e,t)}))}function A(e,t){var r=C(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}c.inherits(g,p),D.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(D.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===g&&(e&&e._writableState instanceof D)}})):d=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,r){var n,i=this._writableState,s=!1,o=!i.objectMode&&(n=e,h.isBuffer(n)||n instanceof f);return o&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=y),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),a.nextTick(t,r)}(this,r):(o||function(e,t,r,n){var i=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),a.nextTick(n,s),i=!1),i}(this,i,e,r))&&(i.pendingcb++,s=function(e,t,r,n,i,a){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,r));return t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var o=t.objectMode?1:n.length;t.length+=o;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,A(e,t),r&&(t.finished?a.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=m.destroy,g.prototype._undestroy=m.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(10),r(59).setImmediate,r(6))},function(e,t,r){var n=r(140),i=r(142);e.exports=function(e,t){return Array.isArray(e)?n(e,t):i(e)}},function(e,t,r){var n=r(160),i=r(161);e.exports=function(e){var t=e.filter((function(e){return e.comment}));return t.length?1===e.length?t[0].comment:[i(e.filter((function(e){return!e.value}))),n(e.filter((function(e){return e.value})))].filter((function(e){return e})).join("\n"):null}},function(e,t){Object.assign(t,{firstElement:function(e,t){return e[0]>t[0]?1:e[0]t.index?1:e.indext.value?1:e.value * @license MIT - */function i(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i=0;c--)if(l[c]!==p[c])return!1;for(c=l.length-1;c>=0;c--)if(o=l[c],!v(e[o],t[o],r,n))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function E(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function b(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function C(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&D(i,r,"Missing expected exception"+n);var a="string"==typeof n,o=!e&&i&&!r;if((!e&&s.isError(i)&&a&&b(i,r)||o)&&D(i,r,"Got unwanted exception"+n),e&&i&&r&&!b(i,r)||!e&&i)throw i}h.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(y(e.actual),128)+" "+e.operator+" "+m(y(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||D;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=d(t),a=n.indexOf("\n"+i);if(a>=0){var s=n.indexOf("\n",a+1);n=n.substring(s+1)}this.stack=n}}},s.inherits(h.AssertionError,Error),h.fail=D,h.ok=g,h.equal=function(e,t,r){e!=t&&D(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&D(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){v(e,t,!1)||D(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){v(e,t,!0)||D(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){v(e,t,!1)&&D(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,n){v(t,r,!0)&&D(t,r,n,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&D(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&D(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){C(!0,e,t,r)},h.doesNotThrow=function(e,t,r){C(!1,e,t,r)},h.ifError=function(e){if(e)throw e},h.strict=n((function e(t,r){t||D(t,!0,r,"==",e)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var x=Object.keys||function(e){var t=[];for(var r in e)o.call(e,r)&&t.push(r);return t}}).call(this,r(6))},function(e,t,r){"use strict";(function(t,n){var i=r(18);e.exports=v;var a,s=r(26);v.ReadableState=g;r(19).EventEmitter;var o=function(e,t){return e.listeners(t).length},u=r(29),c=r(21).Buffer,l=t.Uint8Array||function(){};var p=Object.create(r(13));p.inherits=r(12);var h=r(56),f=void 0;f=h&&h.debuglog?h.debuglog("stream"):function(){};var d,m=r(57),y=r(30);p.inherits(v,u);var D=["error","close","destroy","pause","resume"];function g(e,t){e=e||{};var n=t instanceof(a=a||r(11));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,s=e.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(s||0===s)?s:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=r(31).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function v(e){if(a=a||r(11),!(this instanceof v))return new v(e);this._readableState=new g(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function E(e,t,r,n,i){var a,s=e._readableState;null===t?(s.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,x(e)}(e,s)):(i||(a=function(e,t){var r;n=t,c.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(s,t)),a?e.emit("error",a):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):b(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?b(e,s,t,!1):F(e,s)):b(e,s,t,!1))):n||(s.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(A,e):A(e))}function A(e){f("emit readable"),e.emit("readable"),T(e)}function F(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(w,e,t))}function w(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;ea.length?a.length:e;if(s===a.length?i+=a:i+=a.slice(0,e),0===(e-=s)){s===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(s));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var a=n.data,s=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,s),0===(e-=s)){s===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(s));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function B(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(N,t,e))}function N(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function I(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):x(this),null;if(0===(e=C(e,t))&&t.ended)return 0===t.length&&B(this),null;var n,i=t.needReadable;return f("need readable",i),(0===t.length||t.length-e0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&B(this)),null!==n&&this.emit("data",n),n},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,f("pipe count=%d opts=%j",a.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?l:v;function c(t,n){f("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,f("cleanup"),e.removeListener("close",D),e.removeListener("finish",g),e.removeListener("drain",p),e.removeListener("error",y),e.removeListener("unpipe",c),r.removeListener("end",l),r.removeListener("end",v),r.removeListener("data",m),h=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||p())}function l(){f("onend"),e.end()}a.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",c);var p=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",p);var h=!1;var d=!1;function m(t){f("ondata"),d=!1,!1!==e.write(t)||d||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==I(a.pipes,e))&&!h&&(f("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,d=!0),r.pause())}function y(t){f("onerror",t),v(),e.removeListener("error",y),0===o(e,"error")&&e.emit("error",t)}function D(){e.removeListener("finish",g),v()}function g(){f("onfinish"),e.removeListener("close",D),v()}function v(){f("unpipe"),r.unpipe(e)}return r.on("data",m),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",y),e.once("close",D),e.once("finish",g),e.emit("pipe",r),a.flowing||(f("pipe resume"),r.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){"use strict";e.exports=s;var n=r(11),i=Object.create(r(13));function a(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.lengthe).join("\n")}},function(e,t,r){const{CheckCondition:n}=r(1),{UnrecognizedError:i}=r(0);e.exports=function(e,t){switch(e){case n.Contains:case n.NotContains:return`.includes(${t})`;case n.Equals:return` === ${t}`;case n.StartsWith:return`.startsWith(${t})`;case n.EndsWith:return`.endsWith(${t})`;default:throw new i({name:"UnrecognizedCheckCondition"},`Unrecognized check condition: ${e}`)}}},function(e,t,r){const{CheckSubject:n}=r(1),{UnrecognizedError:i}=r(0);e.exports=function(e){switch(e){case n.ResponseBody:return"response.body";case n.HttpStatusCode:return"response.status.toString()";case n.ResponseHeaders:return"Object.entries(response.headers)\n .map((key, value) => key + ': ' + value)";default:throw new i({name:"UnrecognizedCheckSubject"},`Unrecognized check subject: ${e}`)}}},function(e,t,r){const n=r(138),i=r(139),{StringSpecies:a}=r(1);e.exports=function(e){return i(e)?a.Template:n(e)?a.Identifier:a.String}},function(e,t,r){const n=r(141);function i(e){if("\\"===e[0])return"\\\\";if("`"===e[0])return"\\`";if("}"===e[e.length-1]){const e=arguments[1];return`\${${n(e)}}`}return"{"===e[1]?"\\${":"\\$"}e.exports=function(e){return e.replace(/[\\`]|\$(?!{)|\${(?=[^}]*$)|\${([^}]*)}/g,i)}},function(e,t,r){(function(e,n){var i;/*! https://mths.be/punycode v1.4.0 by @mathias */!function(a){t&&t.nodeType,e&&e.nodeType;var s="object"==typeof n&&n;s.global!==s&&s.window!==s&&s.self;var o,u=2147483647,c=/^xn--/,l=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,d=String.fromCharCode;function m(e){throw new RangeError(h[e])}function y(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function D(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+y((e=e.replace(p,".")).split("."),t).join(".")}function g(e){for(var t,r,n=[],i=0,a=e.length;i=55296&&t<=56319&&i65535&&(t+=d((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=d(e)})).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function b(e,t,r){var n=0;for(e=r?f(e/700):e>>1,e+=f(e/t);e>455;n+=36)e=f(e/35);return f(n+36*e/(e+38))}function C(e){var t,r,n,i,a,s,o,c,l,p,h,d=[],y=e.length,D=0,g=128,E=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&m("not-basic"),d.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=y&&m("invalid-input"),((c=(h=e.charCodeAt(i++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||c>f((u-D)/s))&&m("overflow"),D+=c*s,!(c<(l=o<=E?1:o>=E+26?26:o-E));o+=36)s>f(u/(p=36-l))&&m("overflow"),s*=p;E=b(D-a,t=d.length+1,0==a),f(D/t)>u-g&&m("overflow"),g+=f(D/t),D%=t,d.splice(D++,0,g)}return v(d)}function x(e){var t,r,n,i,a,s,o,c,l,p,h,y,D,v,C,x=[];for(y=(e=g(e)).length,t=128,r=0,a=72,s=0;s=t&&hf((u-r)/(D=n+1))&&m("overflow"),r+=(o-t)*D,t=o,s=0;su&&m("overflow"),h==t){for(c=r,l=36;!(c<(p=l<=a?1:l>=a+26?26:l-a));l+=36)C=c-p,v=36-p,x.push(d(E(p+C%v,0))),c=f(C/v);x.push(d(E(c,0))),a=b(r,D,n==i),r=0,++n}++r,++t}return x.join("")}o={version:"1.3.2",ucs2:{decode:g,encode:v},decode:C,encode:x,toASCII:function(e){return D(e,(function(e){return l.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return D(e,(function(e){return c.test(e)?C(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return o}.call(t,r,t,e))||(e.exports=i)}()}).call(this,r(148)(e),r(6))},function(e,t,r){var n,i; + */function i(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i=0;c--)if(l[c]!==p[c])return!1;for(c=l.length-1;c>=0;c--)if(o=l[c],!v(e[o],t[o],r,n))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function E(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function b(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function C(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&D(i,r,"Missing expected exception"+n);var a="string"==typeof n,o=!e&&i&&!r;if((!e&&s.isError(i)&&a&&b(i,r)||o)&&D(i,r,"Got unwanted exception"+n),e&&i&&r&&!b(i,r)||!e&&i)throw i}h.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(y(e.actual),128)+" "+e.operator+" "+m(y(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||D;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=d(t),a=n.indexOf("\n"+i);if(a>=0){var s=n.indexOf("\n",a+1);n=n.substring(s+1)}this.stack=n}}},s.inherits(h.AssertionError,Error),h.fail=D,h.ok=g,h.equal=function(e,t,r){e!=t&&D(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&D(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){v(e,t,!1)||D(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){v(e,t,!0)||D(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){v(e,t,!1)&&D(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,n){v(t,r,!0)&&D(t,r,n,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&D(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&D(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){C(!0,e,t,r)},h.doesNotThrow=function(e,t,r){C(!1,e,t,r)},h.ifError=function(e){if(e)throw e},h.strict=n((function e(t,r){t||D(t,!0,r,"==",e)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var x=Object.keys||function(e){var t=[];for(var r in e)o.call(e,r)&&t.push(r);return t}}).call(this,r(6))},function(e,t,r){"use strict";(function(t,n){var i=r(18);e.exports=v;var a,s=r(26);v.ReadableState=g;r(19).EventEmitter;var o=function(e,t){return e.listeners(t).length},u=r(29),c=r(21).Buffer,l=t.Uint8Array||function(){};var p=Object.create(r(13));p.inherits=r(12);var h=r(56),f=void 0;f=h&&h.debuglog?h.debuglog("stream"):function(){};var d,m=r(57),y=r(30);p.inherits(v,u);var D=["error","close","destroy","pause","resume"];function g(e,t){e=e||{};var n=t instanceof(a=a||r(11));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,s=e.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(s||0===s)?s:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=r(31).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function v(e){if(a=a||r(11),!(this instanceof v))return new v(e);this._readableState=new g(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function E(e,t,r,n,i){var a,s=e._readableState;null===t?(s.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,x(e)}(e,s)):(i||(a=function(e,t){var r;n=t,c.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(s,t)),a?e.emit("error",a):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):b(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?b(e,s,t,!1):w(e,s)):b(e,s,t,!1))):n||(s.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(A,e):A(e))}function A(e){f("emit readable"),e.emit("readable"),T(e)}function w(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(F,e,t))}function F(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;ea.length?a.length:e;if(s===a.length?i+=a:i+=a.slice(0,e),0===(e-=s)){s===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(s));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var a=n.data,s=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,s),0===(e-=s)){s===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(s));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function B(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(N,t,e))}function N(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function I(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):x(this),null;if(0===(e=C(e,t))&&t.ended)return 0===t.length&&B(this),null;var n,i=t.needReadable;return f("need readable",i),(0===t.length||t.length-e0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&B(this)),null!==n&&this.emit("data",n),n},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,f("pipe count=%d opts=%j",a.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?l:v;function c(t,n){f("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,f("cleanup"),e.removeListener("close",D),e.removeListener("finish",g),e.removeListener("drain",p),e.removeListener("error",y),e.removeListener("unpipe",c),r.removeListener("end",l),r.removeListener("end",v),r.removeListener("data",m),h=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||p())}function l(){f("onend"),e.end()}a.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",c);var p=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",p);var h=!1;var d=!1;function m(t){f("ondata"),d=!1,!1!==e.write(t)||d||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==I(a.pipes,e))&&!h&&(f("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,d=!0),r.pause())}function y(t){f("onerror",t),v(),e.removeListener("error",y),0===o(e,"error")&&e.emit("error",t)}function D(){e.removeListener("finish",g),v()}function g(){f("onfinish"),e.removeListener("close",D),v()}function v(){f("unpipe"),r.unpipe(e)}return r.on("data",m),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",y),e.once("close",D),e.once("finish",g),e.emit("pipe",r),a.flowing||(f("pipe resume"),r.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){"use strict";e.exports=s;var n=r(11),i=Object.create(r(13));function a(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length key + ': ' + value)";default:throw new i({name:"UnrecognizedCheckSubject"},"Unrecognized check subject: ".concat(e))}}},function(e,t,r){var n=r(138),i=r(139),a=r(1).StringSpecies;e.exports=function(e){return i(e)?a.Template:n(e)?a.Identifier:a.String}},function(e,t,r){var n=r(141);function i(e){if("\\"===e[0])return"\\\\";if("`"===e[0])return"\\`";if("}"===e[e.length-1]){var t=arguments[1];return"${".concat(n(t),"}")}return"{"===e[1]?"\\${":"\\$"}e.exports=function(e){return e.replace(/[\\`]|\$(?!{)|\${(?=[^}]*$)|\${([^}]*)}/g,i)}},function(e,t,r){(function(e,n){var i;/*! https://mths.be/punycode v1.4.0 by @mathias */!function(a){t&&t.nodeType,e&&e.nodeType;var s="object"==typeof n&&n;s.global!==s&&s.window!==s&&s.self;var o,u=2147483647,c=/^xn--/,l=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,d=String.fromCharCode;function m(e){throw new RangeError(h[e])}function y(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function D(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+y((e=e.replace(p,".")).split("."),t).join(".")}function g(e){for(var t,r,n=[],i=0,a=e.length;i=55296&&t<=56319&&i65535&&(t+=d((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=d(e)})).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function b(e,t,r){var n=0;for(e=r?f(e/700):e>>1,e+=f(e/t);e>455;n+=36)e=f(e/35);return f(n+36*e/(e+38))}function C(e){var t,r,n,i,a,s,o,c,l,p,h,d=[],y=e.length,D=0,g=128,E=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&m("not-basic"),d.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=y&&m("invalid-input"),((c=(h=e.charCodeAt(i++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||c>f((u-D)/s))&&m("overflow"),D+=c*s,!(c<(l=o<=E?1:o>=E+26?26:o-E));o+=36)s>f(u/(p=36-l))&&m("overflow"),s*=p;E=b(D-a,t=d.length+1,0==a),f(D/t)>u-g&&m("overflow"),g+=f(D/t),D%=t,d.splice(D++,0,g)}return v(d)}function x(e){var t,r,n,i,a,s,o,c,l,p,h,y,D,v,C,x=[];for(y=(e=g(e)).length,t=128,r=0,a=72,s=0;s=t&&hf((u-r)/(D=n+1))&&m("overflow"),r+=(o-t)*D,t=o,s=0;su&&m("overflow"),h==t){for(c=r,l=36;!(c<(p=l<=a?1:l>=a+26?26:l-a));l+=36)C=c-p,v=36-p,x.push(d(E(p+C%v,0))),c=f(C/v);x.push(d(E(c,0))),a=b(r,D,n==i),r=0,++n}++r,++t}return x.join("")}o={version:"1.3.2",ucs2:{decode:g,encode:v},decode:C,encode:x,toASCII:function(e){return D(e,(function(e){return l.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return D(e,(function(e){return c.test(e)?C(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return o}.call(t,r,t,e))||(e.exports=i)}()}).call(this,r(148)(e),r(6))},function(e,t,r){var n,i; /*! * URI.js - Mutating URLs * IPv6 Support @@ -43,12 +43,12 @@ var n=r(50),i=r(51),a=r(26);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647 * Licensed under * MIT License http://www.opensource.org/licenses/mit-license * - */!function(a,s){"use strict";e.exports?e.exports=s():void 0===(i="function"==typeof(n=s)?n.call(t,r,t,e):n)||(e.exports=i)}(0,(function(e){"use strict";var t=e&&e.SecondLevelDomains,r={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return!1;var i=r.list[e.slice(t+1)];return!!i&&i.indexOf(" "+e.slice(n+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var n=r.list[e.slice(t+1)];return!!n&&n.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return null;var i=r.list[e.slice(t+1)];return i?i.indexOf(" "+e.slice(n+1,t)+" ")<0?null:e.slice(n+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return r}))},function(e,t,r){const n=r(179),i=r(210),{assay:a}=r(15);e.exports=function(e){n(e,a()),e.log.entries&&i(e)}},function(e,t,r){(function(t){e.exports=function e(t,r,n){function i(s,o){if(!r[s]){if(!t[s]){if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[s]={exports:{}};t[s][0].call(c.exports,(function(e){var r=t[s][1][e];return i(r||e)}),c,c.exports,e,t,r,n)}return r[s].exports}for(var a=!1,s=0;s=48&&e<=57}function b(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function C(e){return"01234567".indexOf(e)>=0}function x(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function A(e){return 10===e||13===e||8232===e||8233===e}function F(e){return 64==e||36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&o.NonAsciiIdentifierStart.test(String.fromCharCode(e))}function w(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&o.NonAsciiIdentifierPart.test(String.fromCharCode(e))}function S(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function k(e){return"eval"===e||"arguments"===e}function T(e,t,r,n,i){var a;v("number"==typeof r,"Comment must have valid position"),D.lastCommentStart>=r||(D.lastCommentStart=r,a={type:e,value:t},g.range&&(a.range=[r,n]),g.loc&&(a.loc=i),g.comments.push(a),g.attachComment&&(g.leadingComments.push(a),g.trailingComments.push(a)))}function P(e){var t,r,n,i;for(t=p-e,r={start:{line:h,column:p-f-e}};p=d&&J({},s.UnexpectedToken,"ILLEGAL");else if(42===r){if(47===c.charCodeAt(p+1))return++p,++p,void(g.comments&&(n=c.slice(e+2,p-2),t.end={line:h,column:p-f},T("Block",n,e,p,t)));++p}else++p;J({},s.UnexpectedToken,"ILLEGAL")}function N(){var e,t;for(t=0===p;p>>="===(i=c.substr(p,4))?{type:t.Punctuator,value:i,lineNumber:h,lineStart:f,start:a,end:p+=4}:">>>"===(n=i.substr(0,3))||"<<="===n||">>="===n?{type:t.Punctuator,value:n,lineNumber:h,lineStart:f,start:a,end:p+=3}:u===(r=n.substr(0,2))[1]&&"+-<>&|".indexOf(u)>=0||"=>"===r?{type:t.Punctuator,value:r,lineNumber:h,lineStart:f,start:a,end:p+=2}:"<>=!+-*%&|^/".indexOf(u)>=0?(++p,{type:t.Punctuator,value:u,lineNumber:h,lineStart:f,start:a,end:p}):void J({},s.UnexpectedToken,"ILLEGAL")}function L(){var e,r,n;if(v(E((n=c[p]).charCodeAt(0))||"."===n,"Numeric literal must start with a decimal digit or a decimal point"),r=p,e="","."!==n){if(e=c[p++],n=c[p],"0"===e){if("x"===n||"X"===n)return++p,function(e){for(var r="";p0&&(n=g.tokens[g.tokens.length-1]).range[0]===e&&"Punctuator"===n.type&&("/"!==n.value&&"/="!==n.value||g.tokens.pop()),g.tokens.push({type:"RegularExpression",value:r.literal,range:[e,p],loc:t})),r}function $(){var e;return N(),p>=d?{type:t.EOF,lineNumber:h,lineStart:f,start:p,end:p}:F(e=c.charCodeAt(p))?_():40===e||41===e||59===e?j():39===e||34===e?function(){var e,r,n,i,a,o,u,l,m="",y=!1;for(u=h,l=f,v("'"===(e=c[p])||'"'===e,"String literal must starts with a quote"),r=p,++p;p=0&&p=0?j():M()}return M()}return"Keyword"===e.type?M():j()}():j()}function q(){var e,n,i;return N(),e={start:{line:h,column:p-f}},n=$(),e.end={line:h,column:p-f},n.type!==t.EOF&&(i=c.slice(n.start,n.end),g.tokens.push({type:r[n.type],value:i,range:[n.start,n.end],loc:e})),n}function U(){var e;return p=(e=y).end,h=e.lineNumber,f=e.lineStart,y=void 0!==g.tokens?q():$(),p=e.end,h=e.lineNumber,f=e.lineStart,e}function z(){var e,t,r;e=p,t=h,r=f,y=void 0!==g.tokens?q():$(),p=e,h=t,f=r}function V(e,t){this.line=e,this.column=t}function W(e,t,r,n){this.start=new V(e,t),this.end=new V(r,n)}function H(){var e,t,r,n;return e=p,t=h,r=f,N(),n=h!==t,p=e,h=t,f=r,n}function J(e,t){var r,n=Array.prototype.slice.call(arguments,2),i=t.replace(/%(\d)/g,(function(e,t){return v(t":case"<=":case">=":case"instanceof":n=7;break;case"in":n=r?7:0;break;case"<<":case">>":case">>>":n=8;break;case"+":case"-":n=9;break;case"*":case"/":case"%":n=11}return n}function de(){var e,t,r,n,i;return i=y,e=function(){var e,t,r,n,i,a,s,o,u,c;if(e=y,u=he(),0===(i=fe(n=y,D.allowIn)))return u;for(n.prec=i,U(),t=[e,y],a=[u,n,s=he()];(i=fe(y,D.allowIn))>0;){for(;a.length>2&&i<=a[a.length-2].prec;)s=a.pop(),o=a.pop().value,u=a.pop(),r=m.createBinaryExpression(o,u,s),t.pop(),e=t[t.length-1],m.markEnd(r,e),a.push(r);(n=U()).prec=i,a.push(n),t.push(y),r=he(),a.push(r)}for(r=a[c=a.length-1],t.pop();c>1;)r=m.createBinaryExpression(a[c-1].value,a[c-2],r),c-=2,e=t.pop(),m.markEnd(r,e);return r}(),K("?")&&(U(),t=D.allowIn,D.allowIn=!0,r=me(),D.allowIn=t,Q(":"),n=me(),e=m.createConditionalExpression(e,r,n),m.markEnd(e,i)),e}function me(){var e,r,n,a,o,u;return e=y,o=y,a=r=de(),y.type!==t.Punctuator||"="!==(u=y.value)&&"*="!==u&&"/="!==u&&"%="!==u&&"+="!==u&&"-="!==u&&"<<="!==u&&">>="!==u&&">>>="!==u&&"&="!==u&&"^="!==u&&"|="!==u||(te(r)||G({},s.InvalidLHSInAssignment),l&&r.type===i.Identifier&&k(r.name)&&G(e,s.StrictLHSAssignment),e=U(),n=me(),a=m.markEnd(m.createAssignmentExpression(e.value,r,n),o)),a}function ye(){var e,t=y;if(e=me(),K(",")){for(e=m.createSequenceExpression([e]);p",r[t.Identifier]="Identifier",r[t.Keyword]="Keyword",r[t.NullLiteral]="Null",r[t.NumericLiteral]="Numeric",r[t.Punctuator]="Punctuator",r[t.StringLiteral]="String",r[t.RegularExpression]="RegularExpression",n=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],i={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},a={Data:1,Get:2,Set:4},s={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},o={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")},u={name:"SyntaxTree",processComment:function(e){var t,r;if(!(e.type===i.Program&&e.body.length>0)){for(g.trailingComments.length>0?g.trailingComments[0].range[0]>=e.range[1]?(r=g.trailingComments,g.trailingComments=[]):g.trailingComments.length=0:g.bottomRightStack.length>0&&g.bottomRightStack[g.bottomRightStack.length-1].trailingComments&&g.bottomRightStack[g.bottomRightStack.length-1].trailingComments[0].range[0]>=e.range[1]&&(r=g.bottomRightStack[g.bottomRightStack.length-1].trailingComments,delete g.bottomRightStack[g.bottomRightStack.length-1].trailingComments);g.bottomRightStack.length>0&&g.bottomRightStack[g.bottomRightStack.length-1].range[0]>=e.range[0];)t=g.bottomRightStack.pop();t?t.leadingComments&&t.leadingComments[t.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=t.leadingComments,delete t.leadingComments):g.leadingComments.length>0&&g.leadingComments[g.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=g.leadingComments,g.leadingComments=[]),r&&(e.trailingComments=r),g.bottomRightStack.push(e)}},markEnd:function(e,t){return g.range&&(e.range=[t.start,p]),g.loc&&(e.loc=new W(void 0===t.startLineNumber?t.lineNumber:t.startLineNumber,t.start-(void 0===t.startLineStart?t.lineStart:t.startLineStart),h,p-f),this.postProcess(e)),g.attachComment&&this.processComment(e),e},postProcess:function(e){return g.source&&(e.loc.source=g.source),e},createArrayExpression:function(e){return{type:i.ArrayExpression,elements:e}},createAssignmentExpression:function(e,t,r){return{type:i.AssignmentExpression,operator:e,left:t,right:r}},createBinaryExpression:function(e,t,r){return{type:"||"===e||"&&"===e?i.LogicalExpression:i.BinaryExpression,operator:e,left:t,right:r}},createBlockStatement:function(e){return{type:i.BlockStatement,body:e}},createBreakStatement:function(e){return{type:i.BreakStatement,label:e}},createCallExpression:function(e,t){return{type:i.CallExpression,callee:e,arguments:t}},createCatchClause:function(e,t){return{type:i.CatchClause,param:e,body:t}},createConditionalExpression:function(e,t,r){return{type:i.ConditionalExpression,test:e,consequent:t,alternate:r}},createContinueStatement:function(e){return{type:i.ContinueStatement,label:e}},createDebuggerStatement:function(){return{type:i.DebuggerStatement}},createDoWhileStatement:function(e,t){return{type:i.DoWhileStatement,body:e,test:t}},createEmptyStatement:function(){return{type:i.EmptyStatement}},createExpressionStatement:function(e){return{type:i.ExpressionStatement,expression:e}},createForStatement:function(e,t,r,n){return{type:i.ForStatement,init:e,test:t,update:r,body:n}},createForInStatement:function(e,t,r){return{type:i.ForInStatement,left:e,right:t,body:r,each:!1}},createFunctionDeclaration:function(e,t,r,n){return{type:i.FunctionDeclaration,id:e,params:t,defaults:r,body:n,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(e,t,r,n){return{type:i.FunctionExpression,id:e,params:t,defaults:r,body:n,rest:null,generator:!1,expression:!1}},createIdentifier:function(e){return{type:i.Identifier,name:e}},createIfStatement:function(e,t,r){return{type:i.IfStatement,test:e,consequent:t,alternate:r}},createLabeledStatement:function(e,t){return{type:i.LabeledStatement,label:e,body:t}},createLiteral:function(e){return{type:i.Literal,value:e.value,raw:c.slice(e.start,e.end)}},createMemberExpression:function(e,t,r){return{type:i.MemberExpression,computed:"["===e,object:t,property:r}},createNewExpression:function(e,t){return{type:i.NewExpression,callee:e,arguments:t}},createObjectExpression:function(e){return{type:i.ObjectExpression,properties:e}},createPostfixExpression:function(e,t){return{type:i.UpdateExpression,operator:e,argument:t,prefix:!1}},createProgram:function(e){return{type:i.Program,body:e}},createProperty:function(e,t,r){return{type:i.Property,key:t,value:r,kind:e}},createReturnStatement:function(e){return{type:i.ReturnStatement,argument:e}},createSequenceExpression:function(e){return{type:i.SequenceExpression,expressions:e}},createSwitchCase:function(e,t){return{type:i.SwitchCase,test:e,consequent:t}},createSwitchStatement:function(e,t){return{type:i.SwitchStatement,discriminant:e,cases:t}},createThisExpression:function(){return{type:i.ThisExpression}},createThrowStatement:function(e){return{type:i.ThrowStatement,argument:e}},createTryStatement:function(e,t,r,n){return{type:i.TryStatement,block:e,guardedHandlers:t,handlers:r,finalizer:n}},createUnaryExpression:function(e,t){return"++"===e||"--"===e?{type:i.UpdateExpression,operator:e,argument:t,prefix:!0}:{type:i.UnaryExpression,operator:e,argument:t,prefix:!0}},createVariableDeclaration:function(e,t){return{type:i.VariableDeclaration,declarations:e,kind:t}},createVariableDeclarator:function(e,t){return{type:i.VariableDeclarator,id:e,init:t}},createWhileStatement:function(e,t){return{type:i.WhileStatement,test:e,body:t}},createWithStatement:function(e,t){return{type:i.WithStatement,object:e,body:t}}},e.version="1.2.2",e.tokenize=function(e,r){var n;"string"==typeof e||e instanceof String||(e=String(e)),m=u,p=0,h=(c=e).length>0?1:0,f=0,d=c.length,y=null,D={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},g={},(r=r||{}).tokens=!0,g.tokens=[],g.tokenize=!0,g.openParenToken=-1,g.openCurlyToken=-1,g.range="boolean"==typeof r.range&&r.range,g.loc="boolean"==typeof r.loc&&r.loc,"boolean"==typeof r.comment&&r.comment&&(g.comments=[]),"boolean"==typeof r.tolerant&&r.tolerant&&(g.errors=[]);try{if(z(),y.type===t.EOF)return g.tokens;for(U();y.type!==t.EOF;)try{U()}catch(e){if(g.errors){g.errors.push(e);break}throw e}Pe(),n=g.tokens,void 0!==g.comments&&(n.comments=g.comments),void 0!==g.errors&&(n.errors=g.errors)}catch(e){throw e}finally{g={}}return n},e.parse=function(e,t){var r,n;n=String,"string"==typeof e||e instanceof String||(e=n(e)),m=u,p=0,h=(c=e).length>0?1:0,f=0,d=c.length,y=null,D={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},g={},void 0!==t&&(g.range="boolean"==typeof t.range&&t.range,g.loc="boolean"==typeof t.loc&&t.loc,g.attachComment="boolean"==typeof t.attachComment&&t.attachComment,g.loc&&null!==t.source&&void 0!==t.source&&(g.source=n(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(g.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(g.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(g.errors=[]),g.attachComment&&(g.range=!0,g.comments=[],g.bottomRightStack=[],g.trailingComments=[],g.leadingComments=[]));try{r=Te(),void 0!==g.comments&&(r.comments=g.comments),void 0!==g.tokens&&(Pe(),r.tokens=g.tokens),void 0!==g.errors&&(r.errors=g.errors)}catch(e){throw e}finally{g={}}return r},e.Syntax=function(){var e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),i)i.hasOwnProperty(e)&&(t[e]=i[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}()}))},{}],1:[function(e,t,r){(function(n){var i=function(){var e={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(e,r,n,i,a,s,o){i.ast||(i.ast=t,t.initialize());var u=s.length-1;switch(a){case 1:return i.ast.set({expression:{type:"root",value:s[u]}}),i.ast.unshift(),i.ast.yield();case 2:return i.ast.set({expression:{type:"root",value:s[u-1]}}),i.ast.unshift(),i.ast.yield();case 3:return i.ast.unshift(),i.ast.yield();case 4:return i.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:s[u-1]}}),i.ast.unshift(),i.ast.yield();case 5:case 6:break;case 7:i.ast.set({operation:"member"}),i.ast.push();break;case 8:i.ast.set({operation:"subscript"}),i.ast.push();break;case 9:i.ast.set({scope:"child"});break;case 10:i.ast.set({scope:"descendant"});break;case 11:break;case 12:i.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:i.ast.set({expression:{type:"wildcard",value:s[u]}});break;case 15:i.ast.set({expression:{type:"identifier",value:s[u]}});break;case 16:i.ast.set({expression:{type:"script_expression",value:s[u]}});break;case 17:i.ast.set({expression:{type:"numeric_literal",value:parseInt(s[u])}});break;case 18:break;case 19:i.ast.set({scope:"child"});break;case 20:i.ast.set({scope:"descendant"});break;case 21:case 22:case 23:break;case 24:s[u].length>1?i.ast.set({expression:{type:"union",value:s[u]}}):this.$=s[u];break;case 25:this.$=[s[u]];break;case 26:this.$=s[u-2].concat(s[u]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(s[u])}},i.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:s[u]}},i.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:s[u]}},i.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:s[u]}},i.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:s[u]}},i.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:s[u]}},i.ast.set(this.$);break;case 33:case 34:this.$=s[u]}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(e,t){if(!t.recoverable)throw new Error(e);this.trace(e)},parse:function(e){var t=this,r=[0],n=[null],i=[],a=this.table,s="",o=0,u=0,c=0,l=2,p=1,h=i.slice.call(arguments,1);this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var f=this.lexer.yylloc;i.push(f);var d=this.lexer.options&&this.lexer.options.ranges;function m(){var e;return"number"!=typeof(e=t.lexer.lex()||p)&&(e=t.symbols_[e]||e),e}"function"==typeof this.yy.parseError?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,D,g,v,E,b,C,x,A,F={};;){if(g=r[r.length-1],this.defaultActions[g]?v=this.defaultActions[g]:(null==y&&(y=m()),v=a[g]&&a[g][y]),void 0===v||!v.length||!v[0]){var w="";for(b in A=[],a[g])this.terminals_[b]&&b>l&&A.push("'"+this.terminals_[b]+"'");w=this.lexer.showPosition?"Parse error on line "+(o+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(o+1)+": Unexpected "+(y==p?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(w,{text:this.lexer.match,token:this.terminals_[y]||y,line:this.lexer.yylineno,loc:f,expected:A})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+y);switch(v[0]){case 1:r.push(y),n.push(this.lexer.yytext),i.push(this.lexer.yylloc),r.push(v[1]),y=null,D?(y=D,D=null):(u=this.lexer.yyleng,s=this.lexer.yytext,o=this.lexer.yylineno,f=this.lexer.yylloc,c>0&&c--);break;case 2:if(C=this.productions_[v[1]][1],F.$=n[n.length-C],F._$={first_line:i[i.length-(C||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(C||1)].first_column,last_column:i[i.length-1].last_column},d&&(F._$.range=[i[i.length-(C||1)].range[0],i[i.length-1].range[1]]),void 0!==(E=this.performAction.apply(F,[s,u,o,this.yy,v[1],n,i].concat(h))))return E;C&&(r=r.slice(0,-1*C*2),n=n.slice(0,-1*C),i=i.slice(0,-1*C)),r.push(this.productions_[v[1]][0]),n.push(F.$),i.push(F._$),x=a[r[r.length-2]][r[r.length-1]],r.push(x);break;case 3:return!0}}return!0}},t={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(e){for(var t in e)this._node[t]=e[t];return this._node},node:function(e){return arguments.length&&(this._node=e),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var e=this._nodes;return this.initialize(),e}},r={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;at[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,r,n){switch(r){case 0:return 4;case 1:return 14;case 2:return 12;case 3:return 15;case 4:return 16;case 5:return 22;case 6:return 24;case 7:return 28;case 8:return 30;case 9:return 18;case 10:return t.yytext=t.yytext.substr(1,t.yyleng-2),32;case 11:return t.yytext=t.yytext.substr(1,t.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};function n(){this.yy={}}return e.lexer=r,n.prototype=e,e.Parser=n,new n}();void 0!==e&&void 0!==r&&(r.parser=i,r.Parser=i.Parser,r.parse=function(){return i.parse.apply(i,arguments)},r.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),n.exit(1));var i=e("fs").readFileSync(e("path").normalize(t[1]),"utf8");return r.parser.parse(i)},void 0!==t&&e.main===t&&r.main(n.argv.slice(1)))}).call(this,e("_process"))},{_process:14,fs:12,path:13}],2:[function(e,t,r){t.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(e,t,r){var n=e("./dict"),i=e("fs"),a={lex:{macros:{esc:"\\\\",int:n.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[n.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[n.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[n.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};i.readFileSync&&(a.moduleInclude=i.readFileSync(e.resolve("../include/module.js")),a.actionInclude=i.readFileSync(e.resolve("../include/action.js"))),t.exports=a},{"./dict":2,fs:12}],4:[function(e,t,r){var n=e("./aesprim"),i=e("./slice"),a=e("static-eval"),s=e("underscore").uniq,o=function(){return this.initialize.apply(this,arguments)};function u(t,r,i){var a=e("./index"),s=f(n.parse(r).body[0].expression,{"@":t.value}),o=i.replace(/\{\{\s*value\s*\}\}/g,s),u=a.nodes(t.value,o);return u.forEach((function(e){e.path=t.path.concat(e.path.slice(1))})),u}function c(e){return Array.isArray(e)}function l(e){return function(t,r,n,i){var a=t.value,s=t.path,o=[],u=function(t,a){var s;c(t)?(t.forEach((function(e,t){o.length>=i||n(t,e,r)&&o.push({path:a.concat(t),value:e})})),t.forEach((function(t,r){o.length>=i||e&&u(t,a.concat(r))}))):(s=t)&&!(s instanceof Array)&&s instanceof Object&&(this.keys(t).forEach((function(e){o.length>=i||n(e,t[e],r)&&o.push({path:a.concat(e),value:t[e]})})),this.keys(t).forEach((function(r){o.length>=i||e&&u(t[r],a.concat(r))})))}.bind(this);return u(a,s),o}}function p(e){return function(t,r,n){return this.descend(r,t.expression.value,e,n)}}function h(e){return function(t,r,n){return this.traverse(r,t.expression.value,e,n)}}function f(){try{return a.apply(this,arguments)}catch(e){}}function d(e){return e=e.filter((function(e){return e})),s(e,(function(e){return e.path.map((function(e){return String(e).replace("-","--")})).join("-")}))}function m(e){var t=String(e);return t.match(/^-?[0-9]+$/)?parseInt(t):null}o.prototype.initialize=function(){this.traverse=l(!0),this.descend=l()},o.prototype.keys=Object.keys,o.prototype.resolve=function(e){var t=[e.operation,e.scope,e.expression.type].join("-"),r=this._fns[t];if(!r)throw new Error("couldn't resolve key: "+t);return r.bind(this)},o.prototype.register=function(e,t){if(!t instanceof Function)throw new Error("handler must be a function");this._fns[e]=t},o.prototype._fns={"member-child-identifier":function(e,t){var r=e.expression.value,n=t.value;if(n instanceof Object&&r in n)return[{value:n[r],path:t.path.concat(r)}]},"member-descendant-identifier":h((function(e,t,r){return e==r})),"subscript-child-numeric_literal":p((function(e,t,r){return e===r})),"member-child-numeric_literal":p((function(e,t,r){return String(e)===String(r)})),"subscript-descendant-numeric_literal":h((function(e,t,r){return e===r})),"member-child-wildcard":p((function(){return!0})),"member-descendant-wildcard":h((function(){return!0})),"subscript-descendant-wildcard":h((function(){return!0})),"subscript-child-wildcard":p((function(){return!0})),"subscript-child-slice":function(e,t){if(c(t.value)){var r=e.expression.value.split(":").map(m),n=t.value.map((function(e,r){return{value:e,path:t.path.concat(r)}}));return i.apply(null,[n].concat(r))}},"subscript-child-union":function(e,t){var r=[];return e.expression.value.forEach((function(e){var n={operation:"subscript",scope:"child",expression:e.expression},i=this.resolve(n)(n,t);i&&(r=r.concat(i))}),this),d(r)},"subscript-descendant-union":function(t,r,n){var i=e(".."),a=this,s=[];return i.nodes(r,"$..*").slice(1).forEach((function(e){s.length>=n||t.expression.value.forEach((function(t){var r={operation:"subscript",scope:"child",expression:t.expression},n=a.resolve(r)(r,e);s=s.concat(n)}))})),d(s)},"subscript-child-filter_expression":function(e,t,r){var i=e.expression.value.slice(2,-1),a=n.parse(i).body[0].expression;return this.descend(t,null,(function(e,t){return f(a,{"@":t})}),r)},"subscript-descendant-filter_expression":function(e,t,r){var i=e.expression.value.slice(2,-1),a=n.parse(i).body[0].expression;return this.traverse(t,null,(function(e,t){return f(a,{"@":t})}),r)},"subscript-child-script_expression":function(e,t){return u(t,e.expression.value.slice(1,-1),"$[{{value}}]")},"member-child-script_expression":function(e,t){return u(t,e.expression.value.slice(1,-1),"$.{{value}}")},"member-descendant-script_expression":function(e,t){return u(t,e.expression.value.slice(1,-1),"$..value")}},o.prototype._fns["subscript-child-string_literal"]=o.prototype._fns["member-child-identifier"],o.prototype._fns["member-descendant-numeric_literal"]=o.prototype._fns["subscript-descendant-string_literal"]=o.prototype._fns["member-descendant-identifier"],t.exports=o},{"..":"jsonpath","./aesprim":"./aesprim","./index":5,"./slice":7,"static-eval":15,underscore:12}],5:[function(e,t,r){var n=e("assert"),i=e("./dict"),a=e("./parser"),s=e("./handlers"),o=function(){this.initialize.apply(this,arguments)};function u(e){return"[object String]"==Object.prototype.toString.call(e)}o.prototype.initialize=function(){this.parser=new a,this.handlers=new s},o.prototype.parse=function(e){return n.ok(u(e),"we need a path"),this.parser.parse(e)},o.prototype.parent=function(e,t){n.ok(e instanceof Object,"obj needs to be an object"),n.ok(t,"we need a path");var r=this.nodes(e,t)[0];return r.path.pop(),this.value(e,r.path)},o.prototype.apply=function(e,t,r){n.ok(e instanceof Object,"obj needs to be an object"),n.ok(t,"we need a path"),n.equal(typeof r,"function","fn needs to be function");var i=this.nodes(e,t).sort((function(e,t){return t.path.length-e.path.length}));return i.forEach((function(t){var n=t.path.pop(),i=this.value(e,this.stringify(t.path)),a=t.value=r.call(e,i[n]);i[n]=a}),this),i},o.prototype.value=function(e,t,r){if(n.ok(e instanceof Object,"obj needs to be an object"),n.ok(t,"we need a path"),arguments.length>=3){var i=this.nodes(e,t).shift();if(!i)return this._vivify(e,t,r);var a=i.path.slice(-1).shift(),s=this.parent(e,this.stringify(i.path));s[a]=r}return this.query(e,this.stringify(t),1).shift()},o.prototype._vivify=function(e,t,r){var i=this;n.ok(e instanceof Object,"obj needs to be an object"),n.ok(t,"we need a path");var a=this.parser.parse(t).map((function(e){return e.expression.value})),s=function(t,r){var n=t.pop(),a=i.value(e,t);a||(s(t.concat(),"string"==typeof n?{}:[]),a=i.value(e,t)),a[n]=r};return s(a,r),this.query(e,t)[0]},o.prototype.query=function(e,t,r){return n.ok(e instanceof Object,"obj needs to be an object"),n.ok(u(t),"we need a path"),this.nodes(e,t,r).map((function(e){return e.value}))},o.prototype.paths=function(e,t,r){return n.ok(e instanceof Object,"obj needs to be an object"),n.ok(t,"we need a path"),this.nodes(e,t,r).map((function(e){return e.path}))},o.prototype.nodes=function(e,t,r){if(n.ok(e instanceof Object,"obj needs to be an object"),n.ok(t,"we need a path"),0===r)return[];var i=this.parser.parse(t),a=this.handlers,s=[{path:["$"],value:e}],o=[];return i.length&&"root"==i[0].expression.type&&i.shift(),i.length?(i.forEach((function(e,t){if(!(o.length>=r)){var n=a.resolve(e),u=[];s.forEach((function(a){if(!(o.length>=r)){var s=n(e,a,r);t==i.length-1?o=o.concat(s||[]):u=u.concat(s||[])}})),s=u}})),r?o.slice(0,r):o):s},o.prototype.stringify=function(e){n.ok(e,"we need a path");var t="$",r={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return(e=this._normalize(e)).forEach((function(e){if("root"!=e.expression.type){var n,i=[e.scope,e.operation].join("-"),a=r[i];if(n="string_literal"==e.expression.type?JSON.stringify(e.expression.value):e.expression.value,!a)throw new Error("couldn't find template "+i);t+=a.replace(/{{value}}/,n)}})),t},o.prototype._normalize=function(e){if(n.ok(e,"we need a path"),"string"==typeof e)return this.parser.parse(e);if(Array.isArray(e)&&"string"==typeof e[0]){var t=[{expression:{type:"root",value:"$"}}];return e.forEach((function(e,r){if("$"!=e||0!==r)if("string"==typeof e&&e.match("^"+i.identifier+"$"))t.push({operation:"member",scope:"child",expression:{value:e,type:"identifier"}});else{var n="number"==typeof e?"numeric_literal":"string_literal";t.push({operation:"subscript",scope:"child",expression:{value:e,type:n}})}})),t}if(Array.isArray(e)&&"object"==typeof e[0])return e;throw new Error("couldn't understand path "+e)},o.Handlers=s,o.Parser=a;var c=new o;c.JSONPath=o,t.exports=c},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(e,t,r){var n=e("./grammar"),i=e("../generated/parser"),a=function(){var e=new i.Parser,t=e.parseError;return e.yy.parseError=function(){e.yy.ast&&e.yy.ast.initialize(),t.apply(e,arguments)},e};a.grammar=n,t.exports=a},{"../generated/parser":1,"./grammar":3}],7:[function(e,t,r){function n(e){return String(e).match(/^[0-9]+$/)?parseInt(e):Number.isFinite(e)?parseInt(e,10):0}t.exports=function(e,t,r,i){if("string"==typeof t)throw new Error("start cannot be a string");if("string"==typeof r)throw new Error("end cannot be a string");if("string"==typeof i)throw new Error("step cannot be a string");var a=e.length;if(0===i)throw new Error("step cannot be zero");if(i=i?n(i):1,r=r<0?a+r:r,t=n(0===(t=t<0?a+t:t)?0:t||(i>0?0:a-1)),r=n(0===r?0:r||(i>0?a:-1)),t=i>0?Math.max(0,t):Math.min(a,t),r=i>0?Math.min(r,a):Math.max(-1,r),i>0&&r<=t)return[];if(i<0&&t<=r)return[];for(var s=[],o=t;o!=r&&!(i<0&&o<=r||i>0&&o>=r);o+=i)s.push(e[o]);return s}},{}],8:[function(e,t,r){var n=e("util/"),i=Array.prototype.slice,a=Object.prototype.hasOwnProperty,s=t.exports=l;function o(e,t){return n.isUndefined(t)?""+t:n.isNumber(t)&&!isFinite(t)?t.toString():n.isFunction(t)||n.isRegExp(t)?t.toString():t}function u(e,t){return n.isString(e)?e.length=0;o--)if(u[o]!=c[o])return!1;for(o=u.length-1;o>=0;o--)if(s=u[o],!p(e[s],t[s]))return!1;return!0}(e,t):e==t}function h(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function f(e,t){return!(!e||!t)&&("[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t||!0===t.call({},e))}function d(e,t,r,i){var a;n.isString(r)&&(i=r,r=null);try{t()}catch(e){a=e}if(i=(r&&r.name?" ("+r.name+").":".")+(i?" "+i:"."),e&&!a&&c(a,r,"Missing expected exception"+i),!e&&f(a,r)&&c(a,r,"Got unwanted exception"+i),e&&a&&r&&!f(a,r)||!e&&a)throw a}s.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return u(JSON.stringify(e.actual,o),128)+" "+e.operator+" "+u(JSON.stringify(e.expected,o),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||c;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=t.name,a=n.indexOf("\n"+i);if(a>=0){var s=n.indexOf("\n",a+1);n=n.substring(s+1)}this.stack=n}}},n.inherits(s.AssertionError,Error),s.fail=c,s.ok=l,s.equal=function(e,t,r){e!=t&&c(e,t,r,"==",s.equal)},s.notEqual=function(e,t,r){e==t&&c(e,t,r,"!=",s.notEqual)},s.deepEqual=function(e,t,r){p(e,t)||c(e,t,r,"deepEqual",s.deepEqual)},s.notDeepEqual=function(e,t,r){p(e,t)&&c(e,t,r,"notDeepEqual",s.notDeepEqual)},s.strictEqual=function(e,t,r){e!==t&&c(e,t,r,"===",s.strictEqual)},s.notStrictEqual=function(e,t,r){e===t&&c(e,t,r,"!==",s.notStrictEqual)},s.throws=function(e,t,r){d.apply(this,[!0].concat(i.call(arguments)))},s.doesNotThrow=function(e,t){d.apply(this,[!1].concat(i.call(arguments)))},s.ifError=function(e){if(e)throw e};var m=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}},{"util/":11}],9:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],10:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],11:[function(e,r,n){(function(t,r){var i=/%[sdj%]/g;n.format=function(e){if(!D(e)){for(var t=[],r=0;r=a)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),u=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),d(t)?r.showHidden=t:t&&n._extend(r,t),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,e,r.depth)}function u(e,t){var r=o.styles[t];return r?"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m":e}function c(e,t){return e}function l(e,t,r){if(e.customInspect&&t&&x(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return D(i)||(i=l(e,i,r)),i}var a=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(D(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return y(t)?e.stylize(""+t,"number"):d(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,t);if(a)return a;var s=Object.keys(t),o=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),C(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(t);if(0===s.length){if(x(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(v(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(b(t))return e.stylize(Date.prototype.toString.call(t),"date");if(C(t))return p(t)}var c,E="",A=!1,F=["{","}"];return f(t)&&(A=!0,F=["[","]"]),x(t)&&(E=" [Function"+(t.name?": "+t.name:"")+"]"),v(t)&&(E=" "+RegExp.prototype.toString.call(t)),b(t)&&(E=" "+Date.prototype.toUTCString.call(t)),C(t)&&(E=" "+p(t)),0!==s.length||A&&0!=t.length?r<0?v(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=A?function(e,t,r,n,i){for(var a=[],s=0,o=t.length;s60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,E,F)):F[0]+E+F[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,a){var s,o,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?o=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(o=e.stylize("[Setter]","special")),k(n,i)||(s="["+i+"]"),o||(e.seen.indexOf(u.value)<0?(o=m(r)?l(e,u.value,null):l(e,u.value,r-1)).indexOf("\n")>-1&&(o=a?o.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+o.split("\n").map((function(e){return" "+e})).join("\n")):o=e.stylize("[Circular]","special")),g(s)){if(a&&i.match(/^\d+$/))return o;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+o}function f(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function m(e){return null===e}function y(e){return"number"==typeof e}function D(e){return"string"==typeof e}function g(e){return void 0===e}function v(e){return E(e)&&"[object RegExp]"===A(e)}function E(e){return"object"==typeof e&&null!==e}function b(e){return E(e)&&"[object Date]"===A(e)}function C(e){return E(e)&&("[object Error]"===A(e)||e instanceof Error)}function x(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function F(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(g(a)&&(a=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var r=t.pid;s[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else s[e]=function(){};return s[e]},n.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=f,n.isBoolean=d,n.isNull=m,n.isNullOrUndefined=function(e){return null==e},n.isNumber=y,n.isString=D,n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=g,n.isRegExp=v,n.isObject=E,n.isDate=b,n.isError=C,n.isFunction=x,n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("./support/isBuffer");var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(){var e=new Date,t=[F(e.getHours()),F(e.getMinutes()),F(e.getSeconds())].join(":");return[e.getDate(),w[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){console.log("%s - %s",S(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!E(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(e,t,r){},{}],13:[function(e,t,r){(function(e){function t(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!i;a--){var s=a>=0?arguments[a]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(r=s+"/"+r,i="/"===s.charAt(0))}return(i?"/":"")+(r=t(n(r.split("/"),(function(e){return!!e})),!i).join("/"))||"."},r.normalize=function(e){var a=r.isAbsolute(e),s="/"===i(e,-1);return(e=t(n(e.split("/"),(function(e){return!!e})),!a).join("/"))||a||(e="."),e&&s&&(e+="/"),(a?"/":"")+e},r.isAbsolute=function(e){return"/"===e.charAt(0)},r.join=function(){var e=Array.prototype.slice.call(arguments,0);return r.normalize(n(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},r.relative=function(e,t){function n(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=r.resolve(e).substr(1),t=r.resolve(t).substr(1);for(var i=n(e.split("/")),a=n(t.split("/")),s=Math.min(i.length,a.length),o=s,u=0;u=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){n=a;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},r.basename=function(e,t){var r=function(e){"string"!=typeof e&&(e+="");var t,r=0,n=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){r=t+1;break}}else-1===n&&(i=!1,n=t+1);return-1===n?"":e.slice(r,n)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},r.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,r=0,n=-1,i=!0,a=0,s=e.length-1;s>=0;--s){var o=e.charCodeAt(s);if(47!==o)-1===n&&(i=!1,n=s+1),46===o?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){r=s+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)};var i="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e("_process"))},{_process:14}],14:[function(e,t,r){var n,i,a=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(e){n=s}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(e){i=o}}();var c,l=[],p=!1,h=-1;function f(){p&&c&&(p=!1,c.length?l=c.concat(l):h=-1,l.length&&d())}function d(){if(!p){var e=u(f);p=!0;for(var t=l.length;t;){for(c=l,l=[];++h1)for(var r=1;r"===f?c>h:">="===f?c>=h:"|"===f?c|h:"&"===f?c&h:"^"===f?c^h:"&&"===f?c&&h:"||"===f?c||h:r}if("Identifier"===i.type)return{}.hasOwnProperty.call(t,i.name)?t[i.name]:r;if("ThisExpression"===i.type)return{}.hasOwnProperty.call(t,"this")?t.this:r;if("CallExpression"===i.type){var d=e(i.callee);if(d===r)return r;if("function"!=typeof d)return r;var m=i.callee.object?e(i.callee.object):r;m===r&&(m=null);var y=[];for(u=0,c=i.arguments.length;u0,"must be at least one error"),this.ase_errors=e,c.call(this,{cause:e[0]},"first of %d error%s",e.length,1==e.length?"":"s")}function h(){var e,t,r,n;return e=Array.prototype.slice.call(arguments,0),this instanceof h?((n=(r=u({argv:e,strict:!1})).options).skipCauseMessage=!0,c.call(this,n,"%s",r.shortmessage),this):(t=Object.create(h.prototype),h.apply(t,e),t)}e.exports=c,c.VError=c,c.SError=l,c.WError=h,c.MultiError=p,i.inherits(c,Error),c.prototype.name="VError",c.prototype.toString=function(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e+=": "+this.message),e},c.prototype.cause=function(){var e=c.cause(this);return null===e?void 0:e},c.cause=function(e){return n.ok(s(e),"err must be an Error"),s(e.jse_cause)?e.jse_cause:null},c.info=function(e){var t,r,i;if(n.ok(s(e),"err must be an Error"),t=null!==(r=c.cause(e))?c.info(r):{},"object"==typeof e.jse_info&&null!==e.jse_info)for(i in e.jse_info)t[i]=e.jse_info[i];return t},c.findCauseByName=function(e,t){var r;for(n.ok(s(e),"err must be an Error"),n.string(t,"name"),n.ok(t.length>0,"name cannot be empty"),r=e;null!==r;r=c.cause(r))if(n.ok(s(r)),r.name==t)return r;return null},c.hasCauseWithName=function(e,t){return null!==c.findCauseByName(e,t)},c.fullStack=function(e){n.ok(s(e),"err must be an Error");var t=c.cause(e);return t?e.stack+"\ncaused by: "+c.fullStack(t):e.stack},c.errorFromList=function(e){return n.arrayOfObject(e,"errors"),0===e.length?null:(e.forEach((function(e){n.ok(s(e))})),1==e.length?e[0]:new p(e))},c.errorForEach=function(e,t){n.ok(s(e),"err must be an Error"),n.func(t,"func"),e instanceof p?e.errors().forEach((function(e){t(e)})):t(e)},i.inherits(l,c),i.inherits(p,c),p.prototype.name="MultiError",p.prototype.errors=function(){return this.ase_errors.slice(0)},i.inherits(h,c),h.prototype.name="WError",h.prototype.toString=function(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e+=": "+this.message),this.jse_cause&&this.jse_cause.message&&(e+="; caused by "+this.jse_cause.toString()),e},h.prototype.cause=function(e){return s(e)&&(this.jse_cause=e),this.jse_cause}},function(e,t,r){(function(t,n){var i=r(27),a=r(55).Stream,s=r(17),o=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function u(e){return e.charAt(0).toUpperCase()+e.slice(1)}function c(e,t,r,n,a){throw new i.AssertionError({message:s.format("%s (%s) is required",e,t),actual:void 0===a?typeof n:a(n),expected:t,operator:r||"===",stackStartFunction:c.caller})}function l(e){return Object.prototype.toString.call(e).slice(8,-1)}function p(){}var h={bool:{check:function(e){return"boolean"==typeof e}},func:{check:function(e){return"function"==typeof e}},string:{check:function(e){return"string"==typeof e}},object:{check:function(e){return"object"==typeof e&&null!==e}},number:{check:function(e){return"number"==typeof e&&!isNaN(e)}},finite:{check:function(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},buffer:{check:function(e){return t.isBuffer(e)},operator:"Buffer.isBuffer"},array:{check:function(e){return Array.isArray(e)},operator:"Array.isArray"},stream:{check:function(e){return e instanceof a},operator:"instanceof",actual:l},date:{check:function(e){return e instanceof Date},operator:"instanceof",actual:l},regexp:{check:function(e){return e instanceof RegExp},operator:"instanceof",actual:l},uuid:{check:function(e){return"string"==typeof e&&o.test(e)},operator:"isUUID"}};e.exports=function e(t){var r,a=Object.keys(h);return r=n.env.NODE_NDEBUG?p:function(e,t){e||c(t,"true",e)},a.forEach((function(e){if(t)r[e]=p;else{var n=h[e];r[e]=function(t,r){n.check(t)||c(r,e,n.operator,t,n.actual)}}})),a.forEach((function(e){var n="optional"+u(e);if(t)r[n]=p;else{var i=h[e];r[n]=function(t,r){null!=t&&(i.check(t)||c(r,e,i.operator,t,i.actual))}}})),a.forEach((function(e){var n="arrayOf"+u(e);if(t)r[n]=p;else{var i=h[e],a="["+e+"]";r[n]=function(e,t){var r;for(Array.isArray(e)||c(t,a,i.operator,e,i.actual),r=0;r0?s-4:s;for(r=0;r>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===o&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,u[l++]=255&t);1===o&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],s=0,o=r-i;so?o:s+16383));1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return a.join("")};for(var n=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,u=s.length;o0)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,r){for(var i,a,s=[],o=t;o>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var a,s,o=8*i-n-1,u=(1<>1,l=-7,p=r?i-1:0,h=r?-1:1,f=e[t+p];for(p+=h,a=f&(1<<-l)-1,f>>=-l,l+=o;l>0;a=256*a+e[t+p],p+=h,l-=8);for(s=a&(1<<-l)-1,a>>=-l,l+=n;l>0;s=256*s+e[t+p],p+=h,l-=8);if(0===a)a=1-c;else{if(a===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),a-=c}return(f?-1:1)*s*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var s,o,u,c=8*a-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:a-1,d=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+p>=1?h/u:h*Math.pow(2,1-p))*u>=2&&(s++,u/=2),s+p>=l?(o=0,s=l):s+p>=1?(o=(t*u-1)*Math.pow(2,i),s+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&o,f+=d,o/=256,i-=8);for(s=s<0;e[r+f]=255&s,f+=d,s/=256,c-=8);e[r+f-d]|=128*m}},function(e,t,r){"use strict"; + */!function(a,s){"use strict";e.exports?e.exports=s():void 0===(i="function"==typeof(n=s)?n.call(t,r,t,e):n)||(e.exports=i)}(0,(function(e){"use strict";var t=e&&e.SecondLevelDomains,r={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return!1;var i=r.list[e.slice(t+1)];return!!i&&i.indexOf(" "+e.slice(n+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var n=r.list[e.slice(t+1)];return!!n&&n.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return null;var i=r.list[e.slice(t+1)];return i?i.indexOf(" "+e.slice(n+1,t)+" ")<0?null:e.slice(n+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return r}))},function(e,t,r){var n=r(179),i=r(210),a=r(15).assay;e.exports=function(e){n(e,a()),e.log.entries&&i(e)}},function(e,t,r){(function(t){e.exports=function e(t,r,n){function i(s,o){if(!r[s]){if(!t[s]){if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[s]={exports:{}};t[s][0].call(c.exports,(function(e){var r=t[s][1][e];return i(r||e)}),c,c.exports,e,t,r,n)}return r[s].exports}for(var a=!1,s=0;s=48&&e<=57}function b(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function C(e){return"01234567".indexOf(e)>=0}function x(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function A(e){return 10===e||13===e||8232===e||8233===e}function w(e){return 64==e||36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&o.NonAsciiIdentifierStart.test(String.fromCharCode(e))}function F(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&o.NonAsciiIdentifierPart.test(String.fromCharCode(e))}function S(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function k(e){return"eval"===e||"arguments"===e}function T(e,t,r,n,i){var a;v("number"==typeof r,"Comment must have valid position"),D.lastCommentStart>=r||(D.lastCommentStart=r,a={type:e,value:t},g.range&&(a.range=[r,n]),g.loc&&(a.loc=i),g.comments.push(a),g.attachComment&&(g.leadingComments.push(a),g.trailingComments.push(a)))}function P(e){var t,r,n,i;for(t=p-e,r={start:{line:h,column:p-f-e}};p=d&&J({},s.UnexpectedToken,"ILLEGAL");else if(42===r){if(47===c.charCodeAt(p+1))return++p,++p,void(g.comments&&(n=c.slice(e+2,p-2),t.end={line:h,column:p-f},T("Block",n,e,p,t)));++p}else++p;J({},s.UnexpectedToken,"ILLEGAL")}function N(){var e,t;for(t=0===p;p>>="===(i=c.substr(p,4))?{type:t.Punctuator,value:i,lineNumber:h,lineStart:f,start:a,end:p+=4}:">>>"===(n=i.substr(0,3))||"<<="===n||">>="===n?{type:t.Punctuator,value:n,lineNumber:h,lineStart:f,start:a,end:p+=3}:u===(r=n.substr(0,2))[1]&&"+-<>&|".indexOf(u)>=0||"=>"===r?{type:t.Punctuator,value:r,lineNumber:h,lineStart:f,start:a,end:p+=2}:"<>=!+-*%&|^/".indexOf(u)>=0?(++p,{type:t.Punctuator,value:u,lineNumber:h,lineStart:f,start:a,end:p}):void J({},s.UnexpectedToken,"ILLEGAL")}function L(){var e,r,n;if(v(E((n=c[p]).charCodeAt(0))||"."===n,"Numeric literal must start with a decimal digit or a decimal point"),r=p,e="","."!==n){if(e=c[p++],n=c[p],"0"===e){if("x"===n||"X"===n)return++p,function(e){for(var r="";p0&&(n=g.tokens[g.tokens.length-1]).range[0]===e&&"Punctuator"===n.type&&("/"!==n.value&&"/="!==n.value||g.tokens.pop()),g.tokens.push({type:"RegularExpression",value:r.literal,range:[e,p],loc:t})),r}function q(){var e;return N(),p>=d?{type:t.EOF,lineNumber:h,lineStart:f,start:p,end:p}:w(e=c.charCodeAt(p))?_():40===e||41===e||59===e?j():39===e||34===e?function(){var e,r,n,i,a,o,u,l,m="",y=!1;for(u=h,l=f,v("'"===(e=c[p])||'"'===e,"String literal must starts with a quote"),r=p,++p;p=0&&p=0?j():M()}return M()}return"Keyword"===e.type?M():j()}():j()}function U(){var e,n,i;return N(),e={start:{line:h,column:p-f}},n=q(),e.end={line:h,column:p-f},n.type!==t.EOF&&(i=c.slice(n.start,n.end),g.tokens.push({type:r[n.type],value:i,range:[n.start,n.end],loc:e})),n}function z(){var e;return p=(e=y).end,h=e.lineNumber,f=e.lineStart,y=void 0!==g.tokens?U():q(),p=e.end,h=e.lineNumber,f=e.lineStart,e}function V(){var e,t,r;e=p,t=h,r=f,y=void 0!==g.tokens?U():q(),p=e,h=t,f=r}function $(e,t){this.line=e,this.column=t}function W(e,t,r,n){this.start=new $(e,t),this.end=new $(r,n)}function H(){var e,t,r,n;return e=p,t=h,r=f,N(),n=h!==t,p=e,h=t,f=r,n}function J(e,t){var r,n=Array.prototype.slice.call(arguments,2),i=t.replace(/%(\d)/g,(function(e,t){return v(t":case"<=":case">=":case"instanceof":n=7;break;case"in":n=r?7:0;break;case"<<":case">>":case">>>":n=8;break;case"+":case"-":n=9;break;case"*":case"/":case"%":n=11}return n}function de(){var e,t,r,n,i;return i=y,e=function(){var e,t,r,n,i,a,s,o,u,c;if(e=y,u=he(),0===(i=fe(n=y,D.allowIn)))return u;for(n.prec=i,z(),t=[e,y],a=[u,n,s=he()];(i=fe(y,D.allowIn))>0;){for(;a.length>2&&i<=a[a.length-2].prec;)s=a.pop(),o=a.pop().value,u=a.pop(),r=m.createBinaryExpression(o,u,s),t.pop(),e=t[t.length-1],m.markEnd(r,e),a.push(r);(n=z()).prec=i,a.push(n),t.push(y),r=he(),a.push(r)}for(r=a[c=a.length-1],t.pop();c>1;)r=m.createBinaryExpression(a[c-1].value,a[c-2],r),c-=2,e=t.pop(),m.markEnd(r,e);return r}(),K("?")&&(z(),t=D.allowIn,D.allowIn=!0,r=me(),D.allowIn=t,Q(":"),n=me(),e=m.createConditionalExpression(e,r,n),m.markEnd(e,i)),e}function me(){var e,r,n,a,o,u;return e=y,o=y,a=r=de(),y.type!==t.Punctuator||"="!==(u=y.value)&&"*="!==u&&"/="!==u&&"%="!==u&&"+="!==u&&"-="!==u&&"<<="!==u&&">>="!==u&&">>>="!==u&&"&="!==u&&"^="!==u&&"|="!==u||(te(r)||G({},s.InvalidLHSInAssignment),l&&r.type===i.Identifier&&k(r.name)&&G(e,s.StrictLHSAssignment),e=z(),n=me(),a=m.markEnd(m.createAssignmentExpression(e.value,r,n),o)),a}function ye(){var e,t=y;if(e=me(),K(",")){for(e=m.createSequenceExpression([e]);p",r[t.Identifier]="Identifier",r[t.Keyword]="Keyword",r[t.NullLiteral]="Null",r[t.NumericLiteral]="Numeric",r[t.Punctuator]="Punctuator",r[t.StringLiteral]="String",r[t.RegularExpression]="RegularExpression",n=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],i={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},a={Data:1,Get:2,Set:4},s={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},o={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")},u={name:"SyntaxTree",processComment:function(e){var t,r;if(!(e.type===i.Program&&e.body.length>0)){for(g.trailingComments.length>0?g.trailingComments[0].range[0]>=e.range[1]?(r=g.trailingComments,g.trailingComments=[]):g.trailingComments.length=0:g.bottomRightStack.length>0&&g.bottomRightStack[g.bottomRightStack.length-1].trailingComments&&g.bottomRightStack[g.bottomRightStack.length-1].trailingComments[0].range[0]>=e.range[1]&&(r=g.bottomRightStack[g.bottomRightStack.length-1].trailingComments,delete g.bottomRightStack[g.bottomRightStack.length-1].trailingComments);g.bottomRightStack.length>0&&g.bottomRightStack[g.bottomRightStack.length-1].range[0]>=e.range[0];)t=g.bottomRightStack.pop();t?t.leadingComments&&t.leadingComments[t.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=t.leadingComments,delete t.leadingComments):g.leadingComments.length>0&&g.leadingComments[g.leadingComments.length-1].range[1]<=e.range[0]&&(e.leadingComments=g.leadingComments,g.leadingComments=[]),r&&(e.trailingComments=r),g.bottomRightStack.push(e)}},markEnd:function(e,t){return g.range&&(e.range=[t.start,p]),g.loc&&(e.loc=new W(void 0===t.startLineNumber?t.lineNumber:t.startLineNumber,t.start-(void 0===t.startLineStart?t.lineStart:t.startLineStart),h,p-f),this.postProcess(e)),g.attachComment&&this.processComment(e),e},postProcess:function(e){return g.source&&(e.loc.source=g.source),e},createArrayExpression:function(e){return{type:i.ArrayExpression,elements:e}},createAssignmentExpression:function(e,t,r){return{type:i.AssignmentExpression,operator:e,left:t,right:r}},createBinaryExpression:function(e,t,r){return{type:"||"===e||"&&"===e?i.LogicalExpression:i.BinaryExpression,operator:e,left:t,right:r}},createBlockStatement:function(e){return{type:i.BlockStatement,body:e}},createBreakStatement:function(e){return{type:i.BreakStatement,label:e}},createCallExpression:function(e,t){return{type:i.CallExpression,callee:e,arguments:t}},createCatchClause:function(e,t){return{type:i.CatchClause,param:e,body:t}},createConditionalExpression:function(e,t,r){return{type:i.ConditionalExpression,test:e,consequent:t,alternate:r}},createContinueStatement:function(e){return{type:i.ContinueStatement,label:e}},createDebuggerStatement:function(){return{type:i.DebuggerStatement}},createDoWhileStatement:function(e,t){return{type:i.DoWhileStatement,body:e,test:t}},createEmptyStatement:function(){return{type:i.EmptyStatement}},createExpressionStatement:function(e){return{type:i.ExpressionStatement,expression:e}},createForStatement:function(e,t,r,n){return{type:i.ForStatement,init:e,test:t,update:r,body:n}},createForInStatement:function(e,t,r){return{type:i.ForInStatement,left:e,right:t,body:r,each:!1}},createFunctionDeclaration:function(e,t,r,n){return{type:i.FunctionDeclaration,id:e,params:t,defaults:r,body:n,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(e,t,r,n){return{type:i.FunctionExpression,id:e,params:t,defaults:r,body:n,rest:null,generator:!1,expression:!1}},createIdentifier:function(e){return{type:i.Identifier,name:e}},createIfStatement:function(e,t,r){return{type:i.IfStatement,test:e,consequent:t,alternate:r}},createLabeledStatement:function(e,t){return{type:i.LabeledStatement,label:e,body:t}},createLiteral:function(e){return{type:i.Literal,value:e.value,raw:c.slice(e.start,e.end)}},createMemberExpression:function(e,t,r){return{type:i.MemberExpression,computed:"["===e,object:t,property:r}},createNewExpression:function(e,t){return{type:i.NewExpression,callee:e,arguments:t}},createObjectExpression:function(e){return{type:i.ObjectExpression,properties:e}},createPostfixExpression:function(e,t){return{type:i.UpdateExpression,operator:e,argument:t,prefix:!1}},createProgram:function(e){return{type:i.Program,body:e}},createProperty:function(e,t,r){return{type:i.Property,key:t,value:r,kind:e}},createReturnStatement:function(e){return{type:i.ReturnStatement,argument:e}},createSequenceExpression:function(e){return{type:i.SequenceExpression,expressions:e}},createSwitchCase:function(e,t){return{type:i.SwitchCase,test:e,consequent:t}},createSwitchStatement:function(e,t){return{type:i.SwitchStatement,discriminant:e,cases:t}},createThisExpression:function(){return{type:i.ThisExpression}},createThrowStatement:function(e){return{type:i.ThrowStatement,argument:e}},createTryStatement:function(e,t,r,n){return{type:i.TryStatement,block:e,guardedHandlers:t,handlers:r,finalizer:n}},createUnaryExpression:function(e,t){return"++"===e||"--"===e?{type:i.UpdateExpression,operator:e,argument:t,prefix:!0}:{type:i.UnaryExpression,operator:e,argument:t,prefix:!0}},createVariableDeclaration:function(e,t){return{type:i.VariableDeclaration,declarations:e,kind:t}},createVariableDeclarator:function(e,t){return{type:i.VariableDeclarator,id:e,init:t}},createWhileStatement:function(e,t){return{type:i.WhileStatement,test:e,body:t}},createWithStatement:function(e,t){return{type:i.WithStatement,object:e,body:t}}},e.version="1.2.2",e.tokenize=function(e,r){var n;"string"==typeof e||e instanceof String||(e=String(e)),m=u,p=0,h=(c=e).length>0?1:0,f=0,d=c.length,y=null,D={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},g={},(r=r||{}).tokens=!0,g.tokens=[],g.tokenize=!0,g.openParenToken=-1,g.openCurlyToken=-1,g.range="boolean"==typeof r.range&&r.range,g.loc="boolean"==typeof r.loc&&r.loc,"boolean"==typeof r.comment&&r.comment&&(g.comments=[]),"boolean"==typeof r.tolerant&&r.tolerant&&(g.errors=[]);try{if(V(),y.type===t.EOF)return g.tokens;for(z();y.type!==t.EOF;)try{z()}catch(e){if(g.errors){g.errors.push(e);break}throw e}Pe(),n=g.tokens,void 0!==g.comments&&(n.comments=g.comments),void 0!==g.errors&&(n.errors=g.errors)}catch(e){throw e}finally{g={}}return n},e.parse=function(e,t){var r,n;n=String,"string"==typeof e||e instanceof String||(e=n(e)),m=u,p=0,h=(c=e).length>0?1:0,f=0,d=c.length,y=null,D={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},g={},void 0!==t&&(g.range="boolean"==typeof t.range&&t.range,g.loc="boolean"==typeof t.loc&&t.loc,g.attachComment="boolean"==typeof t.attachComment&&t.attachComment,g.loc&&null!==t.source&&void 0!==t.source&&(g.source=n(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(g.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(g.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(g.errors=[]),g.attachComment&&(g.range=!0,g.comments=[],g.bottomRightStack=[],g.trailingComments=[],g.leadingComments=[]));try{r=Te(),void 0!==g.comments&&(r.comments=g.comments),void 0!==g.tokens&&(Pe(),r.tokens=g.tokens),void 0!==g.errors&&(r.errors=g.errors)}catch(e){throw e}finally{g={}}return r},e.Syntax=function(){var e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),i)i.hasOwnProperty(e)&&(t[e]=i[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}()}))},{}],1:[function(e,t,r){(function(n){var i=function(){var e={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(e,r,n,i,a,s,o){i.ast||(i.ast=t,t.initialize());var u=s.length-1;switch(a){case 1:return i.ast.set({expression:{type:"root",value:s[u]}}),i.ast.unshift(),i.ast.yield();case 2:return i.ast.set({expression:{type:"root",value:s[u-1]}}),i.ast.unshift(),i.ast.yield();case 3:return i.ast.unshift(),i.ast.yield();case 4:return i.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:s[u-1]}}),i.ast.unshift(),i.ast.yield();case 5:case 6:break;case 7:i.ast.set({operation:"member"}),i.ast.push();break;case 8:i.ast.set({operation:"subscript"}),i.ast.push();break;case 9:i.ast.set({scope:"child"});break;case 10:i.ast.set({scope:"descendant"});break;case 11:break;case 12:i.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:i.ast.set({expression:{type:"wildcard",value:s[u]}});break;case 15:i.ast.set({expression:{type:"identifier",value:s[u]}});break;case 16:i.ast.set({expression:{type:"script_expression",value:s[u]}});break;case 17:i.ast.set({expression:{type:"numeric_literal",value:parseInt(s[u])}});break;case 18:break;case 19:i.ast.set({scope:"child"});break;case 20:i.ast.set({scope:"descendant"});break;case 21:case 22:case 23:break;case 24:s[u].length>1?i.ast.set({expression:{type:"union",value:s[u]}}):this.$=s[u];break;case 25:this.$=[s[u]];break;case 26:this.$=s[u-2].concat(s[u]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(s[u])}},i.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:s[u]}},i.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:s[u]}},i.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:s[u]}},i.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:s[u]}},i.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:s[u]}},i.ast.set(this.$);break;case 33:case 34:this.$=s[u]}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(e,t){if(!t.recoverable)throw new Error(e);this.trace(e)},parse:function(e){var t=this,r=[0],n=[null],i=[],a=this.table,s="",o=0,u=0,c=0,l=2,p=1,h=i.slice.call(arguments,1);this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var f=this.lexer.yylloc;i.push(f);var d=this.lexer.options&&this.lexer.options.ranges;function m(){var e;return"number"!=typeof(e=t.lexer.lex()||p)&&(e=t.symbols_[e]||e),e}"function"==typeof this.yy.parseError?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,D,g,v,E,b,C,x,A,w={};;){if(g=r[r.length-1],this.defaultActions[g]?v=this.defaultActions[g]:(null==y&&(y=m()),v=a[g]&&a[g][y]),void 0===v||!v.length||!v[0]){var F="";for(b in A=[],a[g])this.terminals_[b]&&b>l&&A.push("'"+this.terminals_[b]+"'");F=this.lexer.showPosition?"Parse error on line "+(o+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(o+1)+": Unexpected "+(y==p?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(F,{text:this.lexer.match,token:this.terminals_[y]||y,line:this.lexer.yylineno,loc:f,expected:A})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+y);switch(v[0]){case 1:r.push(y),n.push(this.lexer.yytext),i.push(this.lexer.yylloc),r.push(v[1]),y=null,D?(y=D,D=null):(u=this.lexer.yyleng,s=this.lexer.yytext,o=this.lexer.yylineno,f=this.lexer.yylloc,c>0&&c--);break;case 2:if(C=this.productions_[v[1]][1],w.$=n[n.length-C],w._$={first_line:i[i.length-(C||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(C||1)].first_column,last_column:i[i.length-1].last_column},d&&(w._$.range=[i[i.length-(C||1)].range[0],i[i.length-1].range[1]]),void 0!==(E=this.performAction.apply(w,[s,u,o,this.yy,v[1],n,i].concat(h))))return E;C&&(r=r.slice(0,-1*C*2),n=n.slice(0,-1*C),i=i.slice(0,-1*C)),r.push(this.productions_[v[1]][0]),n.push(w.$),i.push(w._$),x=a[r[r.length-2]][r[r.length-1]],r.push(x);break;case 3:return!0}}return!0}},t={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(e){for(var t in e)this._node[t]=e[t];return this._node},node:function(e){return arguments.length&&(this._node=e),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var e=this._nodes;return this.initialize(),e}},r={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;at[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,r,n){switch(r){case 0:return 4;case 1:return 14;case 2:return 12;case 3:return 15;case 4:return 16;case 5:return 22;case 6:return 24;case 7:return 28;case 8:return 30;case 9:return 18;case 10:return t.yytext=t.yytext.substr(1,t.yyleng-2),32;case 11:return t.yytext=t.yytext.substr(1,t.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};function n(){this.yy={}}return e.lexer=r,n.prototype=e,e.Parser=n,new n}();void 0!==e&&void 0!==r&&(r.parser=i,r.Parser=i.Parser,r.parse=function(){return i.parse.apply(i,arguments)},r.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),n.exit(1));var i=e("fs").readFileSync(e("path").normalize(t[1]),"utf8");return r.parser.parse(i)},void 0!==t&&e.main===t&&r.main(n.argv.slice(1)))}).call(this,e("_process"))},{_process:14,fs:12,path:13}],2:[function(e,t,r){t.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(e,t,r){var n=e("./dict"),i=e("fs"),a={lex:{macros:{esc:"\\\\",int:n.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[n.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[n.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[n.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};i.readFileSync&&(a.moduleInclude=i.readFileSync(e.resolve("../include/module.js")),a.actionInclude=i.readFileSync(e.resolve("../include/action.js"))),t.exports=a},{"./dict":2,fs:12}],4:[function(e,t,r){var n=e("./aesprim"),i=e("./slice"),a=e("static-eval"),s=e("underscore").uniq,o=function(){return this.initialize.apply(this,arguments)};function u(t,r,i){var a=e("./index"),s=f(n.parse(r).body[0].expression,{"@":t.value}),o=i.replace(/\{\{\s*value\s*\}\}/g,s),u=a.nodes(t.value,o);return u.forEach((function(e){e.path=t.path.concat(e.path.slice(1))})),u}function c(e){return Array.isArray(e)}function l(e){return function(t,r,n,i){var a=t.value,s=t.path,o=[],u=function(t,a){var s;c(t)?(t.forEach((function(e,t){o.length>=i||n(t,e,r)&&o.push({path:a.concat(t),value:e})})),t.forEach((function(t,r){o.length>=i||e&&u(t,a.concat(r))}))):(s=t)&&!(s instanceof Array)&&s instanceof Object&&(this.keys(t).forEach((function(e){o.length>=i||n(e,t[e],r)&&o.push({path:a.concat(e),value:t[e]})})),this.keys(t).forEach((function(r){o.length>=i||e&&u(t[r],a.concat(r))})))}.bind(this);return u(a,s),o}}function p(e){return function(t,r,n){return this.descend(r,t.expression.value,e,n)}}function h(e){return function(t,r,n){return this.traverse(r,t.expression.value,e,n)}}function f(){try{return a.apply(this,arguments)}catch(e){}}function d(e){return e=e.filter((function(e){return e})),s(e,(function(e){return e.path.map((function(e){return String(e).replace("-","--")})).join("-")}))}function m(e){var t=String(e);return t.match(/^-?[0-9]+$/)?parseInt(t):null}o.prototype.initialize=function(){this.traverse=l(!0),this.descend=l()},o.prototype.keys=Object.keys,o.prototype.resolve=function(e){var t=[e.operation,e.scope,e.expression.type].join("-"),r=this._fns[t];if(!r)throw new Error("couldn't resolve key: "+t);return r.bind(this)},o.prototype.register=function(e,t){if(!t instanceof Function)throw new Error("handler must be a function");this._fns[e]=t},o.prototype._fns={"member-child-identifier":function(e,t){var r=e.expression.value,n=t.value;if(n instanceof Object&&r in n)return[{value:n[r],path:t.path.concat(r)}]},"member-descendant-identifier":h((function(e,t,r){return e==r})),"subscript-child-numeric_literal":p((function(e,t,r){return e===r})),"member-child-numeric_literal":p((function(e,t,r){return String(e)===String(r)})),"subscript-descendant-numeric_literal":h((function(e,t,r){return e===r})),"member-child-wildcard":p((function(){return!0})),"member-descendant-wildcard":h((function(){return!0})),"subscript-descendant-wildcard":h((function(){return!0})),"subscript-child-wildcard":p((function(){return!0})),"subscript-child-slice":function(e,t){if(c(t.value)){var r=e.expression.value.split(":").map(m),n=t.value.map((function(e,r){return{value:e,path:t.path.concat(r)}}));return i.apply(null,[n].concat(r))}},"subscript-child-union":function(e,t){var r=[];return e.expression.value.forEach((function(e){var n={operation:"subscript",scope:"child",expression:e.expression},i=this.resolve(n)(n,t);i&&(r=r.concat(i))}),this),d(r)},"subscript-descendant-union":function(t,r,n){var i=e(".."),a=this,s=[];return i.nodes(r,"$..*").slice(1).forEach((function(e){s.length>=n||t.expression.value.forEach((function(t){var r={operation:"subscript",scope:"child",expression:t.expression},n=a.resolve(r)(r,e);s=s.concat(n)}))})),d(s)},"subscript-child-filter_expression":function(e,t,r){var i=e.expression.value.slice(2,-1),a=n.parse(i).body[0].expression;return this.descend(t,null,(function(e,t){return f(a,{"@":t})}),r)},"subscript-descendant-filter_expression":function(e,t,r){var i=e.expression.value.slice(2,-1),a=n.parse(i).body[0].expression;return this.traverse(t,null,(function(e,t){return f(a,{"@":t})}),r)},"subscript-child-script_expression":function(e,t){return u(t,e.expression.value.slice(1,-1),"$[{{value}}]")},"member-child-script_expression":function(e,t){return u(t,e.expression.value.slice(1,-1),"$.{{value}}")},"member-descendant-script_expression":function(e,t){return u(t,e.expression.value.slice(1,-1),"$..value")}},o.prototype._fns["subscript-child-string_literal"]=o.prototype._fns["member-child-identifier"],o.prototype._fns["member-descendant-numeric_literal"]=o.prototype._fns["subscript-descendant-string_literal"]=o.prototype._fns["member-descendant-identifier"],t.exports=o},{"..":"jsonpath","./aesprim":"./aesprim","./index":5,"./slice":7,"static-eval":15,underscore:12}],5:[function(e,t,r){var n=e("assert"),i=e("./dict"),a=e("./parser"),s=e("./handlers"),o=function(){this.initialize.apply(this,arguments)};function u(e){return"[object String]"==Object.prototype.toString.call(e)}o.prototype.initialize=function(){this.parser=new a,this.handlers=new s},o.prototype.parse=function(e){return n.ok(u(e),"we need a path"),this.parser.parse(e)},o.prototype.parent=function(e,t){n.ok(e instanceof Object,"obj needs to be an object"),n.ok(t,"we need a path");var r=this.nodes(e,t)[0];return r.path.pop(),this.value(e,r.path)},o.prototype.apply=function(e,t,r){n.ok(e instanceof Object,"obj needs to be an object"),n.ok(t,"we need a path"),n.equal(typeof r,"function","fn needs to be function");var i=this.nodes(e,t).sort((function(e,t){return t.path.length-e.path.length}));return i.forEach((function(t){var n=t.path.pop(),i=this.value(e,this.stringify(t.path)),a=t.value=r.call(e,i[n]);i[n]=a}),this),i},o.prototype.value=function(e,t,r){if(n.ok(e instanceof Object,"obj needs to be an object"),n.ok(t,"we need a path"),arguments.length>=3){var i=this.nodes(e,t).shift();if(!i)return this._vivify(e,t,r);var a=i.path.slice(-1).shift(),s=this.parent(e,this.stringify(i.path));s[a]=r}return this.query(e,this.stringify(t),1).shift()},o.prototype._vivify=function(e,t,r){var i=this;n.ok(e instanceof Object,"obj needs to be an object"),n.ok(t,"we need a path");var a=this.parser.parse(t).map((function(e){return e.expression.value})),s=function(t,r){var n=t.pop(),a=i.value(e,t);a||(s(t.concat(),"string"==typeof n?{}:[]),a=i.value(e,t)),a[n]=r};return s(a,r),this.query(e,t)[0]},o.prototype.query=function(e,t,r){return n.ok(e instanceof Object,"obj needs to be an object"),n.ok(u(t),"we need a path"),this.nodes(e,t,r).map((function(e){return e.value}))},o.prototype.paths=function(e,t,r){return n.ok(e instanceof Object,"obj needs to be an object"),n.ok(t,"we need a path"),this.nodes(e,t,r).map((function(e){return e.path}))},o.prototype.nodes=function(e,t,r){if(n.ok(e instanceof Object,"obj needs to be an object"),n.ok(t,"we need a path"),0===r)return[];var i=this.parser.parse(t),a=this.handlers,s=[{path:["$"],value:e}],o=[];return i.length&&"root"==i[0].expression.type&&i.shift(),i.length?(i.forEach((function(e,t){if(!(o.length>=r)){var n=a.resolve(e),u=[];s.forEach((function(a){if(!(o.length>=r)){var s=n(e,a,r);t==i.length-1?o=o.concat(s||[]):u=u.concat(s||[])}})),s=u}})),r?o.slice(0,r):o):s},o.prototype.stringify=function(e){n.ok(e,"we need a path");var t="$",r={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return(e=this._normalize(e)).forEach((function(e){if("root"!=e.expression.type){var n,i=[e.scope,e.operation].join("-"),a=r[i];if(n="string_literal"==e.expression.type?JSON.stringify(e.expression.value):e.expression.value,!a)throw new Error("couldn't find template "+i);t+=a.replace(/{{value}}/,n)}})),t},o.prototype._normalize=function(e){if(n.ok(e,"we need a path"),"string"==typeof e)return this.parser.parse(e);if(Array.isArray(e)&&"string"==typeof e[0]){var t=[{expression:{type:"root",value:"$"}}];return e.forEach((function(e,r){if("$"!=e||0!==r)if("string"==typeof e&&e.match("^"+i.identifier+"$"))t.push({operation:"member",scope:"child",expression:{value:e,type:"identifier"}});else{var n="number"==typeof e?"numeric_literal":"string_literal";t.push({operation:"subscript",scope:"child",expression:{value:e,type:n}})}})),t}if(Array.isArray(e)&&"object"==typeof e[0])return e;throw new Error("couldn't understand path "+e)},o.Handlers=s,o.Parser=a;var c=new o;c.JSONPath=o,t.exports=c},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(e,t,r){var n=e("./grammar"),i=e("../generated/parser"),a=function(){var e=new i.Parser,t=e.parseError;return e.yy.parseError=function(){e.yy.ast&&e.yy.ast.initialize(),t.apply(e,arguments)},e};a.grammar=n,t.exports=a},{"../generated/parser":1,"./grammar":3}],7:[function(e,t,r){function n(e){return String(e).match(/^[0-9]+$/)?parseInt(e):Number.isFinite(e)?parseInt(e,10):0}t.exports=function(e,t,r,i){if("string"==typeof t)throw new Error("start cannot be a string");if("string"==typeof r)throw new Error("end cannot be a string");if("string"==typeof i)throw new Error("step cannot be a string");var a=e.length;if(0===i)throw new Error("step cannot be zero");if(i=i?n(i):1,r=r<0?a+r:r,t=n(0===(t=t<0?a+t:t)?0:t||(i>0?0:a-1)),r=n(0===r?0:r||(i>0?a:-1)),t=i>0?Math.max(0,t):Math.min(a,t),r=i>0?Math.min(r,a):Math.max(-1,r),i>0&&r<=t)return[];if(i<0&&t<=r)return[];for(var s=[],o=t;o!=r&&!(i<0&&o<=r||i>0&&o>=r);o+=i)s.push(e[o]);return s}},{}],8:[function(e,t,r){var n=e("util/"),i=Array.prototype.slice,a=Object.prototype.hasOwnProperty,s=t.exports=l;function o(e,t){return n.isUndefined(t)?""+t:n.isNumber(t)&&!isFinite(t)?t.toString():n.isFunction(t)||n.isRegExp(t)?t.toString():t}function u(e,t){return n.isString(e)?e.length=0;o--)if(u[o]!=c[o])return!1;for(o=u.length-1;o>=0;o--)if(s=u[o],!p(e[s],t[s]))return!1;return!0}(e,t):e==t}function h(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function f(e,t){return!(!e||!t)&&("[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t||!0===t.call({},e))}function d(e,t,r,i){var a;n.isString(r)&&(i=r,r=null);try{t()}catch(e){a=e}if(i=(r&&r.name?" ("+r.name+").":".")+(i?" "+i:"."),e&&!a&&c(a,r,"Missing expected exception"+i),!e&&f(a,r)&&c(a,r,"Got unwanted exception"+i),e&&a&&r&&!f(a,r)||!e&&a)throw a}s.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return u(JSON.stringify(e.actual,o),128)+" "+e.operator+" "+u(JSON.stringify(e.expected,o),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||c;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=t.name,a=n.indexOf("\n"+i);if(a>=0){var s=n.indexOf("\n",a+1);n=n.substring(s+1)}this.stack=n}}},n.inherits(s.AssertionError,Error),s.fail=c,s.ok=l,s.equal=function(e,t,r){e!=t&&c(e,t,r,"==",s.equal)},s.notEqual=function(e,t,r){e==t&&c(e,t,r,"!=",s.notEqual)},s.deepEqual=function(e,t,r){p(e,t)||c(e,t,r,"deepEqual",s.deepEqual)},s.notDeepEqual=function(e,t,r){p(e,t)&&c(e,t,r,"notDeepEqual",s.notDeepEqual)},s.strictEqual=function(e,t,r){e!==t&&c(e,t,r,"===",s.strictEqual)},s.notStrictEqual=function(e,t,r){e===t&&c(e,t,r,"!==",s.notStrictEqual)},s.throws=function(e,t,r){d.apply(this,[!0].concat(i.call(arguments)))},s.doesNotThrow=function(e,t){d.apply(this,[!1].concat(i.call(arguments)))},s.ifError=function(e){if(e)throw e};var m=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}},{"util/":11}],9:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],10:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],11:[function(e,r,n){(function(t,r){var i=/%[sdj%]/g;n.format=function(e){if(!D(e)){for(var t=[],r=0;r=a)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),u=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),d(t)?r.showHidden=t:t&&n._extend(r,t),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,e,r.depth)}function u(e,t){var r=o.styles[t];return r?"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m":e}function c(e,t){return e}function l(e,t,r){if(e.customInspect&&t&&x(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return D(i)||(i=l(e,i,r)),i}var a=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(D(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return y(t)?e.stylize(""+t,"number"):d(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,t);if(a)return a;var s=Object.keys(t),o=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),C(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(t);if(0===s.length){if(x(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(v(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(b(t))return e.stylize(Date.prototype.toString.call(t),"date");if(C(t))return p(t)}var c,E="",A=!1,w=["{","}"];return f(t)&&(A=!0,w=["[","]"]),x(t)&&(E=" [Function"+(t.name?": "+t.name:"")+"]"),v(t)&&(E=" "+RegExp.prototype.toString.call(t)),b(t)&&(E=" "+Date.prototype.toUTCString.call(t)),C(t)&&(E=" "+p(t)),0!==s.length||A&&0!=t.length?r<0?v(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=A?function(e,t,r,n,i){for(var a=[],s=0,o=t.length;s60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,E,w)):w[0]+E+w[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,a){var s,o,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?o=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(o=e.stylize("[Setter]","special")),k(n,i)||(s="["+i+"]"),o||(e.seen.indexOf(u.value)<0?(o=m(r)?l(e,u.value,null):l(e,u.value,r-1)).indexOf("\n")>-1&&(o=a?o.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+o.split("\n").map((function(e){return" "+e})).join("\n")):o=e.stylize("[Circular]","special")),g(s)){if(a&&i.match(/^\d+$/))return o;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+o}function f(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function m(e){return null===e}function y(e){return"number"==typeof e}function D(e){return"string"==typeof e}function g(e){return void 0===e}function v(e){return E(e)&&"[object RegExp]"===A(e)}function E(e){return"object"==typeof e&&null!==e}function b(e){return E(e)&&"[object Date]"===A(e)}function C(e){return E(e)&&("[object Error]"===A(e)||e instanceof Error)}function x(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function w(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(g(a)&&(a=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var r=t.pid;s[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else s[e]=function(){};return s[e]},n.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=f,n.isBoolean=d,n.isNull=m,n.isNullOrUndefined=function(e){return null==e},n.isNumber=y,n.isString=D,n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=g,n.isRegExp=v,n.isObject=E,n.isDate=b,n.isError=C,n.isFunction=x,n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("./support/isBuffer");var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(){var e=new Date,t=[w(e.getHours()),w(e.getMinutes()),w(e.getSeconds())].join(":");return[e.getDate(),F[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){console.log("%s - %s",S(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!E(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(e,t,r){},{}],13:[function(e,t,r){(function(e){function t(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!i;a--){var s=a>=0?arguments[a]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(r=s+"/"+r,i="/"===s.charAt(0))}return(i?"/":"")+(r=t(n(r.split("/"),(function(e){return!!e})),!i).join("/"))||"."},r.normalize=function(e){var a=r.isAbsolute(e),s="/"===i(e,-1);return(e=t(n(e.split("/"),(function(e){return!!e})),!a).join("/"))||a||(e="."),e&&s&&(e+="/"),(a?"/":"")+e},r.isAbsolute=function(e){return"/"===e.charAt(0)},r.join=function(){var e=Array.prototype.slice.call(arguments,0);return r.normalize(n(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},r.relative=function(e,t){function n(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=r.resolve(e).substr(1),t=r.resolve(t).substr(1);for(var i=n(e.split("/")),a=n(t.split("/")),s=Math.min(i.length,a.length),o=s,u=0;u=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){n=a;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},r.basename=function(e,t){var r=function(e){"string"!=typeof e&&(e+="");var t,r=0,n=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){r=t+1;break}}else-1===n&&(i=!1,n=t+1);return-1===n?"":e.slice(r,n)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},r.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,r=0,n=-1,i=!0,a=0,s=e.length-1;s>=0;--s){var o=e.charCodeAt(s);if(47!==o)-1===n&&(i=!1,n=s+1),46===o?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){r=s+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)};var i="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e("_process"))},{_process:14}],14:[function(e,t,r){var n,i,a=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(e){n=s}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(e){i=o}}();var c,l=[],p=!1,h=-1;function f(){p&&c&&(p=!1,c.length?l=c.concat(l):h=-1,l.length&&d())}function d(){if(!p){var e=u(f);p=!0;for(var t=l.length;t;){for(c=l,l=[];++h1)for(var r=1;r"===f?c>h:">="===f?c>=h:"|"===f?c|h:"&"===f?c&h:"^"===f?c^h:"&&"===f?c&&h:"||"===f?c||h:r}if("Identifier"===i.type)return{}.hasOwnProperty.call(t,i.name)?t[i.name]:r;if("ThisExpression"===i.type)return{}.hasOwnProperty.call(t,"this")?t.this:r;if("CallExpression"===i.type){var d=e(i.callee);if(d===r)return r;if("function"!=typeof d)return r;var m=i.callee.object?e(i.callee.object):r;m===r&&(m=null);var y=[];for(u=0,c=i.arguments.length;u0,"must be at least one error"),this.ase_errors=e,c.call(this,{cause:e[0]},"first of %d error%s",e.length,1==e.length?"":"s")}function h(){var e,t,r,n;return e=Array.prototype.slice.call(arguments,0),this instanceof h?((n=(r=u({argv:e,strict:!1})).options).skipCauseMessage=!0,c.call(this,n,"%s",r.shortmessage),this):(t=Object.create(h.prototype),h.apply(t,e),t)}e.exports=c,c.VError=c,c.SError=l,c.WError=h,c.MultiError=p,i.inherits(c,Error),c.prototype.name="VError",c.prototype.toString=function(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e+=": "+this.message),e},c.prototype.cause=function(){var e=c.cause(this);return null===e?void 0:e},c.cause=function(e){return n.ok(s(e),"err must be an Error"),s(e.jse_cause)?e.jse_cause:null},c.info=function(e){var t,r,i;if(n.ok(s(e),"err must be an Error"),t=null!==(r=c.cause(e))?c.info(r):{},"object"==typeof e.jse_info&&null!==e.jse_info)for(i in e.jse_info)t[i]=e.jse_info[i];return t},c.findCauseByName=function(e,t){var r;for(n.ok(s(e),"err must be an Error"),n.string(t,"name"),n.ok(t.length>0,"name cannot be empty"),r=e;null!==r;r=c.cause(r))if(n.ok(s(r)),r.name==t)return r;return null},c.hasCauseWithName=function(e,t){return null!==c.findCauseByName(e,t)},c.fullStack=function(e){n.ok(s(e),"err must be an Error");var t=c.cause(e);return t?e.stack+"\ncaused by: "+c.fullStack(t):e.stack},c.errorFromList=function(e){return n.arrayOfObject(e,"errors"),0===e.length?null:(e.forEach((function(e){n.ok(s(e))})),1==e.length?e[0]:new p(e))},c.errorForEach=function(e,t){n.ok(s(e),"err must be an Error"),n.func(t,"func"),e instanceof p?e.errors().forEach((function(e){t(e)})):t(e)},i.inherits(l,c),i.inherits(p,c),p.prototype.name="MultiError",p.prototype.errors=function(){return this.ase_errors.slice(0)},i.inherits(h,c),h.prototype.name="WError",h.prototype.toString=function(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e+=": "+this.message),this.jse_cause&&this.jse_cause.message&&(e+="; caused by "+this.jse_cause.toString()),e},h.prototype.cause=function(e){return s(e)&&(this.jse_cause=e),this.jse_cause}},function(e,t,r){(function(t,n){var i=r(27),a=r(55).Stream,s=r(17),o=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function u(e){return e.charAt(0).toUpperCase()+e.slice(1)}function c(e,t,r,n,a){throw new i.AssertionError({message:s.format("%s (%s) is required",e,t),actual:void 0===a?typeof n:a(n),expected:t,operator:r||"===",stackStartFunction:c.caller})}function l(e){return Object.prototype.toString.call(e).slice(8,-1)}function p(){}var h={bool:{check:function(e){return"boolean"==typeof e}},func:{check:function(e){return"function"==typeof e}},string:{check:function(e){return"string"==typeof e}},object:{check:function(e){return"object"==typeof e&&null!==e}},number:{check:function(e){return"number"==typeof e&&!isNaN(e)}},finite:{check:function(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},buffer:{check:function(e){return t.isBuffer(e)},operator:"Buffer.isBuffer"},array:{check:function(e){return Array.isArray(e)},operator:"Array.isArray"},stream:{check:function(e){return e instanceof a},operator:"instanceof",actual:l},date:{check:function(e){return e instanceof Date},operator:"instanceof",actual:l},regexp:{check:function(e){return e instanceof RegExp},operator:"instanceof",actual:l},uuid:{check:function(e){return"string"==typeof e&&o.test(e)},operator:"isUUID"}};e.exports=function e(t){var r,a=Object.keys(h);return r=n.env.NODE_NDEBUG?p:function(e,t){e||c(t,"true",e)},a.forEach((function(e){if(t)r[e]=p;else{var n=h[e];r[e]=function(t,r){n.check(t)||c(r,e,n.operator,t,n.actual)}}})),a.forEach((function(e){var n="optional"+u(e);if(t)r[n]=p;else{var i=h[e];r[n]=function(t,r){null!=t&&(i.check(t)||c(r,e,i.operator,t,i.actual))}}})),a.forEach((function(e){var n="arrayOf"+u(e);if(t)r[n]=p;else{var i=h[e],a="["+e+"]";r[n]=function(e,t){var r;for(Array.isArray(e)||c(t,a,i.operator,e,i.actual),r=0;r0?s-4:s;for(r=0;r>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===o&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,u[l++]=255&t);1===o&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],s=0,o=r-i;so?o:s+16383));1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return a.join("")};for(var n=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,u=s.length;o0)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,r){for(var i,a,s=[],o=t;o>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var a,s,o=8*i-n-1,u=(1<>1,l=-7,p=r?i-1:0,h=r?-1:1,f=e[t+p];for(p+=h,a=f&(1<<-l)-1,f>>=-l,l+=o;l>0;a=256*a+e[t+p],p+=h,l-=8);for(s=a&(1<<-l)-1,a>>=-l,l+=n;l>0;s=256*s+e[t+p],p+=h,l-=8);if(0===a)a=1-c;else{if(a===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),a-=c}return(f?-1:1)*s*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var s,o,u,c=8*a-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:a-1,d=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+p>=1?h/u:h*Math.pow(2,1-p))*u>=2&&(s++,u/=2),s+p>=l?(o=0,s=l):s+p>=1?(o=(t*u-1)*Math.pow(2,i),s+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&o,f+=d,o/=256,i-=8);for(s=s<0;e[r+f]=255&s,f+=d,s/=256,c-=8);e[r+f-d]|=128*m}},function(e,t,r){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT -*/var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,o,u=s(e),c=1;c0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,a=n.allocUnsafe(e>>>0),s=this.head,o=0;s;)t=s.data,r=a,i=o,t.copy(r,i),o+=s.data.length,s=s.next;return a},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(60),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(6))},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i,a,s,o,u=1,c={},l=!1,p=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){d(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){d(e.data)},n=function(e){a.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(i=p.documentElement,n=function(e){var t=p.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(d,0,e)}:(s="setImmediate$"+Math.random()+"$",o=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&d(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",o,!1):e.attachEvent("onmessage",o),n=function(t){e.postMessage(s+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r0)throw s(e,m,y,"uses non-zero precision (not supported)");switch(t.match(/-/)&&(l=!0),t.match(/0/)&&(p="0"),t.match(/\+/)&&(h=!0),o){case"s":if(null==f)throw s(e,m,y,"attempted to print undefined or null as a string (argument "+C+" to sprintf)");b+=u(p,r,l,f.toString());break;case"d":f=Math.floor(f);case"f":b+=(h=h&&f>0?"+":"")+u(p,r,l,f.toString());break;case"x":b+=u(p,r,l,f.toString(16));break;case"j":0===r&&(r=10),b+=i.inspect(f,!1,r);break;case"r":b+=c(f);break;default:throw s(e,m,y,"is not supported")}}else b+="%";return b+=E}function s(e,t,r,i){return n.equal(typeof e,"string"),n.equal(typeof r,"string"),n.equal(typeof t,"number"),n.equal(typeof i,"string"),new Error('format string "'+e+'": conversion specifier "'+r+'" at character '+t+" "+i)}function o(e){var t=Array.prototype.slice.call(arguments,1);return e.write(a.apply(this,t))}function u(e,t,r,n){for(var i=n;i.lengtht.page===e),s={type:n.Group,id:e,entries:a};t.pages.has(e)&&(s.page=t.pages.get(e)),i.push(s)}}(e.page,t,r,i):function(e,t){const r={type:n.External,entry:e};t.push(r)}(e,i)}e.exports=function(e){const t=new Set;for(const r of e.entries)i(r,e,t,e.flow)}},function(e,t,r){const{CheckType:n,FlowItemType:i,PostSpecies:a,VariableType:s}=r(1),{UnrecognizedError:o}=r(0);function u(e){return e.variables&&e.variables.find(c)||e.checks&&e.checks.find(l)}function c(e){return e.type===s.JSONPath}function l(e){return[n.JSONPath,n.JSONPathValue].includes(e.type)}function p(e){switch(e.type){case i.External:return h(e.entry);case i.Group:return e.entries.find(h);default:throw new o({name:"UnrecognizedFlowItemType"},`Unrecognized flow item type: ${e.type}`)}}function h({request:e}){return e.state.post.species===a.Structured&&"application/x-www-form-urlencoded"===e.post.type&&e.state.params.plural&&e.state.params.variable}function f(e){switch(e.type){case i.External:return d(e.entry);case i.Group:return e.entries.find(d);default:throw new o({name:"UnrecognizedFlowItemType"},`Unrecognized flow item type: ${e.type}`)}}function d({request:e}){return e.state.post.species===a.Structured&&"multipart/form-data"===e.post.type&&e.state.params.variable}e.exports=function(e,t){if(e.log.entries){t.imports.http=!0;const r=e.log.entries;r.find(e=>e.pageref)&&(t.imports.group=!0),r.find(e=>e.checks&&e.checks.length)&&(t.imports.check=!0),r.find(u)&&(t.imports.jsonpath=!0),t.flow.find(p)&&(t.imports.formUrlEncode=!0),t.flow.find(f)&&(t.imports.MimeBuilder=!0)}}},function(e,t,r){const n=r(75);e.exports=function(e,t){n(e.log,t)}},function(e,t,r){const n=r(76),i=r(77),a=r(78),s=r(109),o=r(111);e.exports=function(e,t){e.options&&o(e.options,t),e.creator&&i(e.creator,t),e.browser&&n(e.browser,t),e.comment&&t.comment.push(e.comment),e.pages&&s(e.pages,t),e.entries&&a(e.entries,t)}},function(e,t){e.exports=function(e,t){const r=[];e.name&&(e.version?r.push(`Browser: ${e.name} ${e.version}`):r.push(`Browser: ${e.name}`)),e.comment&&r.push(e.comment),r.length&&t.comment.push(r.join("\n"))}},function(e,t){e.exports=function(e,t){const r=[];e.name&&(e.version?r.push(`Creator: ${e.name} ${e.version}`):r.push(`Creator: ${e.name}`)),e.comment&&r.push(e.comment),r.length&&t.comment.push(r.join("\n"))}},function(e,t,r){const n=r(79);e.exports=function(e,t){for(const r of e)n(r,t)}},function(e,t,r){const n=r(80),i=r(93),a=r(106),s=r(107),{entrySpec:o}=r(15);e.exports=function(e,t){const r=o();e.pageref&&(r.page=e.pageref),e.comment&&(r.comment=e.comment),i(e.request,r.request),e.checks&&n(e.checks,r.checks),e.variables&&s(e.variables,r.variables),a(r),t.entries.push(r)}},function(e,t,r){const n=r(81);e.exports=function(e,t){for(const r of e)n(r,t)}},function(e,t,r){const n=r(82),i=r(33),a=r(92),{checkState:s}=r(15),{CheckTypeEncoding:o}=r(1);e.exports=function(e,t){const r={type:e.type,state:s()};e.comment&&(r.comment=e.comment),n[o.get(e.type)](e,r),a(r),t.set(i(e),r)}},function(e,t,r){Object.assign(t,{JSONPath:r(83),JSONPathValue:r(84),Regex:r(85),Text:r(86)})},function(e,t){e.exports=function(e,t){t.expression=e.expression}},function(e,t){e.exports=function(e,t){t.expression=e.expression,t.condition=e.condition,t.value=e.value}},function(e,t){e.exports=function(e,t){t.subject=e.subject,t.expression=e.expression,e.flags&&(t.flags=e.flags)}},function(e,t){e.exports=function(e,t){t.subject=e.subject,t.condition=e.condition,t.value=e.value}},function(e,t,r){const n=r(88),i=r(89),a=r(90),s=r(91),{CheckType:o}=r(1),{UnrecognizedError:u}=r(0);e.exports=function(e){switch(e.type){case o.JSONPath:return n(e);case o.JSONPathValue:return i(e);case o.Regex:return a(e);case o.Text:return s(e);default:throw new u({name:"UnrecognizedCheckType"},`Unrecognized check type: ${e.type}`)}}},function(e,t){e.exports=function(e){return[e.expression,"exists"].join(" ")}},function(e,t,r){const n=r(34);e.exports=function(e){return[e.expression,n(e.condition),e.value].join(" ")}},function(e,t,r){const n=r(35);function i(e){return`/${e.expression}/${e.flags||""}`}e.exports=function(e){return[n(e.subject),"matches",i(e)].join(" ")}},function(e,t,r){const n=r(34),i=r(35);e.exports=function(e){return[i(e.subject),n(e.condition),e.value].join(" ")}},function(e,t,r){const{CheckCondition:n,CheckSubject:i,CheckType:a}=r(1);e.exports=function(e){e.state.negated=function(e){return e.condition===n.NotContains}(e),e.state.plural=function(e){return e.subject===i.ResponseHeaders||e.type===a.JSONPathValue}(e)}},function(e,t,r){const n=r(94),i=r(96),a=r(99),s=r(101),{emptyObject:o}=r(2);e.exports=function(e,t){t.method=e.method.toUpperCase(),t.address=e.url,e.comment&&(t.comment=e.comment),e.queryString&&a(e.queryString,t.query),e.headers&&n(e.headers,t.headers),e.postData&&!o(e.postData)&&(i(e.postData,t.post),function(e,t){if(!t.has("Content-Type")){const r=new Set([{value:e}]);t.set("Content-Type",r)}}(e.postData.mimeType,t.headers)),s(t)}},function(e,t,r){const n=r(95);e.exports=function(e,t){for(const r of e)n(r,t)}},function(e,t,r){const{isBlacklistedHeader:n}=r(2);e.exports=function(e,t){const r={};e.name&&":"===e.name[0]||n(e.name)||(e.value&&(r.value=e.value),e.comment&&(r.comment=e.comment),t.has(e.name)||t.set(e.name,new Set),t.get(e.name).add(r))}},function(e,t,r){const n=r(97);e.exports=function(e,t){t.type=e.mimeType,e.text?t.value=e.text:e.params&&e.params.length&&(t.params=new Map,n(e.params,t.params)),e.comment&&(t.comment=e.comment)}},function(e,t,r){const n=r(98);e.exports=function(e,t){for(const r of e)n(r,t)}},function(e,t){e.exports=function(e,t){const r={};e.value&&(r.value=e.value),e.fileName&&(r.fileName=e.fileName),e.contentType&&(r.type=e.contentType),e.comment&&(r.comment=e.comment),t.has(e.name)||t.set(e.name,new Set),t.get(e.name).add(r)}},function(e,t,r){const n=r(100);e.exports=function(e,t){for(const r of e)n(r,t)}},function(e,t){e.exports=function(e,t){const r={};e.value&&(r.value=e.value),e.comment&&(r.comment=e.comment),t.has(e.name)||t.set(e.name,new Set),t.get(e.name).add(r)}},function(e,t,r){const n=r(102),i=r(103),a=r(104),s=r(105);e.exports=function(e){s(e),n(e),a(e),i(e)}},function(e,t,r){const n=r(3),{AddressSpecies:i}=r(1);e.exports=function(e){const t=e.state.address;t.variable=function(e){return n.variable.test(e.address)}(e),t.variableStart=function(e){return n.variableStart.test(e.address)}(e),t.species=function(e){return function(e){return!(e.state.address.variable||e.query.size)}(e)&&i.Fixed||function(e){return!!e.query.size&&!(e.state.address.variable||e.state.query.variable)}(e)&&i.Constructed||function(e){return e.state.address.variable&&!(e.state.address.variableStart||e.query.size)}(e)&&i.Resolved||i.Runtime}(e)}},function(e,t,r){const n=r(3);e.exports=function(e){const t=e.state.params;t.plural=function(e){return!!e.post.params&&!![...e.post.params.values()].find(e=>e.size>1)}(e),t.variable=function(e){return!(!e.post.params||![...e.post.params.keys()].find(e=>n.variable.test(e))&&![...e.post.params.values()].find(e=>[...e].find(({value:e})=>e&&n.variable.test(e))))}(e)}},function(e,t,r){const{PostSpecies:n}=r(1);e.exports=function(e){e.state.post.species=function(e){return e.params?n.Structured:e.text||e.type?n.Unstructured:n.Empty}(e.post)}},function(e,t,r){const n=r(3);e.exports=function(e){e.state.query.variable=function(e){return!(![...e.query.keys()].find(e=>n.variable.test(e))&&![...e.query.values()].find(e=>[...e].find(({value:e})=>e&&n.variable.test(e))))}(e)}},function(e,t,r){const{PostSpecies:n}=r(1);e.exports=function(e){e.state.expanded=function(e){return e.request.state.post.species!==n.Empty||e.checks.size||e.variables.size}(e)}},function(e,t,r){const n=r(108);e.exports=function(e,t){for(const r of e)n(r,t)}},function(e,t){e.exports=function(e,t){const r={type:e.type,expression:e.expression};e.comment&&(r.comment=e.comment),t.set(e.name,r)}},function(e,t,r){const n=r(110);e.exports=function(e,t){for(const r of e)n(r,t)}},function(e,t){e.exports=function(e,t){const r=[];e.id&&r.push(e.id),e.title&&r.push(e.title);const n={name:r.join(" - ")};e.comment&&(n.comment=e.comment),t.pages.set(e.id,n)}},function(e,t){e.exports=function(e,t){t.options={...e}}},function(e,t,r){const n=r(113),i=r(116);e.exports=function(e){const t=i(e);return n(t)}},function(e,t,r){const n=r(114),i=r(115);e.exports=function(e){return n.format(e,{semi:!0,parser:"babel",plugins:[i]})}},function(e,t,r){(function(t){var r;r=function(){"use strict";var e="Prettier is an opinionated code formatter",r={prettier:"./bin/prettier.js"},n={node:">=8"},i={"@angular/compiler":"8.2.13","@babel/code-frame":"7.5.5","@babel/parser":"7.7.3","@glimmer/syntax":"0.41.0","@iarna/toml":"2.2.3","@typescript-eslint/typescript-estree":"2.6.1","angular-estree-parser":"1.1.5","angular-html-parser":"1.3.0",camelcase:"5.3.1",chalk:"2.4.2","cjk-regex":"2.0.0",cosmiconfig:"5.2.1",dashify:"2.0.0",dedent:"0.7.0",diff:"4.0.1",editorconfig:"0.15.3","editorconfig-to-prettier":"0.1.1","escape-string-regexp":"1.0.5",esutils:"2.0.3","find-parent-dir":"0.3.0","find-project-root":"1.1.1","flow-parser":"0.111.3","get-stream":"4.1.0",globby:"6.1.0",graphql:"14.5.8","html-element-attributes":"2.2.0","html-styles":"1.0.0","html-tag-names":"1.1.4",ignore:"4.0.6","is-ci":"2.0.0","jest-docblock":"24.9.0","json-stable-stringify":"1.0.1",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.6.0","lodash.uniqby":"4.7.0",mem:"5.1.1",minimatch:"3.0.4",minimist:"1.2.0","n-readlines":"1.0.0","normalize-path":"3.0.0","parse-srcset":"ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee","postcss-less":"2.0.0","postcss-media-query-parser":"0.2.3","postcss-scss":"2.0.0","postcss-selector-parser":"2.2.3","postcss-values-parser":"1.5.0","regexp-util":"1.2.2","remark-math":"1.0.6","remark-parse":"5.0.0",resolve:"1.12.0",semver:"6.3.0","string-width":"4.1.0",typescript:"3.7.2","unicode-regex":"3.0.0",unified:"8.4.1",vnopts:"1.0.2","yaml-unist-parser":"1.1.1"},a={"@babel/core":"7.7.2","@babel/preset-env":"7.7.1","@rollup/plugin-alias":"2.2.0","@rollup/plugin-replace":"2.2.1","babel-loader":"8.0.6",benchmark:"2.1.4","builtin-modules":"3.1.0",codecov:"3.6.1","cross-env":"6.0.3",eslint:"6.6.0","eslint-config-prettier":"6.5.0","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-react":"7.16.0",execa:"3.2.0",jest:"23.3.0","jest-junit":"9.0.0","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.4.0",mkdirp:"0.5.1",prettier:"1.19.0",prettylint:"1.0.0",rimraf:"3.0.0",rollup:"1.26.3","rollup-plugin-babel":"4.3.3","rollup-plugin-commonjs":"10.1.0","rollup-plugin-json":"4.0.0","rollup-plugin-node-globals":"1.4.0","rollup-plugin-node-resolve":"5.2.0","rollup-plugin-terser":"5.1.2",shelljs:"0.8.3","snapshot-diff":"0.4.0","strip-ansi":"5.2.0","synchronous-promise":"2.0.10",tempy:"0.2.1","terser-webpack-plugin":"2.2.1",webpack:"4.41.2"},s={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dist":"node ./scripts/test-dist.js","test-integration":"jest tests_integration","perf-repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf-repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf-benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","check-types":"tsc",lint:"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint-docs":"prettylint {.,docs,website,website/blog}/*.md","lint-dist":'eslint --no-eslintrc --no-ignore --env=browser "dist/!(bin-prettier|index|third-party).js"',build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js","check-deps":"node ./scripts/check-deps.js",spellcheck:"npx -p cspell@4.0.31 cspell {bin,scripts,src}/**/*.js {docs,website/blog,changelog_unreleased}/**/*.md"},o={name:"prettier",version:"1.19.1",description:e,bin:r,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:n,dependencies:i,devDependencies:a,scripts:s},u=Object.freeze({__proto__:null,name:"prettier",version:"1.19.1",description:e,bin:r,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:n,dependencies:i,devDependencies:a,scripts:s,default:o});function c(e){return(c="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})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;re.length?r:e})),c.value=e.join(p)}else c.value=e.join(r.slice(o,o+c.count));o+=c.count,c.added||(u+=c.count)}}var h=t[s-1];return s>1&&"string"==typeof h.value&&(h.added||h.removed)&&e.equals("",h.value)&&(t[s-2].value+=h.value,t.pop()),t}function S(e){return{newPos:e.newPos,components:e.components.slice(0)}}F.prototype={diff:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.callback;"function"==typeof r&&(n=r,r={}),this.options=r;var i=this;function a(e){return n?(setTimeout((function(){n(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var s=(t=this.removeEmpty(this.tokenize(t))).length,o=e.length,u=1,c=s+o,l=[{newPos:-1,components:[]}],p=this.extractCommon(l[0],t,e,0);if(l[0].newPos+1>=s&&p+1>=o)return a([{value:this.join(t),count:t.length}]);function h(){for(var r=-1*u;r<=u;r+=2){var n=void 0,c=l[r-1],p=l[r+1],h=(p?p.newPos:0)-r;c&&(l[r-1]=void 0);var f=c&&c.newPos+1=s&&h+1>=o)return a(w(i,n.components,t,e,i.useLongestToken));l[r]=n}else l[r]=void 0}u++}if(n)!function e(){setTimeout((function(){if(u>c)return n();h()||e()}),0)}();else for(;u<=c;){var f=h();if(f)return f}},pushComponent:function(e,t,r){var n=e[e.length-1];n&&n.added===t&&n.removed===r?e[e.length-1]={count:n.count+1,added:t,removed:r}:e.push({count:1,added:t,removed:r})},extractCommon:function(e,t,r,n){for(var i=t.length,a=r.length,s=e.newPos,o=s-n,u=0;s+11&&void 0!==arguments[1]?arguments[1]:{},r=e.split(/\r\n|[\n\v\f\r\x85]/),n=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],a=0;function s(){var e={};for(i.push(e);a2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=z(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var n,i,a=e.split(/\r\n|[\n\v\f\r\x85]/),s=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=t.hunks,u=r.compareLine||function(e,t,r,n){return t===n},c=0,l=r.fuzzFactor||0,p=0,h=0;function f(e,t){for(var r=0;r0?n[0]:" ",s=n.length>0?n.substr(1):n;if(" "===i||"-"===i){if(!u(t+1,a[t],i,s)&&++c>l)return!1;t++}}return!0}for(var d=0;d0?F[0]:" ",S=F.length>0?F.substr(1):F,k=C.linedelimiters[A];if(" "===w)x++;else if("-"===w)a.splice(x,1),s.splice(x,1);else if("+"===w)a.splice(x,0,S),s.splice(x,0,k),x++;else if("\\"===w){var T=C.lines[A-1]?C.lines[A-1][0]:null;"+"===T?n=!0:"-"===T&&(i=!0)}}}if(n)for(;!a[a.length-1];)a.pop(),s.pop();else i&&(a.push(""),s.push("\n"));for(var P=0;P0?u(m.lines.slice(-s.context)):[],l-=h.length,p-=h.length)}(a=h).push.apply(a,R(i.map((function(e){return(t.added?"+":"-")+e})))),t.added?d+=i.length:f+=i.length}else{if(l)if(i.length<=2*s.context&&e=o.length-2&&i.length<=s.context){var E=/\n$/.test(r),b=/\n$/.test(n),C=0==i.length&&h.length>v.oldLines;!E&&C&&h.splice(v.oldLines,0,"\\ No newline at end of file"),(E||C)&&b||h.push("\\ No newline at end of file")}c.push(v),l=0,p=0,h=[]}f+=i.length,d+=i.length}},y=0;ye.length)return!1;for(var r=0;r"):n.removed&&t.push(""),t.push((i=n.value,void 0,i.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""))),n.added?t.push(""):n.removed&&t.push("")}var i;return t.join("")},canonicalize:q}),pe=Object.freeze({__proto__:null,default:{}}),he=void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},fe=[],de=[],me="undefined"!=typeof Uint8Array?Uint8Array:Array,ye=!1;function De(){ye=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t>18&63]+fe[i>>12&63]+fe[i>>6&63]+fe[63&i]);return a.join("")}function ve(e){var t;ye||De();for(var r=e.length,n=r%3,i="",a=[],s=0,o=r-n;so?o:s+16383));return 1===n?(t=e[r-1],i+=fe[t>>2],i+=fe[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=fe[t>>10],i+=fe[t>>4&63],i+=fe[t<<2&63],i+="="),a.push(i),a.join("")}function Ee(e,t,r,n,i){var a,s,o=8*i-n-1,u=(1<>1,l=-7,p=r?i-1:0,h=r?-1:1,f=e[t+p];for(p+=h,a=f&(1<<-l)-1,f>>=-l,l+=o;l>0;a=256*a+e[t+p],p+=h,l-=8);for(s=a&(1<<-l)-1,a>>=-l,l+=n;l>0;s=256*s+e[t+p],p+=h,l-=8);if(0===a)a=1-c;else{if(a===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),a-=c}return(f?-1:1)*s*Math.pow(2,a-n)}function be(e,t,r,n,i,a){var s,o,u,c=8*a-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:a-1,d=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+p>=1?h/u:h*Math.pow(2,1-p))*u>=2&&(s++,u/=2),s+p>=l?(o=0,s=l):s+p>=1?(o=(t*u-1)*Math.pow(2,i),s+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&o,f+=d,o/=256,i-=8);for(s=s<0;e[r+f]=255&s,f+=d,s/=256,c-=8);e[r+f-d]|=128*m}var Ce={}.toString,xe=Array.isArray||function(e){return"[object Array]"==Ce.call(e)};function Ae(){return we.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Fe(e,t){if(Ae()=Ae())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ae().toString(16)+" bytes");return 0|e}function Ne(e){return!(null==e||!e._isBuffer)}function Ie(e,t){if(Ne(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return it(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return at(e).length;default:if(n)return it(e).length;t=(""+t).toLowerCase(),n=!0}}function Oe(e,t,r){var 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 Ge(this,t,r);case"utf8":case"utf-8":return We(this,t,r);case"ascii":return He(this,t,r);case"latin1":case"binary":return Je(this,t,r);case"base64":return Ve(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xe(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function _e(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function je(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),r=+r,isNaN(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=we.from(t,n)),Ne(t))return 0===t.length?-1:Le(e,t,r,n,i);if("number"==typeof t)return t&=255,we.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Le(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Le(e,t,r,n,i){var a,s=1,o=e.length,u=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;s=2,o/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(a=r;ao&&(r=o-u),a=r;a>=0;a--){for(var p=!0,h=0;hi&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var s=0;s>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function Ve(e,t,r){return 0===t&&r===e.length?ve(e):ve(e.slice(t,r))}function We(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+p<=r)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(a=e[i+1]))&&(u=(31&c)<<6|63&a)>127&&(l=u);break;case 3:a=e[i+1],s=e[i+2],128==(192&a)&&128==(192&s)&&(u=(15&c)<<12|(63&a)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:a=e[i+1],s=e[i+2],o=e[i+3],128==(192&a)&&128==(192&s)&&128==(192&o)&&(u=(15&c)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;ni)&&(r=i);for(var a="",s=t;sr)throw new RangeError("Trying to access beyond buffer length")}function Ye(e,t,r,n,i,a){if(!Ne(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function Ke(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function Ze(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function et(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function tt(e,t,r,n,i){return i||et(e,0,r,4),be(e,t,r,n,23,4),r+4}function rt(e,t,r,n,i){return i||et(e,0,r,8),be(e,t,r,n,52,8),r+8}we.TYPED_ARRAY_SUPPORT=void 0===he.TYPED_ARRAY_SUPPORT||he.TYPED_ARRAY_SUPPORT,we.poolSize=8192,we._augment=function(e){return e.__proto__=we.prototype,e},we.from=function(e,t,r){return Se(null,e,t,r)},we.TYPED_ARRAY_SUPPORT&&(we.prototype.__proto__=Uint8Array.prototype,we.__proto__=Uint8Array),we.alloc=function(e,t,r){return function(e,t,r,n){return ke(t),t<=0?Fe(e,t):void 0!==r?"string"==typeof n?Fe(e,t).fill(r,n):Fe(e,t).fill(r):Fe(e,t)}(null,e,t,r)},we.allocUnsafe=function(e){return Te(null,e)},we.allocUnsafeSlow=function(e){return Te(null,e)},we.isBuffer=function(e){return null!=e&&(!!e._isBuffer||ot(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&ot(e.slice(0,0))}(e))},we.compare=function(e,t){if(!Ne(e)||!Ne(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},we.prototype.compare=function(e,t,r,n,i){if(!Ne(e))throw new TypeError("Argument must be a Buffer");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;for(var a=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),o=Math.min(a,s),u=this.slice(n,i),c=e.slice(t,r),l=0;li)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return Re(this,e,t,r);case"utf8":case"utf-8":return Me(this,e,t,r);case"ascii":return $e(this,e,t,r);case"latin1":case"binary":return qe(this,e,t,r);case"base64":return Ue(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ze(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},we.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},we.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},we.prototype.readUInt8=function(e,t){return t||Qe(e,1,this.length),this[e]},we.prototype.readUInt16LE=function(e,t){return t||Qe(e,2,this.length),this[e]|this[e+1]<<8},we.prototype.readUInt16BE=function(e,t){return t||Qe(e,2,this.length),this[e]<<8|this[e+1]},we.prototype.readUInt32LE=function(e,t){return t||Qe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},we.prototype.readUInt32BE=function(e,t){return t||Qe(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},we.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Qe(e,t,this.length);for(var n=this[e],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*t)),n},we.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Qe(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},we.prototype.readInt8=function(e,t){return t||Qe(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},we.prototype.readInt16LE=function(e,t){t||Qe(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},we.prototype.readInt16BE=function(e,t){t||Qe(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},we.prototype.readInt32LE=function(e,t){return t||Qe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},we.prototype.readInt32BE=function(e,t){return t||Qe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},we.prototype.readFloatLE=function(e,t){return t||Qe(e,4,this.length),Ee(this,e,!0,23,4)},we.prototype.readFloatBE=function(e,t){return t||Qe(e,4,this.length),Ee(this,e,!1,23,4)},we.prototype.readDoubleLE=function(e,t){return t||Qe(e,8,this.length),Ee(this,e,!0,52,8)},we.prototype.readDoubleBE=function(e,t){return t||Qe(e,8,this.length),Ee(this,e,!1,52,8)},we.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||Ye(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+r},we.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,1,255,0),we.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},we.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,2,65535,0),we.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ke(this,e,t,!0),t+2},we.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,2,65535,0),we.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ke(this,e,t,!1),t+2},we.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,4,4294967295,0),we.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ze(this,e,t,!0),t+4},we.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,4,4294967295,0),we.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ze(this,e,t,!1),t+4},we.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Ye(this,e,t,r,i-1,-i)}var a=0,s=1,o=0;for(this[t]=255&e;++a>0)-o&255;return t+r},we.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Ye(this,e,t,r,i-1,-i)}var a=r-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+r},we.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,1,127,-128),we.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},we.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,2,32767,-32768),we.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ke(this,e,t,!0),t+2},we.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,2,32767,-32768),we.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ke(this,e,t,!1),t+2},we.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,4,2147483647,-2147483648),we.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ze(this,e,t,!0),t+4},we.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),we.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ze(this,e,t,!1),t+4},we.prototype.writeFloatLE=function(e,t,r){return tt(this,e,t,!0,r)},we.prototype.writeFloatBE=function(e,t,r){return tt(this,e,t,!1,r)},we.prototype.writeDoubleLE=function(e,t,r){return rt(this,e,t,!0,r)},we.prototype.writeDoubleBE=function(e,t,r){return rt(this,e,t,!1,r)},we.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!we.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.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;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function at(e){return function(e){var t,r,n,i,a,s;ye||De();var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[o-2]?2:"="===e[o-1]?1:0,s=new me(3*o/4-a),n=a>0?o-4:o;var u=0;for(t=0,r=0;t>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===a?(i=de[e.charCodeAt(t)]<<2|de[e.charCodeAt(t+1)]>>4,s[u++]=255&i):1===a&&(i=de[e.charCodeAt(t)]<<10|de[e.charCodeAt(t+1)]<<4|de[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(nt,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function st(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function ot(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var ut="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function ct(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lt(e,t){return e(t={exports:{}},t.exports),t.exports}function pt(e){return e&&e.default||e}var ht=pt(pe),ft=function(){function e(t,r){l(this,e),(r=r||{}).readChunk||(r.readChunk=1024),r.newLineCharacter?r.newLineCharacter=r.newLineCharacter.charCodeAt(0):r.newLineCharacter=10,this.fd="number"==typeof t?t:ht.openSync(t,"r"),this.options=r,this.newLineCharacter=r.newLineCharacter,this.reset()}return h(e,[{key:"_searchInBuffer",value:function(e,t){for(var r=-1,n=0;n<=e.length;n++)if(e[n]===t){r=n;break}return r}},{key:"reset",value:function(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}},{key:"close",value:function(){ht.closeSync(this.fd),this.fd=null}},{key:"_extractLines",value:function(e){for(var t,r=[],n=0,i=0;;){var a=e[n++];if(a===this.newLineCharacter)t=e.slice(i,n),r.push(t),i=n;else if(!a)break}var s=e.slice(i,n);return s.length&&r.push(s),r}},{key:"_readChunk",value:function(e){var t,r=0,n=[];do{var i=new we(this.options.readChunk);r+=t=ht.readSync(this.fd,i,0,this.options.readChunk,this.fdPosition),this.fdPosition=this.fdPosition+t,n.push(i)}while(t&&-1===this._searchInBuffer(n[n.length-1],this.options.newLineCharacter));var a=we.concat(n);return t1)for(var r=1;r)?=?)",u("XRANGEIDENTIFIERLOOSE"),a[s.XRANGEIDENTIFIERLOOSE]=a[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),a[s.XRANGEIDENTIFIER]=a[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),a[s.XRANGEPLAIN]="[v=\\s]*("+a[s.XRANGEIDENTIFIER]+")(?:\\.("+a[s.XRANGEIDENTIFIER]+")(?:\\.("+a[s.XRANGEIDENTIFIER]+")(?:"+a[s.PRERELEASE]+")?"+a[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),a[s.XRANGEPLAINLOOSE]="[v=\\s]*("+a[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[s.XRANGEIDENTIFIERLOOSE]+")(?:"+a[s.PRERELEASELOOSE]+")?"+a[s.BUILD]+"?)?)?",u("XRANGE"),a[s.XRANGE]="^"+a[s.GTLT]+"\\s*"+a[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),a[s.XRANGELOOSE]="^"+a[s.GTLT]+"\\s*"+a[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),a[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(a[s.COERCE],"g"),u("LONETILDE"),a[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),a[s.TILDETRIM]="(\\s*)"+a[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(a[s.TILDETRIM],"g"),u("TILDE"),a[s.TILDE]="^"+a[s.LONETILDE]+a[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),a[s.TILDELOOSE]="^"+a[s.LONETILDE]+a[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),a[s.LONECARET]="(?:\\^)",u("CARETTRIM"),a[s.CARETTRIM]="(\\s*)"+a[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(a[s.CARETTRIM],"g"),u("CARET"),a[s.CARET]="^"+a[s.LONECARET]+a[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),a[s.CARETLOOSE]="^"+a[s.LONECARET]+a[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),a[s.COMPARATORLOOSE]="^"+a[s.GTLT]+"\\s*("+a[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),a[s.COMPARATOR]="^"+a[s.GTLT]+"\\s*("+a[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),a[s.COMPARATORTRIM]="(\\s*)"+a[s.GTLT]+"\\s*("+a[s.LOOSEPLAIN]+"|"+a[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(a[s.COMPARATORTRIM],"g"),u("HYPHENRANGE"),a[s.HYPHENRANGE]="^\\s*("+a[s.XRANGEPLAIN]+")\\s+-\\s+("+a[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),a[s.HYPHENRANGELOOSE]="^\\s*("+a[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),a[s.STAR]="(<|>)?=?\\s*\\*";for(var l=0;l256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new h(e,t)}catch(e){return null}}function h(e,t){if(t&&"object"===c(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof h){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof h))return new h(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new h(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var r=p(e),n=p(t),i="";if(r.prerelease.length||n.prerelease.length){i="pre";var a="prerelease"}for(var s in r)if(("major"===s||"minor"===s||"patch"===s)&&r[s]!==n[s])return i+s;return a},t.compareIdentifiers=d;var f=/^[0-9]+$/;function d(e,t){var r=f.test(e),n=f.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e0}function D(e,t,r){return m(e,t,r)<0}function g(e,t,r){return 0===m(e,t,r)}function v(e,t,r){return 0!==m(e,t,r)}function E(e,t,r){return m(e,t,r)>=0}function b(e,t,r){return m(e,t,r)<=0}function C(e,t,r,n){switch(t){case"===":return"object"===c(e)&&(e=e.version),"object"===c(r)&&(r=r.version),e===r;case"!==":return"object"===c(e)&&(e=e.version),"object"===c(r)&&(r=r.version),e!==r;case"":case"=":case"==":return g(e,r,n);case"!=":return v(e,r,n);case">":return y(e,r,n);case">=":return E(e,r,n);case"<":return D(e,r,n);case"<=":return b(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}function x(e,t){if(t&&"object"===c(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof x){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof x))return new x(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===A?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return d(t,e)},t.major=function(e,t){return new h(e,t).major},t.minor=function(e,t){return new h(e,t).minor},t.patch=function(e,t){return new h(e,t).patch},t.compare=m,t.compareLoose=function(e,t){return m(e,t,!0)},t.compareBuild=function(e,t,r){var n=new h(e,r),i=new h(t,r);return n.compare(i)||n.compareBuild(i)},t.rcompare=function(e,t,r){return m(t,e,r)},t.sort=function(e,r){return e.sort((function(e,n){return t.compareBuild(e,n,r)}))},t.rsort=function(e,r){return e.sort((function(e,n){return t.compareBuild(n,e,r)}))},t.gt=y,t.lt=D,t.eq=g,t.neq=v,t.gte=E,t.lte=b,t.cmp=C,t.Comparator=x;var A={};function F(e,t){if(t&&"object"===c(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof F)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new F(e.raw,t);if(e instanceof x)return new F(e.value,t);if(!(this instanceof F))return new F(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function w(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every((function(e){return i.intersects(e,t)})),i=n.pop();return r}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function k(e,t,r,n,i,a,s,o,u,c,l,p,h){return((t=S(r)?"":S(n)?">="+r+".0.0":S(i)?">="+r+"."+n+".0":">="+t)+" "+(o=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":p?"<="+u+"."+c+"."+l+"-"+p:"<="+o)).trim()}function T(e,t,n){for(var i=0;i0){var a=e[i].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function P(e,t,r){try{t=new F(t,r)}catch(e){return!1}return t.test(e)}function B(e,t,r,n){var i,a,s,o,u;switch(e=new h(e,n),t=new F(t,n),r){case">":i=y,a=b,s=D,o=">",u=">=";break;case"<":i=D,a=E,s=y,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(P(e,t,n))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,n)?p=e:s(e.semver,f.semver,n)&&(f=e)})),p.operator===o||p.operator===u)return!1;if((!f.operator||f.operator===o)&&a(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}x.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new h(r[2],this.options.loose):this.semver=A},x.prototype.toString=function(){return this.value},x.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===A||e===A)return!0;if("string"==typeof e)try{e=new h(e,this.options)}catch(e){return!1}return C(e,this.operator,this.semver,this.options)},x.prototype.intersects=function(e,t){if(!(e instanceof x))throw new TypeError("a Comparator is required");var r;if(t&&"object"===c(t)||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new F(e.value,t),P(this.value,r,t));if(""===e.operator)return""===e.value||(r=new F(this.value,t),P(e.semver,r,t));var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=C(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=C(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||a&&s||o||u},t.Range=F,F.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},F.prototype.toString=function(){return this.range},F.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(n,k),r("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),r("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var a=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],o=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(n,(function(t,n,i,a,s){var o;return r("caret",e,t,n,i,a,s),S(n)?o="":S(i)?o=">="+n+".0.0 <"+(+n+1)+".0.0":S(a)?o="0"===n?">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":">="+n+"."+i+".0 <"+(+n+1)+".0.0":s?(r("replaceCaret pr",s),o="0"===n?"0"===i?">="+n+"."+i+"."+a+"-"+s+" <"+n+"."+i+"."+(+a+1):">="+n+"."+i+"."+a+"-"+s+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+a+"-"+s+" <"+(+n+1)+".0.0"):(r("no pr"),o="0"===n?"0"===i?">="+n+"."+i+"."+a+" <"+n+"."+i+"."+(+a+1):">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+a+" <"+(+n+1)+".0.0"),r("caret return",o),o}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(n,(function(t,n,i,a,s){var o;return r("tilde",e,t,n,i,a,s),S(n)?o="":S(i)?o=">="+n+".0.0 <"+(+n+1)+".0.0":S(a)?o=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":s?(r("replaceTilde pr",s),o=">="+n+"."+i+"."+a+"-"+s+" <"+n+"."+(+i+1)+".0"):o=">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0",r("tilde return",o),o}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(n,(function(n,i,a,s,o,u){r("xRange",e,n,i,a,s,o,u);var c=S(a),l=c||S(s),p=l||S(o),h=p;return"="===i&&h&&(i=""),u=t.includePrerelease?"-0":"",c?n=">"===i||"<"===i?"<0.0.0-0":"*":i&&h?(l&&(s=0),o=0,">"===i?(i=">=",l?(a=+a+1,s=0,o=0):(s=+s+1,o=0)):"<="===i&&(i="<",l?a=+a+1:s=+s+1),n=i+a+"."+s+"."+o+u):l?n=">="+a+".0.0"+u+" <"+(+a+1)+".0.0"+u:p&&(n=">="+a+"."+s+".0"+u+" <"+a+"."+(+s+1)+".0"+u),r("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(a)}))),o=o.map((function(e){return new x(e,this.options)}),this)},F.prototype.intersects=function(e,t){if(!(e instanceof F))throw new TypeError("a Range is required");return this.set.some((function(r){return w(r,t)&&e.set.some((function(e){return w(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new F(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},F.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new h(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!y(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return r&&e.test(r)?r:null},t.validRange=function(e,t){try{return new F(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return B(e,t,"<",r)},t.gtr=function(e,t,r){return B(e,t,">",r)},t.outside=B,t.prerelease=function(e,t){var r=p(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new F(e,r),t=new F(t,r),e.intersects(t)},t.coerce=function(e,t){if(e instanceof h)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var n;(n=i[s.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),i[s.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;i[s.COERCERTL].lastIndex=-1}else r=e.match(i[s.COERCE]);return null===r?null:p(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}})),$t=(Mt.SEMVER_SPEC_VERSION,Mt.re,Mt.src,Mt.tokens,Mt.parse,Mt.valid,Mt.clean,Mt.SemVer,Mt.inc,Mt.diff,Mt.compareIdentifiers,Mt.rcompareIdentifiers,Mt.major,Mt.minor,Mt.patch,Mt.compare,Mt.compareLoose,Mt.compareBuild,Mt.rcompare,Mt.sort,Mt.rsort,Mt.gt,Mt.lt,Mt.eq,Mt.neq,Mt.gte,Mt.lte,Mt.cmp,Mt.Comparator,Mt.Range,Mt.toComparators,Mt.satisfies,Mt.maxSatisfying,Mt.minSatisfying,Mt.minVersion,Mt.validRange,Mt.ltr,Mt.gtr,Mt.outside,Mt.prerelease,Mt.intersects,Mt.coerce,lt((function(e){e.exports=function(e){var t=void 0;t="string"==typeof e?[e]:e.raw;for(var r="",n=0;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function tr(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return s}function rr(e){return this instanceof rr?(this.v=e,this):new rr(e)}var nr=Object.freeze({__proto__:null,__extends:function(e,t){function r(){this.constructor=e}Kt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},get __assign(){return Zt},__rest:function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i=0;o--)(i=e[o])&&(s=(a<3?i(s):a>3?i(t,r,s):i(t,r))||s);return a>3&&s&&Object.defineProperty(t,r,s),s},__param:function(e,t){return function(r,n){t(r,n,e)}},__metadata:function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":c(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{u(n.next(e))}catch(e){a(e)}}function o(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){e.done?i(e.value):new r((function(t){t(e.value)})).then(s,o)}u((n=n.apply(e,t||[])).next())}))},__generator:function(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]1||o(e,t)}))})}function o(e,t){try{(r=i[e](t)).value instanceof rr?Promise.resolve(r.value.v).then(u,c):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function u(e){o("next",e)}function c(e){o("throw",e)}function l(e,t){e(t),a.shift(),a.length&&o(a[0][0],a[0][1])}},__asyncDelegator:function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:rr(e[n](t)),done:"return"===n}:i?i(t):t}:i}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=er(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),ir=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:function(e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e)},value:function(e){if(null===e||"object"!==c(e))return JSON.stringify(e);if(Array.isArray(e))return"[".concat(e.map((function(e){return t.apiDescriptor.value(e)})).join(", "),"]");var r=Object.keys(e);return 0===r.length?"{}":"{ ".concat(r.map((function(r){return"".concat(t.apiDescriptor.key(r),": ").concat(t.apiDescriptor.value(e[r]))})).join(", ")," }")},pair:function(e){var r=e.key,n=e.value;return t.apiDescriptor.value(f({},r,n))}}}));ct(ir),ir.apiDescriptor;var ar=pt(nr),sr=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ar.__exportStar(ir,t)}));ct(sr);var or=/[|\\{}()[\]^$+*?.]/g,ur=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(or,"\\$&")},cr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},lr=lt((function(e){var t={};for(var r in cr)cr.hasOwnProperty(r)&&(t[cr[r]]=r);var n=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in n)if(n.hasOwnProperty(i)){if(!("channels"in n[i]))throw new Error("missing channels property: "+i);if(!("labels"in n[i]))throw new Error("missing channel labels property: "+i);if(n[i].labels.length!==n[i].channels)throw new Error("channel and label counts mismatch: "+i);var a=n[i].channels,s=n[i].labels;delete n[i].channels,delete n[i].labels,Object.defineProperty(n[i],"channels",{value:a}),Object.defineProperty(n[i],"labels",{value:s})}n.rgb.hsl=function(e){var t,r,n=e[0]/255,i=e[1]/255,a=e[2]/255,s=Math.min(n,i,a),o=Math.max(n,i,a),u=o-s;return o===s?t=0:n===o?t=(i-a)/u:i===o?t=2+(a-n)/u:a===o&&(t=4+(n-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),r=(s+o)/2,[t,100*(o===s?0:r<=.5?u/(o+s):u/(2-o-s)),100*r]},n.rgb.hsv=function(e){var t,r,n=e[0],i=e[1],a=e[2],s=Math.min(n,i,a),o=Math.max(n,i,a),u=o-s;return r=0===o?0:u/o*1e3/10,o===s?t=0:n===o?t=(i-a)/u:i===o?t=2+(a-n)/u:a===o&&(t=4+(n-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),[t,r,o/255*1e3/10]},n.rgb.hwb=function(e){var t=e[0],r=e[1],i=e[2];return[n.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,i))*100,100*(i=1-1/255*Math.max(t,Math.max(r,i)))]},n.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-i)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},n.rgb.keyword=function(e){var r=t[e];if(r)return r;var n,i,a,s=1/0;for(var o in cr)if(cr.hasOwnProperty(o)){var u=cr[o],c=(i=e,a=u,Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)+Math.pow(i[2]-a[2],2));c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},n.rgb.lab=function(e){var t=n.rgb.xyz(e),r=t[0],i=t[1],a=t[2];return i/=100,a/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(r-i),200*(i-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},n.hsl.rgb=function(e){var t,r,n,i,a,s=e[0]/360,o=e[1]/100,u=e[2]/100;if(0===o)return[a=255*u,a,a];t=2*u-(r=u<.5?u*(1+o):u+o-u*o),i=[0,0,0];for(var c=0;c<3;c++)(n=s+1/3*-(c-1))<0&&n++,n>1&&n--,a=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,i[c]=255*a;return i},n.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,a=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,i*=a<=1?a:2-a,[t,100*(0===n?2*i/(a+i):2*r/(n+r)),(n+r)/2*100]},n.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),s=255*n*(1-r),o=255*n*(1-r*a),u=255*n*(1-r*(1-a));switch(n*=255,i){case 0:return[n,u,s];case 1:return[o,n,s];case 2:return[s,n,u];case 3:return[s,o,n];case 4:return[u,s,n];case 5:return[n,s,o]}},n.hsv.hsl=function(e){var t,r,n,i=e[0],a=e[1]/100,s=e[2]/100,o=Math.max(s,.01);return n=(2-a)*s,r=a*o,[i,100*(r=(r/=(t=(2-a)*o)<=1?t:2-t)||0),100*(n/=2)]},n.hwb.rgb=function(e){var t,r,n,i,a,s,o,u=e[0]/360,c=e[1]/100,l=e[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),n=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(n=1-n),i=c+n*((r=1-l)-c),t){default:case 6:case 0:a=r,s=i,o=c;break;case 1:a=i,s=r,o=c;break;case 2:a=c,s=r,o=i;break;case 3:a=c,s=i,o=r;break;case 4:a=i,s=c,o=r;break;case 5:a=r,s=c,o=i}return[255*a,255*s,255*o]},n.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},n.xyz.rgb=function(e){var t,r,n,i=e[0]/100,a=e[1]/100,s=e[2]/100;return r=-.9689*i+1.8758*a+.0415*s,n=.0557*i+-.204*a+1.057*s,t=(t=3.2406*i+-1.5372*a+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},n.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},n.lab.xyz=function(e){var t,r,n,i=e[0];t=e[1]/500+(r=(i+16)/116),n=r-e[2]/200;var a=Math.pow(r,3),s=Math.pow(t,3),o=Math.pow(n,3);return r=a>.008856?a:(r-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},n.lab.lch=function(e){var t,r=e[0],n=e[1],i=e[2];return(t=360*Math.atan2(i,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+i*i),t]},n.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},n.rgb.ansi16=function(e){var t=e[0],r=e[1],i=e[2],a=1 in arguments?arguments[1]:n.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===a&&(s+=60),s},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},n.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},n.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},n.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},n.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},n.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,i=e[2]/255,a=Math.max(Math.max(r,n),i),s=Math.min(Math.min(r,n),i),o=a-s;return t=o<=0?0:a===r?(n-i)/o%6:a===n?2+(i-r)/o:4+(r-n)/o+4,t/=6,[360*(t%=1),100*o,100*(o<1?s/(1-o):0)]},n.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return(n=r<.5?2*t*r:2*t*(1-r))<1&&(i=(r-.5*n)/(1-n)),[e[0],100*n,100*i]},n.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},n.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var i,a=[0,0,0],s=t%1*6,o=s%1,u=1-o;switch(Math.floor(s)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=u,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=u,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=u}return i=(1-r)*n,[255*(r*a[0]+i),255*(r*a[1]+i),255*(r*a[2]+i)]},n.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},n.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},n.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},n.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=n.gray.hsv=function(e){return[0,0,e[0]]},n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}})),pr=(lr.rgb,lr.hsl,lr.hsv,lr.hwb,lr.cmyk,lr.xyz,lr.lab,lr.lch,lr.hex,lr.keyword,lr.ansi16,lr.ansi256,lr.hcg,lr.apple,lr.gray,Object.keys(lr));function hr(e){var t=function(){for(var e={},t=pr.length,r=0;r1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"===c(r))for(var n=r.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))}));var yr,Dr=mr,gr=lt((function(e){var t=function(e,t){return function(){var r=e.apply(Dr,arguments);return"[".concat(r+t,"m")}},r=function(e,t){return function(){var r=e.apply(Dr,arguments);return"[".concat(38+t,";5;").concat(r,"m")}},n=function(e,t){return function(){var r=e.apply(Dr,arguments);return"[".concat(38+t,";2;").concat(r[0],";").concat(r[1],";").concat(r[2],"m")}};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){var e=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(var a=0,s=Object.keys(i);a=2,has16m:e>=3}}(function(e){if(!1===yr)return 0;if(Er("color=16m")||Er("color=full")||Er("color=truecolor"))return 3;if(Er("color=256"))return 2;if(e&&!e.isTTY&&!0!==yr)return 0;var t=yr?1:0;if("win32"===Rt.platform){var r=vr.release().split(".");return Number(Rt.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in br)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in br}))||"codeship"===br.CI_NAME?1:t;if("TEAMCITY_VERSION"in br)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(br.TEAMCITY_VERSION)?1:0;if("truecolor"===br.COLORTERM)return 3;if("TERM_PROGRAM"in br){var n=parseInt((br.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(br.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(br.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(br.TERM)?1:"COLORTERM"in br?1:(br.TERM,t)}(e))}Er("no-color")||Er("no-colors")||Er("color=false")?yr=!1:(Er("color")||Er("colors")||Er("color=true")||Er("color=always"))&&(yr=!0),"FORCE_COLOR"in br&&(yr=0===br.FORCE_COLOR.length||0!==parseInt(br.FORCE_COLOR,10));var xr={supportsColor:Cr,stdout:Cr(Rt.stdout),stderr:Cr(Rt.stderr)},Ar=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Fr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,wr=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Sr=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,kr=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Tr(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):kr.get(e)||e}function Pr(e,t){var r,n=[],i=t.trim().split(/\s*,\s*/g),a=!0,s=!1,o=void 0;try{for(var u,c=i[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var l=u.value;if(isNaN(l)){if(!(r=l.match(wr)))throw new Error("Invalid Chalk template style argument: ".concat(l," (in style '").concat(e,"')"));n.push(r[2].replace(Sr,(function(e,t,r){return t?Tr(t):r})))}else n.push(Number(l))}}catch(e){s=!0,o=e}finally{try{a||null==c.return||c.return()}finally{if(s)throw o}}return n}function Br(e){Fr.lastIndex=0;for(var t,r=[];null!==(t=Fr.exec(e));){var n=t[1];if(t[2]){var i=Pr(n,t[2]);r.push([n].concat(i))}else r.push([n])}return r}function Nr(e,t){var r={},n=!0,i=!1,a=void 0;try{for(var s,o=t[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value,c=!0,l=!1,p=void 0;try{for(var h,f=u.styles[Symbol.iterator]();!(c=(h=f.next()).done);c=!0){var d=h.value;r[d[0]]=u.inverse?null:d.slice(1)}}catch(e){l=!0,p=e}finally{try{c||null==f.return||f.return()}finally{if(l)throw p}}}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}for(var m=e,y=0,D=Object.keys(r);y0?m[g].apply(m,r[g]):m[g]}}return m}var Ir=function(e,t){var r=[],n=[],i=[];if(t.replace(Ar,(function(t,a,s,o,u,c){if(a)i.push(Tr(a));else if(o){var l=i.join("");i=[],n.push(0===r.length?l:Nr(e,r)(l)),r.push({inverse:s,styles:Br(o)})}else if(u){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");n.push(Nr(e,r)(i.join(""))),i=[],r.pop()}else i.push(c)})),n.push(i.join("")),r.length>0){var a="Chalk template literal is missing ".concat(r.length," closing bracket").concat(1===r.length?"":"s"," (`}`)");throw new Error(a)}return n.join("")},Or=lt((function(e){var t=xr.stdout,r="win32"===Rt.platform&&!(Rt.env.TERM||"").toLowerCase().startsWith("xterm"),n=["ansi","ansi","ansi256","ansi16m"],i=new Set(["gray"]),a=Object.create(null);function s(e,r){r=r||{};var n=t?t.level:0;e.level=void 0===r.level?n:r.level,e.enabled="enabled"in r?r.enabled:e.level>0}function o(e){if(!this||!(this instanceof o)||this.template){var t={};return s(t,e),t.template=function(){var e=[].slice.call(arguments);return E.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,o.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=o,t.template}s(this,e)}r&&(gr.blue.open="");for(var u=function(){var e=l[c];gr[e].closeRe=new RegExp(ur(gr[e].close),"g"),a[e]={get:function(){var t=gr[e];return g.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}},c=0,l=Object.keys(gr);c1)for(var i=1;it.length&&(e=t,t=r);var n=e.length,i=t.length;if(0===n)return i;if(0===i)return n;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;if(0===n)return i;for(var a,s,o,u,c=0;cs?u>s?s+1:u:u>o?o+1:u;return s}(e,t)<3}));o&&s.push("Did you mean ".concat(Or.default.blue(n.key(o)),"?")),i.warn(s.join(" "))}}));ct(qr),qr.levenUnknownHandler;var Ur=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ar.__exportStar(qr,t)}));ct(Ur);var zr=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ar.__exportStar(jr,t),ar.__exportStar(Rr,t),ar.__exportStar(Ur,t)}));ct(zr);var Vr=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function n(e,t){var n=new e(t),s=Object.create(n),o=!0,u=!1,c=void 0;try{for(var l,p=r[Symbol.iterator]();!(o=(l=p.next()).done);o=!0){var h=l.value;h in t&&(s[h]=a(t[h],n,i.prototype[h].length))}}catch(e){u=!0,c=e}finally{try{o||null==p.return||p.return()}finally{if(u)throw c}}return s}t.createSchema=n;var i=function(){function e(t){l(this,e),this.name=t.name}return h(e,[{key:"default",value:function(e){}},{key:"expected",value:function(e){return"nothing"}},{key:"validate",value:function(e,t){return!1}},{key:"deprecated",value:function(e,t){return!1}},{key:"forward",value:function(e,t){}},{key:"redirect",value:function(e,t){}},{key:"overlap",value:function(e,t,r){return e}},{key:"preprocess",value:function(e,t){return e}},{key:"postprocess",value:function(e,t){return e}}],[{key:"create",value:function(e){return n(this,e)}}]),e}();function a(e,t,r){return"function"==typeof e?function(){for(var n=arguments.length,i=new Array(n),a=0;a2&&void 0!==arguments[2]&&arguments[2];return!1!==e&&(!0===e?!!r||[{value:t}]:"value"in e?[e]:0!==e.length&&e)},t.normalizeTransferResult=r,t.normalizeForwardResult=n,t.normalizeRedirectResult=function(e,t){var r=n("object"===c(e)&&"redirect"in e?e.redirect:e,t);return 0===r.length?{remain:t,redirect:r}:"object"===c(e)&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}}));ct(Xr),Xr.recordFromArray,Xr.mapFromArray,Xr.createAutoChecklist,Xr.partition,Xr.isInt,Xr.comparePrimitive,Xr.normalizeDefaultResult,Xr.normalizeValidateResult,Xr.normalizeDeprecatedResult,Xr.normalizeTransferResult,Xr.normalizeForwardResult,Xr.normalizeRedirectResult;var Qr=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(e){var r;return l(this,t),(r=E(this,m(t).call(this,e)))._choices=Xr.mapFromArray(e.choices.map((function(e){return e&&"object"===c(e)?e:{value:e}})),"value"),r}return d(t,e),h(t,[{key:"expected",value:function(e){var t=this,r=e.descriptor,n=Array.from(this._choices.keys()).map((function(e){return t._choices.get(e)})).filter((function(e){return!e.deprecated})).map((function(e){return e.value})).sort(Xr.comparePrimitive).map(r.value),i=n.slice(0,-2),a=n.slice(-2);return i.concat(a.join(" or ")).join(", ")}},{key:"validate",value:function(e){return this._choices.has(e)}},{key:"deprecated",value:function(e){var t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}},{key:"forward",value:function(e){var t=this._choices.get(e);return t?t.forward:void 0}},{key:"redirect",value:function(e){var t=this._choices.get(e);return t?t.redirect:void 0}}]),t}(Vr.Schema);t.ChoiceSchema=r}));ct(Qr),Qr.ChoiceSchema;var Yr=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return l(this,t),E(this,m(t).apply(this,arguments))}return d(t,e),h(t,[{key:"expected",value:function(){return"a number"}},{key:"validate",value:function(e,t){return"number"==typeof e}}]),t}(Vr.Schema);t.NumberSchema=r}));ct(Yr),Yr.NumberSchema;var Kr=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return l(this,t),E(this,m(t).apply(this,arguments))}return d(t,e),h(t,[{key:"expected",value:function(){return"an integer"}},{key:"validate",value:function(e,r){return!0===r.normalizeValidateResult(b(m(t.prototype),"validate",this).call(this,e,r),e)&&Xr.isInt(e)}}]),t}(Yr.NumberSchema);t.IntegerSchema=r}));ct(Kr),Kr.IntegerSchema;var Zr=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return l(this,t),E(this,m(t).apply(this,arguments))}return d(t,e),h(t,[{key:"expected",value:function(){return"a string"}},{key:"validate",value:function(e){return"string"==typeof e}}]),t}(Vr.Schema);t.StringSchema=r}));ct(Zr),Zr.StringSchema;var en=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ar.__exportStar(Wr,t),ar.__exportStar(Hr,t),ar.__exportStar(Jr,t),ar.__exportStar(Gr,t),ar.__exportStar(Qr,t),ar.__exportStar(Kr,t),ar.__exportStar(Yr,t),ar.__exportStar(Zr,t)}));ct(en);var tn=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDescriptor=ir.apiDescriptor,t.defaultUnknownHandler=qr.levenUnknownHandler,t.defaultInvalidHandler=Rr.commonInvalidHandler,t.defaultDeprecatedHandler=_r.commonDeprecatedHandler}));ct(tn),tn.defaultDescriptor,tn.defaultUnknownHandler,tn.defaultInvalidHandler,tn.defaultDeprecatedHandler;var rn=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e,t,n){return new r(t,n).normalize(e)};var r=function(){function e(t,r){l(this,e);var n=r||{},i=n.logger,a=void 0===i?console:i,s=n.descriptor,o=void 0===s?tn.defaultDescriptor:s,u=n.unknown,c=void 0===u?tn.defaultUnknownHandler:u,p=n.invalid,h=void 0===p?tn.defaultInvalidHandler:p,f=n.deprecated,d=void 0===f?tn.defaultDeprecatedHandler:f;this._utils={descriptor:o,logger:a||{warn:function(){}},schemas:Xr.recordFromArray(t,"name"),normalizeDefaultResult:Xr.normalizeDefaultResult,normalizeDeprecatedResult:Xr.normalizeDeprecatedResult,normalizeForwardResult:Xr.normalizeForwardResult,normalizeRedirectResult:Xr.normalizeRedirectResult,normalizeValidateResult:Xr.normalizeValidateResult},this._unknownHandler=c,this._invalidHandler=h,this._deprecatedHandler=d,this.cleanHistory()}return h(e,[{key:"cleanHistory",value:function(){this._hasDeprecationWarned=Xr.createAutoChecklist()}},{key:"normalize",value:function(e){var t=this,r={},n=[e],i=function(){for(;0!==n.length;){var e=n.shift(),i=t._applyNormalization(e,r);n.push.apply(n,A(i))}};i();for(var a=0,s=Object.keys(this._utils.schemas);at.length&&(e=t,t=r);for(var n=e.length,i=t.length;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;for(var a,s,o,u,c=0;cs?u>s?s+1:u:u>o?o+1:u;return s},un=on,cn=on;un.default=cn;var ln,pn={key:function(e){return 1===e.length?"-".concat(e):"--".concat(e)},value:function(e){return nn.apiDescriptor.value(e)},pair:function(e){var t=e.key,r=e.value;return!1===r?"--no-".concat(t):!0===r?pn.key(t):""===r?"".concat(pn.key(t)," without an argument"):"".concat(pn.key(t),"=").concat(r)}},hn=function(e){function t(e){var r,n=e.name,i=e.flags;return l(this,t),(r=E(this,m(t).call(this,{name:n,choices:i})))._flags=i.slice().sort(),r}return d(t,e),h(t,[{key:"preprocess",value:function(e,t){if("string"==typeof e&&0!==e.length&&-1===this._flags.indexOf(e)){var r=this._flags.find((function(t){return un(t,e)<3}));if(r)return t.logger.warn(["Unknown flag ".concat(Or.yellow(t.descriptor.value(e)),","),"did you mean ".concat(Or.blue(t.descriptor.value(r)),"?")].join(" ")),r}return e}},{key:"expected",value:function(){return"a flag"}}]),t}(nn.ChoiceSchema);function fn(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.logger,i=r.isCLI,a=void 0!==i&&i,s=r.passThrough,o=void 0!==s&&s,u=o?Array.isArray(o)?function(e,t){return-1===o.indexOf(e)?void 0:f({},e,t)}:function(e,t){return f({},e,t)}:nn.levenUnknownHandler,c=a?pn:nn.apiDescriptor,l=dn(t,{isCLI:a}),p=new nn.Normalizer(l,{logger:n,unknown:u,descriptor:c}),h=!1!==n;h&&ln&&(p._hasDeprecationWarned=ln);var d=p.normalize(e);return h&&(ln=p._hasDeprecationWarned),d}function dn(e,t){var r=t.isCLI,n=[];r&&n.push(nn.AnySchema.create({name:"_"}));var i=!0,a=!1,s=void 0;try{for(var o,u=e[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var c=o.value;n.push(mn(c,{isCLI:r,optionInfos:e})),c.alias&&r&&n.push(nn.AliasSchema.create({name:c.alias,sourceName:c.name}))}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}return n}function mn(e,t){var r,n=t.isCLI,i=t.optionInfos,a={name:e.name},s={};switch(e.type){case"int":r=nn.IntegerSchema,n&&(a.preprocess=function(e){return Number(e)});break;case"string":r=nn.StringSchema;break;case"choice":r=nn.ChoiceSchema,a.choices=e.choices.map((function(t){return"object"===c(t)&&t.redirect?Object.assign({},t,{redirect:{to:{key:e.name,value:t.redirect}}}):t}));break;case"boolean":r=nn.BooleanSchema;break;case"flag":r=hn,a.flags=i.map((function(e){return[].concat(e.alias||[],e.description?e.name:[],e.oppositeDescription?"no-".concat(e.name):[])})).reduce((function(e,t){return e.concat(t)}),[]);break;case"path":r=nn.StringSchema;break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?a.validate=function(t,r,n){return e.exception(t)||r.validate(t,n)}:a.validate=function(e,t,r){return void 0===e||t.validate(e,r)},e.redirect&&(s.redirect=function(t){return t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0}),e.deprecated&&(s.deprecated=!0),n&&!e.array){var o=a.preprocess||function(e){return e};a.preprocess=function(e,t,r){return t.preprocess(o(Array.isArray(e)?e[e.length-1]:e),r)}}return e.array?nn.ArraySchema.create(Object.assign(n?{preprocess:function(e){return[].concat(e)}}:{},s,{valueSchema:r.create(a)})):r.create(Object.assign({},a,s))}var yn={normalizeApiOptions:function(e,t,r){return fn(e,t,r)},normalizeCliOptions:function(e,t,r){return fn(e,t,Object.assign({isCLI:!0},r))}},Dn=function(e){return e.length>0?e[e.length-1]:null},gn=function e(t,r){return!(r=r||{}).ignoreDecorators&&t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?e(t.declaration.decorators[0]):!r.ignoreDecorators&&t.decorators&&t.decorators.length>0?e(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeof t.start?t.start:t.loc?t.loc.start:null},vn=function e(t){var r=t.nodes&&Dn(t.nodes);if(r&&t.source&&!t.source.end&&(t=r),t.__location)return t.__location.endOffset;var n=t.range?t.range[1]:"number"==typeof t.end?t.end:null;return t.typeAnnotation?Math.max(n,e(t.typeAnnotation)):t.loc&&!n?t.loc.end:n},En=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}}));ct(En),En.matchToToken;var bn=lt((function(e){!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function r(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=r(t)}while(t);return!1},trailingStatement:r}}()})),Cn=(bn.isExpression,bn.isStatement,bn.isIterationStatement,bn.isSourceElement,bn.isProblematicIfStatement,bn.trailingStatement,lt((function(e){!function(){var t,r,n,i,a,s;function o(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(r={NonAsciiIdentifierStart:/[\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]/,NonAsciiIdentifierPart:/[\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]/},t={NonAsciiIdentifierStart:/[\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-\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\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\u1369-\u1371\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-\u19DA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),s=0;s<128;++s)i[s]=s>=97&&s<=122||s>=65&&s<=90||36===s||95===s;for(a=new Array(128),s=0;s<128;++s)a[s]=s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||36===s||95===s;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&n.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?i[e]:r.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES5:function(e){return e<128?a[e]:r.NonAsciiIdentifierPart.test(o(e))},isIdentifierStartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES6:function(e){return e<128?a[e]:t.NonAsciiIdentifierPart.test(o(e))}}}()}))),xn=(Cn.isDecimalDigit,Cn.isHexDigit,Cn.isOctalDigit,Cn.isWhiteSpace,Cn.isLineTerminator,Cn.isIdentifierStartES5,Cn.isIdentifierPartES5,Cn.isIdentifierStartES6,Cn.isIdentifierPartES6,lt((function(e){!function(){var t=Cn;function r(e,t){return!(!t&&"yield"===e)&&n(e,t)}function n(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function i(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function s(e){var r,n,i;if(0===e.length)return!1;if(i=e.charCodeAt(0),!t.isIdentifierStartES5(i))return!1;for(r=1,n=e.length;r=n)return!1;if(!(56320<=(a=e.charCodeAt(r))&&a<=57343))return!1;i=1024*(i-55296)+(a-56320)+65536}if(!s(i))return!1;s=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:r,isKeywordES6:n,isReservedWordES5:i,isReservedWordES6:a,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:s,isIdentifierNameES6:o,isIdentifierES5:function(e,t){return s(e)&&!i(e,t)},isIdentifierES6:function(e,t){return o(e)&&!a(e,t)}}}()}))),An=(xn.isKeywordES5,xn.isKeywordES6,xn.isReservedWordES5,xn.isReservedWordES6,xn.isRestrictedWord,xn.isIdentifierNameES5,xn.isIdentifierNameES6,xn.isIdentifierES5,xn.isIdentifierES6,lt((function(e,t){t.ast=bn,t.code=Cn,t.keyword=xn}))),Fn=(An.ast,An.code,An.keyword,lt((function(e,t){function r(){var e=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(En);return r=function(){return e},e}function n(){var e=a(An);return n=function(){return e},e}function i(){var e=a(Or);return i=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return{keyword:e.cyan,capitalized:e.yellow,jsx_tag:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldHighlight=h,t.getChalk=f,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(h(t)){var r=f(t),n=s(r);return p(n,e)}return e};var o=/\r\n|[\n\r\u2028\u2029]/,u=/^[a-z][\w-]*$/i,c=/^[()[\]{}]$/;function l(e){var t=x(e.slice(-2),2),i=t[0],a=t[1],s=(0,r().matchToToken)(e);if("name"===s.type){if(n().default.keyword.isReservedWordES6(s.value))return"keyword";if(u.test(s.value)&&("<"===a[i-1]||"3&&void 0!==arguments[3]?arguments[3]:{};if(!n){n=!0;var a="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(Rt.emitWarning)Rt.emitWarning(a,"DeprecationWarning");else{var s=new Error(a);s.name="DeprecationWarning",console.warn(new Error(a))}}var u={start:{column:r=Math.max(r,0),line:t}};return o(e,u,i)};var n=!1;function i(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var a=/\r\n|[\n\r\u2028\u2029]/;function s(e,t,r){var n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),a=r||{},s=a.linesAbove,o=void 0===s?2:s,u=a.linesBelow,c=void 0===u?3:u,l=n.line,p=n.column,h=i.line,f=i.column,d=Math.max(l-(o+1),0),m=Math.min(t.length,h+c);-1===l&&(d=0),-1===h&&(m=t.length);var y=h-l,D={};if(y)for(var g=0;g<=y;g++){var v=g+l;if(p)if(0===g){var E=t[v-1].length;D[v]=[p,E-p+1]}else if(g===y)D[v]=[0,f];else{var b=t[v-g].length;D[v]=[0,b]}else D[v]=!0}else D[l]=p===f?!p||[p,0]:[p,f-p];return{start:d,end:m,markerLines:D}}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(n.highlightCode||n.forceColor)&&(0,r().shouldHighlight)(n),u=(0,r().getChalk)(n),c=i(u),l=function(e,t){return o?e(t):t},p=e.split(a),h=s(t,p,n),f=h.start,d=h.end,m=h.markerLines,y=t.start&&"number"==typeof t.start.column,D=String(d).length,g=o?(0,r().default)(e,n):e,v=g.split(a).slice(f,d).map((function(e,t){var r=f+1+t,i=" ".concat(r).slice(-D),a=" ".concat(i," | "),s=m[r],o=!m[r+1];if(s){var u="";if(Array.isArray(s)){var p=e.slice(0,Math.max(s[0]-1,0)).replace(/[^\t]/g," "),h=s[1]||1;u=["\n ",l(c.gutter,a.replace(/\d/g," ")),p,l(c.marker,"^").repeat(h)].join(""),o&&n.message&&(u+=" "+l(c.message,n.message))}return[l(c.marker,">"),l(c.gutter,a),e,u].join("")}return" ".concat(l(c.gutter,a)).concat(e)})).join("\n");return n.message&&!y&&(v="".concat(" ".repeat(D+1)).concat(n.message,"\n").concat(v)),o?u.reset(v):v}}));ct(wn),wn.codeFrameColumns;var Sn=dt.ConfigError,kn=gn,Tn=vn,Pn=Object.getOwnPropertyNames,Bn=Object.getOwnPropertyDescriptor;function Nn(e){var t={},r=!0,n=!1,i=void 0;try{for(var a,s=e.plugins[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;if(o.parsers){var u=!0,c=!1,l=void 0;try{for(var p,h=Pn(o.parsers)[Symbol.iterator]();!(u=(p=h.next()).done);u=!0){var f=p.value;Object.defineProperty(t,f,Bn(o.parsers,f))}}catch(e){c=!0,l=e}finally{try{u||null==h.return||h.return()}finally{if(c)throw l}}}}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return t}function In(e,t){if(t=t||Nn(e),"function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:kn,locEnd:Tn};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new Sn("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var On={parse:function(e,t){var r=Nn(t),n=Object.keys(r).reduce((function(e,t){return Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t].parse}})}),{}),i=In(t,r);try{return i.preprocess&&(e=i.preprocess(e,t)),{text:e,ast:i.parse(e,n,t)}}catch(t){var a=t.loc;if(a){var s=wn;throw t.codeFrame=s.codeFrameColumns(e,a,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t.stack}},resolveParser:In},_n=dt.UndefinedParserError,jn=Yt.getSupportInfo,Ln=On.resolveParser,Rn={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function Mn(e,t){var r=function(e,t){if("string"!=typeof e)throw new TypeError("expected path to be a string");if("\\"===e||"/"===e)return"/";var r=e.length;if(r<=1)return e;var n="";if(r>4&&"\\"===e[3]){var i=e[2];"?"!==i&&"."!==i||"\\\\"!==e.slice(0,2)||(e=e.slice(2),n="//")}var a=e.split(/[/\\]+/);return!1!==t&&""===a[a.length-1]&&a.pop(),n+a.join("/")}(e).split("/"),n=r[r.length-1].toLowerCase(),i=jn(null,{plugins:t}).languages.find((function(t){return null!==t.since&&(t.extensions&&t.extensions.some((function(e){return n.endsWith(e)}))||t.filenames&&t.filenames.find((function(e){return e.toLowerCase()===n}))||-1===n.indexOf(".")&&t.interpreters&&-1!==t.interpreters.indexOf(function(e){if("string"!=typeof e)return"";var t;try{t=ht.openSync(e,"r")}catch(e){return""}try{var r=new ft(t).next().toString("utf8"),n=r.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(n)return n[1];var i=r.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return i?i[1]:""}catch(e){return""}finally{try{ht.closeSync(t)}catch(e){}}}(e)))}));return i&&i.parsers[0]}var $n=function(e,t){t=t||{};var r=Object.assign({},e),n=jn(null,{plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,i=n.reduce((function(e,t){return void 0!==t.default?Object.assign(e,f({},t.name,t.default)):e}),Object.assign({},Rn));if(!r.parser)if(r.filepath){if(r.parser=Mn(r.filepath,r.plugins),!r.parser)throw new _n("No parser could be inferred for file: ".concat(r.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),r.parser="babel";var a=Ln(yn.normalizeApiOptions(r,[n.find((function(e){return"parser"===e.name}))],{passThrough:!0,logger:!1}));r.astFormat=a.astFormat,r.locEnd=a.locEnd,r.locStart=a.locStart;var s=function(e){var t=e.astFormat;if(!t)throw new Error("getPlugin() requires astFormat to be set");var r=e.plugins.find((function(e){return e.printers&&e.printers[t]}));if(!r)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return r}(r);r.printer=s.printers[r.astFormat];var o=n.filter((function(e){return e.pluginDefaults&&void 0!==e.pluginDefaults[s.name]})).reduce((function(e,t){return Object.assign(e,f({},t.name,t.pluginDefaults[s.name]))}),{}),u=Object.assign({},i,o);return Object.keys(u).forEach((function(e){null==r[e]&&(r[e]=u[e])})),"json"===r.parser&&(r.trailingComma="none"),yn.normalizeApiOptions(r,n,Object.assign({passThrough:Object.keys(Rn)},t))},qn=function e(t,r,n){if(Array.isArray(t))return t.map((function(t){return e(t,r,n)})).filter((function(e){return e}));if(!t||"object"!==c(t))return t;for(var i={},a=0,s=Object.keys(t);a0){for(var i=0;i<~]))"].join("|");return new RegExp(t,e.onlyFirst?void 0:"g")}(),""):e},Kn=Yn,Zn=Yn;Kn.default=Zn;var ei=function(e){return!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)},ti=ei,ri=ei;ti.default=ri;var ni=function(e){if("string"!=typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))||0===e.length)return 0;e=Kn(e);for(var t=0,r=0;r=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=ti(n)?2:1)}return t},ii=ni,ai=ni;ii.default=ai;var si=/[^\x20-\x7F]/;function oi(e){if(e)switch(e.type){case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}function ui(e){return function(t,r,n){var i=n&&n.backwards;if(!1===r)return!1;for(var a=t.length,s=r;s>=0&&s"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((function(e,t){e.forEach((function(e){Ei[e]=t}))}));var Ci={"==":!0,"!=":!0,"===":!0,"!==":!0},xi={"*":!0,"/":!0,"%":!0},Ai={">>":!0,">>>":!0,"<<":!0};function Fi(e,t,r){for(var n=0,i=r=r||0;i(r.match(s.regex)||[]).length?s.quote:a.quote),o}function Si(e,t,r){var n='"'===t?"'":'"',i=e.replace(/\\([\s\S])|(['"])/g,(function(e,i,a){return i===n?i:a===t?"\\"+a:a||(r&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(i)?i:"\\"+i)}));return t+i+t}function ki(e){return e&&e.comments&&e.comments.length>0&&e.comments.some((function(e){return"prettier-ignore"===e.value.trim()}))}function Ti(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var Pi,Bi={replaceEndOfLineWith:function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var s,o=e.split("\n")[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value;0!==r.length&&r.push(t),r.push(u)}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return r},getStringWidth:function(e){return e?si.test(e)?ii(e):e.length:0},getMaxContinuousCount:function(e,t){var r=e.match(new RegExp("(".concat(ur(t),")+"),"g"));return null===r?0:r.reduce((function(e,r){return Math.max(e,r.length/t.length)}),0)},getMinNotPresentContinuousCount:function(e,t){var r=e.match(new RegExp("(".concat(ur(t),")+"),"g"));if(null===r)return 0;var n=new Map,i=0,a=!0,s=!1,o=void 0;try{for(var u,c=r[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var l=u.value.length/t.length;n.set(l,!0),l>i&&(i=l)}}catch(e){s=!0,o=e}finally{try{a||null==c.return||c.return()}finally{if(s)throw o}}for(var p=1;p1?e[e.length-2]:null},getLast:Dn,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:gi,getNextNonSpaceNonCommentCharacterIndex:vi,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(vi(e,t,r))},skip:ui,skipWhitespace:ci,skipSpaces:li,skipToLineEnd:pi,skipEverythingButNewLine:hi,skipInlineComment:fi,skipTrailingComment:di,skipNewline:mi,isNextLineEmptyAfterIndex:Di,isNextLineEmpty:function(e,t,r){return Di(e,r(t))},isPreviousLineEmpty:function(e,t,r){var n=r(t)-1;return n=mi(e,n=li(e,n,{backwards:!0}),{backwards:!0}),(n=li(e,n,{backwards:!0}))!==mi(e,n,{backwards:!0})},hasNewline:yi,hasNewlineInRange:function(e,t,r){for(var n=t;n=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},Ii=function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},Oi=Bi.getStringWidth,_i=Ii,ji=Qn.concat,Li=Qn.fill,Ri=Qn.cursor;function Mi(e,t){return qi(e,{type:"indent"},t)}function $i(e,t,r){return t===-1/0?e.root||{value:"",length:0,queue:[]}:t<0?qi(e,{type:"dedent"},r):t?"root"===t.type?Object.assign({},e,{root:e}):qi(e,"string"==typeof t?{type:"stringAlign",n:t}:{type:"numberAlign",n:t},r):e}function qi(e,t,r){var n="dedent"===t.type?e.queue.slice(0,-1):e.queue.concat(t),i="",a=0,s=0,o=0,u=!0,c=!1,l=void 0;try{for(var p,h=n[Symbol.iterator]();!(u=(p=h.next()).done);u=!0){var f=p.value;switch(f.type){case"indent":y(),r.useTabs?d(1):m(r.tabWidth);break;case"stringAlign":y(),i+=f.n,a+=f.n.length;break;case"numberAlign":s+=1,o+=f.n;break;default:throw new Error("Unexpected type '".concat(f.type,"'"))}}}catch(e){c=!0,l=e}finally{try{u||null==h.return||h.return()}finally{if(c)throw l}}return D(),Object.assign({},e,{value:i,length:a,queue:n});function d(e){i+="\t".repeat(e),a+=r.tabWidth*e}function m(e){i+=" ".repeat(e),a+=e}function y(){r.useTabs?(s>0&&d(s),g()):D()}function D(){o>0&&m(o),g()}function g(){s=0,o=0}}function Ui(e){if(0===e.length)return 0;for(var t=0;e.length>0&&"string"==typeof e[e.length-1]&&e[e.length-1].match(/^[ \t]*$/);)t+=e.pop().length;if(e.length&&"string"==typeof e[e.length-1]){var r=e[e.length-1].replace(/[ \t]*$/,"");t+=e[e.length-1].length-r.length,e[e.length-1]=r}return t}function zi(e,t,r,n,i){for(var a=t.length,s=[e],o=[];r>=0;)if(0!==s.length){var u=s.pop(),c=u[0],l=u[1],p=u[2];if("string"==typeof p)o.push(p),r-=Oi(p);else switch(p.type){case"concat":for(var h=p.parts.length-1;h>=0;h--)s.push([c,l,p.parts[h]]);break;case"indent":s.push([Mi(c,n),l,p.contents]);break;case"align":s.push([$i(c,p.n,n),l,p.contents]);break;case"trim":r+=Ui(o);break;case"group":if(i&&p.break)return!1;s.push([c,p.break?1:l,p.contents]),p.id&&(Pi[p.id]=s[s.length-1][1]);break;case"fill":for(var f=p.parts.length-1;f>=0;f--)s.push([c,l,p.parts[f]]);break;case"if-break":var d=p.groupId?Pi[p.groupId]:l;1===d&&p.breakContents&&s.push([c,l,p.breakContents]),2===d&&p.flatContents&&s.push([c,l,p.flatContents]);break;case"line":switch(l){case 2:if(!p.hard){p.soft||(o.push(" "),r-=1);break}return!0;case 1:return!0}}}else{if(0===a)return!0;s.push(t[a-1]),a--}return!1}var Vi={};function Wi(e,t,r,n){for(var i=[e];0!==i.length;){var a=i.pop();if(a!==Vi){var s=!0;if(t&&!1===t(a)&&(s=!1),r&&(i.push(a),i.push(Vi)),s)if("concat"===a.type||"fill"===a.type)for(var o=a.parts.length-1;o>=0;--o)i.push(a.parts[o]);else if("if-break"===a.type)a.flatContents&&i.push(a.flatContents),a.breakContents&&i.push(a.breakContents);else if("group"===a.type&&a.expandedStates)if(n)for(var u=a.expandedStates.length-1;u>=0;--u)i.push(a.expandedStates[u]);else i.push(a.contents);else a.contents&&i.push(a.contents)}else r(i.pop())}}function Hi(e,t){if("concat"===e.type||"fill"===e.type){var r=e.parts.map((function(e){return Hi(e,t)}));return t(Object.assign({},e,{parts:r}))}if("if-break"===e.type){var n=e.breakContents&&Hi(e.breakContents,t),i=e.flatContents&&Hi(e.flatContents,t);return t(Object.assign({},e,{breakContents:n,flatContents:i}))}if(e.contents){var a=Hi(e.contents,t);return t(Object.assign({},e,{contents:a}))}return t(e)}function Ji(e,t,r){var n=r,i=!1;return Wi(e,(function(e){var r=t(e);if(void 0!==r&&(i=!0,n=r),i)return!1})),n}function Gi(e){return"string"!=typeof e&&("line"===e.type||void 0)}function Xi(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function Qi(e){if(e.length>0){var t=e[e.length-1];t.expandedStates||(t.break=!0)}return null}function Yi(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}function Ki(e){if("concat"===e.type){for(var t=[],r=0;r=0;f--)a.push([l,p,h.parts[f]]);break;case"indent":a.push([Mi(l,t),p,h.contents]);break;case"align":a.push([$i(l,h.n,t),p,h.contents]);break;case"trim":i-=Ui(s);break;case"group":switch(p){case 2:if(!o){a.push([l,h.break?1:2,h.contents]);break}case 1:o=!1;var d=[l,2,h.contents],m=r-i;if(!h.break&&zi(d,a,m,t))a.push(d);else if(h.expandedStates){var y=h.expandedStates[h.expandedStates.length-1];if(h.break){a.push([l,1,y]);break}for(var D=1;D=h.expandedStates.length){a.push([l,1,y]);break}var g=[l,2,h.expandedStates[D]];if(zi(g,a,m,t)){a.push(g);break}}}else a.push([l,1,h.contents])}h.id&&(Pi[h.id]=a[a.length-1][1]);break;case"fill":var v=r-i,E=h.parts;if(0===E.length)break;var b=E[0],C=[l,2,b],x=[l,1,b],A=zi(C,[],v,t,!0);if(1===E.length){A?a.push(C):a.push(x);break}var F=E[1],w=[l,2,F],S=[l,1,F];if(2===E.length){A?(a.push(w),a.push(C)):(a.push(S),a.push(x));break}E.splice(0,2);var k=[l,p,Li(E)],T=E[0];zi([l,2,ji([b,F,T])],[],v,t,!0)?(a.push(k),a.push(w),a.push(C)):A?(a.push(k),a.push(S),a.push(C)):(a.push(k),a.push(S),a.push(x));break;case"if-break":var P=h.groupId?Pi[h.groupId]:p;1===P&&h.breakContents&&a.push([l,p,h.breakContents]),2===P&&h.flatContents&&a.push([l,p,h.flatContents]);break;case"line-suffix":u.push([l,p,h.contents]);break;case"line-suffix-boundary":u.length>0&&a.push([l,p,{type:"line",hard:!0}]);break;case"line":switch(p){case 2:if(!h.hard){h.soft||(s.push(" "),i+=1);break}o=!0;case 1:if(u.length){a.push([l,p,h]),[].push.apply(a,u.reverse()),u=[];break}h.literal?l.root?(s.push(n,l.root.value),i=l.root.length):(s.push(n),i=0):(i-=Ui(s),s.push(n+l.value),i=l.length)}}}var B=s.indexOf(Ri.placeholder);if(-1!==B){var N=s.indexOf(Ri.placeholder,B+1),I=s.slice(0,B).join(""),O=s.slice(B+1,N).join("");return{formatted:I+O+s.slice(N+1).join(""),cursorNodeStart:I.length,cursorNodeText:O}}return{formatted:s.join("")}}},utils:{isEmpty:function(e){return"string"==typeof e&&0===e.length},willBreak:function(e){return Ji(e,Xi,!1)},isLineNext:function(e){return Ji(e,Gi,!1)},traverseDoc:Wi,findInDoc:Ji,mapDoc:Hi,propagateBreaks:function(e){var t=new Set,r=[];Wi(e,(function(e){if("break-parent"===e.type&&Qi(r),"group"===e.type){if(r.push(e),t.has(e))return!1;t.add(e)}}),(function(e){"group"===e.type&&r.pop().break&&Qi(r)}),!0)},removeLines:function(e){return Hi(e,Yi)},stripTrailingHardline:function e(t){if("concat"===t.type&&0!==t.parts.length){var r=t.parts[t.parts.length-1];if("concat"===r.type)return 2===r.parts.length&&r.parts[0].hard&&"break-parent"===r.parts[1].type?{type:"concat",parts:t.parts.slice(0,-1)}:{type:"concat",parts:t.parts.slice(0,-1).concat(e(r))}}return t}},debug:{printDocToDebug:function(e){return Zi(Ki(e))}}},ta=ea.utils.mapDoc,ra={getMaxContinuousCount:Bi.getMaxContinuousCount,getStringWidth:Bi.getStringWidth,getAlignmentSize:Bi.getAlignmentSize,getIndentSize:Bi.getIndentSize,skip:Bi.skip,skipWhitespace:Bi.skipWhitespace,skipSpaces:Bi.skipSpaces,skipNewline:Bi.skipNewline,skipToLineEnd:Bi.skipToLineEnd,skipEverythingButNewLine:Bi.skipEverythingButNewLine,skipInlineComment:Bi.skipInlineComment,skipTrailingComment:Bi.skipTrailingComment,hasNewline:Bi.hasNewline,hasNewlineInRange:Bi.hasNewlineInRange,hasSpaces:Bi.hasSpaces,isNextLineEmpty:function(e,t,r){return Bi.isNextLineEmpty(e,t,r.locEnd)},isNextLineEmptyAfterIndex:Bi.isNextLineEmptyAfterIndex,isPreviousLineEmpty:function(e,t,r){return Bi.isPreviousLineEmpty(e,t,r.locStart)},getNextNonSpaceNonCommentCharacterIndex:function(e,t,r){return Bi.getNextNonSpaceNonCommentCharacterIndex(e,t,r.locEnd)},mapDoc:ta,makeString:Bi.makeString,addLeadingComment:Bi.addLeadingComment,addDanglingComment:Bi.addDanglingComment,addTrailingComment:Bi.addTrailingComment},na=ea.builders,ia=na.concat,aa=na.hardline,sa=na.breakParent,oa=na.indent,ua=na.lineSuffix,ca=na.join,la=na.cursor,pa=Bi.hasNewline,ha=Bi.skipNewline,fa=Bi.isPreviousLineEmpty,da=ra.addLeadingComment,ma=ra.addDanglingComment,ya=ra.addTrailingComment,Da=Symbol("child-nodes");function ga(e,t,r){if(e){var n,i=t.printer,a=t.locStart,s=t.locEnd;if(r){if(e&&i.canAttachComment&&i.canAttachComment(e)){var o;for(o=r.length-1;o>=0&&!(a(r[o])<=a(e)&&s(r[o])<=s(e));--o);return void r.splice(o+1,0,e)}}else if(e[Da])return e[Da];if(i.getCommentChildNodes?n=i.getCommentChildNodes(e):e&&"object"===c(e)&&(n=Object.keys(e).filter((function(e){return"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e})).map((function(t){return e[t]}))),n)return r||Object.defineProperty(e,Da,{value:r=[],enumerable:!1}),n.forEach((function(e){ga(e,t,r)})),r}}function va(e,t,r){var n=e.length;if(0!==n){var i,a=e[0],s=a.precedingNode,o=a.followingNode,u=r.locStart(o);for(i=n;i>0;--i){var c=e[i-1];Un.strictEqual(c.precedingNode,s),Un.strictEqual(c.followingNode,o);var l=t.slice(r.locEnd(c),u);if(!/^[\s(]*$/.test(l))break;u=r.locStart(c)}e.forEach((function(e,t){t=0)return void ya(t,o)}!function e(t,r,n){for(var i,a,s=n.locStart,o=n.locEnd,u=ga(t,n),c=0,l=u.length;c>1,h=u[p];if(s(h)-s(r)<=0&&o(r)-o(h)<=0)return r.enclosingNode=h,void e(h,r,n);if(o(h)-s(r)<=0)i=h,c=p+1;else{if(!(o(r)-s(h)<=0))throw new Error("Comment location overlaps with node location");a=h,l=p}}if(r.enclosingNode&&"TemplateLiteral"===r.enclosingNode.type){var f=r.enclosingNode.quasis,d=ba(f,r,n);i&&ba(f,i,n)!==d&&(i=null),a&&ba(f,a,n)!==d&&(a=null)}i&&(r.precedingNode=i),a&&(r.followingNode=a)}(t,o,n);var c=o.precedingNode,l=o.enclosingNode,p=o.followingNode,h=n.printer.handleComments&&n.printer.handleComments.ownLine?n.printer.handleComments.ownLine:function(){return!1},f=n.printer.handleComments&&n.printer.handleComments.endOfLine?n.printer.handleComments.endOfLine:function(){return!1},d=n.printer.handleComments&&n.printer.handleComments.remaining?n.printer.handleComments.remaining:function(){return!1},m=e.length-1===u;if(pa(r,a(o),{backwards:!0}))h(o,r,n,t,m)||(p?da(p,o):c?ya(c,o):ma(l||t,o));else if(pa(r,s(o)))f(o,r,n,t,m)||(c?ya(c,o):p?da(p,o):ma(l||t,o));else if(d(o,r,n,t,m));else if(c&&p){var y=i.length;y>0&&i[y-1].followingNode!==o.followingNode&&va(i,r,n),i.push(o)}else c?ya(c,o):p?da(p,o):ma(l||t,o)})),va(i,r,n),e.forEach((function(e){delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}))}},printComments:function(e,t,r,n){var i=e.getValue(),a=t(e),s=i&&i.comments;if(!s||0===s.length)return Ca(e,r,a);var o=[],u=[n?";":"",a];return e.each((function(e){var t=e.getValue(),n=t.leading,i=t.trailing;if(n){var a=function(e,t,r){var n=e.getValue(),i=Ea(e,r);if(!i)return"";var a=r.printer.isBlockComment&&r.printer.isBlockComment(n);return ia(a?[i,pa(r.originalText,r.locEnd(n))?aa:" "]:[i,aa])}(e,0,r);if(!a)return;o.push(a);var s=r.originalText,c=ha(s,r.locEnd(t));!1!==c&&pa(s,c)&&o.push(aa)}else i&&u.push(function(e,t,r){var n=e.getValue(),i=Ea(e,r);if(!i)return"";var a=r.printer.isBlockComment&&r.printer.isBlockComment(n),s=e.getNode(1),o=e.getNode(2),u=o&&("ClassDeclaration"===o.type||"ClassExpression"===o.type)&&o.superClass===s;if(pa(r.originalText,r.locStart(n),{backwards:!0})){var c=fa(r.originalText,n,r.locStart);return ua(ia([aa,c?aa:"",i]))}return ia(a||u?[" ",i]:[ua(ia([" ",i])),a?"":sa])}(e,0,r))}),"comments"),Ca(e,r,ia(o.concat(u)))},printDanglingComments:function(e,t,r,n){var i=[],a=e.getValue();return a&&a.comments?(e.each((function(e){var r=e.getValue();!r||r.leading||r.trailing||n&&!n(r)||i.push(Ea(e,t))}),"comments"),0===i.length?"":r?ca(aa,i):oa(ia([aa,ca(aa,i)]))):""},getSortedChildNodes:ga};function Aa(e){Un.ok(this instanceof Aa),this.stack=[e]}function Fa(e,t){var r=wa(e.stack,t);return-1===r?null:e.stack[r]}function wa(e,t){for(var r=e.length-1;r>=0;r-=2){var n=e[r];if(n&&!Array.isArray(n)&&--t<0)return r}return-1}Aa.prototype.getName=function(){var e=this.stack,t=e.length;return t>1?e[t-2]:null},Aa.prototype.getValue=function(){var e=this.stack;return e[e.length-1]},Aa.prototype.getNode=function(e){return Fa(this,~~e)},Aa.prototype.getParentNode=function(e){return Fa(this,1+~~e)},Aa.prototype.call=function(e){for(var t=this.stack,r=t.length,n=t[r-1],i=arguments.length,a=1;a2&&void 0!==arguments[2]?arguments[2]:0,n=t.printer;n.preprocess&&(e=n.preprocess(e,t));var i=new Map;function a(e,r){var s,o=e.getValue(),u=o&&"object"===c(o)&&void 0===r;return u&&i.has(o)?i.get(o):(s=n.willPrintOwnComments&&n.willPrintOwnComments(e,t)?La(e,t,a,r):xa.printComments(e,(function(e){return La(e,t,a,r)}),t,r&&r.needsSemi),u&&i.set(o,s),s)}var s=a(new Sa(e));return r>0&&(s=Oa(Na([Ia,s]),r,t.tabWidth)),_a.propagateBreaks(s),s}function La(e,t,r,n){Un.ok(e instanceof Sa);var i=e.getValue(),a=t.printer;if(a.hasPrettierIgnore&&a.hasPrettierIgnore(e))return t.originalText.slice(t.locStart(i),t.locEnd(i));if(i)try{var s=Ta.printSubtree(e,r,t,ja);if(s)return s}catch(e){if(ut.PRETTIER_DEBUG)throw e}return a.print(e,t,r,n)}var Ra=ja;function Ma(e,t,r,n,i){n=n||function(){return!0},i=i||[];var a=r.locStart(e,r.locStart),s=r.locEnd(e,r.locEnd);if(a<=t&&t<=s){var o=!0,u=!1,c=void 0;try{for(var l,p=xa.getSortedChildNodes(e,r)[Symbol.iterator]();!(o=(l=p.next()).done);o=!0){var h=Ma(l.value,t,r,n,[e].concat(i));if(h)return h}}catch(e){u=!0,c=e}finally{try{o||null==p.return||p.return()}finally{if(u)throw c}}if(n(e))return{node:e,parentNodes:i}}}function $a(e,t){if(null==t)return!1;switch(e.parser){case"flow":case"babel":case"typescript":return["FunctionDeclaration","BlockStatement","BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","EmptyStatement","ExpressionStatement","ForInStatement","ForStatement","IfStatement","LabeledStatement","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","VariableDeclaration","WhileStatement","WithStatement","ClassDeclaration","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","TypeAlias","InterfaceDeclaration","TypeAliasDeclaration","ExportAssignment","ExportDeclaration"].indexOf(t.type)>-1;case"json":return["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"].indexOf(t.type)>-1;case"graphql":return["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"].indexOf(t.kind)>-1;case"vue":return"root"!==t.tag}return!1}var qa={calculateRange:function(e,t,r){var n,i=e.slice(t.rangeStart,t.rangeEnd),a=Math.max(t.rangeStart+i.search(/\S/),t.rangeStart);for(n=t.rangeEnd;n>t.rangeStart&&!e[n-1].match(/\S/);--n);var s=Ma(r,a,t,(function(e){return $a(t,e)})),o=Ma(r,n,t,(function(e){return $a(t,e)}));if(!s||!o)return{rangeStart:0,rangeEnd:0};var u=function(e,t,r){var n=e.node,i=t.node;if(n===i)return{startNode:n,endNode:i};var a=!0,s=!1,o=void 0;try{for(var u,c=t.parentNodes[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var l=u.value;if(!("Program"!==l.type&&"File"!==l.type&&r.locStart(l)>=r.locStart(e.node)))break;i=l}}catch(e){s=!0,o=e}finally{try{a||null==c.return||c.return()}finally{if(s)throw o}}var p=!0,h=!1,f=void 0;try{for(var d,m=e.parentNodes[Symbol.iterator]();!(p=(d=m.next()).done);p=!0){var y=d.value;if(!("Program"!==y.type&&"File"!==y.type&&r.locEnd(y)<=r.locEnd(t.node)))break;n=y}}catch(e){h=!0,f=e}finally{try{p||null==m.return||m.return()}finally{if(h)throw f}}return{startNode:n,endNode:i}}(s,o,t),c=u.startNode,l=u.endNode;return{rangeStart:Math.min(t.locStart(c,t.locStart),t.locStart(l,t.locStart)),rangeEnd:Math.max(t.locEnd(c,t.locEnd),t.locEnd(l,t.locEnd))}},findNodeAtOffset:Ma},Ua=pt(le),za=$n,Va=Ni,Wa=Ii,Ha=ea.utils.mapDoc,Ja=ea.printer.printDocToString,Ga=ea.debug.printDocToDebug,Xa=Symbol("cursor"),Qa={cursorOffset:"<<>>",rangeStart:"<<>>",rangeEnd:"<<>>"};function Ya(e,t,r){var n=t.comments;return n&&(delete t.comments,xa.attach(n,t,e,r)),t.tokens=[],r.originalText="yaml"===r.parser?e:e.trimRight(),n}function Ka(e,t,r){if(!e||!e.trim().length)return{formatted:"",cursorOffset:0};r=r||0;var n=On.parse(e,t),i=n.ast;if(e=n.text,t.cursorOffset>=0){var a=qa.findNodeAtOffset(i,t.cursorOffset,t);a&&a.node&&(t.cursorNode=a.node)}var s=Ya(e,i,t),o=Ra(i,t,r),u=Wa(t.endOfLine),c=Ja("lf"===t.endOfLine?o:Ha(o,(function(e){return"string"==typeof e&&-1!==e.indexOf("\n")?e.replace(/\n/g,u):e})),t);if(function(e){if(e){for(var t=0;t0){var l=c.formatted.trim();void 0!==c.cursorNodeStart&&(c.cursorNodeStart-=c.formatted.indexOf(l)),c.formatted=l+Wa(t.endOfLine)}if(t.cursorOffset>=0){var p,h,f,d,m;if(t.cursorNode&&c.cursorNodeText?(p=t.locStart(t.cursorNode),h=e.slice(p,t.locEnd(t.cursorNode)),f=t.cursorOffset-p,d=c.cursorNodeStart,m=c.cursorNodeText):(p=0,h=e,f=t.cursorOffset,d=0,m=c.formatted),h===m)return{formatted:c.formatted,cursorOffset:d+f};var y=h.split("");y.splice(f,0,Xa);var D=m.split(""),g=Ua.diffArrays(y,D),v=d,E=!0,b=!1,C=void 0;try{for(var x,A=g[Symbol.iterator]();!(E=(x=A.next()).done);E=!0){var F=x.value;if(F.removed){if(F.value.indexOf(Xa)>-1)break}else v+=F.count}}catch(e){b=!0,C=e}finally{try{E||null==A.return||A.return()}finally{if(b)throw C}}return{formatted:c.formatted,cursorOffset:v}}return{formatted:c.formatted}}function Za(e,t){var r=On.resolveParser(t),n=!r.hasPragma||r.hasPragma(e);if(t.requirePragma&&!n)return{formatted:e};"auto"===t.endOfLine&&(t.endOfLine=Va(e));var i=t.cursorOffset>=0,a=t.rangeStart>0,s=t.rangeEnd=0;u--){var c=o[u];e=e.slice(0,t[c])+Qa[c]+e.slice(t[c])}e=e.replace(/\r\n?/g,"\n");for(var l=function(r){var n=o[r];e=e.replace(Qa[n],(function(e,r){return t[n]=r,""}))},p=0;pe.length&&(t.rangeEnd=e.length);var f=a||s?function(e,t){var r=On.parse(e,t),n=r.ast;e=r.text;var i,a=qa.calculateRange(e,t,n),s=a.rangeStart,o=a.rangeEnd,u=e.slice(s,o),c=Math.min(s,e.lastIndexOf("\n",s)+1),l=e.slice(c,s),p=Bi.getAlignmentSize(l,t.tabWidth),h=Ka(u,Object.assign({},t,{rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>=s&&t.cursorOffset=o?y=t.cursorOffset-o+(s+f.length):void 0!==h.cursorOffset&&(y=h.cursorOffset+s),"lf"===t.endOfLine)i=d+f+m;else{var D=Wa(t.endOfLine);if(y>=0){for(var g=[d,f,m],v=0,E=y;vt.length-r?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}})),ys=(ms.graceful,lt((function(e,t){function r(){var e=vr;return r=function(){return e},e}function n(){var e,t=(e=ms)&&e.__esModule?e:{default:e};return n=function(){return t},t}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){var t=e.match(s);return t?t[0].trimLeft():""},t.strip=function(e){var t=e.match(s);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return h(e).pragmas},t.parseWithComments=h,t.print=function(e){var t=e.comments,i=void 0===t?"":t,a=e.pragmas,s=void 0===a?{}:a,o=(0,n().default)(i)||r().EOL,u=Object.keys(s),c=u.map((function(e){return f(e,s[e])})).reduce((function(e,t){return e.concat(t)}),[]).map((function(e){return" * "+e+o})).join("");if(!i){if(0===u.length)return"";if(1===u.length&&!Array.isArray(s[u[0]])){var l=s[u[0]];return"".concat("/**"," ").concat(f(u[0],l)[0]).concat(" */")}}var p=i.split(o).map((function(e){return"".concat(" *"," ").concat(e)})).join(o)+o;return"/**"+o+(i?p:"")+(i&&u.length?" *"+o:"")+c+" */"};var i=/\*\/$/,a=/^\/\*\*/,s=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,o=/(^|\s+)\/\/([^\r\n]*)/g,u=/^(\r?\n)+/,c=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,l=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g;function h(e){var t=(0,n().default)(e)||r().EOL;e=e.replace(a,"").replace(i,"").replace(p,"$1");for(var s="";s!==e;)s=e,e=e.replace(c,"".concat(t,"$1 $2").concat(t));e=e.replace(u,"").trimRight();for(var h,f=Object.create(null),d=e.replace(l,"").replace(u,"").trimRight();h=l.exec(e);){var m=h[2].replace(o,"");"string"==typeof f[h[1]]||Array.isArray(f[h[1]])?f[h[1]]=[].concat(f[h[1]],m):f[h[1]]=m}return{comments:d,pragmas:f}}function f(e,t){return[].concat(t).map((function(t){return"@".concat(e," ").concat(t).trim()}))}})));ct(ys),ys.extract,ys.strip,ys.parse,ys.parseWithComments,ys.print;var Ds={hasPragma:function(e){var t=Object.keys(ys.parse(ys.extract(e)));return-1!==t.indexOf("prettier")||-1!==t.indexOf("format")},insertPragma:function(e){var t=ys.parseWithComments(ys.extract(e)),r=Object.assign({format:""},t.pragmas),n=ys.print({pragmas:r,comments:t.comments.replace(/^(\s+?\r?\n)+/,"")}).replace(/(\r\n|\r)/g,"\n"),i=ys.strip(e);return n+(i.startsWith("\n")?"\n":"\n\n")+i}},gs={"---":"yaml","+++":"toml"},vs=function(e){var t=Object.keys(gs).map(ur).join("|"),r=e.match(new RegExp("^(".concat(t,")[^\\n\\S]*\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(null===r)return{frontMatter:null,content:e};var n=r[0].replace(/\n$/,""),i=r[1],a=r[2];return{frontMatter:{type:gs[i],value:a,raw:n},content:r[0].replace(/[^\n]/g," ")+e.slice(r[0].length)}},Es=["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"];function bs(e,t){for(var r,n=[].concat(t),i=-1;r=e.getParentNode(++i);)if(-1!==n.indexOf(r.type))return i;return-1}function Cs(e,t){var r=bs(e,t);return-1===r?null:e.getParentNode(r)}function xs(e){return"value-operator"===e.type&&"*"===e.value}function As(e){return"value-operator"===e.type&&"/"===e.value}function Fs(e){return"value-operator"===e.type&&"+"===e.value}function ws(e){return"value-operator"===e.type&&"-"===e.value}function Ss(e){return"value-operator"===e.type&&"%"===e.value}function ks(e){return"value-comma_group"===e.type&&e.groups&&e.groups[1]&&"value-colon"===e.groups[1].type}function Ts(e){return"value-paren_group"===e.type&&e.groups&&e.groups[0]&&ks(e.groups[0])}var Ps=Cs,Bs=function(e){var t=Cs(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()},Ns=function(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()},Is=function(e,t){var r=Cs(e,"value-func");return r&&r.value&&r.value.toLowerCase()===t},Os=function(e){var t=Cs(e,"css-rule");return t&&t.raws&&t.raws.selector&&(t.raws.selector.startsWith(":import")||t.raws.selector.startsWith(":export"))},_s=function(e,t){var r=[].concat(t),n=Cs(e,"css-atrule");return n&&-1!==r.indexOf(n.name.toLowerCase())},js=function(e){var t=e.getValue(),r=Cs(e,"css-atrule");return r&&"import"===r.name&&"url"===t.groups[0].value&&2===t.groups.length},Ls=function(e,t){var r=Cs(e,"css-atrule");return r&&r.name&&r.name.toLowerCase().endsWith("keyframes")&&-1!==["from","to"].indexOf(t.toLowerCase())},Rs=function(e){return-1!==ss.indexOf(e.toLowerCase())},Ms=function(e){return-1!==["initial","inherit","unset","revert"].indexOf(e.toLowerCase())},$s=function(e,t){return"less"===e||"scss"===e?"scss"===e:/(\w\s*: [^}:]+|#){|@import[^\n]+(url|,)/.test(t)},qs=function(e,t){var r=e.getParentNode();if(!r)return!1;var n=r.nodes;return n&&n.indexOf(t)===n.length-1},Us=function(e){return"css-atrule"===e.type&&-1!==["if","else","for","each","while"].indexOf(e.name)},zs=function(e){return!!e.selector&&("string"==typeof e.selector&&/^@.+:.*$/.test(e.selector)||e.selector.value&&/^@.+:.*$/.test(e.selector.value))},Vs=function(e){return"value-word"===e.type&&-1!==["<",">","<=",">="].indexOf(e.value)},Ws=function(e){return"value-word"===e.type&&-1!==["==","!="].indexOf(e.value)},Hs=xs,Js=As,Gs=Fs,Xs=ws,Qs=function(e){return xs(e)||As(e)||Fs(e)||ws(e)||Ss(e)},Ys=function(e){return"value-word"===e.type&&"in"===e.value},Ks=function(e){return"value-word"===e.type&&-1!==["from","through","end"].indexOf(e.value)},Zs=function(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},eo=function(e){return"value-word"===e.type&&-1!==["and","or","not"].indexOf(e.value)},to=function(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},ro=function(e){return e.value&&e.value.group&&e.value.group.group&&"value-paren_group"===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close},no=function(e){return e.raws&&""===e.raws.before},io=function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},ao=function(e){return e.name.startsWith("prettier-placeholder")},so=function(e){return e.prop.startsWith("@prettier-placeholder")},oo=function(e,t){return"$$"===e.value&&"value-func"===e.type&&t&&"value-word"===t.type&&!t.raws.before},uo=ks,co=function(e){var t=e.getValue();if(0===t.groups.length)return!1;var r=e.getParentNode(1);if(!(Ts(t)||r&&Ts(r)))return!1;var n=Cs(e,"css-decl");return!!(n&&n.prop&&n.prop.startsWith("$"))||!!Ts(r)||"value-func"===r.type},lo=function(e){return"value-comment"===e.type&&e.inline},po=function(e){return"value-word"===e.type&&"#"===e.value},ho=function(e){return"value-word"===e.type&&"{"===e.value},fo=function(e){return"value-word"===e.type&&"}"===e.value},mo=function(e){return-1!==["value-word","value-atword"].indexOf(e.type)},yo=function(e){return"value-colon"===e.type},Do=function(e){return e.value&&-1!==["not","and","or"].indexOf(e.value.toLowerCase())},go=function(e){return"value-func"===e.type&&-1!==Es.indexOf(e.value.toLowerCase())},vo=function(e){var t=vs(e),r=t.frontMatter,n=t.content;return(r?r.raw+"\n\n":"")+Ds.insertPragma(n)},Eo=Bi.printNumber,bo=Bi.printString,Co=Bi.hasIgnoreComment,xo=Bi.hasNewline,Ao=ra.isNextLineEmpty,Fo=ea.builders,wo=Fo.concat,So=Fo.join,ko=Fo.line,To=Fo.hardline,Po=Fo.softline,Bo=Fo.group,No=Fo.fill,Io=Fo.indent,Oo=Fo.dedent,_o=Fo.ifBreak,jo=ea.utils.removeLines,Lo=Ps,Ro=Bs,Mo=Ns,$o=Is,qo=Os,Uo=_s,zo=js,Vo=Ls,Wo=Rs,Ho=Ms,Jo=$s,Go=qs,Xo=Us,Qo=zs,Yo=Vs,Ko=Ws,Zo=Hs,eu=Js,tu=Gs,ru=Xs,nu=Qs,iu=Ys,au=Ks,su=Zs,ou=eo,uu=to,cu=ro,lu=no,pu=uo,hu=io,fu=ao,du=so,mu=oo,yu=co,Du=lo,gu=po,vu=ho,Eu=fo,bu=mo,Cu=yo,xu=Do,Au=go;function Fu(e){switch(e.trailingComma){case"all":case"es5":return!0;case"none":default:return!1}}function wu(e,t,r){var n=e.getValue(),i=[],a=0;return e.map((function(e){var s=n.nodes[a-1];if(s&&"css-comment"===s.type&&"prettier-ignore"===s.text.trim()){var o=e.getValue();i.push(t.originalText.slice(t.locStart(o),t.locEnd(o)))}else i.push(e.call(r));a!==n.nodes.length-1&&("css-comment"===n.nodes[a+1].type&&!xo(t.originalText,t.locStart(n.nodes[a+1]),{backwards:!0})&&"yaml"!==n.nodes[a].type&&"toml"!==n.nodes[a].type||"css-atrule"===n.nodes[a+1].type&&"else"===n.nodes[a+1].name&&"css-comment"!==n.nodes[a].type?i.push(" "):(i.push(To),Ao(t.originalText,e.getValue(),t)&&"yaml"!==n.nodes[a].type&&"toml"!==n.nodes[a].type&&i.push(To))),a++}),"nodes"),wo(i)}var Su=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g,ku=RegExp(Su.source+"|"+"(".concat(/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g.source,")?")+"(".concat(/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g.source,")")+"(".concat(/[a-zA-Z]+/g.source,")?"),"g");function Tu(e,t){return e.replace(Su,(function(e){return bo(e,t)}))}function Pu(e,t){var r=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:r+e+r}function Bu(e){return e.replace(ku,(function(e,t,r,n,i){return!r&&n?(r||"")+Nu(n)+Mo(i||""):e}))}function Nu(e){return Eo(e).replace(/\.0(?=$|e)/,"")}var Iu={print:function(e,t,r){var n=e.getValue();if(!n)return"";if("string"==typeof n)return n;switch(n.type){case"yaml":case"toml":return wo([n.raw,To]);case"css-root":var i=wu(e,t,r);return i.parts.length?wo([i,To]):i;case"css-comment":if(n.raws.content)return n.raws.content;var a=t.originalText.slice(t.locStart(n),t.locEnd(n)),s=n.raws.text||n.text;return-1===a.indexOf(s)?n.raws.inline?wo(["// ",s]):wo(["/* ",s," */"]):a;case"css-rule":return wo([e.call(r,"selector"),n.important?" !important":"",n.nodes?wo([" {",n.nodes.length>0?Io(wo([To,wu(e,t,r)])):"",To,"}",Qo(n)?";":""]):";"]);case"css-decl":var o=e.getParentNode();return wo([n.raws.before.replace(/[\s;]/g,""),qo(e)?n.prop:Mo(n.prop),":"===n.raws.between.trim()?":":n.raws.between.trim(),n.extend?"":" ",uu(n)?jo(e.call(r,"value")):e.call(r,"value"),n.raws.important?n.raws.important.replace(/\s*!\s*important/i," !important"):n.important?" !important":"",n.raws.scssDefault?n.raws.scssDefault.replace(/\s*!default/i," !default"):n.scssDefault?" !default":"",n.raws.scssGlobal?n.raws.scssGlobal.replace(/\s*!global/i," !global"):n.scssGlobal?" !global":"",n.nodes?wo([" {",Io(wo([Po,wu(e,t,r)])),Po,"}"]):du(n)&&!o.raws.semicolon&&";"!==t.originalText[t.locEnd(n)-1]?"":";"]);case"css-atrule":var u=e.getParentNode();return wo(["@",hu(n)||n.name.endsWith(":")?n.name:Mo(n.name),n.params?wo([hu(n)?"":fu(n)&&/^\s*\n/.test(n.raws.afterName)?/^\s*\n\s*\n/.test(n.raws.afterName)?wo([To,To]):To:" ",e.call(r,"params")]):"",n.selector?Io(wo([" ",e.call(r,"selector")])):"",n.value?Bo(wo([" ",e.call(r,"value"),Xo(n)?cu(n)?" ":ko:""])):"else"===n.name?" ":"",n.nodes?wo([Xo(n)?"":" ","{",Io(wo([n.nodes.length>0?Po:"",wu(e,t,r)])),Po,"}"]):fu(n)&&!u.raws.semicolon&&";"!==t.originalText[t.locEnd(n)-1]?"":";"]);case"media-query-list":var c=[];return e.each((function(e){var t=e.getValue();"media-query"===t.type&&""===t.value||c.push(e.call(r))}),"nodes"),Bo(Io(So(ko,c)));case"media-query":return wo([So(" ",e.map(r,"nodes")),Go(e,n)?"":","]);case"media-type":return Bu(Tu(n.value,t));case"media-feature-expression":return n.nodes?wo(["(",wo(e.map(r,"nodes")),")"]):n.value;case"media-feature":return Mo(Tu(n.value.replace(/ +/g," "),t));case"media-colon":return wo([n.value," "]);case"media-value":return Bu(Tu(n.value,t));case"media-keyword":return Tu(n.value,t);case"media-url":return Tu(n.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":return n.value;case"selector-root":return Bo(wo([Uo(e,"custom-selector")?wo([Lo(e,"css-atrule").customSelector,ko]):"",So(wo([",",Uo(e,["extend","custom-selector","nest"])?ko:To]),e.map(r,"nodes"))]));case"selector-selector":return Bo(Io(wo(e.map(r,"nodes"))));case"selector-comment":return n.value;case"selector-string":return Tu(n.value,t);case"selector-tag":var l=e.getParentNode(),p=l&&l.nodes.indexOf(n),h=p&&l.nodes[p-1];return wo([n.namespace?wo([!0===n.namespace?"":n.namespace.trim(),"|"]):"","selector-nesting"===h.type?n.value:Bu(Wo(n.value)||Vo(e,n.value)?n.value.toLowerCase():n.value)]);case"selector-id":return wo(["#",n.value]);case"selector-class":return wo([".",Bu(Tu(n.value,t))]);case"selector-attribute":return wo(["[",n.namespace?wo([!0===n.namespace?"":n.namespace.trim(),"|"]):"",n.attribute.trim(),n.operator?n.operator:"",n.value?Pu(Tu(n.value.trim(),t),t):"",n.insensitive?" i":"","]"]);case"selector-combinator":if("+"===n.value||">"===n.value||"~"===n.value||">>>"===n.value){var f=e.getParentNode(),d="selector-selector"===f.type&&f.nodes[0]===n?"":ko;return wo([d,n.value,Go(e,n)?"":" "])}var m=n.value.trim().startsWith("(")?ko:"",y=Bu(Tu(n.value.trim(),t))||ko;return wo([m,y]);case"selector-universal":return wo([n.namespace?wo([!0===n.namespace?"":n.namespace.trim(),"|"]):"",n.value]);case"selector-pseudo":return wo([Mo(n.value),n.nodes&&n.nodes.length>0?wo(["(",So(", ",e.map(r,"nodes")),")"]):""]);case"selector-nesting":return n.value;case"selector-unknown":var D=Lo(e,"css-rule");return D&&D.isSCSSNesterProperty?Bu(Tu(Mo(n.value),t)):n.value;case"value-value":case"value-root":return e.call(r,"group");case"value-comment":return wo([n.inline?"//":"/*",n.value,n.inline?"":"*/"]);case"value-comma_group":for(var g=e.getParentNode(),v=e.getParentNode(1),E=Ro(e),b=E&&"value-value"===g.type&&("grid"===E||E.startsWith("grid-template")),C=Lo(e,"css-atrule"),x=C&&Xo(C),A=e.map(r,"groups"),F=[],w=$o(e,"url"),S=!1,k=!1,T=0;T0&&"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 wo([n.open?e.call(r,"open"):"",So(",",e.map(r,"groups")),n.close?e.call(r,"close"):""]);if(!n.open){for(var U=e.map(r,"groups"),z=[],V=0;V0?oc(rc(["(",uc(rc([sc,nc(rc([cc("",", "),sc]),e.call((function(e){return fc(e,t,r)}),"arguments"))])),sc,")"])):"",hc(e,r,n),n.selectionSet?" ":"",e.call(r,"selectionSet")]));case"Name":return n.value;case"StringValue":return n.block?rc(['"""',ic,nc(ic,n.value.replace(/"""/g,"\\$&").split("\n")),ic,'"""']):rc(['"',n.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']);case"IntValue":case"FloatValue":case"EnumValue":return n.value;case"BooleanValue":return n.value?"true":"false";case"NullValue":return"null";case"Variable":return rc(["$",e.call(r,"name")]);case"ListValue":return oc(rc(["[",uc(rc([sc,nc(rc([cc("",", "),sc]),e.map(r,"values"))])),sc,"]"]));case"ObjectValue":return oc(rc(["{",t.bracketSpacing&&n.fields.length>0?" ":"",uc(rc([sc,nc(rc([cc("",", "),sc]),e.map(r,"fields"))])),sc,cc("",t.bracketSpacing&&n.fields.length>0?" ":""),"}"]));case"ObjectField":case"Argument":return rc([e.call(r,"name"),": ",e.call(r,"value")]);case"Directive":return rc(["@",e.call(r,"name"),n.arguments.length>0?oc(rc(["(",uc(rc([sc,nc(rc([cc("",", "),sc]),e.call((function(e){return fc(e,t,r)}),"arguments"))])),sc,")"])):""]);case"NamedType":return e.call(r,"name");case"VariableDefinition":return rc([e.call(r,"variable"),": ",e.call(r,"type"),n.defaultValue?rc([" = ",e.call(r,"defaultValue")]):"",hc(e,r,n)]);case"TypeExtensionDefinition":return rc(["extend ",e.call(r,"definition")]);case"ObjectTypeExtension":case"ObjectTypeDefinition":return rc([e.call(r,"description"),n.description?ic:"","ObjectTypeExtension"===n.kind?"extend ":"","type ",e.call(r,"name"),n.interfaces.length>0?rc([" implements ",nc(dc(t.originalText.substr(t.locStart(n),t.locEnd(n))),e.map(r,"interfaces"))]):"",hc(e,r,n),n.fields.length>0?rc([" {",uc(rc([ic,nc(ic,e.call((function(e){return fc(e,t,r)}),"fields"))])),ic,"}"]):""]);case"FieldDefinition":return rc([e.call(r,"description"),n.description?ic:"",e.call(r,"name"),n.arguments.length>0?oc(rc(["(",uc(rc([sc,nc(rc([cc("",", "),sc]),e.call((function(e){return fc(e,t,r)}),"arguments"))])),sc,")"])):"",": ",e.call(r,"type"),hc(e,r,n)]);case"DirectiveDefinition":return rc([e.call(r,"description"),n.description?ic:"","directive ","@",e.call(r,"name"),n.arguments.length>0?oc(rc(["(",uc(rc([sc,nc(rc([cc("",", "),sc]),e.call((function(e){return fc(e,t,r)}),"arguments"))])),sc,")"])):"",rc([" on ",nc(" | ",e.map(r,"locations"))])]);case"EnumTypeExtension":case"EnumTypeDefinition":return rc([e.call(r,"description"),n.description?ic:"","EnumTypeExtension"===n.kind?"extend ":"","enum ",e.call(r,"name"),hc(e,r,n),n.values.length>0?rc([" {",uc(rc([ic,nc(ic,e.call((function(e){return fc(e,t,r)}),"values"))])),ic,"}"]):""]);case"EnumValueDefinition":return rc([e.call(r,"description"),n.description?ic:"",e.call(r,"name"),hc(e,r,n)]);case"InputValueDefinition":return rc([e.call(r,"description"),n.description?n.description.block?ic:ac:"",e.call(r,"name"),": ",e.call(r,"type"),n.defaultValue?rc([" = ",e.call(r,"defaultValue")]):"",hc(e,r,n)]);case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return rc([e.call(r,"description"),n.description?ic:"","InputObjectTypeExtension"===n.kind?"extend ":"","input ",e.call(r,"name"),hc(e,r,n),n.fields.length>0?rc([" {",uc(rc([ic,nc(ic,e.call((function(e){return fc(e,t,r)}),"fields"))])),ic,"}"]):""]);case"SchemaDefinition":return rc(["schema",hc(e,r,n)," {",n.operationTypes.length>0?uc(rc([ic,nc(ic,e.call((function(e){return fc(e,t,r)}),"operationTypes"))])):"",ic,"}"]);case"OperationTypeDefinition":return rc([e.call(r,"operation"),": ",e.call(r,"type")]);case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return rc([e.call(r,"description"),n.description?ic:"","InterfaceTypeExtension"===n.kind?"extend ":"","interface ",e.call(r,"name"),hc(e,r,n),n.fields.length>0?rc([" {",uc(rc([ic,nc(ic,e.call((function(e){return fc(e,t,r)}),"fields"))])),ic,"}"]):""]);case"FragmentSpread":return rc(["...",e.call(r,"name"),hc(e,r,n)]);case"InlineFragment":return rc(["...",n.typeCondition?rc([" on ",e.call(r,"typeCondition")]):"",hc(e,r,n)," ",e.call(r,"selectionSet")]);case"UnionTypeExtension":case"UnionTypeDefinition":return oc(rc([e.call(r,"description"),n.description?ic:"",oc(rc(["UnionTypeExtension"===n.kind?"extend ":"","union ",e.call(r,"name"),hc(e,r,n),n.types.length>0?rc([" =",cc(""," "),uc(rc([cc(rc([ac," "])),nc(rc([ac,"| "]),e.map(r,"types"))]))]):""]))]));case"ScalarTypeExtension":case"ScalarTypeDefinition":return rc([e.call(r,"description"),n.description?ic:"","ScalarTypeExtension"===n.kind?"extend ":"","scalar ",e.call(r,"name"),hc(e,r,n)]);case"NonNullType":return rc([e.call(r,"type"),"!"]);case"ListType":return rc(["[",e.call(r,"type"),"]"]);default:throw new Error("unknown graphql type: "+JSON.stringify(n.kind))}},massageAstNode:function(e,t){delete t.loc,delete t.comments},hasPrettierIgnore:lc,insertPragma:ec,printComment:function(e){var t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimRight();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}},yc={bracketSpacing:Ou.bracketSpacing},Dc=[".graphql",".gql",".graphqls"],gc={name:"GraphQL",type:"data",extensions:Dc,tmScope:"source.graphql",aceMode:"text",languageId:139},vc={languages:[ju(pt(Object.freeze({__proto__:null,name:"GraphQL",type:"data",extensions:Dc,tmScope:"source.graphql",aceMode:"text",languageId:139,default:gc})),(function(e){return Object.assign(e,{since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]})}))],options:yc,printers:{graphql:mc}},Ec=ea.builders,bc=Ec.concat,Cc=Ec.join,xc=Ec.softline,Ac=Ec.hardline,Fc=Ec.line,wc=Ec.group,Sc=Ec.indent,kc=Ec.ifBreak,Tc=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function Pc(e,t,r){return bc(e.map((function(n,i){var a=e.getValue(),s=0===i,o=i==e.getParentNode(0).children.length-1&&!s;return Rc(a)&&o?r(n,t,r):s?bc([xc,r(n,t,r)]):r(n,t,r)}),"children"))}function Bc(e,t){var r={quote:'"',regex:/"/g},n={quote:"'",regex:/'/g},i=t.singleQuote?n:r,a=i===n?r:n,s=!1;(e.includes(i.quote)||e.includes(a.quote))&&(s=(e.match(i.regex)||[]).length>(e.match(a.regex)||[]).length);var o=s?a:i,u=e.replace(o.regex,"\\".concat(o.quote));return"".concat(o.quote).concat(u).concat(o.quote)}function Nc(e,t){return e.call(t,"path")}function Ic(e,t){var r=e.getValue(),n=[];return r.params.length>0&&(n=n.concat(e.map(t,"params"))),r.hash&&r.hash.pairs.length>0&&n.push(e.call(t,"hash")),n}function Oc(e,t,r){var n=[];return r=Object.assign({group:!0},r||{}),n.push(Nc(e,t)),n=n.concat(Ic(e,t)),r.group?Sc(wc(Cc(Fc,n))):Sc(Cc(Fc,n))}function _c(e){var t=e.getValue();return t.program&&t.program.blockParams.length?bc([" as |",t.program.blockParams.join(" "),"|"]):""}function jc(e,t){return wc(bc(["{{#",Oc(e,t),_c(e),xc,"}}"]))}function Lc(e,t){return bc(["{{/",e.call(t,"path"),"}}"])}function Rc(e){return"TextNode"===e.type&&!/\S/.test(e.chars)}function Mc(e){var t=e.getValue(),r=e.getParentNode(0),n=r.children||r.body;if(n){var i=n.indexOf(t);if(i>0)return n[i-1]}}function $c(e){var t=e.getValue(),r=e.getParentNode(0),n=r.children||r.body;if(n){var i=n.indexOf(t);if(i0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new Array(Math.min(e,t)).fill(Ac)}var Wc={print:function(e,t,r){var n=e.getValue();if(!n)return"";switch(n.type){case"Block":case"Program":case"Template":return wc(bc(e.map(r,"body").filter((function(e){return""!==e}))));case"ElementNode":var i=n.tag[0],a=-1!==n.tag.indexOf("."),s=i.toUpperCase()===i||a,o=n.children.length>0,u=n.children.some((function(e){return!Rc(e)})),c=s&&(!o||!u)||-1!==Tc.indexOf(n.tag),l=c?bc([" />",xc]):">",p=c?"/>":">",h=$c(e);return bc([wc(bc(["<",n.tag,function(e,t){return Sc(bc([n.attributes.length?Fc:"",Cc(Fc,e.map(t,"attributes")),n.modifiers.length?Fc:"",Cc(Fc,e.map(t,"modifiers")),n.comments.length?Fc:"",Cc(Fc,e.map(t,"comments"))]))}(e,r),n.blockParams.length?" as |".concat(n.blockParams.join(" "),"|"):"",kc(xc,""),kc(p,l)])),c?"":wc(bc([u?Sc(Pc(e,t,r)):"",kc(o?Ac:"",""),bc([""])])),h&&"ElementNode"===h.type?Ac:""]);case"BlockStatement":var f=e.getParentNode(1),d=f&&f.inverse&&1===f.inverse.body.length&&f.inverse.body[0]===n&&"if"===f.inverse.body[0].path.parts[0],m=n.inverse&&1===n.inverse.body.length&&"BlockStatement"===n.inverse.body[0].type&&"if"===n.inverse.body[0].path.parts[0],y=m?function(e){return e}:Sc;if(n.inverse)return bc([d?bc(["{{else ",Oc(e,r),"}}"]):jc(e,r),Sc(bc([Ac,e.call(r,"program")])),n.inverse&&!m?bc([Ac,"{{else}}"]):"",n.inverse?y(bc([Ac,e.call(r,"inverse")])):"",d?"":bc([Ac,Lc(e,r)])]);if(d)return bc([bc(["{{else ",Oc(e,r),"}}"]),Sc(bc([Ac,e.call(r,"program")]))]);var D=n.program.body.some((function(e){return!Rc(e)}));return bc([jc(e,r),wc(bc([Sc(bc([xc,e.call(r,"program")])),D?Ac:xc,Lc(e,r)]))]);case"ElementModifierStatement":case"MustacheStatement":var g=e.getParentNode(1),v=g&&"ConcatStatement"===g.type;return wc(bc([!1===n.escaped?"{{{":"{{",Oc(e,r,{group:!1}),v?"":xc,!1===n.escaped?"}}}":"}}"]));case"SubExpression":var E=Ic(e,r),b=E.length>0?Sc(bc([Fc,wc(Cc(Fc,E))])):"";return wc(bc(["(",Nc(e,r),b,xc,")"]));case"AttrNode":var C="TextNode"===n.value.type;if(C&&n.value.loc.start.column===n.value.loc.end.column)return bc([n.name]);var x=e.call(r,"value"),F=C?Bc(x.parts.join(),t):x;return bc([n.name,"=",F]);case"ConcatStatement":return bc(['"',wc(Sc(Cc(xc,e.map((function(e){return r(e)}),"parts").filter((function(e){return""!==e}))))),'"']);case"Hash":return bc([Cc(Fc,e.map(r,"pairs"))]);case"HashPair":return bc([n.key,"=",e.call(r,"value")]);case"TextNode":var w=!Mc(e),S=!$c(e),k=!/\S/.test(n.chars),T=zc(n.chars),P="Block"===e.getParentNode(0).type,B="ElementNode"===e.getParentNode(0).type,N="Template"===e.getParentNode(0).type,I=function(e){return zc(((e="string"==typeof e?e:"").match(/^([^\S\r\n]*[\r\n])+/g)||[])[0]||"")}(n.chars),O=function(e){return zc(((e="string"==typeof e?e:"").match(/([\r\n][^\S\r\n]*)+$/g)||[])[0]||"")}(n.chars);if((w||S)&&k&&(P||B||N))return"";k&&T?(I=Math.min(T,2),O=0):((Uc(e,"ElementNode")||Uc(e,"BlockStatement"))&&(O=Math.max(O,1)),(qc(e,["ElementNode"])||qc(e,["BlockStatement"]))&&(I=Math.max(I,1)));var _="",j="";if(e.stack.indexOf("attributes")>=0){var L=e.getParentNode(0);if("ConcatStatement"===L.type){var R=L.parts,M=R.indexOf(n);M>0&&"MustacheStatement"===R[M-1].type&&(_=" "),M-1?"--":"";return bc(["{{!",$,n.value,$,"}}"]);case"PathExpression":return n.original;case"BooleanLiteral":return String(n.value);case"CommentStatement":return bc(["\x3c!--",n.value,"--\x3e"]);case"StringLiteral":return Bc(n.value,t);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(n.type))}},massageAstNode:function(e,t){if(delete t.loc,delete t.selfClosing,"TextNode"===e.type){if(""===e.chars.replace(/\s+/,""))return null;t.chars=e.chars.replace(/^\s+/,"").replace(/\s+$/,"")}}},Hc=["hbs","htmlbars"],Jc=[".handlebars",".hbs"],Gc={name:"Handlebars",type:"markup",group:"HTML",aliases:Hc,extensions:Jc,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155},Xc={languages:[ju(pt(Object.freeze({__proto__:null,name:"Handlebars",type:"markup",group:"HTML",aliases:Hc,extensions:Jc,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155,default:Gc})),(function(e){return Object.assign(e,{since:null,parsers:["glimmer"],vscodeLanguageIds:["handlebars"]})}))],printers:{glimmer:Wc}},Qc={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"none",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"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",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",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",fieldset:"block",button:"inline-block",video:"inline-block",audio:"inline-block"},Yc="inline",Kc={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},Zc="normal",el=["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],tl=["title"],rl=["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],nl=["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],il=["autoplay","controls","crossorigin","loop","muted","preload","src"],al=["href","target"],sl=["color","face","size"],ol=["dir"],ul=["cite"],cl=["alink","background","bgcolor","link","text","vlink"],ll=["clear"],pl=["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],hl=["height","width"],fl=["align"],dl=["align","char","charoff","span","valign","width"],ml=["align","char","charoff","span","valign","width"],yl=["value"],Dl=["cite","datetime"],gl=["open"],vl=["title"],El=["open"],bl=["compact"],Cl=["align"],xl=["compact"],Al=["height","src","type","width"],Fl=["disabled","form","name"],wl=["color","face","size"],Sl=["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],kl=["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],Tl=["cols","rows"],Pl=["align"],Bl=["align"],Nl=["align"],Il=["align"],Ol=["align"],_l=["align"],jl=["profile"],Ll=["align","noshade","size","width"],Rl=["manifest","version"],Ml=["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],$l=["align","alt","border","crossorigin","decoding","height","hspace","ismap","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],ql=["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],Ul=["cite","datetime"],zl=["prompt"],Vl=["accesskey","for","form"],Wl=["accesskey","align"],Hl=["type","value"],Jl=["as","charset","color","crossorigin","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],Gl=["name"],Xl=["compact"],Ql=["charset","content","http-equiv","name","scheme"],Yl=["high","low","max","min","optimum","value"],Kl=["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],Zl=["compact","reversed","start","type"],ep=["disabled","label"],tp=["disabled","label","selected","value"],rp=["for","form","name"],np=["align"],ip=["name","type","value","valuetype"],ap=["width"],sp=["max","value"],op=["cite"],up=["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],cp=["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],lp=["name"],pp=["media","sizes","src","srcset","type"],hp=["media","nonce","title","type"],fp=["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],dp=["align","char","charoff","valign"],mp=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],yp=["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],Dp=["align","char","charoff","valign"],gp=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],vp=["align","char","charoff","valign"],Ep=["datetime"],bp=["align","bgcolor","char","charoff","valign"],Cp=["default","kind","label","src","srclang"],xp=["compact","type"],Ap=["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"],Fp={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:el,abbr:tl,applet:rl,area:nl,audio:il,base:al,basefont:sl,bdo:ol,blockquote:ul,body:cl,br:ll,button:pl,canvas:hl,caption:fl,col:dl,colgroup:ml,data:yl,del:Dl,details:gl,dfn:vl,dialog:El,dir:bl,div:Cl,dl:xl,embed:Al,fieldset:Fl,font:wl,form:Sl,frame:kl,frameset:Tl,h1:Pl,h2:Bl,h3:Nl,h4:Il,h5:Ol,h6:_l,head:jl,hr:Ll,html:Rl,iframe:Ml,img:$l,input:ql,ins:Ul,isindex:zl,label:Vl,legend:Wl,li:Hl,link:Jl,map:Gl,menu:Xl,meta:Ql,meter:Yl,object:Kl,ol:Zl,optgroup:ep,option:tp,output:rp,p:np,param:ip,pre:ap,progress:sp,q:op,script:up,select:cp,slot:lp,source:pp,style:hp,table:fp,tbody:dp,td:mp,textarea:yp,tfoot:Dp,th:gp,thead:vp,time:Ep,tr:bp,track:Cp,ul:xp,video:Ap},wp=pt(Object.freeze({__proto__:null,a:el,abbr:tl,applet:rl,area:nl,audio:il,base:al,basefont:sl,bdo:ol,blockquote:ul,body:cl,br:ll,button:pl,canvas:hl,caption:fl,col:dl,colgroup:ml,data:yl,del:Dl,details:gl,dfn:vl,dialog:El,dir:bl,div:Cl,dl:xl,embed:Al,fieldset:Fl,font:wl,form:Sl,frame:kl,frameset:Tl,h1:Pl,h2:Bl,h3:Nl,h4:Il,h5:Ol,h6:_l,head:jl,hr:Ll,html:Rl,iframe:Ml,img:$l,input:ql,ins:Ul,isindex:zl,label:Vl,legend:Wl,li:Hl,link:Jl,map:Gl,menu:Xl,meta:Ql,meter:Yl,object:Kl,ol:Zl,optgroup:ep,option:tp,output:rp,p:np,param:ip,pre:ap,progress:sp,q:op,script:up,select:cp,slot:lp,source:pp,style:hp,table:fp,tbody:dp,td:mp,textarea:yp,tfoot:Dp,th:gp,thead:vp,time:Ep,tr:bp,track:Cp,ul:xp,video:Ap,default:Fp})),Sp=Qc,kp=Yc,Tp=Kc,Pp=Zc;function Bp(e){var t=Object.create(null),r=!0,n=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)t[a.value]=!0}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return t}function Np(e,t){return!("element"!==e.type||"template"!==e.fullName||!e.attrMap.lang||"html"===e.attrMap.lang)||!("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)||"ieConditionalComment"===e.type&&!e.complete||"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&-1===["template","style","script","html"].indexOf(e.fullName)||!(!Wp(e)||!e.children.some((function(e){return"text"!==e.type&&"interpolation"!==e.type})))}function Ip(e){return"attribute"!==e.type&&!Op(e)&&!!e.parent&&"number"==typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])}function Op(e){return"text"===e.type||"comment"===e.type}function _p(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName)}function jp(e){return"yaml"===e.type||"toml"===e.type}function Lp(e){return Hp(e).startsWith("pre")}function Rp(e){return"element"===e.type&&0!==e.children.length&&(-1!==["html","head","ul","ol","select"].indexOf(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function Mp(e){return zp(e)||"element"===e.type&&"br"===e.fullName||$p(e)}function $p(e){return qp(e)&&Up(e)}function qp(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function zp(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return-1!==["script","select"].indexOf(e.name)}return!1}function Vp(e){return"block"===e||"list-item"===e||e.startsWith("table")}function Wp(e){return Hp(e).startsWith("pre")}function Hp(e){return"element"===e.type&&!e.namespace&&Tp[e.name]||Pp}function Jp(e){var t=1/0,r=!0,n=!1,i=void 0;try{for(var a,s=e.split("\n")[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;if(0!==o.length){if(/\S/.test(o[0]))return 0;var u=o.match(/^\s*/)[0].length;o.length!==u&&u1&&void 0!==arguments[1]?arguments[1]:function(){return!0},r=0,n=e.stack.length-1;n>=0;n--){var i=e.stack[n];i&&"object"===c(i)&&!Array.isArray(i)&&t(i)&&r++}return r},Yp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jp(e);return 0===t?e:e.split("\n").map((function(e){return e.slice(t)})).join("\n")},Kp=Rp,Zp=function(e){return Rp(e)||"element"===e.type&&0!==e.children.length&&(-1!==["body","script","style"].indexOf(e.name)||e.children.some((function(e){return function(e){return e.children&&e.children.some((function(e){return"text"!==e.type}))}(e)})))||e.firstChild&&e.firstChild===e.lastChild&&qp(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||Up(e.lastChild))},eh=function(e){return jp(e)||e.next&&e.sourceSpan.end.line+1")}))},function(e,t){if("html"===t.parser)return e;var r=/\{\{([\s\S]+?)\}\}/g;return e.map((function(e){if(!dh(e))return e;var t=[],n=!0,i=!1,a=void 0;try{for(var s,o=e.children[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value;if("text"===u.type)for(var c=u.sourceSpan.constructor,l=u.sourceSpan.start,p=null,h=u.value.split(r),f=0;f$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))})}))},function(e){return e.map((function(e){return e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:yh(e)}):e.clone({children:e.children.map((function(e){return Object.assign({},e,{isLeadingSpaceSensitive:gh(e),isTrailingSpaceSensitive:vh(e)})})).map((function(e,t,r){return Object.assign({},e,{isLeadingSpaceSensitive:0===t?e.isLeadingSpaceSensitive:r[t-1].isTrailingSpaceSensitive&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:t===r.length-1?e.isTrailingSpaceSensitive:r[t+1].isLeadingSpaceSensitive&&e.isTrailingSpaceSensitive})}))}):e}))},function(e){var t=function(e){return"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!/[^\S\xA0]/.test(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type};return e.map((function(e){if(e.children){var r=e.children.map(t);if(r.some(Boolean)){for(var n=[],i=0;i")+a.firstChild.value+"")+o.value,sourceSpan:new u(s.sourceSpan.start,o.sourceSpan.end),isTrailingSpaceSensitive:c,hasTrailingSpaces:l}))}else n.push(a)}return e.clone({children:n})}}return e}))}],Ch=function(e,t){var r=!0,n=!1,i=void 0;try{for(var a,s=bh[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)e=(0,a.value)(e,t)}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return e},xh=function(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")},Ah=ea.builders,Fh=Ah.concat,wh=Ah.group,Sh=function(e){var t=e.trim();return/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/.test(t)||/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(t)},kh=function(e,t){var r=function(e){var t=/,([^,}\]]*)(?:,([^,}\]]*))?$/,r=e.match(/([^]*?)\s+(in|of)\s+([^]*)/);if(r){var n={};n.for=r[3].trim();var i=r[1].trim().replace(/^\(|\)$/g,""),a=i.match(t);return a?(n.alias=i.replace(t,""),n.iterator1=a[1].trim(),a[2]&&(n.iterator2=a[2].trim())):n.alias=i,{left:"".concat([n.alias,n.iterator1,n.iterator2].filter(Boolean).join(",")),operator:r[2],right:n.for}}}(e),n=r.left,i=r.operator,a=r.right;return Fh([wh(t("function _(".concat(n,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",i," ",t(a,{parser:"__js_expression"})])},Th=function(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueSlotScope:!0})},Ph=lt((function(e){var t,r;t=ut,r=function(){return function(e,t){var r=t&&t.logger||console;function n(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function i(t){var r,n=t.exec(e.substring(D));if(n)return r=n[0],D+=r.length,r}for(var a,s,o,u,c,l=e.length,p=/^[ \t\n\r\u000c]+/,h=/^[, \t\n\r\u000c]+/,f=/^[^ \t\n\r\u000c]+/,d=/[,]+$/,m=/^\d+$/,y=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,D=0,g=[];;){if(i(h),D>=l)return g;a=i(f),s=[],","===a.slice(-1)?(a=a.replace(d,""),E()):v()}function v(){for(i(p),o="",u="in descriptor";;){if(c=e.charAt(D),"in descriptor"===u)if(n(c))o&&(s.push(o),o="",u="after descriptor");else{if(","===c)return D+=1,o&&s.push(o),void E();if("("===c)o+=c,u="in parens";else{if(""===c)return o&&s.push(o),void E();o+=c}}else if("in parens"===u)if(")"===c)o+=c,u="in descriptor";else{if(""===c)return s.push(o),void E();o+=c}else if("after descriptor"===u)if(n(c));else{if(""===c)return void E();u="in descriptor",D-=1}D+=1}}function E(){var t,n,i,o,u,c,l,p,h,f=!1,d={};for(o=0;o\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function Mf(e){switch(e.isSelfClosing,e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--"}}function $f(e,t){if(e.isSelfClosing,df(e,t))return"";switch(e.type){case"ieConditionalComment":return"\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function Uf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?Df(t,Qh):Df(tf(t.replace(/^\s*?\n|\n\s*?$/g,"")),Wh):Gh(Xh,t.split(/[\t\n\f\r ]+/)).parts}var zf={preprocess:Ch,print:function(e,t,r){var n,i=e.getValue();switch(i.type){case"root":return Lh.concat([Vh(xf(e,t,r)),Wh]);case"element":case"ieConditionalComment":var a=1===i.children.length&&"interpolation"===i.firstChild.type&&i.firstChild.isLeadingSpaceSensitive&&!i.firstChild.hasLeadingSpaces&&i.lastChild.isTrailingSpaceSensitive&&!i.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id");return Cf([Vh(Cf([Vh(Af(e,t,r),{id:s}),0===i.children.length?i.hasDanglingSpaces&&i.isDanglingSpaceSensitive?Xh:"":Cf([nf(i)?qh:"",(n=Cf([a?Hh(Kh,"",{groupId:s}):i.firstChild.hasLeadingSpaces&&i.firstChild.isLeadingSpaceSensitive?Xh:"text"===i.firstChild.type&&i.isWhitespaceSensitive&&i.isIndentationSensitive?Uh(Kh):Kh,xf(e,t,r)]),a?Hh(Jh(n),n,{groupId:s}):lf(i)&&"root"===i.parent.type&&"vue"===t.parser&&!t.vueIndentScriptAndStyle?n:Jh(n)),(i.next?Nf(i.next):If(i.parent))?i.lastChild.hasTrailingSpaces&&i.lastChild.isTrailingSpaceSensitive?" ":"":a?Hh(Kh,"",{groupId:s}):i.lastChild.hasTrailingSpaces&&i.lastChild.isTrailingSpaceSensitive?Xh:("comment"===i.lastChild.type||"text"===i.lastChild.type&&i.isWhitespaceSensitive&&i.isIndentationSensitive)&&new RegExp("\\n\\s{".concat(t.tabWidth*ef(e,(function(e){return e.parent&&"root"!==e.parent.type})),"}$")).test(i.lastChild.value)?"":Kh])])),Sf(i,t)]);case"ieConditionalStartComment":case"ieConditionalEndComment":return Cf([Ff(i),Tf(i)]);case"interpolation":return Cf([Ff(i,t),Cf(e.map(r,"children")),Tf(i,t)]);case"text":if("interpolation"===i.parent.type){var o=/\n[^\S\n]*?$/,u=o.test(i.value),c=u?i.value.replace(o,""):i.value;return Cf([Cf(Df(c,Qh)),u?Wh:""])}return zh(hf([].concat(_f(i,t),Uf(i),Lf(i,t))));case"docType":return Cf([Vh(Cf([Ff(i,t)," ",i.value.replace(/^html\b/i,"html").replace(/\s+/g," ")])),Tf(i,t)]);case"comment":return Cf([_f(i,t),Cf(Df(t.originalText.slice(t.locStart(i),t.locEnd(i)),Qh)),Lf(i,t)]);case"attribute":if(null===i.value)return i.rawName;var l=yf(i.value),p=Zh(l,"'")0)||r&&"Decorator"===r.type||(e.decorators&&0!==e.decorators.length?rd(e.decorators[e.decorators.length-1],n):td(e,n),0))}function ld(e,t,r,n,i){return t&&r&&("Property"===t.type||"MethodDefinition"===t.type)&&"Identifier"===r.type&&t.key===r&&":"!==Bi.getNextNonSpaceNonCommentCharacter(e,r,i.locEnd)?(rd(r,n),!0):!(!r||!t||"Decorator"!==r.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"MethodDefinition"!==t.type||(rd(r,n),0))}function pd(e,t,r,n,i,a){if(t&&"FunctionTypeParam"===t.type&&r&&"FunctionTypeAnnotation"===r.type&&n&&"FunctionTypeParam"!==n.type)return rd(t,i),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&r&&("ArrowFunctionExpression"===r.type||"FunctionExpression"===r.type||"FunctionDeclaration"===r.type||"ObjectMethod"===r.type||"ClassMethod"===r.type)&&")"===Bi.getNextNonSpaceNonCommentCharacter(e,i,a.locEnd))return rd(t,i),!0;if(r&&"FunctionDeclaration"===r.type&&n&&"BlockStatement"===n.type){var s=function(){if(0!==r.params.length)return Bi.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,a.locEnd(Bi.getLast(r.params)));var t=Bi.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,a.locEnd(r.id));return Bi.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,t+1)}();if(a.locStart(i)>s)return id(n,i),!0}return!1}function hd(e,t){return!(!e||"ImportSpecifier"!==e.type||(td(e,t),0))}function fd(e,t,r,n){return t&&t.body&&0===t.body.length?(n?nd(t,r):td(t,r),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length||(n?nd(e,r):td(e,r),0))}var dd={handleOwnLineComment:function(e,t,r,n,i){var a=e.precedingNode,s=e.enclosingNode,o=e.followingNode;return!!(pd(t,a,s,o,e,r)||function(e,t,r){return!(!e||"MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type||!t||"Identifier"!==t.type)&&(td(e,r),!0)}(s,o,e)||sd(t,a,s,o,e,r)||od(t,a,s,o,e,r)||ud(s,a,o,e)||cd(s,0,o,e)||hd(s,e)||function(e,t,r){return!(!e||"ForInStatement"!==e.type&&"ForOfStatement"!==e.type)&&(td(e,r),!0)}(s,0,e)||function(e,t,r,n){return!(!t||"UnionTypeAnnotation"!==t.type&&"TSUnionType"!==t.type)&&(rd(e,n),!0)}(a,s,0,e)||fd(s,n,e,i)||function(e,t,r,n,i){return!!(r&&"ImportSpecifier"===r.type&&t&&"ImportDeclaration"===t.type&&Bi.hasNewline(e,i.locEnd(n)))&&(rd(r,n),!0)}(t,s,a,e,r)||function(e,t){return!(!e||"AssignmentPattern"!==e.type)&&(td(e,t),!0)}(s,e)||ld(t,s,a,e,r))},handleEndOfLineComment:function(e,t,r,n,i){var a=e.precedingNode,s=e.enclosingNode,o=e.followingNode;return!!(pd(t,a,s,o,e,r)||function(e,t,r,n,i,a){var s=t&&!Bi.hasNewlineInRange(i,a.locEnd(t),a.locStart(n));return!(t&&s||!e||"ConditionalExpression"!==e.type||!r)&&(td(r,n),!0)}(s,a,o,e,t,r)||hd(s,e)||sd(t,a,s,o,e,r)||od(t,a,s,o,e,r)||ud(s,a,o,e)||cd(s,0,o,e)||function(e,t){return!(!e||"LabeledStatement"!==e.type)&&(td(e,t),!0)}(s,e)||function(e,t,r){return!!(t&&("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&e&&t.callee===e&&t.arguments.length>0)&&(td(t.arguments[0],r),!0)}(a,s,e)||function(e,t){return!(!e||"Property"!==e.type&&"ObjectProperty"!==e.type)&&(td(e,t),!0)}(s,e)||fd(s,n,e,i)||function(e,t,r){return!(!e||"TypeAlias"!==e.type)&&(td(e,r),!0)}(s,0,e)||function(e,t,r){return!(!e||"VariableDeclarator"!==e.type&&"AssignmentExpression"!==e.type||!t||"ObjectExpression"!==t.type&&"ArrayExpression"!==t.type&&"TemplateLiteral"!==t.type&&"TaggedTemplateExpression"!==t.type)&&(td(t,r),!0)}(s,o,e))},handleRemainingComment:function(e,t,r,n,i){var a=e.precedingNode,s=e.enclosingNode,o=e.followingNode;return!!(sd(t,a,s,o,e,r)||od(t,a,s,o,e,r)||function(e,t,r){return!(!e||"ObjectProperty"!==e.type&&"Property"!==e.type||!e.shorthand||e.key!==t||"AssignmentPattern"!==e.value.type)&&(rd(e.value.left,r),!0)}(s,a,e)||function(e,t,r,n){return")"===Bi.getNextNonSpaceNonCommentCharacter(e,r,n.locEnd)&&(!t||("FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ArrowFunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"ObjectMethod"!==t.type||0!==t.params.length)&&("CallExpression"!==t.type&&"OptionalCallExpression"!==t.type&&"NewExpression"!==t.type||0!==t.arguments.length)?!(!t||"MethodDefinition"!==t.type||0!==t.value.params.length)&&(nd(t.value,r),!0):(nd(t,r),!0))}(t,s,e,r)||ld(t,s,a,e,r)||fd(s,n,e,i)||function(e,t,r,n){if(!t||"ArrowFunctionExpression"!==t.type)return!1;var i=ra.getNextNonSpaceNonCommentCharacterIndex(e,r,n);return"=>"===e.substr(i,2)&&(nd(t,r),!0)}(t,s,e,r)||function(e,t,r,n,i){return"("===Bi.getNextNonSpaceNonCommentCharacter(e,n,i.locEnd)&&(!(!r||!t||"FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"MethodDefinition"!==t.type&&"ObjectMethod"!==t.type)&&(rd(r,n),!0))}(t,s,a,e,r)||function(e,t,r,n,i){return!(!t||"TSMappedType"!==t.type)&&(n&&"TSTypeParameter"===n.type&&n.name?(td(n.name,i),!0):!(!r||"TSTypeParameter"!==r.type||!r.constraint)&&(rd(r.constraint,i),!0))}(0,s,a,o,e)||function(e,t){return!(!e||"ContinueStatement"!==e.type&&"BreakStatement"!==e.type||e.label)&&(rd(e,t),!0)}(s,e))},hasLeadingComment:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some((function(e){return e.leading&&t(e)}))},isBlockComment:function(e){return"Block"===e.type||"CommentBlock"===e.type}},md=dd.isBlockComment,yd=dd.hasLeadingComment,Dd=ea.builders,gd=Dd.indent,vd=Dd.join,Ed=Dd.hardline,bd=Dd.softline,Cd=Dd.literalline,xd=Dd.concat,Ad=Dd.group,Fd=Dd.dedentToRoot,wd=ea.utils,Sd=wd.mapDoc,kd=wd.stripTrailingHardline;function Td(e){return e.replace(/([\\`]|\$\{)/g,"\\$1")}function Pd(e,t){return Sd(e,(function(e){if(!e.parts)return e;var r=[];return e.parts.forEach((function(e){"string"==typeof e?r.push(t?e.replace(/(\\*)`/g,"$1$1\\`"):Td(e)):r.push(e)})),Object.assign({},e,{parts:r})}))}function Bd(e){var t=[],r=!1;return e.map((function(e){return e.trim()})).forEach((function(e,n,i){""!==e&&(""===i[n-1]&&r?t.push(xd([Ed,e])):t.push(e),r=!0)})),0===t.length?null:vd(Ed,t)}function Nd(e){var t=e.getValue(),r=e.getParentNode(),n=e.getParentNode(1);return n&&t.quasis&&"JSXExpressionContainer"===r.type&&"JSXElement"===n.type&&"style"===n.openingElement.name.name&&n.openingElement.attributes.some((function(e){return"jsx"===e.name.name}))||r&&"TaggedTemplateExpression"===r.type&&"Identifier"===r.tag.type&&"css"===r.tag.name||r&&"TaggedTemplateExpression"===r.type&&"MemberExpression"===r.tag.type&&"css"===r.tag.object.name&&("global"===r.tag.property.name||"resolve"===r.tag.property.name)}function Id(e){return Md(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"ArrayExpression"===e.type&&"elements"===t},function(e,t){return"Property"===e.type&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t}].concat([function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}]))}function Od(e){var t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;var r=t.tag;switch(r.type){case"MemberExpression":return jd(r.object)||Ld(r);case"CallExpression":return jd(r.callee)||"MemberExpression"===r.callee.type&&("MemberExpression"===r.callee.object.type&&(jd(r.callee.object.object)||Ld(r.callee.object))||"CallExpression"===r.callee.object.type&&jd(r.callee.object.callee));case"Identifier":return"css"===r.name;default:return!1}}function _d(e){var t=e.getParentNode(),r=e.getParentNode(1);return r&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===r.type&&"JSXIdentifier"===r.name.type&&"css"===r.name.name}function jd(e){return"Identifier"===e.type&&"styled"===e.name}function Ld(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function Rd(e,t){return yd(e,(function(e){return md(e)&&e.value===" ".concat(t," ")}))}function Md(e,t){var r=e.stack.slice(),n=null,i=r.pop(),a=!0,s=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var l=u.value;if(void 0===i)return!1;if("number"==typeof n&&(n=r.pop(),i=r.pop()),!l(i,n))return!1;n=r.pop(),i=r.pop()}}catch(e){s=!0,o=e}finally{try{a||null==c.return||c.return()}finally{if(s)throw o}}return!0}var $d=0,qd=function(e,t,r,n){var i,a=e.getValue(),s=e.getParentNode(),o=e.getParentNode(1);switch(a.type){case"TemplateLiteral":if([Nd,Od,_d,Id].some((function(t){return t(e)}))){var u=a.quasis.map((function(e){return e.value.raw})),c=0,l=u.reduce((function(e,t,r){return 0==r?t:e+"@prettier-placeholder-"+c+++"-id"+t}),"");return function(e,t,r){var n=t.getValue();if(1===n.quasis.length&&!n.quasis[0].value.raw.trim())return"``";var i=n.expressions?t.map(r,"expressions"):[],a=function(e,t){if(!t||!t.length)return e;var r=t.slice(),n=0,i=Sd(e,(function(e){if(!e||!e.parts||!e.parts.length)return e;var t=e.parts,i=t.indexOf("@"),a=i+1;if(i>-1&&"string"==typeof t[a]&&t[a].startsWith("prettier-placeholder")){var s=t[i],o=t[a],u=t.slice(a+1);t=t.slice(0,i).concat([s+o]).concat(u)}var c=t.findIndex((function(e){return"string"==typeof e&&e.startsWith("@prettier-placeholder")}));if(c>-1){var l=t[c],p=t.slice(c+1),h=l.match(/@prettier-placeholder-(.+)-id([\s\S]*)/),f=h[1],d=h[2],m=r[f];n++,t=t.slice(0,c).concat(["${",m,"}"+d]).concat(p)}return Object.assign({},e,{parts:t})}));return r.length===n?i:null}(e,i);if(!a)throw new Error("Couldn't insert all the expressions");return xd(["`",gd(xd([Ed,kd(a)])),bd,"`"])}(r(l,{parser:"css"}),e,t)}if(function(e){var t=e.getValue(),r=e.getParentNode();return Rd(t,"GraphQL")||r&&("TaggedTemplateExpression"===r.type&&("MemberExpression"===r.tag.type&&"graphql"===r.tag.object.name&&"experimental"===r.tag.property.name||"Identifier"===r.tag.type&&("gql"===r.tag.name||"graphql"===r.tag.name))||"CallExpression"===r.type&&"Identifier"===r.callee.type&&"graphql"===r.callee.name)}(e)){var p=a.expressions?e.map(t,"expressions"):[],h=a.quasis.length;if(1===h&&""===a.quasis[0].value.raw.trim())return"``";for(var f=[],d=0;d2&&""===g[0].trim()&&""===g[1].trim(),C=v>2&&""===g[v-1].trim()&&""===g[v-2].trim(),x=g.every((function(e){return/^\s*(?:#[^\r\n]*)?$/.test(e)}));if(!y&&/#[^\r\n]*$/.test(g[v-1]))return null;var A=null;(A=x?Bd(g):kd(r(D,{parser:"graphql"})))?(A=Pd(A,!1),!m&&b&&f.push(""),f.push(A),!y&&C&&f.push("")):m||y||!b||f.push(""),E&&f.push(xd(["${",E,"}"]))}return xd(["`",gd(xd([Ed,vd(Ed,f)])),Ed,"`"])}var F=function(e){return Rd(e.getValue(),"HTML")||Md(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t}])}(e)?"html":function(e){return Md(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"Property"===e.type&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t}].concat([function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}]))}(e)?"angular":void 0;if(F)return function(e,t,r,n,i){var a=e.getValue(),s=$d;$d=$d+1>>>0;var o=function(e){return"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(s,"_IN_JS")},u=a.quasis.map((function(e,t,r){return t===r.length-1?e.value.cooked:e.value.cooked+o(t)})).join(""),c=e.map(t,"expressions");if(0===c.length&&0===u.trim().length)return"``";var l=RegExp(o("(\\d+)"),"g"),p=Sd(kd(r(u,{parser:n})),(function(e){if("string"!=typeof e)return e;for(var t=[],r=e.split(l),n=0;n0;i--){var a=r.children[i-1];if("JSXText"!==a.type||dm(a)){n=a;break}}return n&&"JSXExpressionContainer"===n.type&&"JSXEmptyExpression"===n.expression.type&&n.expression.comments&&n.expression.comments.find((function(e){return"prettier-ignore"===e.value.trim()}))}(e)},hasTrailingComment:function(e){return e.comments&&e.comments.some((function(e){return e.trailing}))},identity:function(e){return e},isBinaryish:function(e){return"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type},isCallOrOptionalCallExpression:pm,isEmptyJSXElement:function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;var t=e.children[0];return tm(t)&&!dm(t)},isFlowAnnotationComment:function(e,t,r){var n=r.locStart(t),i=Xd(e,r.locEnd(t));return"/*"===e.substr(n,2)&&"*/"===e.substr(i,2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;var t=0,r=!0,n=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;if(im(o)){if((t+=1)>1)return!0}else if(pm(o)){var u=!0,c=!1,l=void 0;try{for(var p,h=o.arguments[Symbol.iterator]();!(u=(p=h.next()).done);u=!0)if(im(p.value))return!0}catch(e){c=!0,l=e}finally{try{u||null==h.return||h.return()}finally{if(c)throw l}}}}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return!1},isFunctionNotation:cm,isFunctionOrArrowExpression:im,isGetterOrSetter:om,isJestEachTemplateLiteral:function(e,t){var r=/^[xf]?(describe|it|test)$/;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))},isJSXNode:sm,isJSXWhitespaceExpression:function(e){return"JSXExpressionContainer"===e.type&&tm(e.expression)&&" "===e.expression.value&&!e.expression.comments},isLastStatement:function(e){var t=e.getParentNode();if(!t)return!0;var r=e.getValue(),n=(t.body||t.consequent).filter((function(e){return"EmptyStatement"!==e.type}));return n&&n[n.length-1]===r},isLiteral:tm,isLongCurriedCallExpression:function(e){var t=e.getValue(),r=e.getParentNode();return pm(t)&&pm(r)&&r.callee===t&&t.arguments.length>r.arguments.length&&r.arguments.length>0},isMeaningfulJSXText:dm,isMemberExpressionChain:function e(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&("Identifier"===t.object.type||e(t.object))},isMemberish:function(e){return"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"BindExpression"===e.type&&e.object},isNgForOf:function(e,t,r){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===r.body[0].type&&null===r.body[0].value},isNumericLiteral:rm,isObjectType:function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type},isObjectTypePropertyAFunction:function(e,t){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||cm(e,t))},isSimpleFlowType:function(e){return e&&-1!==["AnyTypeAnnotation","NullLiteralTypeAnnotation","GenericTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","StringTypeAnnotation"].indexOf(e.type)&&!("GenericTypeAnnotation"===e.type&&e.typeParameters)},isSimpleTemplateLiteral:function(e){return 0!==e.expressions.length&&e.expressions.every((function(e){if(e.comments)return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if("MemberExpression"===e.type||"OptionalMemberExpression"===e.type){for(var t=e;"MemberExpression"===t.type||"OptionalMemberExpression"===t.type;){if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type)return!1;if((t=t.object).comments)return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1}))},isStringLiteral:nm,isStringPropSafeToCoerceToIdentifier:function(e,t){return nm(e.key)&&Qd(e.key.value)&&"json"!==t.parser&&!("typescript"===t.parser&&"ClassProperty"===e.type)},isTemplateOnItsOwnLine:function(e,t,r){return("TemplateLiteral"===e.type&&ym(e)||"TaggedTemplateExpression"===e.type&&ym(e.quasi))&&!Wd(t,r.locStart(e),{backwards:!0})},isTestCall:function e(t,r){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(am(t)&&r&&e(r))return im(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return am(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&lm.test(t.callee.name)||("MemberExpression"===(n=t).callee.type||"OptionalMemberExpression"===n.callee.type)&&"Identifier"===n.callee.object.type&&"Identifier"===n.callee.property.type&&lm.test(n.callee.object.name)&&("only"===n.callee.property.name||"skip"===n.callee.property.name))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||nm(t.arguments[0])))return!(t.arguments[2]&&!rm(t.arguments[2]))&&((2===t.arguments.length?im(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&t.arguments[1].params.length<=1)||am(t.arguments[1]));var n;return!1},isTheOnlyJSXElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;var r=t.getNode();if(!r.expression||!sm(r.expression))return!1;var n=t.getParentNode();return"Program"===n.type&&1==n.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e,t){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||um(e,e.typeAnnotation,t))},matchJsxWhitespaceRegex:hm,needsHardlineAfterDanglingComment:function(e){if(!e.comments)return!1;var t=Vd(e.comments.filter((function(e){return!e.leading&&!e.trailing})));return t&&!dd.isBlockComment(t)},rawText:Dm,returnArgumentHasLeadingComment:function(e,t){if(mm(e.originalText,t,e))return!0;if(em(t))for(var r,n=t;r=(i=n).expressions?i.expressions[0]:i.left||i.test||i.callee||i.object||i.tag||i.argument||i.expression;)if(n=r,mm(e.originalText,n,e))return!0;var i;return!1}},vm=gm.getLeftSidePathName,Em=gm.hasFlowShorthandAnnotationComment,bm=gm.hasNakedLeftSide,Cm=gm.hasNode;function xm(e,t){var r=t.getValue();return i(r)&&(n(r)||function e(r){var a=t.getParentNode(r);return!(!a||i(a))&&(n(a)||e(r+1))}(0));function n(e){return e.comments&&e.comments.some((function(e){return e.leading&&dd.isBlockComment(e)&&function(e){var t=e.trim().split("\n").map((function(e){return e.replace(/^[\s*]+/,"")})).join(" ").trim();if(!/^@type\s*\{[^]+\}$/.test(t))return!1;var r=!1,n=0,i=!0,a=!1,s=void 0;try{for(var o,u=t[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var c=o.value;if("{"===c){if(r)return!1;n++}else if("}"===c){if(0===n)return!1;0==--n&&(r=!0)}}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}return 0===n}(e.value)}))}function i(e){return e.extra&&e.extra.parenthesized}}function Am(e,t){var r=e.getParentNode();if(!r)return!1;var n=e.getName(),i=e.getNode();if(e.getValue()!==i)return!1;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(e){switch(e.type){case"ObjectExpression":return!0;default:return!1}}(i)&&Fm(e))return!0;if(function(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForAwaitStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}(i))return!1;if(xm(t.originalText,e))return!0;if("flow"!==t.parser&&Em(e.getValue()))return!0;if("Identifier"===i.type)return!!(i.extra&&i.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(i.name));if("ParenthesizedExpression"===r.type)return!1;if(!("ClassDeclaration"!==r.type&&"ClassExpression"!==r.type||r.superClass!==i||"ArrowFunctionExpression"!==i.type&&"AssignmentExpression"!==i.type&&"AwaitExpression"!==i.type&&"BinaryExpression"!==i.type&&"ConditionalExpression"!==i.type&&"LogicalExpression"!==i.type&&"NewExpression"!==i.type&&"ObjectExpression"!==i.type&&"ParenthesizedExpression"!==i.type&&"SequenceExpression"!==i.type&&"TaggedTemplateExpression"!==i.type&&"UnaryExpression"!==i.type&&"UpdateExpression"!==i.type&&"YieldExpression"!==i.type))return!0;if("ExportDefaultDeclaration"===r.type)return function e(t,r){var n=t.getValue(),i=t.getParentNode();return"FunctionExpression"===n.type||"ClassExpression"===n.type?"ExportDefaultDeclaration"===i.type||!Am(t,r):!(!bm(n)||"ExportDefaultDeclaration"!==i.type&&Am(t,r))&&t.call.apply(t,[function(t){return e(t,r)}].concat(vm(t,n)))}(e,t);if("Decorator"===r.type&&r.expression===i){for(var a=!1,s=!1,o=i;o;)switch(o.type){case"MemberExpression":s=!0,o=o.object;break;case"CallExpression":if(s||a)return!0;a=!0,o=o.callee;break;case"Identifier":return!1;default:return!0}return!0}if("ArrowFunctionExpression"===r.type&&r.body===i&&"SequenceExpression"!==i.type&&Bi.startsWithNoLookaheadToken(i,!1)||"ExpressionStatement"===r.type&&Bi.startsWithNoLookaheadToken(i,!0))return!0;switch(i.type){case"SpreadElement":case"SpreadProperty":return"MemberExpression"===r.type&&"object"===n&&r.object===i;case"UpdateExpression":if("UnaryExpression"===r.type)return i.prefix&&("++"===i.operator&&"+"===r.operator||"--"===i.operator&&"-"===r.operator);case"UnaryExpression":switch(r.type){case"UnaryExpression":return i.operator===r.operator&&("+"===i.operator||"-"===i.operator);case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===n;case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===n;case"BinaryExpression":return"**"===r.operator&&"left"===n;case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if("UpdateExpression"===r.type)return!0;if("in"===i.operator&&function(t){for(var r=0;t;){var n=e.getParentNode(r++);if(!n)return!1;if("ForStatement"===n.type&&n.init===t)return!0;t=n}return!1}(i))return!0;case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(r.type){case"ConditionalExpression":return"TSAsExpression"===i.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===n;case"ClassExpression":case"ClassDeclaration":return"superClass"===n&&r.superClass===i;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSAsExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===n;case"AssignmentExpression":return r.left===i&&("TSTypeAssertion"===i.type||"TSAsExpression"===i.type);case"LogicalExpression":if("LogicalExpression"===i.type)return r.operator!==i.operator;case"BinaryExpression":if(!i.operator&&"TSTypeAssertion"!==i.type)return!0;var u=r.operator,c=Bi.getPrecedence(u),l=i.operator,p=Bi.getPrecedence(l);return c>p||(c===p&&"right"===n?(Un.strictEqual(r.right,i),!0):c===p&&!Bi.shouldFlatten(u,l)||(c1?"(":"",Tm(km([",",Pm]),e.map(r,"params")),t.length>1?")":""])}),"program","body",0):t.__isVueSlotScope?e.call((function(e){return Tm(km([",",Pm]),e.map(r,"params"))}),"program","body",0):void 0},Im=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign({},e,{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[]});default:return e}},Om=Bi.getParentExportDeclaration,_m=Bi.isExportDeclaration,jm=Bi.shouldFlatten,Lm=Bi.getNextNonSpaceNonCommentCharacter,Rm=Bi.hasNewline,Mm=Bi.hasNewlineInRange,$m=Bi.getLast,qm=Bi.getStringWidth,Um=Bi.printString,zm=Bi.printNumber,Vm=Bi.hasIgnoreComment,Wm=Bi.hasNodeIgnoreComment,Hm=Bi.getPenultimate,Jm=Bi.startsWithNoLookaheadToken,Gm=Bi.getIndentSize,Xm=Bi.matchAncestorTypes,Qm=Bi.getPreferredQuote,Ym=ra.isNextLineEmpty,Km=ra.isNextLineEmptyAfterIndex,Zm=ra.getNextNonSpaceNonCommentCharacterIndex,ey=Ds.insertPragma,ty=Nm,ry=Bm,ny=gm.classChildNeedsASIProtection,iy=gm.classPropMayCauseASIProblems,ay=gm.conditionalExpressionChainContainsJSX,sy=gm.getFlowVariance,oy=gm.getLeftSidePathName,uy=gm.getTypeScriptMappedTypeModifier,cy=gm.hasDanglingComments,ly=gm.hasFlowAnnotationComment,py=gm.hasFlowShorthandAnnotationComment,hy=gm.hasLeadingComment,fy=gm.hasLeadingOwnLineComment,dy=gm.hasNakedLeftSide,my=gm.hasNewlineBetweenOrAfterDecorators,yy=gm.hasNgSideEffect,Dy=gm.hasPrettierIgnore,gy=gm.hasTrailingComment,vy=gm.identity,Ey=gm.isBinaryish,by=gm.isCallOrOptionalCallExpression,Cy=gm.isEmptyJSXElement,xy=gm.isFlowAnnotationComment,Ay=gm.isFunctionCompositionArgs,Fy=gm.isFunctionNotation,wy=gm.isFunctionOrArrowExpression,Sy=gm.isGetterOrSetter,ky=gm.isJestEachTemplateLiteral,Ty=gm.isJSXNode,Py=gm.isJSXWhitespaceExpression,By=gm.isLastStatement,Ny=gm.isLiteral,Iy=gm.isLongCurriedCallExpression,Oy=gm.isMeaningfulJSXText,_y=gm.isMemberExpressionChain,jy=gm.isMemberish,Ly=gm.isNgForOf,Ry=gm.isNumericLiteral,My=gm.isObjectType,$y=gm.isObjectTypePropertyAFunction,qy=gm.isSimpleFlowType,Uy=gm.isSimpleTemplateLiteral,zy=gm.isStringLiteral,Vy=gm.isStringPropSafeToCoerceToIdentifier,Wy=gm.isTemplateOnItsOwnLine,Hy=gm.isTestCall,Jy=gm.isTheOnlyJSXElementInMarkdown,Gy=gm.isTSXFile,Xy=gm.isTypeAnnotationAFunction,Qy=gm.matchJsxWhitespaceRegex,Yy=gm.needsHardlineAfterDanglingComment,Ky=gm.rawText,Zy=gm.returnArgumentHasLeadingComment,eD=new WeakMap,tD=ea.builders,rD=tD.concat,nD=tD.join,iD=tD.line,aD=tD.hardline,sD=tD.softline,oD=tD.literalline,uD=tD.group,cD=tD.indent,lD=tD.align,pD=tD.conditionalGroup,hD=tD.fill,fD=tD.ifBreak,dD=tD.breakParent,mD=tD.lineSuffixBoundary,yD=tD.addAlignmentToDoc,DD=tD.dedent,gD=ea.utils,vD=gD.willBreak,ED=gD.isLineNext,bD=gD.isEmpty,CD=gD.removeLines,xD=ea.printer.printDocToString,AD=0;function FD(e,t){switch(t=t||"es5",e.trailingComma){case"all":if("all"===t)return!0;case"es5":if("es5"===t)return!0;case"none":default:return!1}}function wD(e,t,r){var n=e.getValue();return uD(rD([nD(iD,e.map(r,"decorators")),my(n,t)?aD:iD]))}function SD(e,t,r,n){var i,a,s=e.getValue(),o=s[n.testNodePropertyName],u=s[n.consequentNodePropertyName],c=s[n.alternateNodePropertyName],l=[],p=!1,h=e.getParentNode(),f=h.type===n.conditionalNodeType,d=0;do{a=i||s,i=e.getParentNode(d),d++}while(i&&i.type===n.conditionalNodeType);var m=i||h,y=a;if(n.shouldCheckJsx&&(Ty(o)||Ty(u)||Ty(c)||ay(y))){p=!0,f=!0;var D=function(e){return rD([fD("(",""),cD(rD([sD,e])),sD,fD(")","")])},g=function(e){return"NullLiteral"===e.type||"Literal"===e.type&&null===e.value};l.push(" ? ",g(u)?e.call(r,n.consequentNodePropertyName):D(e.call(r,n.consequentNodePropertyName))," : ",c.type===n.conditionalNodeType||g(c)?e.call(r,n.alternateNodePropertyName):D(e.call(r,n.alternateNodePropertyName)))}else{var v=rD([iD,"? ",u.type===n.conditionalNodeType?fD("","("):"",lD(2,e.call(r,n.consequentNodePropertyName)),u.type===n.conditionalNodeType?fD("",")"):"",iD,": ",c.type===n.conditionalNodeType?e.call(r,n.alternateNodePropertyName):lD(2,e.call(r,n.alternateNodePropertyName))]);l.push(h.type!==n.conditionalNodeType||h[n.alternateNodePropertyName]===s?v:t.useTabs?DD(cD(v)):lD(Math.max(0,t.tabWidth-2),v))}var E,b=!p&&("MemberExpression"===h.type||"OptionalMemberExpression"===h.type||"NGPipeExpression"===h.type&&h.left===s&&n.breakNested)&&!h.computed;return function(e){return n.breakNested?h===m?uD(e):e:uD(e)}(rD([].concat((E=rD(n.beforeParts()),h.type===n.conditionalNodeType&&h[n.alternateNodePropertyName]===s?lD(2,E):E),f?rD(l):cD(rD(l)),n.afterParts(b))))}function kD(e,t,r){var n=[],i=e.getNode(),a="ClassBody"===i.type;return e.map((function(e,s){var o=e.getValue();if(o&&"EmptyStatement"!==o.type){var u=r(e),c=t.originalText,l=[];if(t.semi||a||Jy(t,e)||!function(e,t){return"ExpressionStatement"===e.getNode().type&&e.call((function(e){return function e(t,r){var n=t.getValue();return!!(wm(t,r)||"ParenthesizedExpression"===n.type||"TypeCastExpression"===n.type||"ArrowFunctionExpression"===n.type&&!LD(t,r)||"ArrayExpression"===n.type||"ArrayPattern"===n.type||"UnaryExpression"===n.type&&n.prefix&&("+"===n.operator||"-"===n.operator)||"TemplateLiteral"===n.type||"TemplateElement"===n.type||Ty(n)||"BindExpression"===n.type&&!n.object||"RegExpLiteral"===n.type||"Literal"===n.type&&n.pattern||"Literal"===n.type&&n.regex)||!!dy(n)&&t.call.apply(t,[function(t){return e(t,r)}].concat(oy(t,n)))}(e,t)}),"expression")}(e,t)?l.push(u):o.comments&&o.comments.some((function(e){return e.leading}))?l.push(r(e,{needsSemi:!0})):l.push(";",u),!t.semi&&a)if(iy(e))l.push(";");else if("ClassProperty"===o.type){var p=i.body[s+1];ny(p)&&l.push(";")}Ym(c,o,t)&&!By(e)&&l.push(aD),n.push(rD(l))}})),nD(aD,n)}function TD(e,t,r){var n=e.getNode();if(n.computed)return rD(["[",e.call(r,"key"),"]"]);var i=e.getParentNode(),a=n.key;if("consistent"===t.quoteProps&&!eD.has(i)){var s=(i.properties||i.body||i.members).some((function(e){return!e.computed&&e.key&&zy(e.key)&&!Vy(e,t)}));eD.set(i,s)}if("Identifier"===a.type&&("json"===t.parser||"consistent"===t.quoteProps&&eD.get(i))){var o=Um(JSON.stringify(a.name),t);return e.call((function(e){return xa.printComments(e,(function(){return o}),t)}),"key")}return Vy(n,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!eD.get(i))?e.call((function(e){return xa.printComments(e,(function(){return a.value}),t)}),"key"):e.call(r,"key")}function PD(e,t,r){var n=e.getNode(),i=n.kind,a=n.value||n,s=[];return i&&"init"!==i&&"method"!==i&&"constructor"!==i?(Un.ok("get"===i||"set"===i),s.push(i," ")):(a.async&&s.push("async "),a.generator&&s.push("*")),s.push(TD(e,t,r),n.optional||n.key.optional?"?":"",n===a?BD(e,t,r):e.call((function(e){return BD(e,t,r)}),"value")),rD(s)}function BD(e,t,r){var n=[_D(e,0,r),uD(rD([jD(e,r,t),MD(e,r,t)]))];return e.getNode().body?n.push(" ",e.call(r,"body")):n.push(t.semi?";":""),rD(n)}function ND(e){return"ObjectExpression"===e.type&&(e.properties.length>0||e.comments)||"ArrayExpression"===e.type&&(e.elements.length>0||e.comments)||"TSTypeAssertion"===e.type&&ND(e.expression)||"TSAsExpression"===e.type&&ND(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type)&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||"CallExpression"===e.body.type||"OptionalCallExpression"===e.body.type||"ConditionalExpression"===e.body.type||Ty(e.body))}function ID(e,t,r){var n=e.getValue(),i=n.arguments;if(0===i.length)return rD(["(",xa.printDanglingComments(e,t,!0),")"]);if(2===i.length&&"ArrowFunctionExpression"===i[0].type&&0===i[0].params.length&&"BlockStatement"===i[0].body.type&&"ArrayExpression"===i[1].type&&!i.find((function(e){return e.comments})))return rD(["(",e.call(r,"arguments",0),", ",e.call(r,"arguments",1),")"]);var a=!1,s=!1,o=!1,u=i.length-1,c=e.map((function(e,n){var i=e.getNode(),c=[r(e)];return n===u||(Ym(t.originalText,i,t)?(0===n&&(o=!0),a=!0,c.push(",",aD,aD)):c.push(",",iD)),s=function(e,t){if(!e||"ArrowFunctionExpression"!==e.type||!e.body||"BlockStatement"!==e.body.type||!e.params||e.params.length<1)return!1;var n=!1;return t.each((function(e){var t=rD([r(e)]);n=n||vD(t)}),"params"),n}(i,e),rD(c)}),"arguments"),l=n.callee&&"Import"===n.callee.type||!FD(t,"all")?"":",";function p(){return uD(rD(["(",cD(rD([iD,rD(c)])),l,iD,")"]),{shouldBreak:!0})}if(Ay(i))return p();var h=function(e){if(2!==e.length)return!1;var t=e[0],r=e[1];return!(t.comments&&t.comments.length||"FunctionExpression"!==t.type&&("ArrowFunctionExpression"!==t.type||"BlockStatement"!==t.body.type)||"FunctionExpression"===r.type||"ArrowFunctionExpression"===r.type||"ConditionalExpression"===r.type||ND(r))}(i),f=function(e){var t=$m(e),r=Hm(e);return!hy(t)&&!gy(t)&&ND(t)&&(!r||r.type!==t.type)}(i);if(h||f){var d,m=(h?c.slice(1).some(vD):c.slice(0,-1).some(vD))||a||s,y=0;e.each((function(e){h&&0===y&&(d=[rD([e.call((function(e){return r(e,{expandFirstArg:!0})})),c.length>1?",":"",o?aD:iD,o?aD:""])].concat(c.slice(1))),f&&y===i.length-1&&(d=c.slice(0,-1).concat(e.call((function(e){return r(e,{expandLastArg:!0})})))),y++}),"arguments");var D=c.some(vD),g=rD(["(",rD(d),")"]);return rD([D?dD:"",pD([D||n.typeArguments||n.typeParameters?fD(p(),g):g,rD(h?["(",uD(d[0],{shouldBreak:!0}),rD(d.slice(1)),")"]:["(",rD(c.slice(0,-1)),uD($m(d),{shouldBreak:!0}),")"]),p()],{shouldBreak:m})])}var v=rD(["(",cD(rD([sD,rD(c)])),fD(l),sD,")"]);return Iy(e)?v:uD(v,{shouldBreak:c.some(vD)||a})}function OD(e,t,r){var n=e.getValue();if(!n.typeAnnotation)return"";var i=e.getParentNode(),a=n.definite||i&&"VariableDeclarator"===i.type&&i.definite,s="DeclareFunction"===i.type&&i.id===n;return xy(t.originalText,n.typeAnnotation,t)?rD([" /*: ",e.call(r,"typeAnnotation")," */"]):rD([s?"":a?"!: ":": ",e.call(r,"typeAnnotation")])}function _D(e,t,r){var n=e.getValue();return n.typeArguments?e.call(r,"typeArguments"):n.typeParameters?e.call(r,"typeParameters"):""}function jD(e,t,r,n,i){var a=e.getValue(),s=e.getParentNode(),o=a.parameters?"parameters":"params",u=Hy(s),c=ng(a),l=n&&!(a[o]&&a[o].some((function(e){return e.comments}))),p=i?_D(e,0,t):"",h=[];if(a[o]){var f=a[o].length-1;h=e.map((function(e,n){var i=[],s=e.getValue();return i.push(t(e)),n===f?a.rest&&i.push(",",iD):u||c||l?i.push(", "):Ym(r.originalText,s,r)?i.push(",",aD,aD):i.push(",",iD),rD(i)}),o)}if(a.rest&&h.push(rD(["...",e.call(t,"rest")])),0===h.length)return rD([p,"(",xa.printDanglingComments(e,r,!0,(function(e){return")"===Lm(r.originalText,e,r.locEnd)})),")"]);var d=$m(a[o]);if(l)return uD(rD([CD(p),"(",rD(h.map(CD)),")"]));var m=a[o].every((function(e){return!e.decorators}));if(c&&m)return rD([p,"(",rD(h),")"]);if(u)return rD([p,"(",rD(h),")"]);if(($y(s,r)||Xy(s,r)||"TypeAlias"===s.type||"UnionTypeAnnotation"===s.type||"TSUnionType"===s.type||"IntersectionTypeAnnotation"===s.type||"FunctionTypeAnnotation"===s.type&&s.returnType===a)&&1===a[o].length&&null===a[o][0].name&&a[o][0].typeAnnotation&&null===a.typeParameters&&qy(a[o][0].typeAnnotation)&&!a.rest)return"always"===r.arrowParens?rD(["(",rD(h),")"]):rD(h);var y=!(d&&"RestElement"===d.type||a.rest);return rD([p,"(",cD(rD([sD,rD(h)])),fD(y&&FD(r,"all")?",":""),sD,")"])}function LD(e,t){return"always"!==t.arrowParens&&"avoid"===t.arrowParens&&function(e){return!(1!==e.params.length||e.rest||e.typeParameters||cy(e)||"Identifier"!==e.params[0].type||e.params[0].typeAnnotation||e.params[0].comments||e.params[0].optional||e.predicate||e.returnType)}(e.getValue())}function RD(e,t,r){var n=e.getValue(),i=[];return n.async&&i.push("async "),i.push("function"),n.generator&&i.push("*"),n.id&&i.push(" ",e.call(t,"id")),i.push(_D(e,0,t),uD(rD([jD(e,t,r),MD(e,t,r)])),n.body?" ":"",e.call(t,"body")),rD(i)}function MD(e,t,r){var n=e.getValue(),i=e.call(t,"returnType");if(n.returnType&&xy(r.originalText,n.returnType,r))return rD([" /*: ",i," */"]);var a=[i];return n.returnType&&n.returnType.typeAnnotation&&a.unshift(": "),n.predicate&&a.push(n.returnType?" ":": ",e.call(t,"predicate")),rD(a)}function $D(e,t,r){var n=e.getValue(),i=t.semi?";":"",a=["export "],s=n.default||"ExportDefaultDeclaration"===n.type;if(s&&a.push("default "),a.push(xa.printDanglingComments(e,t,!0)),Yy(n)&&a.push(aD),n.declaration)a.push(e.call(r,"declaration")),s&&"ClassDeclaration"!==n.declaration.type&&"FunctionDeclaration"!==n.declaration.type&&"TSInterfaceDeclaration"!==n.declaration.type&&"DeclareClass"!==n.declaration.type&&"DeclareFunction"!==n.declaration.type&&"TSDeclareFunction"!==n.declaration.type&&a.push(i);else{if(n.specifiers&&n.specifiers.length>0){var o=[],u=[],c=[];e.each((function(t){var n=e.getValue().type;"ExportSpecifier"===n?o.push(r(t)):"ExportDefaultSpecifier"===n?u.push(r(t)):"ExportNamespaceSpecifier"===n&&c.push(rD(["* as ",r(t)]))}),"specifiers");var l=0!==c.length&&0!==o.length,p=0!==u.length&&(0!==c.length||0!==o.length),h=o.length>1||u.length>0||n.specifiers&&n.specifiers.some((function(e){return e.comments})),f="";0!==o.length&&(f=h?uD(rD(["{",cD(rD([t.bracketSpacing?iD:sD,nD(rD([",",iD]),o)])),fD(FD(t)?",":""),t.bracketSpacing?iD:sD,"}"])):rD(["{",t.bracketSpacing?" ":"",rD(o),t.bracketSpacing?" ":"","}"])),a.push("type"===n.exportKind?"type ":"",rD(u),rD([p?", ":""]),rD(c),rD([l?", ":""]),f)}else a.push("{}");n.source&&a.push(" from ",e.call(r,"source")),a.push(i)}return rD(a)}function qD(e,t){var r=Om(e);return r?Un.strictEqual(r.type,"DeclareExportDeclaration"):t.unshift("declare "),rD(t)}function UD(e,t,r){var n=e.getValue();return n.modifiers&&n.modifiers.length?rD([nD(" ",e.map(r,"modifiers"))," "]):""}function zD(e,t,r,n){var i=e.getValue();if(!i[n])return"";if(!Array.isArray(i[n]))return e.call(r,n);var a=e.getNode(2),s=e.getNode(4);return null!=a&&Hy(a)||0===i[n].length||1===i[n].length&&(rg(i[n][0])||"GenericTypeAnnotation"===i[n][0].type&&rg(i[n][0].id)||"TSTypeReference"===i[n][0].type&&rg(i[n][0].typeName)||"NullableTypeAnnotation"===i[n][0].type||s&&"VariableDeclarator"===s.type&&a&&"TSTypeAnnotation"===a.type&&"TSUnionType"!==i[n][0].type&&"UnionTypeAnnotation"!==i[n][0].type&&"TSConditionalType"!==i[n][0].type&&"TSMappedType"!==i[n][0].type)?rD(["<",nD(", ",e.map(r,n)),">"]):uD(rD(["<",cD(rD([sD,nD(rD([",",iD]),e.map(r,n))])),fD("typescript"!==t.parser&&FD(t,"all")?",":""),sD,">"]))}function VD(e,t,r){var n=e.getValue(),i=[];n.abstract&&i.push("abstract "),i.push("class"),n.id&&i.push(" ",e.call(r,"id")),i.push(e.call(r,"typeParameters"));var a=[];if(n.superClass){var s=rD(["extends ",e.call(r,"superClass"),e.call(r,"superTypeParameters")]);n.implements&&0!==n.implements.length||n.superClass.comments&&0!==n.superClass.comments.length?a.push(uD(rD([iD,e.call((function(e){return xa.printComments(e,(function(){return s}),t)}),"superClass")]))):i.push(rD([" ",e.call((function(e){return xa.printComments(e,(function(){return s}),t)}),"superClass")]))}else n.extends&&n.extends.length>0&&i.push(" extends ",nD(", ",e.map(r,"extends")));return n.mixins&&n.mixins.length>0&&a.push(iD,"mixins ",uD(cD(nD(rD([",",iD]),e.map(r,"mixins"))))),n.implements&&n.implements.length>0&&a.push(iD,"implements",uD(cD(rD([iD,nD(rD([",",iD]),e.map(r,"implements"))])))),a.length>0&&i.push(uD(cD(rD(a)))),n.body&&n.body.comments&&fy(t.originalText,n.body,t)?i.push(aD):i.push(" "),i.push(e.call(r,"body")),i}function WD(e){var t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"}function HD(e,t,r){var n=e.call(r,"property"),i=e.getValue(),a=WD(e);return i.computed?!i.property||Ry(i.property)?rD([a,"[",n,"]"]):uD(rD([a,"[",cD(rD([sD,n])),sD,"]"])):rD([a,".",n])}function JD(e,t,r){return rD(["::",e.call(r,"callee")])}function GD(e,t,r,n){return e?"":"JSXElement"===r.type&&!r.closingElement||n&&"JSXElement"===n.type&&!n.closingElement?1===t.length?sD:aD:sD}function XD(e,t,r,n){return e?aD:1===t.length?"JSXElement"===r.type&&!r.closingElement||n&&"JSXElement"===n.type&&!n.closingElement?aD:sD:aD}function QD(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&0!==e.right.properties.length||"ArrayExpression"===e.right.type&&0!==e.right.elements.length||!!Ty(e.right))}function YD(e,t,r,n){return fy(n.originalText,t,n)?cD(rD([aD,r])):Ey(t)&&!QD(t)||"ConditionalExpression"===t.type&&Ey(t.test)&&!QD(t.test)||"StringLiteralTypeAnnotation"===t.type||"ClassExpression"===t.type&&t.decorators&&t.decorators.length||("Identifier"===e.type||zy(e)||"MemberExpression"===e.type)&&(zy(t)||_y(t))&&"json"!==n.parser&&"json5"!==n.parser||"SequenceExpression"===t.type?uD(cD(rD([iD,r]))):rD([" ",r])}function KD(e,t,r,n,i,a){if(!n)return t;var s=YD(e,n,i,a);return uD(rD([t,r,s]))}function ZD(e,t,r){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||r?rD([" ",t]):cD(rD([iD,t]))}function eg(e,t,r){var n=Ky(e),i=r||"DirectiveLiteral"===e.type;return Um(n,t,i)}function tg(e){var t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}function rg(e){if(qy(e)||My(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){var t=e.types.filter((function(e){return"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type})).length,r=e.types.filter((function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type})).length;if(e.types.length-1===t&&r>0)return!0}return!1}function ng(e){return e&&e.params&&1===e.params.length&&!e.params[0].comments&&("ObjectPattern"===e.params[0].type||"ArrayPattern"===e.params[0].type||"Identifier"===e.params[0].type&&e.params[0].typeAnnotation&&("TypeAnnotation"===e.params[0].typeAnnotation.type||"TSTypeAnnotation"===e.params[0].typeAnnotation.type)&&My(e.params[0].typeAnnotation.typeAnnotation)||"FunctionTypeParam"===e.params[0].type&&My(e.params[0].typeAnnotation)||"AssignmentPattern"===e.params[0].type&&("ObjectPattern"===e.params[0].left.type||"ArrayPattern"===e.params[0].left.type)&&("Identifier"===e.params[0].right.type||"ObjectExpression"===e.params[0].right.type&&0===e.params[0].right.properties.length||"ArrayExpression"===e.params[0].right.type&&0===e.params[0].right.elements.length))&&!e.rest}function ig(e,t,r,n){var i=[],a=[];return e.each((function(e){i.push(rD(a)),i.push(uD(n(e))),a=[",",iD],e.getValue()&&Ym(t.originalText,e.getValue(),t)&&a.push(sD)}),r),rD(i)}var ag={preprocess:Im,print:function(e,t,r,n){var i=e.getValue(),a=!1,s=function(e,t,r,n){var i=e.getValue(),a=t.semi?";":"";if(!i)return"";if("string"==typeof i)return i;var s=ty(e,t,r);if(s)return s;var o=[];switch(i.type){case"JsExpressionRoot":return e.call(r,"node");case"JsonRoot":return rD([e.call(r,"node"),aD]);case"File":return i.program&&i.program.interpreter&&o.push(e.call((function(e){return e.call(r,"interpreter")}),"program")),o.push(e.call(r,"program")),rD(o);case"Program":return i.directives&&e.each((function(e){o.push(r(e),a,aD),Ym(t.originalText,e.getValue(),t)&&o.push(aD)}),"directives"),o.push(e.call((function(e){return kD(e,t,r)}),"body")),o.push(xa.printDanglingComments(e,t,!0)),(i.body.length||i.comments)&&o.push(aD),rD(o);case"EmptyStatement":return"";case"ExpressionStatement":if(i.directive)return rD([eg(i.expression,t,!0),a]);if("__vue_event_binding"===t.parser){var u=e.getParentNode();if("Program"===u.type&&1===u.body.length&&u.body[0]===i)return rD([e.call(r,"expression"),ry(i.expression)?";":""])}return rD([e.call(r,"expression"),Jy(t,e)?"":a]);case"ParenthesizedExpression":return rD(["(",e.call(r,"expression"),")"]);case"AssignmentExpression":return KD(i.left,e.call(r,"left"),rD([" ",i.operator]),i.right,e.call(r,"right"),t);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":var l=e.getParentNode(),p=e.getParentNode(1),h=i!==l.body&&("IfStatement"===l.type||"WhileStatement"===l.type||"SwitchStatement"===l.type||"DoWhileStatement"===l.type),f=function e(t,r,n,i,a){var s=[],o=t.getValue();if(Ey(o)){jm(o.operator,o.left.operator)?s=s.concat(t.call((function(t){return e(t,r,n,!0,a)}),"left")):s.push(t.call(r,"left"));var u=QD(o),c=("|>"===o.operator||"NGPipeExpression"===o.type||"|"===o.operator&&"__vue_expression"===n.parser)&&!fy(n.originalText,o.right,n),l="NGPipeExpression"===o.type?"|":o.operator,p="NGPipeExpression"===o.type&&0!==o.arguments.length?uD(cD(rD([sD,": ",nD(rD([sD,":",fD(" ")]),t.map(r,"arguments").map((function(e){return lD(2,uD(e))})))]))):"",h=rD(u?[l," ",t.call(r,"right"),p]:[c?sD:"",l,c?" ":iD,t.call(r,"right"),p]),f=t.getParentNode(),d=!(a&&"LogicalExpression"===o.type)&&f.type!==o.type&&o.left.type!==o.type&&o.right.type!==o.type;s.push(" ",d?uD(h):h),i&&o.comments&&(s=xa.printComments(t,(function(){return rD(s)}),n))}else s.push(t.call(r));return s}(e,r,t,!1,h);if(h)return rD(f);if(("CallExpression"===l.type||"OptionalCallExpression"===l.type)&&l.callee===i||"UnaryExpression"===l.type||("MemberExpression"===l.type||"OptionalMemberExpression"===l.type)&&!l.computed)return uD(rD([cD(rD([sD,rD(f)])),sD]));var d="ReturnStatement"===l.type||"JSXExpressionContainer"===l.type&&"JSXAttribute"===p.type||"NGPipeExpression"!==i.type&&("NGRoot"===l.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===l.type&&"NGMicrosyntax"===p.type&&1===p.body.length)||i===l.body&&"ArrowFunctionExpression"===l.type||i!==l.body&&"ForStatement"===l.type||"ConditionalExpression"===l.type&&"ReturnStatement"!==p.type&&"CallExpression"!==p.type&&"OptionalCallExpression"!==p.type,m="AssignmentExpression"===l.type||"VariableDeclarator"===l.type||"ClassProperty"===l.type||"TSAbstractClassProperty"===l.type||"ClassPrivateProperty"===l.type||"ObjectProperty"===l.type||"Property"===l.type,y=Ey(i.left)&&jm(i.operator,i.left.operator);if(d||QD(i)&&!y||!QD(i)&&m)return uD(rD(f));if(0===f.length)return"";var D=Ty(i.right),g=rD(D?f.slice(1,-1):f.slice(1)),v=Symbol("logicalChain-"+ ++AD),E=uD(rD([f.length>0?f[0]:"",cD(g)]),{id:v});if(!D)return E;var b=$m(f);return uD(rD([E,fD(cD(b),b,{groupId:v})]));case"AssignmentPattern":return rD([e.call(r,"left")," = ",e.call(r,"right")]);case"TSTypeAssertion":var C=!("ArrayExpression"===i.expression.type||"ObjectExpression"===i.expression.type),x=uD(rD(["<",cD(rD([sD,e.call(r,"typeAnnotation")])),sD,">"])),F=rD([fD("("),cD(rD([sD,e.call(r,"expression")])),sD,fD(")")]);return C?pD([rD([x,e.call(r,"expression")]),rD([x,uD(F,{shouldBreak:!0})]),rD([x,e.call(r,"expression")])]):uD(rD([x,e.call(r,"expression")]));case"OptionalMemberExpression":case"MemberExpression":var w,S=e.getParentNode(),k=0;do{w=e.getParentNode(k),k++}while(w&&("MemberExpression"===w.type||"OptionalMemberExpression"===w.type||"TSNonNullExpression"===w.type));var T=w&&("NewExpression"===w.type||"BindExpression"===w.type||"VariableDeclarator"===w.type&&"Identifier"!==w.id.type||"AssignmentExpression"===w.type&&"Identifier"!==w.left.type)||i.computed||"Identifier"===i.object.type&&"Identifier"===i.property.type&&"MemberExpression"!==S.type&&"OptionalMemberExpression"!==S.type;return rD([e.call(r,"object"),T?HD(e,0,r):uD(cD(rD([sD,HD(e,0,r)])))]);case"MetaProperty":return rD([e.call(r,"meta"),".",e.call(r,"property")]);case"BindExpression":return i.object&&o.push(e.call(r,"object")),o.push(uD(cD(rD([sD,JD(e,0,r)])))),rD(o);case"Identifier":return rD([i.name,WD(e),OD(e,t,r)]);case"V8IntrinsicIdentifier":return rD(["%",i.name]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return rD(["...",e.call(r,"argument"),OD(e,t,r)]);case"FunctionDeclaration":case"FunctionExpression":return o.push(RD(e,r,t)),i.body||o.push(a),rD(o);case"ArrowFunctionExpression":i.async&&o.push("async "),LD(e,t)?o.push(e.call(r,"params",0)):o.push(uD(rD([jD(e,r,t,n&&(n.expandLastArg||n.expandFirstArg),!0),MD(e,r,t)])));var P=xa.printDanglingComments(e,t,!0,(function(e){var r=Zm(t.originalText,e,t);return"=>"===t.originalText.substr(r,2)}));P&&o.push(" ",P),o.push(" =>");var B=e.call((function(e){return r(e,n)}),"body");if(!fy(t.originalText,i.body,t)&&("ArrayExpression"===i.body.type||"ObjectExpression"===i.body.type||"BlockStatement"===i.body.type||Ty(i.body)||Wy(i.body,t.originalText,t)||"ArrowFunctionExpression"===i.body.type||"DoExpression"===i.body.type))return uD(rD([rD(o)," ",B]));if("SequenceExpression"===i.body.type)return uD(rD([rD(o),uD(rD([" (",cD(rD([sD,B])),sD,")"]))]));var N=(n&&n.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!(i.comments&&i.comments.length),I=n&&n.expandLastArg&&FD(t,"all"),O="ConditionalExpression"===i.body.type&&!Jm(i.body,!1);return uD(rD([rD(o),uD(rD([cD(rD([iD,O?fD("","("):"",B,O?fD("",")"):""])),N?rD([fD(I?",":""),sD]):""]))]));case"YieldExpression":return o.push("yield"),i.delegate&&o.push("*"),i.argument&&o.push(" ",e.call(r,"argument")),rD(o);case"AwaitExpression":o.push("await ",e.call(r,"argument"));var _=e.getParentNode();return("CallExpression"===_.type||"OptionalCallExpression"===_.type)&&_.callee===i||("MemberExpression"===_.type||"OptionalMemberExpression"===_.type)&&_.object===i?uD(rD([cD(rD([sD,rD(o)])),sD])):rD(o);case"ImportSpecifier":return i.importKind&&o.push(e.call(r,"importKind")," "),o.push(e.call(r,"imported")),i.local&&i.local.name!==i.imported.name&&o.push(" as ",e.call(r,"local")),rD(o);case"ExportSpecifier":return o.push(e.call(r,"local")),i.exported&&i.exported.name!==i.local.name&&o.push(" as ",e.call(r,"exported")),rD(o);case"ImportNamespaceSpecifier":return o.push("* as "),o.push(e.call(r,"local")),rD(o);case"ImportDefaultSpecifier":return e.call(r,"local");case"TSExportAssignment":return rD(["export = ",e.call(r,"expression"),a]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return $D(e,t,r);case"ExportAllDeclaration":return o.push("export "),"type"===i.exportKind&&o.push("type "),o.push("* from ",e.call(r,"source"),a),rD(o);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return e.call(r,"exported");case"ImportDeclaration":o.push("import "),i.importKind&&"value"!==i.importKind&&o.push(i.importKind+" ");var j=[],L=[];return i.specifiers&&i.specifiers.length>0?(e.each((function(e){var t=e.getValue();"ImportDefaultSpecifier"===t.type||"ImportNamespaceSpecifier"===t.type?j.push(r(e)):L.push(r(e))}),"specifiers"),j.length>0&&o.push(nD(", ",j)),j.length>0&&L.length>0&&o.push(", "),1===L.length&&0===j.length&&i.specifiers&&!i.specifiers.some((function(e){return e.comments}))?o.push(rD(["{",t.bracketSpacing?" ":"",rD(L),t.bracketSpacing?" ":"","}"])):L.length>=1&&o.push(uD(rD(["{",cD(rD([t.bracketSpacing?iD:sD,nD(rD([",",iD]),L)])),fD(FD(t)?",":""),t.bracketSpacing?iD:sD,"}"]))),o.push(" from ")):(i.importKind&&"type"===i.importKind||/{\s*}/.test(t.originalText.slice(t.locStart(i),t.locStart(i.source))))&&o.push("{} from "),o.push(e.call(r,"source"),a),rD(o);case"Import":return"import";case"TSModuleBlock":case"BlockStatement":var R=e.call((function(e){return kD(e,t,r)}),"body"),M=i.body.find((function(e){return"EmptyStatement"!==e.type})),$=i.directives&&i.directives.length>0,q=e.getParentNode(),U=e.getParentNode(1);return M||$||cy(i)||"ArrowFunctionExpression"!==q.type&&"FunctionExpression"!==q.type&&"FunctionDeclaration"!==q.type&&"ObjectMethod"!==q.type&&"ClassMethod"!==q.type&&"ClassPrivateMethod"!==q.type&&"ForStatement"!==q.type&&"WhileStatement"!==q.type&&"DoWhileStatement"!==q.type&&"DoExpression"!==q.type&&("CatchClause"!==q.type||U.finalizer)&&"TSModuleDeclaration"!==q.type?(o.push("{"),$&&e.each((function(e){o.push(cD(rD([aD,r(e),a]))),Ym(t.originalText,e.getValue(),t)&&o.push(aD)}),"directives"),M&&o.push(cD(rD([aD,R]))),o.push(xa.printDanglingComments(e,t)),o.push(aD,"}"),rD(o)):"{}";case"ReturnStatement":return o.push("return"),i.argument&&(Zy(t,i.argument)?o.push(rD([" (",cD(rD([aD,e.call(r,"argument")])),aD,")"])):"LogicalExpression"===i.argument.type||"BinaryExpression"===i.argument.type||"SequenceExpression"===i.argument.type?o.push(uD(rD([fD(" ("," "),cD(rD([sD,e.call(r,"argument")])),sD,fD(")")]))):o.push(" ",e.call(r,"argument"))),cy(i)&&o.push(" ",xa.printDanglingComments(e,t,!0)),o.push(a),rD(o);case"NewExpression":case"OptionalCallExpression":case"CallExpression":var z="NewExpression"===i.type,V=WD(e);if(!z&&"Identifier"===i.callee.type&&("require"===i.callee.name||"define"===i.callee.name)||1===i.arguments.length&&Wy(i.arguments[0],t.originalText,t)||!z&&Hy(i,e.getParentNode()))return rD([z?"new ":"",e.call(r,"callee"),V,_D(e,0,r),rD(["(",nD(", ",e.map(r,"arguments")),")"])]);var W="Identifier"===i.callee.type&&ly(i.callee.trailingComments);if(W&&(i.callee.trailingComments[0].printed=!0),!z&&jy(i.callee))return function(e,t,r){var n=[];function i(e){var r=t.originalText,n=Zm(r,e,t);return")"==r.charAt(n)?Km(r,n+1,t):Ym(r,e,t)}var a=e.getValue();n.unshift({node:a,printed:rD([WD(e),_D(e,0,r),ID(e,t,r)])}),e.call((function(e){return function e(a){var s=a.getValue();"CallExpression"!==s.type&&"OptionalCallExpression"!==s.type||!jy(s.callee)&&"CallExpression"!==s.callee.type&&"OptionalCallExpression"!==s.callee.type?jy(s)?(n.unshift({node:s,needsParens:wm(a,t),printed:xa.printComments(a,(function(){return"OptionalMemberExpression"===s.type||"MemberExpression"===s.type?HD(a,0,r):JD(a,0,r)}),t)}),a.call((function(t){return e(t)}),"object")):"TSNonNullExpression"===s.type?(n.unshift({node:s,printed:xa.printComments(a,(function(){return"!"}),t)}),a.call((function(t){return e(t)}),"expression")):n.unshift({node:s,printed:a.call(r)}):(n.unshift({node:s,printed:rD([xa.printComments(a,(function(){return rD([WD(a),_D(a,0,r),ID(a,t,r)])}),t),i(s)?aD:""])}),a.call((function(t){return e(t)}),"callee"))}(e)}),"callee");for(var s=[],o=[n[0]],u=1;u0&&s.push(o);var p=s.length>=2&&!s[1][0].node.comments&&function(r){var n=e.getParentNode(),i=n&&"ExpressionStatement"===n.type,a=r[1].length&&r[1][0].node.computed;if(1===r[0].length){var s=r[0][0].node;return"ThisExpression"===s.type||"Identifier"===s.type&&(l(s.name)||i&&function(e){return e.length<=t.tabWidth}(s.name)||a)}var o=$m(r[0]).node;return("MemberExpression"===o.type||"OptionalMemberExpression"===o.type)&&"Identifier"===o.property.type&&(l(o.property.name)||a)}(s);function h(e){var t=e.map((function(e){return e.printed}));return e.length>0&&e[e.length-1].needsParens?rD(["("].concat(A(t),[")"])):rD(t)}var f=s.map(h),d=rD(f),m=p?3:2,y=s.slice(0,m).reduce((function(e,t){return e.concat(t)}),[]),D=y.slice(1,-1).some((function(e){return hy(e.node)}))||y.slice(0,-1).some((function(e){return gy(e.node)}))||s[m]&&hy(s[m][0].node);if(s.length<=m&&!D)return Iy(e)?d:uD(d);var g,v,E=$m(p?s.slice(1,2)[0]:s[0]).node,b="CallExpression"!==E.type&&"OptionalCallExpression"!==E.type&&i(E),C=rD([h(s[0]),p?rD(s.slice(1,2).map(h)):"",b?aD:"",function(e){return 0===e.length?"":cD(uD(rD([aD,nD(aD,e.map(h))])))}(s.slice(p?2:1))]),x=n.map((function(e){return e.node})).filter(by);return D||x.length>=3||f.slice(0,-1).some(vD)||(g=$m(f),v=$m($m(s)).node,by(v)&&vD(g)&&x.slice(0,-1).some((function(e){return e.arguments.some(wy)})))?uD(C):rD([vD(d)||b?dD:"",pD([d,C])])}(e,t,r);var H=rD([z?"new ":"",e.call(r,"callee"),V,W?"/*:: ".concat(i.callee.trailingComments[0].value.substring(2).trim()," */"):"",_D(e,0,r),ID(e,t,r)]);return by(i.callee)?uD(H):H;case"TSInterfaceDeclaration":return i.declare&&o.push("declare "),o.push(i.abstract?"abstract ":"",UD(e,0,r),"interface ",e.call(r,"id"),i.typeParameters?e.call(r,"typeParameters"):""," "),i.extends&&i.extends.length&&o.push(uD(cD(rD([sD,"extends ",(1===i.extends.length?vy:cD)(nD(rD([",",iD]),e.map(r,"extends")))," "])))),o.push(e.call(r,"body")),rD(o);case"ObjectTypeInternalSlot":return rD([i.static?"static ":"","[[",e.call(r,"id"),"]]",WD(e),i.method?"":": ",e.call(r,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":var J;J="TSTypeLiteral"===i.type?"members":"TSInterfaceBody"===i.type?"body":"properties";var G="ObjectTypeAnnotation"===i.type,X=[];G&&X.push("indexers","callProperties","internalSlots"),X.push(J);var Q=X.map((function(e){return i[e][0]})).sort((function(e,r){return t.locStart(e)-t.locStart(r)}))[0],Y=e.getParentNode(0),K=G&&Y&&("InterfaceDeclaration"===Y.type||"DeclareInterface"===Y.type||"DeclareClass"===Y.type)&&"body"===e.getName(),Z="TSInterfaceBody"===i.type||K||"ObjectPattern"===i.type&&"FunctionDeclaration"!==Y.type&&"FunctionExpression"!==Y.type&&"ArrowFunctionExpression"!==Y.type&&"ObjectMethod"!==Y.type&&"ClassMethod"!==Y.type&&"ClassPrivateMethod"!==Y.type&&"AssignmentPattern"!==Y.type&&"CatchClause"!==Y.type&&i.properties.some((function(e){return e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)}))||"ObjectPattern"!==i.type&&Q&&Mm(t.originalText,t.locStart(i),t.locStart(Q)),ee=K?";":"TSInterfaceBody"===i.type||"TSTypeLiteral"===i.type?fD(a,";"):",",te=i.exact?"{|":"{",re=i.exact?"|}":"}",ne=[];X.forEach((function(n){e.each((function(e){var n=e.getValue();ne.push({node:n,printed:r(e),loc:t.locStart(n)})}),n)}));var ie=[],ae=ne.sort((function(e,t){return e.loc-t.loc})).map((function(e){var r=rD(ie.concat(uD(e.printed)));return ie=[ee,iD],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!Wm(e.node)||ie.shift(),Ym(t.originalText,e.node,t)&&ie.push(aD),r}));i.inexact&&ae.push(rD(ie.concat(uD("..."))));var se,oe=$m(i[J]),ue=!(oe&&("RestProperty"===oe.type||"RestElement"===oe.type||Wm(oe)||i.inexact));if(0===ae.length){if(!cy(i))return rD([te,re,OD(e,t,r)]);se=uD(rD([te,xa.printDanglingComments(e,t),sD,re,WD(e),OD(e,t,r)]))}else se=rD([te,cD(rD([t.bracketSpacing?iD:sD,rD(ae)])),fD(ue&&(","!==ee||FD(t))?ee:""),rD([t.bracketSpacing?iD:sD,re]),WD(e),OD(e,t,r)]);var ce=e.getParentNode(2);return"ObjectPattern"===i.type&&Y&&ng(Y)&&!i.decorators&&Y.params[0]===i||rg(i)&&ce&&ng(ce)&&ce.params[0].typeAnnotation&&ce.params[0].typeAnnotation.typeAnnotation===i?se:uD(se,{shouldBreak:Z});case"ObjectProperty":case"Property":return i.method||"get"===i.kind||"set"===i.kind?PD(e,t,r):(i.shorthand?o.push(e.call(r,"value")):o.push(KD(i.key,TD(e,t,r),":",i.value,e.call(r,"value"),t)),rD(o));case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":case"TSAbstractMethodDefinition":return i.decorators&&0!==i.decorators.length&&o.push(wD(e,t,r)),i.accessibility&&o.push(i.accessibility+" "),i.static&&o.push("static "),"TSAbstractMethodDefinition"===i.type&&o.push("abstract "),o.push(PD(e,t,r)),rD(o);case"ObjectMethod":return PD(e,t,r);case"Decorator":return rD(["@",e.call(r,"expression"),e.call(r,"callee")]);case"ArrayExpression":case"ArrayPattern":if(0===i.elements.length)cy(i)?o.push(uD(rD(["[",xa.printDanglingComments(e,t),sD,"]"]))):o.push("[]");else{var le=$m(i.elements),pe=!(le&&"RestElement"===le.type),he=pe&&null===le,fe=i.elements.length>1&&i.elements.every((function(e,t,r){var n=e&&e.type;if("ArrayExpression"!==n&&"ObjectExpression"!==n)return!1;var i=r[t+1];if(i&&n!==i.type)return!1;var a="ArrayExpression"===n?"elements":"properties";return e[a]&&e[a].length>1}));o.push(uD(rD(["[",cD(rD([sD,ig(e,t,"elements",r)])),he?",":"",fD(pe&&!he&&FD(t)?",":""),xa.printDanglingComments(e,t,!0),sD,"]"]),{shouldBreak:fe}))}return o.push(WD(e),OD(e,t,r)),rD(o);case"SequenceExpression":var de=e.getParentNode(0);if("ExpressionStatement"===de.type||"ForStatement"===de.type){var me=[];return e.each((function(e){0===e.getName()?me.push(r(e)):me.push(",",cD(rD([iD,r(e)])))}),"expressions"),uD(rD(me))}return uD(rD([nD(rD([",",iD]),e.map(r,"expressions"))]));case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":return"null";case"RegExpLiteral":return tg(i);case"NumericLiteral":return zm(i.extra.raw);case"BigIntLiteral":return(i.bigint||(i.extra?i.extra.raw:i.raw)).toLowerCase();case"BooleanLiteral":case"StringLiteral":case"Literal":if(i.regex)return tg(i.regex);if("number"==typeof i.value)return zm(i.raw);if("string"!=typeof i.value)return""+i.value;var ye=e.getParentNode(1),De="typescript"===t.parser&&"string"==typeof i.value&&ye&&("Program"===ye.type||"BlockStatement"===ye.type);return eg(i,t,De);case"Directive":return e.call(r,"value");case"DirectiveLiteral":return eg(i,t);case"UnaryExpression":return o.push(i.operator),/[a-z]$/.test(i.operator)&&o.push(" "),i.argument.comments&&i.argument.comments.length>0?o.push(uD(rD(["(",cD(rD([sD,e.call(r,"argument")])),sD,")"]))):o.push(e.call(r,"argument")),rD(o);case"UpdateExpression":return o.push(e.call(r,"argument"),i.operator),i.prefix&&o.reverse(),rD(o);case"ConditionalExpression":return SD(e,t,r,{beforeParts:function(){return[e.call(r,"test")]},afterParts:function(e){return[e?sD:""]},shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyName:"test",breakNested:!0});case"VariableDeclaration":var ge,ve=e.map((function(e){return r(e)}),"declarations"),Ee=e.getParentNode(),be="ForStatement"===Ee.type||"ForInStatement"===Ee.type||"ForOfStatement"===Ee.type||"ForAwaitStatement"===Ee.type,Ce=i.declarations.some((function(e){return e.init}));return 1!==ve.length||i.declarations[0].comments?ve.length>0&&(ge=cD(ve[0])):ge=ve[0],o=[i.declare?"declare ":"",i.kind,ge?rD([" ",ge]):"",cD(rD(ve.slice(1).map((function(e){return rD([",",Ce&&!be?aD:iD,e])}))))],be&&Ee.body!==i||o.push(a),uD(rD(o));case"TSTypeAliasDeclaration":i.declare&&o.push("declare ");var xe=YD(i.id,i.typeAnnotation,i.typeAnnotation&&e.call(r,"typeAnnotation"),t);return o.push("type ",e.call(r,"id"),e.call(r,"typeParameters")," =",xe,a),uD(rD(o));case"VariableDeclarator":return KD(i.id,e.call(r,"id")," =",i.init,i.init&&e.call(r,"init"),t);case"WithStatement":return uD(rD(["with (",e.call(r,"object"),")",ZD(i.body,e.call(r,"body"))]));case"IfStatement":var Ae=ZD(i.consequent,e.call(r,"consequent")),Fe=uD(rD(["if (",uD(rD([cD(rD([sD,e.call(r,"test")])),sD])),")",Ae]));if(o.push(Fe),i.alternate){var we=gy(i.consequent)&&i.consequent.comments.some((function(e){return e.trailing&&!dd.isBlockComment(e)}))||Yy(i),Se="BlockStatement"===i.consequent.type&&!we;o.push(Se?" ":aD),cy(i)&&o.push(xa.printDanglingComments(e,t,!0),we?aD:" "),o.push("else",uD(ZD(i.alternate,e.call(r,"alternate"),"IfStatement"===i.alternate.type)))}return rD(o);case"ForStatement":var ke=ZD(i.body,e.call(r,"body")),Te=xa.printDanglingComments(e,t,!0),Pe=Te?rD([Te,sD]):"";return i.init||i.test||i.update?rD([Pe,uD(rD(["for (",uD(rD([cD(rD([sD,e.call(r,"init"),";",iD,e.call(r,"test"),";",iD,e.call(r,"update")])),sD])),")",ke]))]):rD([Pe,uD(rD(["for (;;)",ke]))]);case"WhileStatement":return uD(rD(["while (",uD(rD([cD(rD([sD,e.call(r,"test")])),sD])),")",ZD(i.body,e.call(r,"body"))]));case"ForInStatement":return uD(rD([i.each?"for each (":"for (",e.call(r,"left")," in ",e.call(r,"right"),")",ZD(i.body,e.call(r,"body"))]));case"ForOfStatement":case"ForAwaitStatement":var Be="ForAwaitStatement"===i.type||i.await;return uD(rD(["for",Be?" await":""," (",e.call(r,"left")," of ",e.call(r,"right"),")",ZD(i.body,e.call(r,"body"))]));case"DoWhileStatement":var Ne=ZD(i.body,e.call(r,"body")),Ie=uD(rD(["do",Ne]));return o=[Ie],"BlockStatement"===i.body.type?o.push(" "):o.push(aD),o.push("while ("),o.push(uD(rD([cD(rD([sD,e.call(r,"test")])),sD])),")",a),rD(o);case"DoExpression":return rD(["do ",e.call(r,"body")]);case"BreakStatement":return o.push("break"),i.label&&o.push(" ",e.call(r,"label")),o.push(a),rD(o);case"ContinueStatement":return o.push("continue"),i.label&&o.push(" ",e.call(r,"label")),o.push(a),rD(o);case"LabeledStatement":return"EmptyStatement"===i.body.type?rD([e.call(r,"label"),":;"]):rD([e.call(r,"label"),": ",e.call(r,"body")]);case"TryStatement":return rD(["try ",e.call(r,"block"),i.handler?rD([" ",e.call(r,"handler")]):"",i.finalizer?rD([" finally ",e.call(r,"finalizer")]):""]);case"CatchClause":if(i.param){var Oe=i.param.comments&&i.param.comments.some((function(e){return!dd.isBlockComment(e)||e.leading&&Rm(t.originalText,t.locEnd(e))||e.trailing&&Rm(t.originalText,t.locStart(e),{backwards:!0})})),_e=e.call(r,"param");return rD(["catch ",rD(Oe?["(",cD(rD([sD,_e])),sD,") "]:["(",_e,") "]),e.call(r,"body")])}return rD(["catch ",e.call(r,"body")]);case"ThrowStatement":return rD(["throw ",e.call(r,"argument"),a]);case"SwitchStatement":return rD([uD(rD(["switch (",cD(rD([sD,e.call(r,"discriminant")])),sD,")"]))," {",i.cases.length>0?cD(rD([aD,nD(aD,e.map((function(e){var n=e.getValue();return rD([e.call(r),i.cases.indexOf(n)!==i.cases.length-1&&Ym(t.originalText,n,t)?aD:""])}),"cases"))])):"",aD,"}"]);case"SwitchCase":i.test?o.push("case ",e.call(r,"test"),":"):o.push("default:");var je=i.consequent.filter((function(e){return"EmptyStatement"!==e.type}));if(je.length>0){var Le=e.call((function(e){return kD(e,t,r)}),"consequent");o.push(1===je.length&&"BlockStatement"===je[0].type?rD([" ",Le]):cD(rD([aD,Le])))}return rD(o);case"DebuggerStatement":return rD(["debugger",a]);case"JSXAttribute":if(o.push(e.call(r,"name")),i.value){var Re;if(zy(i.value)){var Me=Ky(i.value).replace(/'/g,"'").replace(/"/g,'"'),$e=Qm(Me,t.jsxSingleQuote?"'":'"'),qe="'"===$e?"'":""";Me=Me.slice(1,-1).replace(new RegExp($e,"g"),qe),Re=rD([$e,Me,$e])}else Re=e.call(r,"value");o.push("=",Re)}return rD(o);case"JSXIdentifier":return""+i.name;case"JSXNamespacedName":return nD(":",[e.call(r,"namespace"),e.call(r,"name")]);case"JSXMemberExpression":return nD(".",[e.call(r,"object"),e.call(r,"property")]);case"TSQualifiedName":return nD(".",[e.call(r,"left"),e.call(r,"right")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return rD(["{",e.call((function(e){var n=rD(["...",r(e)]),i=e.getValue();return i.comments&&i.comments.length?rD([cD(rD([sD,xa.printComments(e,(function(){return n}),t)])),sD]):n}),"JSXSpreadAttribute"===i.type?"argument":"expression"),"}"]);case"JSXExpressionContainer":var Ue=e.getParentNode(0),ze=!("JSXAttribute"===Ue.type&&i.expression.comments&&i.expression.comments.length>0)&&("ArrayExpression"===i.expression.type||"ObjectExpression"===i.expression.type||"ArrowFunctionExpression"===i.expression.type||"CallExpression"===i.expression.type||"OptionalCallExpression"===i.expression.type||"FunctionExpression"===i.expression.type||"JSXEmptyExpression"===i.expression.type||"TemplateLiteral"===i.expression.type||"TaggedTemplateExpression"===i.expression.type||"DoExpression"===i.expression.type||Ty(Ue)&&("ConditionalExpression"===i.expression.type||Ey(i.expression)));return uD(rD(ze?["{",e.call(r,"expression"),mD,"}"]:["{",cD(rD([sD,e.call(r,"expression")])),sD,mD,"}"]));case"JSXFragment":case"JSXElement":var Ve=xa.printComments(e,(function(){return function(e,t,r){var n=e.getValue();if("JSXElement"===n.type&&Cy(n))return rD([e.call(r,"openingElement"),e.call(r,"closingElement")]);var i="JSXElement"===n.type?e.call(r,"openingElement"):e.call(r,"openingFragment"),a="JSXElement"===n.type?e.call(r,"closingElement"):e.call(r,"closingFragment");if(1===n.children.length&&"JSXExpressionContainer"===n.children[0].type&&("TemplateLiteral"===n.children[0].expression.type||"TaggedTemplateExpression"===n.children[0].expression.type))return rD([i,rD(e.map(r,"children")),a]);n.children=n.children.map((function(e){return Py(e)?{type:"JSXText",value:" ",raw:" "}:e}));for(var s=n.children.filter(Ty).length>0,o=n.children.filter((function(e){return"JSXExpressionContainer"===e.type})).length>1,u="JSXElement"===n.type&&n.openingElement.attributes.length>1,c=vD(i)||s||u||o,l=t.singleQuote?"{' '}":'{" "}',p=fD(rD([l,sD])," "),h=n.openingElement&&n.openingElement.name&&"fbt"===n.openingElement.name.name,f=function(e,t,r,n,i){var a=e.getValue(),s=[];return e.map((function(e,t){var o=e.getValue();if(Ny(o)){var u=Ky(o);if(Oy(o)){var c,l=u.split(Qy);if(""===l[0]){if(s.push(""),l.shift(),/\n/.test(l[0])){var p=a.children[t+1];s.push(XD(i,l[1],o,p))}else s.push(n);l.shift()}if(""===$m(l)&&(l.pop(),c=l.pop()),0===l.length)return;if(l.forEach((function(e,t){t%2==1?s.push(iD):s.push(e)})),void 0!==c)if(/\n/.test(c)){var h=a.children[t+1];s.push(XD(i,$m(s),o,h))}else s.push(n);else{var f=a.children[t+1];s.push(GD(i,$m(s),o,f))}}else/\n/.test(u)?u.match(/\n/g).length>1&&(s.push(""),s.push(aD)):(s.push(""),s.push(n))}else{var d=r(e);s.push(d);var m=a.children[t+1];if(m&&Oy(m)){var y=Ky(m).trim().split(Qy)[0];s.push(GD(i,y,o,m))}else s.push(aD)}}),"children"),s}(e,0,r,p,h),d=n.children.filter((function(e){return Oy(e)})).length>0,m=f.length-2;m>=0;m--){var y=""===f[m]&&""===f[m+1],D=f[m]===aD&&""===f[m+1]&&f[m+2]===aD,g=(f[m]===sD||f[m]===aD)&&""===f[m+1]&&f[m+2]===p,v=f[m]===p&&""===f[m+1]&&(f[m+2]===sD||f[m+2]===aD),E=f[m]===p&&""===f[m+1]&&f[m+2]===p,b=f[m]===sD&&""===f[m+1]&&f[m+2]===aD||f[m]===aD&&""===f[m+1]&&f[m+2]===sD;D&&d||y||g||E||b?f.splice(m,2):v&&f.splice(m+1,2)}for(;f.length&&(ED($m(f))||bD($m(f)));)f.pop();for(;f.length&&(ED(f[0])||bD(f[0]))&&(ED(f[1])||bD(f[1]));)f.shift(),f.shift();var C=[];f.forEach((function(e,t){if(e===p){if(1===t&&""===f[t-1])return 2===f.length?void C.push(l):void C.push(rD([l,aD]));if(t===f.length-1)return void C.push(l);if(""===f[t-1]&&f[t-2]===aD)return void C.push(l)}C.push(e),vD(e)&&(c=!0)}));var x=d?hD(C):uD(rD(C),{shouldBreak:!0}),A=uD(rD([i,cD(rD([aD,x])),aD,a]));return c?A:pD([uD(rD([i,rD(f),a])),A])}(e,t,r)}),t);return function(e,t,r){var n=e.getParentNode();if(!n)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[n.type])return t;var i=Xm(e,["ArrowFunctionExpression","CallExpression","JSXExpressionContainer"])||Xm(e,["ArrowFunctionExpression","OptionalCallExpression","JSXExpressionContainer"]),a=wm(e,r);return uD(rD([a?"":fD("("),cD(rD([sD,t])),sD,a?"":fD(")")]),{shouldBreak:i})}(e,Ve,t);case"JSXOpeningElement":var We=e.getValue(),He=We.name&&We.name.comments&&We.name.comments.length>0||We.typeParameters&&We.typeParameters.comments&&We.typeParameters.comments.length>0;if(We.selfClosing&&!We.attributes.length&&!He)return rD(["<",e.call(r,"name"),e.call(r,"typeParameters")," />"]);if(We.attributes&&1===We.attributes.length&&We.attributes[0].value&&zy(We.attributes[0].value)&&!We.attributes[0].value.value.includes("\n")&&!He&&(!We.attributes[0].comments||!We.attributes[0].comments.length))return uD(rD(["<",e.call(r,"name"),e.call(r,"typeParameters")," ",rD(e.map(r,"attributes")),We.selfClosing?" />":">"]));var Je=We.attributes.length&&gy($m(We.attributes)),Ge=!We.attributes.length&&!He||t.jsxBracketSameLine&&(!He||We.attributes.length)&&!Je,Xe=We.attributes&&We.attributes.some((function(e){return e.value&&zy(e.value)&&e.value.value.includes("\n")}));return uD(rD(["<",e.call(r,"name"),e.call(r,"typeParameters"),rD([cD(rD(e.map((function(e){return rD([iD,r(e)])}),"attributes"))),We.selfClosing?iD:Ge?">":sD]),We.selfClosing?"/>":Ge?"":">"]),{shouldBreak:Xe});case"JSXClosingElement":return rD([""]);case"JSXOpeningFragment":case"JSXClosingFragment":var Qe=i.comments&&i.comments.length,Ye=Qe&&!i.comments.every(dd.isBlockComment),Ke="JSXOpeningFragment"===i.type;return rD([Ke?"<":""]);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":var Ze=i.comments&&!i.comments.every(dd.isBlockComment);return rD([xa.printDanglingComments(e,t,!Ze),Ze?aD:""]);case"ClassBody":return i.comments||0!==i.body.length?rD(["{",i.body.length>0?cD(rD([aD,e.call((function(e){return kD(e,t,r)}),"body")])):xa.printDanglingComments(e,t),aD,"}"]):"{}";case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":i.decorators&&0!==i.decorators.length&&o.push(wD(e,t,r)),i.accessibility&&o.push(i.accessibility+" "),i.declare&&o.push("declare "),i.static&&o.push("static "),"TSAbstractClassProperty"===i.type&&o.push("abstract "),i.readonly&&o.push("readonly ");var et=sy(i);return et&&o.push(et),o.push(TD(e,t,r),WD(e),OD(e,t,r)),i.value&&o.push(" =",YD(i.key,i.value,e.call(r,"value"),t)),o.push(a),uD(rD(o));case"ClassDeclaration":case"ClassExpression":return i.declare&&o.push("declare "),o.push(rD(VD(e,t,r))),rD(o);case"TSInterfaceHeritage":return o.push(e.call(r,"expression")),i.typeParameters&&o.push(e.call(r,"typeParameters")),rD(o);case"TemplateElement":return nD(oD,i.value.raw.split(/\r?\n/g));case"TemplateLiteral":var tt=e.map(r,"expressions"),rt=e.getParentNode();if(ky(i,rt)){var nt=function(e,t,r){var n=e.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(n.length>1||n.some((function(e){return 0!==e.length}))){for(var i=[],a=t.map((function(e){return"${"+xD(e,Object.assign({},r,{printWidth:1/0,endOfLine:"lf"})).formatted+"}"})),s=[{hasLineBreak:!1,cells:[]}],o=1;o ":": ",e.call(r,"returnType"),e.call(r,"predicate"),e.call(r,"typeAnnotation")),ht&&o.push(")"),uD(rD(o));case"TSRestType":return rD(["...",e.call(r,"typeAnnotation")]);case"TSOptionalType":return rD([e.call(r,"typeAnnotation"),"?"]);case"FunctionTypeParam":return rD([e.call(r,"name"),WD(e),i.name?": ":"",e.call(r,"typeAnnotation")]);case"GenericTypeAnnotation":return rD([e.call(r,"id"),e.call(r,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return("DeclareInterface"===i.type||i.declare)&&o.push("declare "),o.push("interface"),"DeclareInterface"!==i.type&&"InterfaceDeclaration"!==i.type||o.push(" ",e.call(r,"id"),e.call(r,"typeParameters")),i.extends.length>0&&o.push(uD(cD(rD([iD,"extends ",(1===i.extends.length?vy:cD)(nD(rD([",",iD]),e.map(r,"extends")))])))),o.push(" ",e.call(r,"body")),uD(rD(o));case"ClassImplements":case"InterfaceExtends":return rD([e.call(r,"id"),e.call(r,"typeParameters")]);case"TSClassImplements":return rD([e.call(r,"expression"),e.call(r,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":for(var ft=e.map(r,"types"),dt=[],mt=!1,yt=0;yt1&&(mt=!0),dt.push(" & ",yt>1?cD(ft[yt]):ft[yt])):dt.push(cD(rD([" &",iD,ft[yt]])));return uD(rD(dt));case"TSUnionType":case"UnionTypeAnnotation":var Dt=e.getParentNode(),gt=!("TypeParameterInstantiation"===Dt.type||"TSTypeParameterInstantiation"===Dt.type||"GenericTypeAnnotation"===Dt.type||"TSTypeReference"===Dt.type||"TSTypeAssertion"===Dt.type||"TupleTypeAnnotation"===Dt.type||"TSTupleType"===Dt.type||"FunctionTypeParam"===Dt.type&&!Dt.name||("TypeAlias"===Dt.type||"VariableDeclarator"===Dt.type||"TSTypeAliasDeclaration"===Dt.type)&&fy(t.originalText,i,t)),vt=rg(i),Et=e.map((function(e){var n=e.call(r);return vt||(n=lD(2,n)),xa.printComments(e,(function(){return n}),t)}),"types");if(vt)return nD(" | ",Et);var bt=gt&&!fy(t.originalText,i,t),Ct=rD([fD(rD([bt?iD:"","| "])),nD(rD([iD,"| "]),Et)]);return wm(e,t)?uD(rD([cD(Ct),sD])):"TupleTypeAnnotation"===Dt.type&&Dt.types.length>1||"TSTupleType"===Dt.type&&Dt.elementTypes.length>1?uD(rD([cD(rD([fD(rD(["(",sD])),Ct])),sD,fD(")")])):uD(gt?cD(Ct):Ct);case"NullableTypeAnnotation":return rD(["?",e.call(r,"typeAnnotation")]);case"TSNullKeyword":case"NullLiteralTypeAnnotation":return"null";case"ThisTypeAnnotation":return"this";case"NumberTypeAnnotation":return"number";case"ObjectTypeCallProperty":return i.static&&o.push("static "),o.push(e.call(r,"value")),rD(o);case"ObjectTypeIndexer":var xt=sy(i);return rD([xt||"","[",e.call(r,"id"),i.id?": ":"",e.call(r,"key"),"]: ",e.call(r,"value")]);case"ObjectTypeProperty":var At=sy(i),Ft="";return i.proto?Ft="proto ":i.static&&(Ft="static "),rD([Ft,Sy(i)?i.kind+" ":"",At||"",TD(e,t,r),WD(e),Fy(i,t)?"":": ",e.call(r,"value")]);case"QualifiedTypeIdentifier":return rD([e.call(r,"qualification"),".",e.call(r,"id")]);case"StringLiteralTypeAnnotation":return eg(i,t);case"NumberLiteralTypeAnnotation":return Un.strictEqual(c(i.value),"number"),null!=i.extra?zm(i.extra.raw):zm(i.raw);case"StringTypeAnnotation":return"string";case"DeclareTypeAlias":case"TypeAlias":("DeclareTypeAlias"===i.type||i.declare)&&o.push("declare ");var wt=YD(i.id,i.right,e.call(r,"right"),t);return o.push("type ",e.call(r,"id"),e.call(r,"typeParameters")," =",wt,a),uD(rD(o));case"TypeCastExpression":var St=e.getValue(),kt=St&&St.typeAnnotation&&St.typeAnnotation.range&&t.originalText.substring(St.typeAnnotation.range[0]).match(/^\/\*\s*:/);return rD(["(",e.call(r,"expression"),kt?" /*":"",": ",e.call(r,"typeAnnotation"),kt?" */":"",")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":var Tt=e.getValue(),Pt=Tt.range?t.originalText.substring(0,Tt.range[0]).lastIndexOf("/*"):-1;return Pt>=0&&t.originalText.substring(Pt).match(/^\/\*\s*::/)?rD(["/*:: ",zD(e,t,r,"params")," */"]):zD(e,t,r,"params");case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return zD(e,t,r,"params");case"TSTypeParameter":case"TypeParameter":var Bt=e.getParentNode();if("TSMappedType"===Bt.type)return o.push("[",e.call(r,"name")),i.constraint&&o.push(" in ",e.call(r,"constraint")),o.push("]"),rD(o);var Nt=sy(i);Nt&&o.push(Nt),o.push(e.call(r,"name")),i.bound&&(o.push(": "),o.push(e.call(r,"bound"))),i.constraint&&o.push(" extends ",e.call(r,"constraint")),i.default&&o.push(" = ",e.call(r,"default"));var It=e.getNode(2);return Bt.params&&1===Bt.params.length&&Gy(t)&&!i.constraint&&"ArrowFunctionExpression"===It.type&&o.push(","),rD(o);case"TypeofTypeAnnotation":return rD(["typeof ",e.call(r,"argument")]);case"VoidTypeAnnotation":return"void";case"InferredPredicate":return"%checks";case"DeclaredPredicate":return rD(["%checks(",e.call(r,"value"),")"]);case"TSAbstractKeyword":return"abstract";case"TSAnyKeyword":return"any";case"TSAsyncKeyword":return"async";case"TSBooleanKeyword":return"boolean";case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSNumberKeyword":return"number";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSSymbolKeyword":return"symbol";case"TSStaticKeyword":return"static";case"TSStringKeyword":return"string";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"TSVoidKeyword":return"void";case"TSAsExpression":return rD([e.call(r,"expression")," as ",e.call(r,"typeAnnotation")]);case"TSArrayType":return rD([e.call(r,"elementType"),"[]"]);case"TSPropertySignature":return i.export&&o.push("export "),i.accessibility&&o.push(i.accessibility+" "),i.static&&o.push("static "),i.readonly&&o.push("readonly "),o.push(TD(e,t,r),WD(e)),i.typeAnnotation&&(o.push(": "),o.push(e.call(r,"typeAnnotation"))),i.initializer&&o.push(" = ",e.call(r,"initializer")),rD(o);case"TSParameterProperty":return i.accessibility&&o.push(i.accessibility+" "),i.export&&o.push("export "),i.static&&o.push("static "),i.readonly&&o.push("readonly "),o.push(e.call(r,"parameter")),rD(o);case"TSTypeReference":return rD([e.call(r,"typeName"),zD(e,t,r,"typeParameters")]);case"TSTypeQuery":return rD(["typeof ",e.call(r,"exprName")]);case"TSIndexSignature":var Ot=e.getParentNode();return rD([i.export?"export ":"",i.accessibility?rD([i.accessibility," "]):"",i.static?"static ":"",i.readonly?"readonly ":"","[",i.parameters?rD(e.map(r,"parameters")):"","]: ",e.call(r,"typeAnnotation"),"ClassBody"===Ot.type?a:""]);case"TSTypePredicate":return rD([i.asserts?"asserts ":"",e.call(r,"parameterName"),i.typeAnnotation?rD([" is ",e.call(r,"typeAnnotation")]):""]);case"TSNonNullExpression":return rD([e.call(r,"expression"),"!"]);case"TSThisType":return"this";case"TSImportType":return rD([i.isTypeOf?"typeof ":"","import(",e.call(r,"parameter"),")",i.qualifier?rD([".",e.call(r,"qualifier")]):"",zD(e,t,r,"typeParameters")]);case"TSLiteralType":return e.call(r,"literal");case"TSIndexedAccessType":return rD([e.call(r,"objectType"),"[",e.call(r,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSCallSignatureDeclaration"!==i.type&&o.push("new "),o.push(uD(jD(e,r,t,!1,!0))),i.returnType){var _t="TSConstructorType"===i.type;o.push(_t?" => ":": ",e.call(r,"returnType"))}return rD(o);case"TSTypeOperator":return rD([i.operator," ",e.call(r,"typeAnnotation")]);case"TSMappedType":var jt=Mm(t.originalText,t.locStart(i),t.locEnd(i));return uD(rD(["{",cD(rD([t.bracketSpacing?iD:sD,i.readonly?rD([uy(i.readonly,"readonly")," "]):"",UD(e,0,r),e.call(r,"typeParameter"),i.optional?uy(i.optional,"?"):"",": ",e.call(r,"typeAnnotation"),fD(a,"")])),xa.printDanglingComments(e,t,!0),t.bracketSpacing?iD:sD,"}"]),{shouldBreak:jt});case"TSMethodSignature":return o.push(i.accessibility?rD([i.accessibility," "]):"",i.export?"export ":"",i.static?"static ":"",i.readonly?"readonly ":"",i.computed?"[":"",e.call(r,"key"),i.computed?"]":"",WD(e),jD(e,r,t,!1,!0)),i.returnType&&o.push(": ",e.call(r,"returnType")),uD(rD(o));case"TSNamespaceExportDeclaration":return o.push("export as namespace ",e.call(r,"id")),t.semi&&o.push(";"),uD(rD(o));case"TSEnumDeclaration":return i.declare&&o.push("declare "),i.modifiers&&o.push(UD(e,0,r)),i.const&&o.push("const "),o.push("enum ",e.call(r,"id")," "),0===i.members.length?o.push(uD(rD(["{",xa.printDanglingComments(e,t),sD,"}"]))):o.push(uD(rD(["{",cD(rD([aD,ig(e,t,"members",r),FD(t,"es5")?",":""])),xa.printDanglingComments(e,t,!0),aD,"}"]))),rD(o);case"TSEnumMember":return o.push(e.call(r,"id")),i.initializer&&o.push(" = ",e.call(r,"initializer")),rD(o);case"TSImportEqualsDeclaration":return i.isExport&&o.push("export "),o.push("import ",e.call(r,"id")," = ",e.call(r,"moduleReference")),t.semi&&o.push(";"),uD(rD(o));case"TSExternalModuleReference":return rD(["require(",e.call(r,"expression"),")"]);case"TSModuleDeclaration":var Lt=e.getParentNode(),Rt=Ny(i.id),Mt="TSModuleDeclaration"===Lt.type,$t=i.body&&"TSModuleDeclaration"===i.body.type;if(Mt)o.push(".");else{i.declare&&o.push("declare "),o.push(UD(e,0,r));var qt=t.originalText.slice(t.locStart(i),t.locStart(i.id));"Identifier"===i.id.type&&"global"===i.id.name&&!/namespace|module/.test(qt)||o.push(Rt||/(^|\s)module(\s|$)/.test(qt)?"module ":"namespace ")}return o.push(e.call(r,"id")),$t?o.push(e.call(r,"body")):i.body?o.push(" ",uD(e.call(r,"body"))):o.push(a),rD(o);case"PrivateName":return rD(["#",e.call(r,"id")]);case"TSConditionalType":return SD(e,t,r,{beforeParts:function(){return[e.call(r,"checkType")," ","extends"," ",e.call(r,"extendsType")]},afterParts:function(){return[]},shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyName:"checkType",breakNested:!0});case"TSInferType":return rD(["infer"," ",e.call(r,"typeParameter")]);case"InterpreterDirective":return o.push("#!",i.value,aD),Ym(t.originalText,i,t)&&o.push(aD),rD(o);case"NGRoot":return rD([].concat(e.call(r,"node"),i.node.comments&&0!==i.node.comments.length?rD([" //",i.node.comments[0].value.trimRight()]):[]));case"NGChainedExpression":return uD(nD(rD([";",iD]),e.map((function(e){return yy(e)?r(e):rD(["(",r(e),")"])}),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return rD([i.prefix,":",i.value]);case"NGMicrosyntax":return rD(e.map((function(e,t){return rD([0===t?"":Ly(e.getValue(),t,i)?" ":rD([";",iD]),r(e)])}),"body"));case"NGMicrosyntaxKey":return/^[a-z_$][a-z0-9_$]*(-[a-z_$][a-z0-9_$])*$/i.test(i.name)?i.name:JSON.stringify(i.name);case"NGMicrosyntaxExpression":return rD([e.call(r,"expression"),null===i.alias?"":rD([" as ",e.call(r,"alias")])]);case"NGMicrosyntaxKeyedExpression":var Ut=e.getName(),zt=e.getParentNode(),Vt=Ly(i,Ut,zt)||(1===Ut&&("then"===i.key.name||"else"===i.key.name)||2===Ut&&"else"===i.key.name&&"NGMicrosyntaxKeyedExpression"===zt.body[Ut-1].type&&"then"===zt.body[Ut-1].key.name)&&"NGMicrosyntaxExpression"===zt.body[0].type;return rD([e.call(r,"key"),Vt?" ":": ",e.call(r,"expression")]);case"NGMicrosyntaxLet":return rD(["let ",e.call(r,"key"),null===i.value?"":rD([" = ",e.call(r,"value")])]);case"NGMicrosyntaxAs":return rD([e.call(r,"key")," as ",e.call(r,"alias")]);case"ArgumentPlaceholder":return"?";default:throw new Error("unknown type: "+JSON.stringify(i.type))}}(e,t,r,n);if(!i||bD(s))return s;var o=Om(e),u=[];if("ClassMethod"===i.type||"ClassPrivateMethod"===i.type||"ClassProperty"===i.type||"TSAbstractClassProperty"===i.type||"ClassPrivateProperty"===i.type||"MethodDefinition"===i.type||"TSAbstractMethodDefinition"===i.type);else if(i.decorators&&i.decorators.length>0&&!(o&&t.locStart(o,{ignoreDecorators:!0})>t.locStart(i.decorators[0]))){var l="ClassExpression"===i.type||"ClassDeclaration"===i.type||my(i,t)?aD:iD;e.each((function(e){var t=e.getValue();t=t.expression?t.expression:t.callee,u.push(r(e),l)}),"decorators"),o&&u.unshift(aD)}else _m(i)&&i.declaration&&i.declaration.decorators&&i.declaration.decorators.length>0&&t.locStart(i,{ignoreDecorators:!0})>t.locStart(i.declaration.decorators[0])?e.each((function(e){var t="Decorator"===e.getValue().type?"":"@";u.push(t,r(e),aD)}),"declaration","decorators"):a=wm(e,t);var p=[];if(a&&p.unshift("("),p.push(s),a){var h=e.getValue();py(h)&&(p.push(" /*"),p.push(h.trailingComments[0].value.trimLeft()),p.push("*/"),h.trailingComments[0].printed=!0),p.push(")")}return u.length>0?uD(rD(u.concat(p))):rD(p)},embed:qd,insertPragma:ey,massageAstNode:zd,hasPrettierIgnore:Dy,willPrintOwnComments:function(e){var t=e.getValue(),r=e.getParentNode();return(t&&(Ty(t)||py(t)||r&&("CallExpression"===r.type||"OptionalCallExpression"===r.type)&&(ly(t.leadingComments)||ly(t.trailingComments)))||r&&("JSXSpreadAttribute"===r.type||"JSXSpreadChild"===r.type||"UnionTypeAnnotation"===r.type||"TSUnionType"===r.type||("ClassDeclaration"===r.type||"ClassExpression"===r.type)&&r.superClass===t))&&!Vm(e)},canAttachComment:function(e){return e.type&&"CommentBlock"!==e.type&&"CommentLine"!==e.type&&"Line"!==e.type&&"Block"!==e.type&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type},printComment:function(e,t){var r=e.getValue();switch(r.type){case"CommentBlock":case"Block":if(function(e){var t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every((function(e){return"*"===e.trim()[0]}))}(r)){var n=function(e){var t=e.value.split("\n");return rD(["/*",nD(aD,t.map((function(e,r){return 0===r?e.trimRight():" "+(r x`"},{value:"always",description:"Always include parens. Example: `(x) => x`"}]},bracketSpacing:Ou.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:"JavaScript",type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:"JavaScript",type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:Ou.singleQuote,jsxSingleQuote:{since:"1.15.0",category:"JavaScript",type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:"JavaScript",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:{since:"0.0.0",category:"JavaScript",type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"none",description:"No trailing commas."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:!0,deprecated:"0.19.0",redirect:"es5"},{value:!1,deprecated:"0.19.0",redirect:"none"}]}},fg=["js","node"],dg=[".js","._js",".bones",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],mg=["Jakefile"],yg=["chakra","d8","js","node","rhino","v8","v8-shell"],Dg={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:fg,extensions:dg,filenames:mg,interpreters:yg,languageId:183},gg=Object.freeze({__proto__:null,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:fg,extensions:dg,filenames:mg,interpreters:yg,languageId:183,default:Dg}),vg=[".jsx"],Eg={name:"JSX",type:"programming",group:"JavaScript",extensions:vg,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178},bg=Object.freeze({__proto__:null,name:"JSX",type:"programming",group:"JavaScript",extensions:vg,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178,default:Eg}),Cg=["ts"],xg=["deno","ts-node"],Ag=[".ts"],Fg={name:"TypeScript",type:"programming",color:"#2b7489",aliases:Cg,interpreters:xg,extensions:Ag,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},wg=Object.freeze({__proto__:null,name:"TypeScript",type:"programming",color:"#2b7489",aliases:Cg,interpreters:xg,extensions:Ag,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378,default:Fg}),Sg=[".tsx"],kg={name:"TSX",type:"programming",group:"TypeScript",extensions:Sg,tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924},Tg=Object.freeze({__proto__:null,name:"TSX",type:"programming",group:"TypeScript",extensions:Sg,tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924,default:kg}),Pg=[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],Bg=[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","composer.lock","mcmod.info"],Ng={name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:Pg,filenames:Bg,languageId:174},Ig=Object.freeze({__proto__:null,name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:Pg,filenames:Bg,languageId:174,default:Ng}),Og=["jsonc"],_g=[".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"],jg=[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","jsconfig.json","language-configuration.json","tsconfig.json"],Lg={name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:Og,extensions:_g,filenames:jg,languageId:423},Rg=Object.freeze({__proto__:null,name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:Og,extensions:_g,filenames:jg,languageId:423,default:Lg}),Mg=[".json5"],$g={name:"JSON5",type:"data",extensions:Mg,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},qg=Object.freeze({__proto__:null,name:"JSON5",type:"data",extensions:Mg,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175,default:$g}),Ug=pt(gg),zg=pt(bg),Vg=pt(wg),Wg=pt(Tg),Hg=pt(Ig),Jg=pt(Rg),Gg=pt(qg),Xg={languages:[ju(Ug,(function(e){return Object.assign(e,{since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript","mongo"],interpreters:e.interpreters.concat(["nodejs"])})})),ju(Ug,(function(e){return Object.assign(e,{name:"Flow",since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})})),ju(zg,(function(e){return Object.assign(e,{since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascriptreact"]})})),ju(Vg,(function(e){return Object.assign(e,{since:"1.4.0",parsers:["typescript"],vscodeLanguageIds:["typescript"]})})),ju(Wg,(function(e){return Object.assign(e,{since:"1.4.0",parsers:["typescript"],vscodeLanguageIds:["typescriptreact"]})})),ju(Hg,(function(e){return Object.assign(e,{name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]})})),ju(Hg,(function(e){return Object.assign(e,{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],filenames:e.filenames.concat([".prettierrc"])})})),ju(Jg,(function(e){return Object.assign(e,{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:e.filenames.concat([".eslintrc"])})})),ju(Gg,(function(e){return Object.assign(e,{since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]})}))],options:hg,printers:{estree:ag,"estree-json":pg}},Qg="[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u3000-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d]",Yg="[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",Kg="[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]",Zg=Bi.getLast,ev=["liquidNode","inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],tv=ev.concat(["tableCell","paragraph","heading"]),rv=new RegExp(Yg),nv=new RegExp(Kg),iv={mapAst:function(e,t){return function e(r,n,i){var a=t(r,n,i=i||[]);return Array.isArray(a)?a:((a=Object.assign({},a)).children&&(a.children=a.children.reduce((function(t,r,n){var s=e(r,n,[a].concat(i));return Array.isArray(s)||(s=[s]),t.push.apply(t,s),t}),[])),a)}(e,null,null)},splitText:function(e,t){var r=[];return("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(Qg,")\n(").concat(Qg,")"),"g"),"$1$2")).split(/([ \t\n]+)/).forEach((function(e,t,i){t%2!=1?(0!==t&&t!==i.length-1||""!==e)&&e.split(new RegExp("(".concat(Qg,")"))).forEach((function(e,t,r){(0!==t&&t!==r.length-1||""!==e)&&(t%2!=0?n(nv.test(e)?{type:"word",value:e,kind:"cjk-punctuation",hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:e,kind:rv.test(e)?"k-letter":"cj-letter",hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==e&&n({type:"word",value:e,kind:"non-cjk",hasLeadingPunctuation:nv.test(e[0]),hasTrailingPunctuation:nv.test(Zg(e))}))})):r.push({type:"whitespace",value:/\n/.test(e)?"\n":" "})})),r;function n(e){var t,n,i=Zg(r);i&&"word"===i.type&&("non-cjk"===i.kind&&"cj-letter"===e.kind&&!i.hasTrailingPunctuation||"cj-letter"===i.kind&&"non-cjk"===e.kind&&!e.hasLeadingPunctuation?r.push({type:"whitespace",value:" "}):(t="non-cjk",n="cjk-punctuation",i.kind===t&&e.kind===n||i.kind===n&&e.kind===t||[i.value,e.value].some((function(e){return/\u3000/.test(e)}))||r.push({type:"whitespace",value:""}))),r.push(e)}},punctuationPattern:Kg,getFencedCodeBlockValue:function(e,t){var r=t.slice(e.position.start.offset,e.position.end.offset),n=r.match(/^\s*/)[0].length,i=new RegExp("^\\s{0,".concat(n,"}")),a=r.split("\n"),s=r[n],o=r.slice(n).match(new RegExp("^[".concat(s,"]+")))[0],u=new RegExp("^\\s{0,3}".concat(o)).test(a[a.length-1].slice(c(a.length-1)));return a.slice(1,u?-1:void 0).map((function(e,t){return e.slice(c(t+1)).replace(i,"")})).join("\n");function c(t){return e.position.indent[t-1]-1}},getOrderedListItemInfo:function(e,t){var r=x(t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/),4);return{numberText:r[1],marker:r[2],leadingSpaces:r[3]}},INLINE_NODE_TYPES:ev,INLINE_NODE_WRAPPER_TYPES:tv},av=ea.builders,sv=av.hardline,ov=av.literalline,uv=av.concat,cv=av.markAsRoot,lv=ea.utils.mapDoc,pv=iv.getFencedCodeBlockValue,hv=function(e,t,r,n){var i=e.getValue();if("code"===i.type&&null!==i.lang){var a=i.lang.match(/^[A-Za-z0-9_-]+/),s=function(e){var t=Yt.getSupportInfo(null,{plugins:n.plugins}).languages.find((function(t){return t.name.toLowerCase()===e||t.aliases&&-1!==t.aliases.indexOf(e)||t.extensions&&t.extensions.find((function(t){return t.substring(1)===e}))}));return t?t.parsers[0]:null}(a?a[0]:"");if(s){var o=n.__inJsTemplate?"~":"`",u=o.repeat(Math.max(3,Bi.getMaxContinuousCount(i.value,o)+1)),c=r(pv(i,n.originalText),{parser:s});return cv(uv([u,i.lang,sv,l(c),u]))}}if("yaml"===i.type)return cv(uv(["---",sv,i.value&&i.value.trim()?l(r(i.value,{parser:"yaml"})):"","---"]));switch(i.type){case"importExport":return r(i.value,{parser:"babel"});case"jsx":return r(i.value,{parser:"__js_expression"})}return null;function l(e){return lv(e,(function(e){return"string"==typeof e&&e.includes("\n")?uv(e.split(/(\n)/g).map((function(e,t){return t%2==0?e:ov}))):e}))}},fv=["format","prettier"];function dv(e){var t="@(".concat(fv.join("|"),")"),r=new RegExp(["\x3c!--\\s*".concat(t,"\\s*--\x3e"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(t,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),n=e.match(r);return n&&0===n.index}var mv={startWithPragma:dv,hasPragma:function(e){return dv(vs(e).content.trimLeft())},insertPragma:function(e){var t=vs(e),r="\x3c!-- @".concat(fv[0]," --\x3e");return t.frontMatter?"".concat(t.frontMatter.raw,"\n\n").concat(r,"\n\n").concat(t.content):"".concat(r,"\n\n").concat(t.content)}},yv=iv.getOrderedListItemInfo,Dv=iv.mapAst,gv=iv.splitText,vv=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function Ev(e,t,r){return Dv(e,(function(e){if(!e.children)return e;var n=e.children.reduce((function(e,n){var i=e[e.length-1];return i&&t(i,n)?e.splice(-1,1,r(i,n)):e.push(n),e}),[]);return Object.assign({},e,{children:n})}))}var bv=function(e,t){return e=function(e){return Ev(e,(function(e,t){return"importExport"===e.type&&"importExport"===t.type}),(function(e,t){return{type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}}}))}(e=function(e){return Dv(e,(function(e){return"import"!==e.type&&"export"!==e.type?e:Object.assign({},e,{type:"importExport"})}))}(e=function(e,t){return Dv(e,(function(e,r,n){var i=x(n,1)[0];if("text"!==e.type)return e;var a=e.value;return"paragraph"===i.type&&(0===r&&(a=a.trimLeft()),r===i.children.length-1&&(a=a.trimRight())),{type:"sentence",position:e.position,children:gv(a,t)}}))}(e=function(e,t){return Dv(e,(function(e,n,i){if("list"===e.type&&0!==e.children.length){for(var a=0;a1)return!0;var s=r(i);if(-1===s)return!1;if(1===e.children.length)return s%t.tabWidth==0;var o=r(a);return s===o&&(s%t.tabWidth==0||yv(a,t.originalText).leadingSpaces.length>1)}(e)}return e}));function r(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}}(e=function(e,t){return Dv(e,(function(e,r,n){if("code"===e.type){var i=/^\n?( {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=i,i)for(var a=0;au?u:s));return Av([c,Iv(c,e.call(r))])}})])}function Xv(e,t){return function(e,t,r){r=r||function(){return!0};var n=-1,i=!0,a=!1,s=void 0;try{for(var o,u=t.children[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var c=o.value;if(c.type===e.type&&r(c)?n++:n=-1,c===e)return n}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}}(e,t,(function(t){return t.ordered===e.ordered}))}function Qv(e,t){for(var r,n=[].concat(t),i=-1;r=e.getParentNode(++i);)if(-1!==n.indexOf(r.type))return i;return-1}function Yv(e,t){var r=Qv(e,t);return-1===r?null:e.getParentNode(r)}function Kv(e,t,r){if("preserve"===r.proseWrap&&"\n"===t)return Tv;var n="always"===r.proseWrap&&!Yv(e,Hv);return""!==t?n?wv:" ":n?Pv:""}function Zv(e,t,r){var n=[],i=null,a=e.getValue().children;return a.forEach((function(e,t){switch(rE(e)){case"start":null===i&&(i={index:t,offset:e.position.end.offset});break;case"end":null!==i&&(n.push({start:i,end:{index:t,offset:e.position.start.offset}}),i=null)}})),eE(e,t,r,{processor:function(e,i){if(0!==n.length){var s=n[0];if(i===s.start.index)return Av([a[s.start.index].value,t.originalText.slice(s.start.offset,s.end.offset),a[s.end.index].value]);if(s.start.index$/);return null!==t&&(t[1]?t[1]:"next")}function nE(e){return e&&-1!==Uv.indexOf(e.type)}function iE(e){return e&&/\n+$/.test(e.value)}function aE(e,t){var r=t.prevNode&&"list"===t.prevNode.type,n="code"===e.type&&e.isIndented;return r&&n}function sE(e){return jv(e,(function(e){if(!e.parts)return e;if("concat"===e.type&&1===e.parts.length)return e.parts[0];var t=[];return e.parts.forEach((function(e){"concat"===e.type?t.push.apply(t,e.parts):""!==e&&t.push(e)})),Object.assign({},e,{parts:cE(t)})}))}function oE(e,t){var r=[" "].concat(t||[]);return new RegExp(r.map((function(e){return"\\".concat(e)})).join("|")).test(e)?"<".concat(e,">"):e}function uE(e,t,r){if(null==r&&(r=!0),!e)return"";if(r)return" "+uE(e,t,!1);if(e.includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");var n=e.split("'").length-1,i=e.split('"').length-1,a=n>i?'"':i>n?"'":t.singleQuote?"'":'"';return e=e.replace(new RegExp("(".concat(a,")"),"g"),"\\$1"),"".concat(a).concat(e).concat(a)}function cE(e){return e.reduce((function(e,t){var r=Bi.getLast(e);return"string"==typeof r&&"string"==typeof t?e.splice(-1,1,r+t):e.push(t),e}),[])}var lE={preprocess:bv,print:function(e,t,r){var n=e.getValue();if(function(e){var t=Yv(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return Av($v(t.originalText.slice(n.position.start.offset,n.position.end.offset),t).map((function(r){return"word"===r.type?r.value:""===r.value?"":Kv(e,r.value,t)})));switch(n.type){case"root":return 0===n.children.length?"":Av([sE(Zv(e,t,r)),-1===Wv.indexOf(tE(n).type)?Tv:""]);case"paragraph":return eE(e,t,r,{postprocessor:Nv});case"sentence":return eE(e,t,r);case"word":return n.value.replace(/[*$]/g,"\\$&").replace(new RegExp(["(^|".concat(qv,")(_+)"),"(_+)(".concat(qv,"|$)")].join("|"),"g"),(function(e,t,r,n,i){return(r?"".concat(t).concat(r):"".concat(n).concat(i)).replace(/_/g,"\\_")}));case"whitespace":var i=e.getParentNode(),a=i.children.indexOf(n),s=i.children[a+1],o=s&&/^>|^([-+*]|#{1,6}|[0-9]+[.)])$/.test(s.value)?"never":t.proseWrap;return Kv(e,n.value,{proseWrap:o});case"emphasis":var u=e.getParentNode(),c=u.children.indexOf(n),l=u.children[c-1],p=u.children[c+1],h=l&&"sentence"===l.type&&l.children.length>0&&"word"===Bi.getLast(l.children).type&&!Bi.getLast(l.children).hasTrailingPunctuation||p&&"sentence"===p.type&&p.children.length>0&&"word"===p.children[0].type&&!p.children[0].hasLeadingPunctuation||Yv(e,"emphasis")?"*":"_";return Av([h,eE(e,t,r),h]);case"strong":return Av(["**",eE(e,t,r),"**"]);case"delete":return Av(["~~",eE(e,t,r),"~~"]);case"inlineCode":var f=Bi.getMinNotPresentContinuousCount(n.value,"`"),d="`".repeat(f||1),m=f?" ":"";return Av([d,m,n.value,m,d]);case"link":switch(t.originalText[n.position.start.offset]){case"<":var y=n.url.startsWith("mailto:")&&"mailto:"!==t.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+"mailto:".length)?n.url.slice("mailto:".length):n.url;return Av(["<",y,">"]);case"[":return Av(["[",eE(e,t,r),"](",oE(n.url,")"),uE(n.title,t),")"]);default:return t.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return Av(["![",n.alt||"","](",oE(n.url,")"),uE(n.title,t),")"]);case"blockquote":return Av(["> ",Iv("> ",eE(e,t,r))]);case"heading":return Av(["#".repeat(n.depth)+" ",eE(e,t,r)]);case"code":if(n.isIndented){var D=" ".repeat(4);return Iv(D,Av([D,Av(Vv(n.value,Tv))]))}var g=t.__inJsTemplate?"~":"`",v=g.repeat(Math.max(3,Bi.getMaxContinuousCount(n.value,g)+1));return Av([v,n.lang||"",Tv,Av(Vv(Rv(n,t.originalText),Tv)),Tv,v]);case"yaml":case"toml":return t.originalText.slice(n.position.start.offset,n.position.end.offset);case"html":var E=e.getParentNode(),b="root"===E.type&&Bi.getLast(E.children)===n?n.value.trimRight():n.value,C=/^$/.test(b);return Av(Vv(b,C?Tv:kv(Sv)));case"list":var x=Xv(n,e.getParentNode()),A=n.ordered&&n.children.length>1&&1==+Mv(n.children[1],t.originalText).numberText;return eE(e,t,r,{processor:function(e,i){var a,s=(a=n.ordered?(0===i?n.start:A?1:n.start+i)+(x%2==0?". ":") "):x%2==0?"- ":"* ",n.isAligned||n.hasIndentedCodeblock?function(e,t){var r,n=0==(r=e.length%t.tabWidth)?0:t.tabWidth-r;return e+" ".repeat(n>=4?0:n)}(a,t):a);return Av([s,Iv(" ".repeat(s.length),Gv(e,t,r,s))])}});case"thematicBreak":var F=Qv(e,"list");return-1===F?"---":Xv(e.getParentNode(F),e.getParentNode(F+1))%2==0?"***":"---";case"linkReference":return Av(["[",eE(e,t,r),"]","full"===n.referenceType?Av(["[",n.identifier,"]"]):"collapsed"===n.referenceType?"[]":""]);case"imageReference":switch(n.referenceType){case"full":return Av(["![",n.alt||"","][",n.identifier,"]"]);default:return Av(["![",n.alt,"]","collapsed"===n.referenceType?"[]":""])}case"definition":var w="always"===t.proseWrap?wv:" ";return _v(Av([Av(["[",n.identifier,"]:"]),Ov(Av([w,oE(n.url),null===n.title?"":Av([w,uE(n.title,t,!1)])]))]));case"footnote":return Av(["[^",eE(e,t,r),"]"]);case"footnoteReference":return Av(["[^",n.identifier,"]"]);case"footnoteDefinition":var S=e.getParentNode().children[e.getName()+1],k=1===n.children.length&&"paragraph"===n.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&n.children[0].position.start.line===n.children[0].position.end.line);return Av(["[^",n.identifier,"]: ",k?eE(e,t,r):_v(Av([Iv(" ".repeat(t.tabWidth),eE(e,t,r,{processor:function(e,t){return 0===t?_v(Av([Pv,Pv,e.call(r)])):e.call(r)}})),S&&"footnoteDefinition"===S.type?Pv:""]))]);case"table":return function(e,t,r){var n=Tv.parts[0],i=e.getValue(),a=[];e.map((function(e){var n=[];e.map((function(e){n.push(Lv(e.call(r),t).formatted)}),"children"),a.push(n)}),"children");var s=a.reduce((function(e,t){return e.map((function(e,r){return Math.max(e,Bi.getStringWidth(t[r]))}))}),a[0].map((function(){return 3}))),o=Fv(n,[l(a[0]),c(),Fv(n,a.slice(1).map((function(e){return l(e)})))]);if("never"!==t.proseWrap)return Av([xv,o]);var u=Fv(n,[l(a[0],!0),c(!0),Fv(n,a.slice(1).map((function(e){return l(e,!0)})))]);return Av([xv,_v(Bv(u,o))]);function c(e){return Av(["| ",Fv(" | ",s.map((function(t,r){var n=e?3:t;switch(i.align[r]){case"left":return":"+"-".repeat(n-1);case"right":return"-".repeat(n-1)+":";case"center":return":"+"-".repeat(n-2)+":";default:return"-".repeat(n)}})))," |"])}function l(e,t){return Av(["| ",Fv(" | ",t?e:e.map((function(e,t){switch(i.align[t]){case"right":return r=e,n=s[t],a=n-Bi.getStringWidth(r),Av([" ".repeat(a),r]);case"center":return function(e,t){var r=t-Bi.getStringWidth(e),n=Math.floor(r/2),i=r-n;return Av([" ".repeat(n),e," ".repeat(i)])}(e,s[t]);default:return function(e,t){var r=t-Bi.getStringWidth(e);return Av([e," ".repeat(r)])}(e,s[t])}var r,n,a})))," |"])}}(e,t,r);case"tableCell":return eE(e,t,r);case"break":return/\s/.test(t.originalText[n.position.start.offset])?Av([" ",kv(Sv)]):Av(["\\",Tv]);case"liquidNode":return Av(Vv(n.value,Tv));case"importExport":case"jsx":return n.value;case"math":return Av(["$$",Tv,n.value?Av([Av(Vv(n.value,Tv)),Tv]):"","$$"]);case"inlineMath":return t.originalText.slice(t.locStart(n),t.locEnd(n));case"tableRow":case"listItem":default:throw new Error("Unknown markdown type ".concat(JSON.stringify(n.type)))}},embed:hv,massageAstNode:function(e,t,r){return delete t.position,delete t.raw,"code"!==e.type&&"yaml"!==e.type&&"import"!==e.type&&"export"!==e.type&&"jsx"!==e.type||delete t.value,"list"===e.type&&delete t.isAligned,"text"===e.type?null:("inlineCode"===e.type&&(t.value=e.value.replace(/[ \t\n]+/g," ")),r&&"root"===r.type&&r.children.length>0&&(r.children[0]===e||("yaml"===r.children[0].type||"toml"===r.children[0].type)&&r.children[1]===e)&&"html"===e.type&&mv.startWithPragma(e.value)?null:void 0)},hasPrettierIgnore:function(e){var t=+e.getName();return 0!==t&&"next"===rE(e.getParentNode().children[t-1])},insertPragma:mv.insertPragma},pE={proseWrap:Ou.proseWrap,singleQuote:Ou.singleQuote},hE=["pandoc"],fE=[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".workbook"],dE=["contents.lr"],mE={name:"Markdown",type:"prose",aliases:hE,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:fE,filenames:dE,tmScope:"source.gfm",languageId:222},yE=pt(Object.freeze({__proto__:null,name:"Markdown",type:"prose",aliases:hE,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:fE,filenames:dE,tmScope:"source.gfm",languageId:222,default:mE})),DE={languages:[ju(yE,(function(e){return Object.assign(e,{since:"1.8.0",parsers:["remark"],vscodeLanguageIds:["markdown"],filenames:e.filenames.concat(["README"]),extensions:e.extensions.filter((function(e){return".mdx"!==e}))})})),ju(yE,(function(e){return Object.assign(e,{name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]})}))],options:pE,printers:{mdast:lE}},gE=function(e){return/^\s*@(prettier|format)\s*$/.test(e)},vE=function(e){return"# @format\n\n".concat(e)},EE=Bi.getLast;function bE(e,t){return e&&"string"==typeof e.type&&(!t||-1!==t.indexOf(e.type))}function CE(e){return"prettier-ignore"===e.value.trim()}function xE(e){return e&&e.leadingComments&&0!==e.leadingComments.length}function AE(e){return e&&e.middleComments&&0!==e.middleComments.length}function FE(e){return e&&e.indicatorComment}function wE(e){return e&&e.trailingComment}function SE(e){return e&&e.endComments&&0!==e.endComments.length}function kE(e){var t=[],r=void 0,n=!0,i=!1,a=void 0;try{for(var s,o=e.split(/( +)/g)[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value;" "!==u?" "===r?t.push(u):t.push((t.pop()||"")+u):void 0===r&&t.unshift(""),r=u}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return" "===r&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var TE={getLast:EE,getAncestorCount:function(e,t){for(var r=0,n=e.stack.length-1,i=0;i=0&&0===t[n].length;n--)r++;return 0===r?t:r>=2&&!i?t.slice(0,-(r-1)):t.slice(0,-r)}},getFlowScalarLineContents:function(e,t,r){var n=t.split("\n").map((function(e,t,r){return 0===t&&t===r.length-1?e:0!==t&&t!==r.length-1?e.trim():0===t?e.trimRight():e.trimLeft()}));return"preserve"===r.proseWrap?n.map((function(e){return 0===e.length?[]:[e]})):n.map((function(e){return 0===e.length?[]:kE(e)})).reduce((function(t,r,i){return 0===i||0===n[i-1].length||0===r.length||"quoteDouble"===e&&EE(EE(t)).endsWith("\\")?t.concat([r]):t.concat([t.pop().concat(r)])}),[]).map((function(e){return"never"===r.proseWrap?[e.join(" ")]:e}))},getLastDescendantNode:function e(t){return"children"in t&&0!==t.children.length?e(EE(t.children)):t},hasPrettierIgnore:function(e){var t=e.getValue();if("documentBody"===t.type){var r=e.getParentNode();return SE(r.head)&&CE(EE(r.head.endComments))}return xE(t)&&CE(EE(t.leadingComments))},hasLeadingComments:xE,hasMiddleComments:AE,hasIndicatorComment:FE,hasTrailingComment:wE,hasEndComments:SE},PE=vE,BE=gE,NE=TE.getAncestorCount,IE=TE.getBlockValueLineContents,OE=TE.getFlowScalarLineContents,_E=TE.getLast,jE=TE.getLastDescendantNode,LE=TE.hasLeadingComments,RE=TE.hasMiddleComments,ME=TE.hasIndicatorComment,$E=TE.hasTrailingComment,qE=TE.hasEndComments,UE=TE.hasPrettierIgnore,zE=TE.isLastDescendantNode,VE=TE.isNextLineEmpty,WE=TE.isNode,HE=TE.isEmptyNode,JE=TE.defineShortcut,GE=TE.mapNode,XE=ea.builders,QE=XE.conditionalGroup,YE=XE.breakParent,KE=XE.concat,ZE=XE.dedent,eb=XE.dedentToRoot,tb=XE.fill,rb=XE.group,nb=XE.hardline,ib=XE.ifBreak,ab=XE.join,sb=XE.line,ob=XE.lineSuffix,ub=XE.literalline,cb=XE.markAsRoot,lb=XE.softline,pb=Bi.replaceEndOfLineWith;function hb(e){switch(e.type){case"document":JE(e,"head",(function(){return e.children[0]})),JE(e,"body",(function(){return e.children[1]}));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":JE(e,"content",(function(){return e.children[0]}));break;case"mappingItem":case"flowMappingItem":JE(e,"key",(function(){return e.children[0]})),JE(e,"value",(function(){return e.children[1]}))}return e}function fb(e,t,r,n,i){switch(e.type){case"root":return KE([ab(nb,r.map((function(t,n){var a=e.children[n],s=e.children[n+1];return KE([i(t),yb(a,s)?KE([nb,"...",$E(a)?KE([" ",r.call(i,"trailingComment")]):""]):!s||$E(s.head)?"":KE([nb,"---"])])}),"children")),0===e.children.length||(F=jE(e),WE(F,["blockLiteral","blockFolded"])&&"keep"===F.chomping)?"":nb]);case"document":var a=t.children[r.getName()+1];return ab(nb,["head"===Db(e,a,t,n)?ab(nb,[0===e.head.children.length&&0===e.head.endComments.length?"":r.call(i,"head"),KE(["---",$E(e.head)?KE([" ",r.call(i,"head","trailingComment")]):""])].filter(Boolean)):"",(A=e,0!==A.body.children.length||qE(A.body)?r.call(i,"body"):"")].filter(Boolean));case"documentHead":return ab(nb,[].concat(r.map(i,"children"),r.map(i,"endComments")));case"documentBody":var s=ab(nb,r.map(i,"children")).parts,o=ab(nb,r.map(i,"endComments")).parts,u=0===s.length||0===o.length?"":function(e){return WE(e,["blockFolded","blockLiteral"])?"keep"===e.chomping?"":KE([nb,nb]):nb}(jE(e));return KE([].concat(s,u,o));case"directive":return KE(["%",ab(" ",[e.name].concat(e.parameters))]);case"comment":return KE(["#",e.value]);case"alias":return KE(["*",e.value]);case"tag":return n.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return KE(["&",e.value]);case"plain":return bb(e.type,n.originalText.slice(e.position.start.offset,e.position.end.offset),n);case"quoteDouble":case"quoteSingle":var c=n.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&c.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(c)){var l="quoteDouble"===e.type?'"':"'";return KE([l,bb(e.type,c,n),l])}if(c.includes('"'))return KE(["'",bb(e.type,"quoteDouble"===e.type?c.replace(/\\"/g,'"').replace(/'/g,"'".repeat(2)):c,n),"'"]);if(c.includes("'"))return KE(['"',bb(e.type,"quoteSingle"===e.type?c.replace(/''/g,"'"):c,n),'"']);var p=n.singleQuote?"'":'"';return KE([p,bb(e.type,c,n),p]);case"blockFolded":case"blockLiteral":var h=NE(r,(function(e){return WE(e,["sequence","mapping"])})),f=zE(r);return KE(["blockFolded"===e.type?">":"|",null===e.indent?"":e.indent.toString(),"clip"===e.chomping?"":"keep"===e.chomping?"+":"-",ME(e)?KE([" ",r.call(i,"indicatorComment")]):"",(null===e.indent?ZE:eb)(db(null===e.indent?n.tabWidth:e.indent-1+h,KE(IE(e,{parentIndent:h,isLastDescendant:f,options:n}).reduce((function(t,r,n,i){return t.concat(0===n?nb:"",tb(ab(sb,r).parts),n!==i.length-1?0===r.length?nb:cb(ub):"keep"===e.chomping&&f?0===r.length?eb(nb):eb(ub):"")}),[]))))]);case"sequence":return ab(nb,r.map(i,"children"));case"sequenceItem":return KE(["- ",db(2,e.content?r.call(i,"content"):"")]);case"mappingKey":case"mappingValue":return e.content?r.call(i,"content"):"";case"mapping":return ab(nb,r.map(i,"children"));case"mappingItem":case"flowMappingItem":var d=HE(e.key),m=HE(e.value);if(d&&m)return KE([": "]);var y=r.call(i,"key"),D=r.call(i,"value");if(m)return"flowMappingItem"===e.type&&"flowMapping"===t.type?y:"mappingItem"!==e.type||!gb(e.key.content,n)||$E(e.key.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?KE(["? ",db(2,y)]):KE([y,vb(e)?" ":"",":"]);if(d)return KE([": ",db(2,D)]);var g=Symbol("mappingKey");return LE(e.value)||!mb(e.key.content)?KE(["? ",db(2,y),nb,ab("",r.map(i,"value","leadingComments").map((function(e){return KE([e,nb])}))),": ",db(2,D)]):!function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(e.key.content)||LE(e.key.content)||RE(e.key.content)||$E(e.key.content)||qE(e.key)||LE(e.value.content)||RE(e.value.content)||qE(e.value)||!gb(e.value.content,n)?QE([KE([rb(KE([ib("? "),rb(db(2,y),{id:g})])),ib(KE([nb,": ",db(2,D)]),w(KE([vb(e)?" ":"",":",LE(e.value.content)||qE(e.value)&&e.value.content&&!WE(e.value.content,["mapping","sequence"])||"mapping"===t.type&&$E(e.key.content)&&mb(e.value.content)||WE(e.value.content,["mapping","sequence"])&&null===e.value.content.tag&&null===e.value.content.anchor?nb:e.value.content?sb:"",D])),{groupId:g})])]):KE([y,vb(e)?" ":"",": ",D]);case"flowMapping":case"flowSequence":var v="flowMapping"===e.type?"{":"[",E="flowMapping"===e.type?"}":"]",b="flowMapping"===e.type&&0!==e.children.length&&n.bracketSpacing?sb:lb,C=0!==e.children.length&&"flowMappingItem"===(x=_E(e.children)).type&&HE(x.key)&&HE(x.value);return KE([v,w(KE([b,KE(r.map((function(t,r){return KE([i(t),r===e.children.length-1?"":KE([",",sb,e.children[r].position.start.line!==e.children[r+1].position.start.line?Eb(t,n.originalText):""])])}),"children")),ib(",","")])),C?"":b,E]);case"flowSequenceItem":return r.call(i,"content");default:throw new Error("Unexpected node type ".concat(e.type))}var x,A,F;function w(e){return XE.align(" ".repeat(n.tabWidth),e)}}function db(e,t){return"number"==typeof e&&e>0?XE.align(" ".repeat(e),t):XE.align(e,t)}function mb(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}function yb(e,t){return $E(e)||t&&(0!==t.head.children.length||qE(t.head))}function Db(e,t,r,n){return r.children[0]===e&&/---(\s|$)/.test(n.originalText.slice(n.locStart(e),n.locStart(e)+4))||0!==e.head.children.length||qE(e.head)||$E(e.head)?"head":!yb(e,t)&&!!t&&"root"}function gb(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return-1===e.value.indexOf("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}function vb(e){return e.key.content&&"alias"===e.key.content.type}function Eb(e,t){var r=e.getValue(),n=e.stack[0];return n.isNextEmptyLinePrintedChecklist=n.isNextEmptyLinePrintedChecklist||[],!n.isNextEmptyLinePrintedChecklist[r.position.end.line]&&VE(r,t)?(n.isNextEmptyLinePrintedChecklist[r.position.end.line]=!0,lb):""}function bb(e,t,r){var n=OE(e,t,r);return ab(nb,n.map((function(e){return tb(ab(sb,e).parts)})))}var Cb={preprocess:function(e){return GE(e,hb)},print:function(e,t,r){var n=e.getValue(),i=e.getParentNode(),a=n.tag?e.call(r,"tag"):"",s=n.anchor?e.call(r,"anchor"):"",o=WE(n,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!zE(e)?Eb(e,t.originalText):"";return KE(["mappingValue"!==n.type&&LE(n)?KE([ab(nb,e.map(r,"leadingComments")),nb]):"",a,a&&s?" ":"",s,a||s?WE(n,["sequence","mapping"])&&!RE(n)?nb:" ":"",RE(n)?KE([1===n.middleComments.length?"":nb,ab(nb,e.map(r,"middleComments")),nb]):"",UE(e)?KE(pb(t.originalText.slice(n.position.start.offset,n.position.end.offset),ub)):rb(fb(n,i,e,t,r)),$E(n)&&!WE(n,["document","documentHead"])?ob(KE(["mappingValue"!==n.type||n.content?" ":"","mappingKey"===i.type&&"mapping"===e.getParentNode(2).type&&mb(n)?"":YE,e.call(r,"trailingComment")])):"",o,qE(n)&&!WE(n,["documentHead","documentBody"])?db("sequenceItem"===n.type?2:0,KE([nb,ab(nb,e.map(r,"endComments"))])):""])},massageAstNode:function(e,t){if(WE(t))switch(delete t.position,t.type){case"comment":if(BE(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:PE},xb={bracketSpacing:Ou.bracketSpacing,singleQuote:Ou.singleQuote,proseWrap:Ou.proseWrap},Ab=["yml"],Fb=[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yml.mysql"],wb=[".clang-format",".clang-tidy",".gemrc","glide.lock"],Sb={name:"YAML",type:"data",tmScope:"source.yaml",aliases:Ab,extensions:Fb,filenames:wb,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},kb={languages:[ju(pt(Object.freeze({__proto__:null,name:"YAML",type:"data",tmScope:"source.yaml",aliases:Ab,extensions:Fb,filenames:wb,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407,default:Sb})),(function(e){return Object.assign(e,{since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml"]})}))],printers:{yaml:Cb},options:xb},Tb=Gt.version,Pb=Yt.getSupportInfo,Bb=[Zu,vc,Xc,ed,Xg,DE,kb],Nb=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Ib(e){return function(){var t=Array.from(arguments),r=t[1]&&t[1].plugins||[];return Nb(r)||(r=Object.values(r)),t[1]=Object.assign({},t[1],{plugins:Bb.concat(r)}),e.apply(null,t)}}var Ob=Ib(es);return{formatWithCursor:Ob,format:function(e,t){return Ob(e,t).formatted},check:function(e,t){return Ob(e,t).formatted===e},doc:ea,getSupportInfo:Ib(Pb),version:Tb,util:ra,__debug:{parse:Ib(ts),formatAST:Ib(rs),formatDoc:Ib(ns),printToDoc:Ib(is),printDocToString:Ib(as)}}},e.exports=r()}).call(this,r(6))},function(e,t,r){!function(e){"use strict";var t=function(e,t){var r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e,t){return e(t={exports:{}},t.exports),t.exports}var i,a=Object.freeze({__proto__:null,default:{EOL:"\n"}}),s=n((function(e){e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");var t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return null;var r=t.filter((function(e){return"\r\n"===e})).length;return r>t.length-r?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}})),o=(s.graceful,(i=a)&&i.default||i),u=n((function(e,t){function r(){var e=o;return r=function(){return e},e}function n(){var e,t=(e=s)&&e.__esModule?e:{default:e};return n=function(){return t},t}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){var t=e.match(u);return t?t[0].trimLeft():""},t.strip=function(e){var t=e.match(u);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return d(e).pragmas},t.parseWithComments=d,t.print=function(e){var t=e.comments,i=void 0===t?"":t,a=e.pragmas,s=void 0===a?{}:a,o=(0,n().default)(i)||r().EOL,u=Object.keys(s),c=u.map((function(e){return m(e,s[e])})).reduce((function(e,t){return e.concat(t)}),[]).map((function(e){return" * "+e+o})).join("");if(!i){if(0===u.length)return"";if(1===u.length&&!Array.isArray(s[u[0]])){var l=s[u[0]];return"".concat("/**"," ").concat(m(u[0],l)[0]).concat(" */")}}var p=i.split(o).map((function(e){return"".concat(" *"," ").concat(e)})).join(o)+o;return"/**"+o+(i?p:"")+(i&&u.length?" *"+o:"")+c+" */"};var i=/\*\/$/,a=/^\/\*\*/,u=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,c=/(^|\s+)\/\/([^\r\n]*)/g,l=/^(\r?\n)+/,p=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,h=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,f=/(\r?\n|^) *\* ?/g;function d(e){var t=(0,n().default)(e)||r().EOL;e=e.replace(a,"").replace(i,"").replace(f,"$1");for(var s="";s!==e;)s=e,e=e.replace(p,"".concat(t,"$1 $2").concat(t));e=e.replace(l,"").trimRight();for(var o,u=Object.create(null),d=e.replace(h,"").replace(l,"").trimRight();o=h.exec(e);){var m=o[2].replace(c,"");"string"==typeof u[o[1]]||Array.isArray(u[o[1]])?u[o[1]]=[].concat(u[o[1]],m):u[o[1]]=m}return{comments:d,pragmas:u}}function m(e,t){return[].concat(t).map((function(t){return"@".concat(e," ").concat(t).trim()}))}}));r(u),u.extract,u.strip,u.parse,u.parseWithComments,u.print;var c=function(e){return e.length>0?e[e.length-1]:null},l={locStart:function e(t,r){return!(r=r||{}).ignoreDecorators&&t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?e(t.declaration.decorators[0]):!r.ignoreDecorators&&t.decorators&&t.decorators.length>0?e(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeof t.start?t.start:t.loc?t.loc.start:null},locEnd:function e(t){var r=t.nodes&&c(t.nodes);if(r&&t.source&&!t.source.end&&(t=r),t.__location)return t.__location.endOffset;var n=t.range?t.range[1]:"number"==typeof t.end?t.end:null;return t.typeAnnotation?Math.max(n,e(t.typeAnnotation)):t.loc&&!n?t.loc.end:n}};function p(e){return(p="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})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<~]))"].join("|");return new RegExp(t,e.onlyFirst?void 0:"g")}(),""):e},x=C,A=C;x.default=A;var F=function(e){return!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)},w=F,S=F;w.default=S;var k=function(e){if("string"!=typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))||0===e.length)return 0;e=x(e);for(var t=0,r=0;r=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=w(n)?2:1)}return t},T=k,P=k;function B(e){return function(t,r,n){var i=n&&n.backwards;if(!1===r)return!1;for(var a=t.length,s=r;s>=0&&s"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((function(e,t){e.forEach((function(e){N[e]=t}))}));var I=c,O=n((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=!0,n=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,e),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=null!=r.binop?r.binop:null,this.updateContext=null},i=new Map;function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keyword=e;var r=new n(e,t);return i.set(e,r),r}function s(e,t){return new n(e,{beforeExpr:r,binop:t})}var o={num:new n("num",{startsExpr:!0}),bigint:new n("bigint",{startsExpr:!0}),regexp:new n("regexp",{startsExpr:!0}),string:new n("string",{startsExpr:!0}),name:new n("name",{startsExpr:!0}),eof:new n("eof"),bracketL:new n("[",{beforeExpr:r,startsExpr:!0}),bracketR:new n("]"),braceL:new n("{",{beforeExpr:r,startsExpr:!0}),braceBarL:new n("{|",{beforeExpr:r,startsExpr:!0}),braceR:new n("}"),braceBarR:new n("|}"),parenL:new n("(",{beforeExpr:r,startsExpr:!0}),parenR:new n(")"),comma:new n(",",{beforeExpr:r}),semi:new n(";",{beforeExpr:r}),colon:new n(":",{beforeExpr:r}),doubleColon:new n("::",{beforeExpr:r}),dot:new n("."),question:new n("?",{beforeExpr:r}),questionDot:new n("?."),arrow:new n("=>",{beforeExpr:r}),template:new n("template"),ellipsis:new n("...",{beforeExpr:r}),backQuote:new n("`",{startsExpr:!0}),dollarBraceL:new n("${",{beforeExpr:r,startsExpr:!0}),at:new n("@"),hash:new n("#",{startsExpr:!0}),interpreterDirective:new n("#!..."),eq:new n("=",{beforeExpr:r,isAssign:!0}),assign:new n("_=",{beforeExpr:r,isAssign:!0}),incDec:new n("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:new n("!",{beforeExpr:r,prefix:!0,startsExpr:!0}),tilde:new n("~",{beforeExpr:r,prefix:!0,startsExpr:!0}),pipeline:s("|>",0),nullishCoalescing:s("??",1),logicalOR:s("||",2),logicalAND:s("&&",3),bitwiseOR:s("|",4),bitwiseXOR:s("^",5),bitwiseAND:s("&",6),equality:s("==/!=/===/!==",7),relational:s("/<=/>=",8),bitShift:s("<>/>>>",9),plusMin:new n("+/-",{beforeExpr:r,binop:10,prefix:!0,startsExpr:!0}),modulo:new n("%",{beforeExpr:r,binop:11,startsExpr:!0}),star:s("*",11),slash:s("/",11),exponent:new n("**",{beforeExpr:r,binop:12,rightAssociative:!0}),_break:a("break"),_case:a("case",{beforeExpr:r}),_catch:a("catch"),_continue:a("continue"),_debugger:a("debugger"),_default:a("default",{beforeExpr:r}),_do:a("do",{isLoop:!0,beforeExpr:r}),_else:a("else",{beforeExpr:r}),_finally:a("finally"),_for:a("for",{isLoop:!0}),_function:a("function",{startsExpr:!0}),_if:a("if"),_return:a("return",{beforeExpr:r}),_switch:a("switch"),_throw:a("throw",{beforeExpr:r,prefix:!0,startsExpr:!0}),_try:a("try"),_var:a("var"),_const:a("const"),_while:a("while",{isLoop:!0}),_with:a("with"),_new:a("new",{beforeExpr:r,startsExpr:!0}),_this:a("this",{startsExpr:!0}),_super:a("super",{startsExpr:!0}),_class:a("class",{startsExpr:!0}),_extends:a("extends",{beforeExpr:r}),_export:a("export"),_import:a("import",{startsExpr:!0}),_null:a("null",{startsExpr:!0}),_true:a("true",{startsExpr:!0}),_false:a("false",{startsExpr:!0}),_in:a("in",{beforeExpr:r,binop:8}),_instanceof:a("instanceof",{beforeExpr:r,binop:8}),_typeof:a("typeof",{beforeExpr:r,prefix:!0,startsExpr:!0}),_void:a("void",{beforeExpr:r,prefix:!0,startsExpr:!0}),_delete:a("delete",{beforeExpr:r,prefix:!0,startsExpr:!0})};function u(e,t){return 2|(e?4:0)|(t?8:0)}function c(e){return null!=e&&"Property"===e.type&&"init"===e.kind&&!1===e.method}var l=/\r\n?|[\n\u2028\u2029]/,p=new RegExp(l.source,"g");function f(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var C=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function x(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 A=function e(t,r,n,i){h(this,e),this.token=t,this.isExpr=!!r,this.preserveSpace=!!n,this.override=i},F={braceStatement:new A("{",!1),braceExpression:new A("{",!0),templateQuasi:new A("${",!1),parenStatement:new A("(",!1),parenExpression:new A("(",!0),template:new A("`",!0,!0,(function(e){return e.readTmplToken()})),functionExpression:new A("function",!0),functionStatement:new A("function",!1)};o.parenR.updateContext=o.braceR.updateContext=function(){if(1!==this.state.context.length){var e=this.state.context.pop();e===F.braceStatement&&"function"===this.curContext().token&&(e=this.state.context.pop()),this.state.exprAllowed=!e.isExpr}else this.state.exprAllowed=!0},o.name.updateContext=function(e){var t=!1;e!==o.dot&&("of"===this.state.value&&!this.state.exprAllowed||"yield"===this.state.value&&this.scope.inGenerator)&&(t=!0),this.state.exprAllowed=t,this.state.isIterator&&(this.state.isIterator=!1)},o.braceL.updateContext=function(e){this.state.context.push(this.braceIsBlock(e)?F.braceStatement:F.braceExpression),this.state.exprAllowed=!0},o.dollarBraceL.updateContext=function(){this.state.context.push(F.templateQuasi),this.state.exprAllowed=!0},o.parenL.updateContext=function(e){var t=e===o._if||e===o._for||e===o._with||e===o._while;this.state.context.push(t?F.parenStatement:F.parenExpression),this.state.exprAllowed=!0},o.incDec.updateContext=function(){},o._function.updateContext=o._class.updateContext=function(e){!e.beforeExpr||e===o.semi||e===o._else||e===o._return&&l.test(this.input.slice(this.state.lastTokEnd,this.state.start))||(e===o.colon||e===o.braceL)&&this.curContext()===F.b_stat?this.state.context.push(F.functionStatement):this.state.context.push(F.functionExpression),this.state.exprAllowed=!1},o.backQuote.updateContext=function(){this.curContext()===F.template?this.state.context.pop():this.state.context.push(F.template),this.state.exprAllowed=!1};var w=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),S=new Set(["eval","arguments"]),k=function(e,t){return t&&"await"===e||"enum"===e};function T(e,t){return k(e,t)||w.has(e)}function P(e){return S.has(e)}function B(e,t){return T(e,t)||P(e)}var N=/^in(stanceof)?$/,I="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",O="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",_=new RegExp("["+I+"]"),j=new RegExp("["+I+O+"]");I=O=null;var L=[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,157,310,10,21,11,7,153,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,477,28,11,0,9,21,155,22,13,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,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,0,33,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,0,161,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,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,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,754,9486,286,50,2,18,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,2357,44,11,6,17,0,370,43,1301,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,42710,42,4148,12,221,3,5761,15,7472,3104,541],R=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,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,232,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,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,19723,1,5319,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,262,6,10,9,419,13,1495,6,110,6,6,9,792487,239];function M(e,t){for(var r=65536,n=0,i=t.length;ne)return!1;if((r+=t[n+1])>=e)return!0}return!1}function $(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&_.test(String.fromCharCode(e)):M(e,L)))}function q(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&j.test(String.fromCharCode(e)):M(e,L)||M(e,R))))}var U=["any","bool","boolean","empty","false","mixed","null","number","static","string","true","typeof","void","interface","extends","_"];function z(e){return"type"===e.importKind||"typeof"===e.importKind}function V(e){return(e.type===o.name||!!e.type.keyword)&&"from"!==e.value}var W={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},H=/\*?\s*@((?:no)?flow)\b/,J={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},G=/^[\da-fA-F]+$/,X=/^\d+$/;function Q(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function Y(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return Y(e.object)+"."+Y(e.property);throw new Error("Node had unexpected type: "+e.type)}F.j_oTag=new A("...",!0,!0),o.jsxName=new n("jsxName"),o.jsxText=new n("jsxText",{beforeExpr:!0}),o.jsxTagStart=new n("jsxTagStart",{startsExpr:!0}),o.jsxTagEnd=new n("jsxTagEnd"),o.jsxTagStart.updateContext=function(){this.state.context.push(F.j_expr),this.state.context.push(F.j_oTag),this.state.exprAllowed=!1},o.jsxTagEnd.updateContext=function(e){var t=this.state.context.pop();t===F.j_oTag&&e===o.slash||t===F.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===F.j_expr):this.state.exprAllowed=!0};var K=function e(t){h(this,e),this.var=[],this.lexical=[],this.functions=[],this.flags=t},Z=function(){function e(t,r){h(this,e),this.scopeStack=[],this.undefinedExports=new Map,this.raise=t,this.inModule=r}return d(e,[{key:"createScope",value:function(e){return new K(e)}},{key:"enter",value:function(e){this.scopeStack.push(this.createScope(e))}},{key:"exit",value:function(){this.scopeStack.pop()}},{key:"treatFunctionsAsVarInScope",value:function(e){return!!(2&e.flags||!this.inModule&&1&e.flags)}},{key:"declareName",value:function(e,t,r){var n=this.currentScope();if(8&t||16&t)this.checkRedeclarationInScope(n,e,t,r),16&t?n.functions.push(e):n.lexical.push(e),8&t&&this.maybeExportDefined(n,e);else if(4&t)for(var i=this.scopeStack.length-1;i>=0&&(n=this.scopeStack[i],this.checkRedeclarationInScope(n,e,t,r),n.var.push(e),this.maybeExportDefined(n,e),!(515&n.flags));--i);this.inModule&&1&n.flags&&this.undefinedExports.delete(e)}},{key:"maybeExportDefined",value:function(e,t){this.inModule&&1&e.flags&&this.undefinedExports.delete(t)}},{key:"checkRedeclarationInScope",value:function(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.raise(n,"Identifier '".concat(t,"' has already been declared"))}},{key:"isRedeclaredInScope",value:function(e,t,r){return!!(1&r)&&(8&r?e.lexical.indexOf(t)>-1||e.functions.indexOf(t)>-1||e.var.indexOf(t)>-1:16&r?e.lexical.indexOf(t)>-1||!this.treatFunctionsAsVarInScope(e)&&e.var.indexOf(t)>-1:e.lexical.indexOf(t)>-1&&!(32&e.flags&&e.lexical[0]===t)||!this.treatFunctionsAsVarInScope(e)&&e.functions.indexOf(t)>-1)}},{key:"checkLocalExport",value:function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&-1===this.scopeStack[0].functions.indexOf(e.name)&&this.undefinedExports.set(e.name,e.start)}},{key:"currentScope",value:function(){return this.scopeStack[this.scopeStack.length-1]}},{key:"currentVarScope",value:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(515&t.flags)return t}}},{key:"currentThisScope",value:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if((515&t.flags||256&t.flags)&&!(16&t.flags))return t}}},{key:"inFunction",get:function(){return(2&this.currentVarScope().flags)>0}},{key:"inGenerator",get:function(){return(8&this.currentVarScope().flags)>0}},{key:"inAsync",get:function(){return(4&this.currentVarScope().flags)>0}},{key:"allowSuper",get:function(){return(64&this.currentThisScope().flags)>0}},{key:"allowDirectSuper",get:function(){return(128&this.currentThisScope().flags)>0}},{key:"inNonArrowFunction",get:function(){return(2&this.currentThisScope().flags)>0}},{key:"treatFunctionsAsVar",get:function(){return this.treatFunctionsAsVarInScope(this.currentScope())}}]),e}(),ee=function(e){function t(){var e,r;h(this,t);for(var n=arguments.length,i=new Array(n),a=0;a-1){if(256&n){var i=!!(512&n),a=e.constEnums.indexOf(r)>-1;return i!==a}return!0}return 128&n&&e.classes.indexOf(r)>-1?e.lexical.indexOf(r)>-1&&!!(1&n):!!(2&n&&e.types.indexOf(r)>-1)||v(y(t.prototype),"isRedeclaredInScope",this).apply(this,arguments)}},{key:"checkLocalExport",value:function(e){-1===this.scopeStack[0].types.indexOf(e.name)&&-1===this.scopeStack[0].exportOnlyBindings.indexOf(e.name)&&v(y(t.prototype),"checkLocalExport",this).call(this,e)}}]),t}(Z);function re(e){if(null==e)throw new Error("Unexpected ".concat(e," value."));return e}function ne(e){if(!e)throw new Error("Assert fail")}function ie(e,t){return e.some((function(e){return Array.isArray(e)?e[0]===t:e===t}))}function ae(e,t,r){var n=e.find((function(e){return Array.isArray(e)?e[0]===t:e===t}));return n&&Array.isArray(n)?n[1][r]:null}o.placeholder=new n("%%",{startsExpr:!0});var se=["minimal","smart","fsharp"],oe={estree:function(e){return function(e){function t(){return h(this,t),g(this,y(t).apply(this,arguments))}return m(t,e),d(t,[{key:"estreeParseRegExpLiteral",value:function(e){var t=e.pattern,r=e.flags,n=null;try{n=new RegExp(t,r)}catch(e){}var i=this.estreeParseLiteral(n);return i.regex={pattern:t,flags:r},i}},{key:"estreeParseLiteral",value:function(e){return this.parseLiteral(e,"Literal")}},{key:"directiveToStmt",value:function(e){var t=e.value,r=this.startNodeAt(e.start,e.loc.start),n=this.startNodeAt(t.start,t.loc.start);return n.value=t.value,n.raw=t.extra.raw,r.expression=this.finishNodeAt(n,"Literal",t.end,t.loc.end),r.directive=t.extra.raw.slice(1,-1),this.finishNodeAt(r,"ExpressionStatement",e.end,e.loc.end)}},{key:"initFunction",value:function(e,r){v(y(t.prototype),"initFunction",this).call(this,e,r),e.expression=!1}},{key:"checkDeclaration",value:function(e){c(e)?this.checkDeclaration(e.value):v(y(t.prototype),"checkDeclaration",this).call(this,e)}},{key:"checkGetterSetterParams",value:function(e){var t=e,r="get"===t.kind?0:1,n=t.start;t.value.params.length!==r?"get"===t.kind?this.raise(n,"getter must not have any formal parameters"):this.raise(n,"setter must have exactly one formal parameter"):"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raise(n,"setter function argument must not be a rest parameter")}},{key:"checkLVal",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;switch(e.type){case"ObjectPattern":e.properties.forEach((function(e){r.checkLVal("Property"===e.type?e.value:e,n,i,"object destructuring pattern",s)}));break;default:v(y(t.prototype),"checkLVal",this).call(this,e,n,i,a,s)}}},{key:"checkDuplicatedProto",value:function(e,t){if(!("SpreadElement"===e.type||e.computed||e.method||e.shorthand)){var r=e.key;"__proto__"===("Identifier"===r.type?r.name:String(r.value))&&"init"===e.kind&&(t.used&&!t.start&&(t.start=r.start),t.used=!0)}}},{key:"isStrictBody",value:function(e){if("BlockStatement"===e.body.type&&e.body.body.length>0)for(var t=0,r=e.body.body;t2&&void 0!==arguments[2]&&arguments[2];v(y(t.prototype),"parseFunctionBody",this).call(this,e,r,n),e.expression="BlockStatement"!==e.body.type}},{key:"parseMethod",value:function(e,r,n,i,a,s){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=this.startNode();return u.kind=e.kind,(u=v(y(t.prototype),"parseMethod",this).call(this,u,r,n,i,a,s,o)).type="FunctionExpression",delete u.kind,e.value=u,s="ClassMethod"===s?"MethodDefinition":s,this.finishNode(e,s)}},{key:"parseObjectMethod",value:function(e,r,n,i,a){var s=v(y(t.prototype),"parseObjectMethod",this).call(this,e,r,n,i,a);return s&&(s.type="Property","method"===s.kind&&(s.kind="init"),s.shorthand=!1),s}},{key:"parseObjectProperty",value:function(e,r,n,i,a){var s=v(y(t.prototype),"parseObjectProperty",this).call(this,e,r,n,i,a);return s&&(s.kind="init",s.type="Property"),s}},{key:"toAssignable",value:function(e,r,n){return c(e)?(this.toAssignable(e.value,r,n),e):v(y(t.prototype),"toAssignable",this).call(this,e,r,n)}},{key:"toAssignableObjectExpressionProp",value:function(e,r,n){if("get"===e.kind||"set"===e.kind)throw this.raise(e.key.start,"Object pattern can't contain getter or setter");if(e.method)throw this.raise(e.key.start,"Object pattern can't contain methods");v(y(t.prototype),"toAssignableObjectExpressionProp",this).call(this,e,r,n)}}]),t}(e)},jsx:function(e){return function(e){function t(){return h(this,t),g(this,y(t).apply(this,arguments))}return m(t,e),d(t,[{key:"jsxReadToken",value:function(){for(var e="",r=this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,"Unterminated JSX contents");var n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?60===n&&this.state.exprAllowed?(++this.state.pos,this.finishToken(o.jsxTagStart)):v(y(t.prototype),"getTokenFromCode",this).call(this,n):(e+=this.input.slice(r,this.state.pos),this.finishToken(o.jsxText,e));case 38:e+=this.input.slice(r,this.state.pos),e+=this.jsxReadEntity(),r=this.state.pos;break;default:f(n)?(e+=this.input.slice(r,this.state.pos),e+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}}},{key:"jsxReadNewLine",value:function(e){var 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}},{key:"jsxReadString",value:function(e){for(var t="",r=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,"Unterminated string constant");var 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):f(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}return t+=this.input.slice(r,this.state.pos++),this.finishToken(o.string,t)}},{key:"jsxReadEntity",value:function(){for(var e,t="",r=0,n=this.input[this.state.pos],i=++this.state.pos;this.state.pos"):!Q(i)&&Q(a)?this.raise(a.start,"Expected corresponding JSX closing tag for <"+Y(i.name)+">"):Q(i)||Q(a)||Y(a.name)!==Y(i.name)&&this.raise(a.start,"Expected corresponding JSX closing tag for <"+Y(i.name)+">")}if(Q(i)?(r.openingFragment=i,r.closingFragment=a):(r.openingElement=i,r.closingElement=a),r.children=n,this.isRelational("<"))throw this.raise(this.state.start,"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?");return Q(i)?this.finishNode(r,"JSXFragment"):this.finishNode(r,"JSXElement")}},{key:"jsxParseElement",value:function(){var e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)}},{key:"parseExprAtom",value:function(e){return this.match(o.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(o.jsxTagStart)?this.jsxParseElement():this.isRelational("<")&&33!==this.input.charCodeAt(this.state.pos)?(this.finishToken(o.jsxTagStart),this.jsxParseElement()):v(y(t.prototype),"parseExprAtom",this).call(this,e)}},{key:"getTokenFromCode",value:function(e){if(this.state.inPropertyName)return v(y(t.prototype),"getTokenFromCode",this).call(this,e);var r=this.curContext();if(r===F.j_expr)return this.jsxReadToken();if(r===F.j_oTag||r===F.j_cTag){if($(e))return this.jsxReadWord();if(62===e)return++this.state.pos,this.finishToken(o.jsxTagEnd);if((34===e||39===e)&&r===F.j_oTag)return this.jsxReadString(e)}return 60===e&&this.state.exprAllowed&&33!==this.input.charCodeAt(this.state.pos+1)?(++this.state.pos,this.finishToken(o.jsxTagStart)):v(y(t.prototype),"getTokenFromCode",this).call(this,e)}},{key:"updateContext",value:function(e){if(this.match(o.braceL)){var r=this.curContext();r===F.j_oTag?this.state.context.push(F.braceExpression):r===F.j_expr?this.state.context.push(F.templateQuasi):v(y(t.prototype),"updateContext",this).call(this,e),this.state.exprAllowed=!0}else{if(!this.match(o.slash)||e!==o.jsxTagStart)return v(y(t.prototype),"updateContext",this).call(this,e);this.state.context.length-=2,this.state.context.push(F.j_cTag),this.state.exprAllowed=!1}}}]),t}(e)},flow:function(e){return function(e){function t(e,r){var n;return h(this,t),(n=g(this,y(t).call(this,e,r))).flowPragma=void 0,n}return m(t,e),d(t,[{key:"shouldParseTypes",value:function(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}},{key:"shouldParseEnums",value:function(){return!!this.getPluginOption("flow","enums")}},{key:"finishToken",value:function(e,r){return e!==o.string&&e!==o.semi&&e!==o.interpreterDirective&&void 0===this.flowPragma&&(this.flowPragma=null),v(y(t.prototype),"finishToken",this).call(this,e,r)}},{key:"addComment",value:function(e){if(void 0===this.flowPragma){var r=H.exec(e.value);if(r)if("flow"===r[1])this.flowPragma="flow";else{if("noflow"!==r[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}return v(y(t.prototype),"addComment",this).call(this,e)}},{key:"flowParseTypeInitialiser",value:function(e){var t=this.state.inType;this.state.inType=!0,this.expect(e||o.colon);var r=this.flowParseType();return this.state.inType=t,r}},{key:"flowParsePredicate",value:function(){var e=this.startNode(),t=this.state.startLoc,r=this.state.start;this.expect(o.modulo);var n=this.state.startLoc;return this.expectContextual("checks"),t.line===n.line&&t.column===n.column-1||this.raise(r,"Spaces between ´%´ and ´checks´ are not allowed here."),this.eat(o.parenL)?(e.value=this.parseExpression(),this.expect(o.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}},{key:"flowParseTypeAndPredicateInitialiser",value:function(){var e=this.state.inType;this.state.inType=!0,this.expect(o.colon);var t=null,r=null;return this.match(o.modulo)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(o.modulo)&&(r=this.flowParsePredicate())),[t,r]}},{key:"flowParseDeclareClass",value:function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}},{key:"flowParseDeclareFunction",value:function(e){this.next();var t=e.id=this.parseIdentifier(),r=this.startNode(),n=this.startNode();this.isRelational("<")?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(o.parenL);var i=this.flowParseFunctionTypeParams();r.params=i.params,r.rest=i.rest,this.expect(o.parenR);var a=E(this.flowParseTypeAndPredicateInitialiser(),2);return r.returnType=a[0],e.predicate=a[1],n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.finishNode(e,"DeclareFunction")}},{key:"flowParseDeclare",value:function(e,t){if(this.match(o._class))return this.flowParseDeclareClass(e);if(this.match(o._function))return this.flowParseDeclareFunction(e);if(this.match(o._var))return this.flowParseDeclareVariable(e);if(this.eatContextual("module"))return this.match(o.dot)?this.flowParseDeclareModuleExports(e):(t&&this.raise(this.state.lastTokStart,"`declare module` cannot be used inside another `declare module`"),this.flowParseDeclareModule(e));if(this.isContextual("type"))return this.flowParseDeclareTypeAlias(e);if(this.isContextual("opaque"))return this.flowParseDeclareOpaqueType(e);if(this.isContextual("interface"))return this.flowParseDeclareInterface(e);if(this.match(o._export))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}},{key:"flowParseDeclareVariable",value:function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}},{key:"flowParseDeclareModule",value:function(e){var t=this;this.scope.enter(0),this.match(o.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();var r=e.body=this.startNode(),n=r.body=[];for(this.expect(o.braceL);!this.match(o.braceR);){var i=this.startNode();this.match(o._import)?(this.next(),this.isContextual("type")||this.match(o._typeof)||this.raise(this.state.lastTokStart,"Imports within a `declare module` body must always be `import type` or `import typeof`"),this.parseImport(i)):(this.expectContextual("declare","Only declares and type imports are allowed inside declare module"),i=this.flowParseDeclare(i,!0)),n.push(i)}this.scope.exit(),this.expect(o.braceR),this.finishNode(r,"BlockStatement");var a=null,s=!1,u="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";return n.forEach((function(e){!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(s&&t.raise(e.start,"Duplicate `declare module.exports` statement"),"ES"===a&&t.raise(e.start,u),a="CommonJS",s=!0):("CommonJS"===a&&t.raise(e.start,u),a="ES")})),e.kind=a||"CommonJS",this.finishNode(e,"DeclareModule")}},{key:"flowParseDeclareExportDeclaration",value:function(e,t){if(this.expect(o._export),this.eat(o._default))return this.match(o._function)||this.match(o._class)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(o._const)||this.isLet()||(this.isContextual("type")||this.isContextual("interface"))&&!t){var r=this.state.value,n=W[r];this.unexpected(this.state.start,"`declare export ".concat(r,"` is not supported. Use `").concat(n,"` instead"))}if(this.match(o._var)||this.match(o._function)||this.match(o._class)||this.isContextual("opaque"))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(o.star)||this.match(o.braceL)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque"))return"ExportNamedDeclaration"===(e=this.parseExport(e)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;throw this.unexpected()}},{key:"flowParseDeclareModuleExports",value:function(e){return this.next(),this.expectContextual("exports"),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}},{key:"flowParseDeclareTypeAlias",value:function(e){return this.next(),this.flowParseTypeAlias(e),e.type="DeclareTypeAlias",e}},{key:"flowParseDeclareOpaqueType",value:function(e){return this.next(),this.flowParseOpaqueType(e,!0),e.type="DeclareOpaqueType",e}},{key:"flowParseDeclareInterface",value:function(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")}},{key:"flowParseInterfaceish",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.id=this.flowParseRestrictedIdentifier(!t),this.scope.declareName(e.id.name,t?17:9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(o._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(o.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(o.comma))}if(this.isContextual("implements")){this.next();do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(o.comma))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}},{key:"flowParseInterfaceExtends",value:function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}},{key:"flowParseInterface",value:function(e){return this.flowParseInterfaceish(e),this.finishNode(e,"InterfaceDeclaration")}},{key:"checkNotUnderscore",value:function(e){"_"===e&&this.raise(this.state.start,"`_` is only allowed as a type argument to call or new")}},{key:"checkReservedType",value:function(e,t){U.indexOf(e)>-1&&this.raise(t,"Cannot overwrite reserved type ".concat(e))}},{key:"flowParseRestrictedIdentifier",value:function(e){return this.checkReservedType(this.state.value,this.state.start),this.parseIdentifier(e)}},{key:"flowParseTypeAlias",value:function(e){return e.id=this.flowParseRestrictedIdentifier(),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(o.eq),this.semicolon(),this.finishNode(e,"TypeAlias")}},{key:"flowParseOpaqueType",value:function(e,t){return this.expectContextual("type"),e.id=this.flowParseRestrictedIdentifier(!0),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(o.colon)&&(e.supertype=this.flowParseTypeInitialiser(o.colon)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(o.eq)),this.semicolon(),this.finishNode(e,"OpaqueType")}},{key:"flowParseTypeParameter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.state.start,r=this.startNode(),n=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return r.name=i.name,r.variance=n,r.bound=i.typeAnnotation,this.match(o.eq)?(this.eat(o.eq),r.default=this.flowParseType()):e&&this.raise(t,"Type parameter declaration needs a default, since a preceding type parameter declaration has a default."),this.finishNode(r,"TypeParameter")}},{key:"flowParseTypeParameterDeclaration",value:function(){var e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.isRelational("<")||this.match(o.jsxTagStart)?this.next():this.unexpected();var r=!1;do{var n=this.flowParseTypeParameter(r);t.params.push(n),n.default&&(r=!0),this.isRelational(">")||this.expect(o.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}},{key:"flowParseTypeParameterInstantiation",value:function(){var e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expectRelational("<");var r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(o.comma);return this.state.noAnonFunctionType=r,this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}},{key:"flowParseTypeParameterInstantiationCallOrNew",value:function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.isRelational(">")||this.expect(o.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}},{key:"flowParseInterfaceType",value:function(){var e=this.startNode();if(this.expectContextual("interface"),e.extends=[],this.eat(o._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(o.comma));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}},{key:"flowParseObjectPropertyKey",value:function(){return this.match(o.num)||this.match(o.string)?this.parseExprAtom():this.parseIdentifier(!0)}},{key:"flowParseObjectTypeIndexer",value:function(e,t,r){return e.static=t,this.lookahead().type===o.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(o.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}},{key:"flowParseObjectTypeInternalSlot",value:function(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(o.bracketR),this.expect(o.bracketR),this.isRelational("<")||this.match(o.parenL)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start))):(e.method=!1,this.eat(o.question)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}},{key:"flowParseObjectTypeMethodish",value:function(e){for(e.params=[],e.rest=null,e.typeParameters=null,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(o.parenL);!this.match(o.parenR)&&!this.match(o.ellipsis);)e.params.push(this.flowParseFunctionTypeParam()),this.match(o.parenR)||this.expect(o.comma);return this.eat(o.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam()),this.expect(o.parenR),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}},{key:"flowParseObjectTypeCallProperty",value:function(e,t){var r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")}},{key:"flowParseObjectType",value:function(e){var t=e.allowStatic,r=e.allowExact,n=e.allowSpread,i=e.allowProto,a=e.allowInexact,s=this.state.inType;this.state.inType=!0;var u,c,l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];var p=!1;for(r&&this.match(o.braceBarL)?(this.expect(o.braceBarL),u=o.braceBarR,c=!0):(this.expect(o.braceL),u=o.braceR,c=!1),l.exact=c;!this.match(u);){var h=!1,f=null,d=null,m=this.startNode();if(i&&this.isContextual("proto")){var y=this.lookahead();y.type!==o.colon&&y.type!==o.question&&(this.next(),f=this.state.start,t=!1)}if(t&&this.isContextual("static")){var D=this.lookahead();D.type!==o.colon&&D.type!==o.question&&(this.next(),h=!0)}var g=this.flowParseVariance();if(this.eat(o.bracketL))null!=f&&this.unexpected(f),this.eat(o.bracketL)?(g&&this.unexpected(g.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(m,h))):l.indexers.push(this.flowParseObjectTypeIndexer(m,h,g));else if(this.match(o.parenL)||this.isRelational("<"))null!=f&&this.unexpected(f),g&&this.unexpected(g.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(m,h));else{var v,E="init";if(this.isContextual("get")||this.isContextual("set")){var b=this.lookahead();b.type!==o.name&&b.type!==o.string&&b.type!==o.num||(E=this.state.value,this.next())}var C=this.flowParseObjectTypeProperty(m,h,f,g,E,n,null!==(v=a)&&void 0!==v?v:!c);null===C?(p=!0,d=this.state.lastTokStart):l.properties.push(C)}this.flowObjectTypeSemicolon(),!d||this.match(o.braceR)||this.match(o.braceBarR)||this.raise(d,"Explicit inexact syntax must appear at the end of an inexact object")}this.expect(u),n&&(l.inexact=p);var x=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=s,x}},{key:"flowParseObjectTypeProperty",value:function(e,t,r,n,i,a,s){if(this.eat(o.ellipsis))return this.match(o.comma)||this.match(o.semi)||this.match(o.braceR)||this.match(o.braceBarR)?(a?s||this.raise(this.state.lastTokStart,"Explicit inexact syntax cannot appear inside an explicit exact object type"):this.raise(this.state.lastTokStart,"Explicit inexact syntax cannot appear in class or interface definitions"),n&&this.raise(n.start,"Explicit inexact syntax cannot have variance"),null):(a||this.raise(this.state.lastTokStart,"Spread operator cannot appear in class or interface definitions"),null!=r&&this.unexpected(r),n&&this.raise(n.start,"Spread properties cannot have variance"),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=i;var u=!1;return this.isRelational("<")||this.match(o.parenL)?(e.method=!0,null!=r&&this.unexpected(r),n&&this.unexpected(n.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(e)):("init"!==i&&this.unexpected(),e.method=!1,this.eat(o.question)&&(u=!0),e.value=this.flowParseTypeInitialiser(),e.variance=n),e.optional=u,this.finishNode(e,"ObjectTypeProperty")}},{key:"flowCheckGetterSetterParams",value:function(e){var t="get"===e.kind?0:1,r=e.start;e.value.params.length+(e.value.rest?1:0)!==t&&("get"===e.kind?this.raise(r,"getter must not have any formal parameters"):this.raise(r,"setter must have exactly one formal parameter")),"set"===e.kind&&e.value.rest&&this.raise(r,"setter function argument must not be a rest parameter")}},{key:"flowObjectTypeSemicolon",value:function(){this.eat(o.semi)||this.eat(o.comma)||this.match(o.braceR)||this.match(o.braceBarR)||this.unexpected()}},{key:"flowParseQualifiedTypeIdentifier",value:function(e,t,r){e=e||this.state.start,t=t||this.state.startLoc;for(var n=r||this.parseIdentifier();this.eat(o.dot);){var i=this.startNodeAt(e,t);i.qualification=n,i.id=this.parseIdentifier(),n=this.finishNode(i,"QualifiedTypeIdentifier")}return n}},{key:"flowParseGenericType",value:function(e,t,r){var n=this.startNodeAt(e,t);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t,r),this.isRelational("<")&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}},{key:"flowParseTypeofType",value:function(){var e=this.startNode();return this.expect(o._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}},{key:"flowParseTupleType",value:function(){var e=this.startNode();for(e.types=[],this.expect(o.bracketL);this.state.pos0&&void 0!==arguments[0]?arguments[0]:[],t=null;!this.match(o.parenR)&&!this.match(o.ellipsis);)e.push(this.flowParseFunctionTypeParam()),this.match(o.parenR)||this.expect(o.comma);return this.eat(o.ellipsis)&&(t=this.flowParseFunctionTypeParam()),{params:e,rest:t}}},{key:"flowIdentToTypeAnnotation",value:function(e,t,r,n){switch(n.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,t,n)}}},{key:"flowParsePrimaryType",value:function(){var e,r,n=this.state.start,i=this.state.startLoc,a=this.startNode(),s=!1,u=this.state.noAnonFunctionType;switch(this.state.type){case o.name:return this.isContextual("interface")?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(n,i,a,this.parseIdentifier());case o.braceL:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case o.braceBarL:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case o.bracketL:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=u,r;case o.relational:if("<"===this.state.value)return a.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(o.parenL),e=this.flowParseFunctionTypeParams(),a.params=e.params,a.rest=e.rest,this.expect(o.parenR),this.expect(o.arrow),a.returnType=this.flowParseType(),this.finishNode(a,"FunctionTypeAnnotation");break;case o.parenL:if(this.next(),!this.match(o.parenR)&&!this.match(o.ellipsis))if(this.match(o.name)){var c=this.lookahead().type;s=c!==o.question&&c!==o.colon}else s=!0;if(s){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=u,this.state.noAnonFunctionType||!(this.match(o.comma)||this.match(o.parenR)&&this.lookahead().type===o.arrow))return this.expect(o.parenR),r;this.eat(o.comma)}return e=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),a.params=e.params,a.rest=e.rest,this.expect(o.parenR),this.expect(o.arrow),a.returnType=this.flowParseType(),a.typeParameters=null,this.finishNode(a,"FunctionTypeAnnotation");case o.string:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case o._true:case o._false:return a.value=this.match(o._true),this.next(),this.finishNode(a,"BooleanLiteralTypeAnnotation");case o.plusMin:if("-"===this.state.value){if(this.next(),this.match(o.num))return this.parseLiteral(-this.state.value,"NumberLiteralTypeAnnotation",a.start,a.loc.start);if(this.match(o.bigint))return this.parseLiteral(-this.state.value,"BigIntLiteralTypeAnnotation",a.start,a.loc.start);throw this.raise(this.state.start,'Unexpected token, expected "number" or "bigint"')}this.unexpected();case o.num:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case o.bigint:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case o._void:return this.next(),this.finishNode(a,"VoidTypeAnnotation");case o._null:return this.next(),this.finishNode(a,"NullLiteralTypeAnnotation");case o._this:return this.next(),this.finishNode(a,"ThisTypeAnnotation");case o.star:return this.next(),this.finishNode(a,"ExistsTypeAnnotation");default:if("typeof"===this.state.type.keyword)return this.flowParseTypeofType();if(this.state.type.keyword){var l=this.state.type.label;return this.next(),v(y(t.prototype),"createIdentifier",this).call(this,a,l)}}throw this.unexpected()}},{key:"flowParsePostfixType",value:function(){for(var e=this.state.start,t=this.state.startLoc,r=this.flowParsePrimaryType();this.match(o.bracketL)&&!this.canInsertSemicolon();){var n=this.startNodeAt(e,t);n.elementType=r,this.expect(o.bracketL),this.expect(o.bracketR),r=this.finishNode(n,"ArrayTypeAnnotation")}return r}},{key:"flowParsePrefixType",value:function(){var e=this.startNode();return this.eat(o.question)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}},{key:"flowParseAnonFunctionWithoutParens",value:function(){var e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(o.arrow)){var t=this.startNodeAt(e.start,e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}},{key:"flowParseIntersectionType",value:function(){var e=this.startNode();this.eat(o.bitwiseAND);var t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(o.bitwiseAND);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}},{key:"flowParseUnionType",value:function(){var e=this.startNode();this.eat(o.bitwiseOR);var t=this.flowParseIntersectionType();for(e.types=[t];this.eat(o.bitwiseOR);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}},{key:"flowParseType",value:function(){var e=this.state.inType;this.state.inType=!0;var t=this.flowParseUnionType();return this.state.inType=e,this.state.exprAllowed=this.state.exprAllowed||this.state.noAnonFunctionType,t}},{key:"flowParseTypeOrImplicitInstantiation",value:function(){if(this.state.type===o.name&&"_"===this.state.value){var e=this.state.start,t=this.state.startLoc,r=this.parseIdentifier();return this.flowParseGenericType(e,t,r)}return this.flowParseType()}},{key:"flowParseTypeAnnotation",value:function(){var e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}},{key:"flowParseTypeAnnotatableIdentifier",value:function(e){var t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(o.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}},{key:"typeCastToParameter",value:function(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc.end),e.expression}},{key:"flowParseVariance",value:function(){var e=null;return this.match(o.plusMin)&&(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")),e}},{key:"parseFunctionBody",value:function(e,r){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r?this.forwardNoArrowParamsConversionAt(e,(function(){return v(y(t.prototype),"parseFunctionBody",n).call(n,e,!0,i)})):v(y(t.prototype),"parseFunctionBody",this).call(this,e,!1,i)}},{key:"parseFunctionBodyAndFinish",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.match(o.colon)){var i=this.startNode(),a=this.flowParseTypeAndPredicateInitialiser(),s=E(a,2);i.typeAnnotation=s[0],e.predicate=s[1],e.returnType=i.typeAnnotation?this.finishNode(i,"TypeAnnotation"):null}v(y(t.prototype),"parseFunctionBodyAndFinish",this).call(this,e,r,n)}},{key:"parseStatement",value:function(e,r){if(this.state.strict&&this.match(o.name)&&"interface"===this.state.value){var n=this.startNode();return this.next(),this.flowParseInterface(n)}if(this.shouldParseEnums()&&this.isContextual("enum")){var i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}var a=v(y(t.prototype),"parseStatement",this).call(this,e,r);return void 0!==this.flowPragma||this.isValidDirective(a)||(this.flowPragma=null),a}},{key:"parseExpressionStatement",value:function(e,r){if("Identifier"===r.type)if("declare"===r.name){if(this.match(o._class)||this.match(o.name)||this.match(o._function)||this.match(o._var)||this.match(o._export))return this.flowParseDeclare(e)}else if(this.match(o.name)){if("interface"===r.name)return this.flowParseInterface(e);if("type"===r.name)return this.flowParseTypeAlias(e);if("opaque"===r.name)return this.flowParseOpaqueType(e,!1)}return v(y(t.prototype),"parseExpressionStatement",this).call(this,e,r)}},{key:"shouldParseExportDeclaration",value:function(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||this.shouldParseEnums()&&this.isContextual("enum")||v(y(t.prototype),"shouldParseExportDeclaration",this).call(this)}},{key:"isExportDefaultSpecifier",value:function(){return(!this.match(o.name)||!("type"===this.state.value||"interface"===this.state.value||"opaque"===this.state.value||this.shouldParseEnums()&&"enum"===this.state.value))&&v(y(t.prototype),"isExportDefaultSpecifier",this).call(this)}},{key:"parseExportDefaultExpression",value:function(){if(this.shouldParseEnums()&&this.isContextual("enum")){var e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return v(y(t.prototype),"parseExportDefaultExpression",this).call(this)}},{key:"parseConditional",value:function(e,r,n,i,a){var s=this;if(!this.match(o.question))return e;if(a){var u=this.tryParse((function(){return v(y(t.prototype),"parseConditional",s).call(s,e,r,n,i)}));return u.node?(u.error&&(this.state=u.failState),u.node):(a.start=u.error.pos||this.state.start,e)}this.expect(o.question);var c=this.state.clone(),l=this.state.noArrowAt,p=this.startNodeAt(n,i),h=this.tryParseConditionalConsequent(),f=h.consequent,d=h.failed,m=E(this.getArrowLikeExpressions(f),2),D=m[0],g=m[1];if(d||g.length>0){var C=b(l);if(g.length>0){this.state=c,this.state.noArrowAt=C;for(var x=0;x1&&this.raise(c.start,"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate."),d&&1===D.length){this.state=c,this.state.noArrowAt=C.concat(D[0].start);var w=this.tryParseConditionalConsequent();f=w.consequent,d=w.failed}}return this.getArrowLikeExpressions(f,!0),this.state.noArrowAt=l,this.expect(o.colon),p.test=e,p.consequent=f,p.alternate=this.forwardNoArrowParamsConversionAt(p,(function(){return s.parseMaybeAssign(r,void 0,void 0,void 0)})),this.finishNode(p,"ConditionalExpression")}},{key:"tryParseConditionalConsequent",value:function(){this.state.noArrowParamsConversionAt.push(this.state.start);var e=this.parseMaybeAssign(),t=!this.match(o.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}},{key:"getArrowLikeExpressions",value:function(e,t){for(var r=this,n=[e],i=[];0!==n.length;){var a=n.pop();"ArrowFunctionExpression"===a.type?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):i.push(a),n.push(a.body)):"ConditionalExpression"===a.type&&(n.push(a.consequent),n.push(a.alternate))}return t?(i.forEach((function(e){return r.finishArrowValidation(e)})),[i,[]]):function(e,t){for(var r=[],n=[],i=0;i1)&&t||this.raise(n.typeAnnotation.start,"The type cast expression is expected to be wrapped with parenthesis")}return e}},{key:"checkLVal",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if("TypeCastExpression"!==e.type)return v(y(t.prototype),"checkLVal",this).call(this,e,r,n,i)}},{key:"parseClassProperty",value:function(e){return this.match(o.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),v(y(t.prototype),"parseClassProperty",this).call(this,e)}},{key:"parseClassPrivateProperty",value:function(e){return this.match(o.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),v(y(t.prototype),"parseClassPrivateProperty",this).call(this,e)}},{key:"isClassMethod",value:function(){return this.isRelational("<")||v(y(t.prototype),"isClassMethod",this).call(this)}},{key:"isClassProperty",value:function(){return this.match(o.colon)||v(y(t.prototype),"isClassProperty",this).call(this)}},{key:"isNonstaticConstructor",value:function(e){return!this.match(o.colon)&&v(y(t.prototype),"isNonstaticConstructor",this).call(this,e)}},{key:"pushClassMethod",value:function(e,r,n,i,a,s){r.variance&&this.unexpected(r.variance.start),delete r.variance,this.isRelational("<")&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),v(y(t.prototype),"pushClassMethod",this).call(this,e,r,n,i,a,s)}},{key:"pushClassPrivateMethod",value:function(e,r,n,i){r.variance&&this.unexpected(r.variance.start),delete r.variance,this.isRelational("<")&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),v(y(t.prototype),"pushClassPrivateMethod",this).call(this,e,r,n,i)}},{key:"parseClassSuper",value:function(e){if(v(y(t.prototype),"parseClassSuper",this).call(this,e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual("implements")){this.next();var r=e.implements=[];do{var n=this.startNode();n.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,r.push(this.finishNode(n,"ClassImplements"))}while(this.eat(o.comma))}}},{key:"parsePropertyName",value:function(e){var r=this.flowParseVariance(),n=v(y(t.prototype),"parsePropertyName",this).call(this,e);return e.variance=r,n}},{key:"parseObjPropValue",value:function(e,r,n,i,a,s,u,c){var l;e.variance&&this.unexpected(e.variance.start),delete e.variance,this.isRelational("<")&&(l=this.flowParseTypeParameterDeclaration(),this.match(o.parenL)||this.unexpected()),v(y(t.prototype),"parseObjPropValue",this).call(this,e,r,n,i,a,s,u,c),l&&((e.value||e).typeParameters=l)}},{key:"parseAssignableListItemTypes",value:function(e){return this.eat(o.question)&&("Identifier"!==e.type&&this.raise(e.start,"A binding pattern parameter cannot be optional in an implementation signature."),e.optional=!0),this.match(o.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),this.resetEndLocation(e),e}},{key:"parseMaybeDefault",value:function(e,r,n){var i=v(y(t.prototype),"parseMaybeDefault",this).call(this,e,r,n);return"AssignmentPattern"===i.type&&i.typeAnnotation&&i.right.startt.length){e.members=r;for(var a=0;a=h){a.members=s.booleanMembers,e.body=this.finishNode(a,"EnumBooleanBody");for(var f=0,d=s.defaultedMembers;f=h){a.members=s.numberMembers,e.body=this.finishNode(a,"EnumNumberBody");for(var y=0,D=s.defaultedMembers;y")}throw new Error("Unreachable")}},{key:"tsParseList",value:function(e,t){for(var r=[];!this.tsIsListTerminator(e);)r.push(t());return r}},{key:"tsParseDelimitedList",value:function(e,t){return re(this.tsParseDelimitedListWorker(e,t,!0))}},{key:"tsParseDelimitedListWorker",value:function(e,t,r){for(var n=[];!this.tsIsListTerminator(e);){var i=t();if(null==i)return;if(n.push(i),!this.eat(o.comma)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(o.comma))}}return n}},{key:"tsParseBracketedList",value:function(e,t,r,n){n||(r?this.expect(o.bracketL):this.expectRelational("<"));var i=this.tsParseDelimitedList(e,t);return r?this.expect(o.bracketR):this.expectRelational(">"),i}},{key:"tsParseImportType",value:function(){var e=this.startNode();return this.expect(o._import),this.expect(o.parenL),this.match(o.string)||this.raise(this.state.start,"Argument in a type import must be a string literal"),e.argument=this.parseExprAtom(),this.expect(o.parenR),this.eat(o.dot)&&(e.qualifier=this.tsParseEntityName(!0)),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}},{key:"tsParseEntityName",value:function(e){for(var t=this.parseIdentifier();this.eat(o.dot);){var r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdentifier(e),t=this.finishNode(r,"TSQualifiedName")}return t}},{key:"tsParseTypeReference",value:function(){var e=this.startNode();return e.typeName=this.tsParseEntityName(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}},{key:"tsParseThisTypePredicate",value:function(e){this.next();var t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),this.finishNode(t,"TSTypePredicate")}},{key:"tsParseThisTypeNode",value:function(){var e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}},{key:"tsParseTypeQuery",value:function(){var e=this.startNode();return this.expect(o._typeof),this.match(o._import)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(!0),this.finishNode(e,"TSTypeQuery")}},{key:"tsParseTypeParameter",value:function(){var e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsEatThenParseType(o._extends),e.default=this.tsEatThenParseType(o.eq),this.finishNode(e,"TSTypeParameter")}},{key:"tsTryParseTypeParameters",value:function(){if(this.isRelational("<"))return this.tsParseTypeParameters()}},{key:"tsParseTypeParameters",value:function(){var e=this.startNode();return this.isRelational("<")||this.match(o.jsxTagStart)?this.next():this.unexpected(),e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),this.finishNode(e,"TSTypeParameterDeclaration")}},{key:"tsTryNextParseConstantContext",value:function(){return this.lookahead().type===o._const?(this.next(),this.tsParseTypeReference()):null}},{key:"tsFillSignature",value:function(e,t){var r=e===o.arrow;t.typeParameters=this.tsTryParseTypeParameters(),this.expect(o.parenL),t.parameters=this.tsParseBindingListForSignature(),r?t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}},{key:"tsParseBindingListForSignature",value:function(){var e=this;return this.parseBindingList(o.parenR,41).map((function(t){return"Identifier"!==t.type&&"RestElement"!==t.type&&"ObjectPattern"!==t.type&&"ArrayPattern"!==t.type&&e.raise(t.start,"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern,"+"instead got ".concat(t.type)),t}))}},{key:"tsParseTypeMemberSemicolon",value:function(){this.eat(o.comma)||this.semicolon()}},{key:"tsParseSignatureMember",value:function(e,t){return this.tsFillSignature(o.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}},{key:"tsIsUnambiguouslyIndexSignature",value:function(){return this.next(),this.eat(o.name)&&this.match(o.colon)}},{key:"tsTryParseIndexSignature",value:function(e){if(this.match(o.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(o.bracketL);var t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(o.bracketR),e.parameters=[t];var r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}}},{key:"tsParsePropertyOrMethodSignature",value:function(e,t){this.eat(o.question)&&(e.optional=!0);var r=e;if(t||!this.match(o.parenL)&&!this.isRelational("<")){var n=r;t&&(n.readonly=!0);var i=this.tsTryParseTypeAnnotation();return i&&(n.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSPropertySignature")}var a=r;return this.tsFillSignature(o.colon,a),this.tsParseTypeMemberSemicolon(),this.finishNode(a,"TSMethodSignature")}},{key:"tsParseTypeMember",value:function(){var e=this.startNode();if(this.match(o.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(o._new)){var t=this.startNode();return this.next(),this.match(o.parenL)||this.isRelational("<")?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}var r=!!this.tsParseModifier(["readonly"]),n=this.tsTryParseIndexSignature(e);return n?(r&&(e.readonly=!0),n):(this.parsePropertyName(e),this.tsParsePropertyOrMethodSignature(e,r))}},{key:"tsParseTypeLiteral",value:function(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}},{key:"tsParseObjectTypeMembers",value:function(){this.expect(o.braceL);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(o.braceR),e}},{key:"tsIsStartOfMappedType",value:function(){return this.next(),this.eat(o.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(o.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(o._in))))}},{key:"tsParseMappedTypeParameter",value:function(){var e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsExpectThenParseType(o._in),this.finishNode(e,"TSTypeParameter")}},{key:"tsParseMappedType",value:function(){var e=this.startNode();return this.expect(o.braceL),this.match(o.plusMin)?(e.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(o.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),this.expect(o.bracketR),this.match(o.plusMin)?(e.optional=this.state.value,this.next(),this.expect(o.question)):this.eat(o.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(o.braceR),this.finishNode(e,"TSMappedType")}},{key:"tsParseTupleType",value:function(){var e=this,t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var r=!1;return t.elementTypes.forEach((function(t){"TSOptionalType"===t.type?r=!0:r&&"TSRestType"!==t.type&&e.raise(t.start,"A required element cannot follow an optional element.")})),this.finishNode(t,"TSTupleType")}},{key:"tsParseTupleElementType",value:function(){if(this.match(o.ellipsis)){var e=this.startNode();return this.next(),e.typeAnnotation=this.tsParseType(),this.checkCommaAfterRest(93),this.finishNode(e,"TSRestType")}var t=this.tsParseType();if(this.eat(o.question)){var r=this.startNodeAtNode(t);return r.typeAnnotation=t,this.finishNode(r,"TSOptionalType")}return t}},{key:"tsParseParenthesizedType",value:function(){var e=this.startNode();return this.expect(o.parenL),e.typeAnnotation=this.tsParseType(),this.expect(o.parenR),this.finishNode(e,"TSParenthesizedType")}},{key:"tsParseFunctionOrConstructorType",value:function(e){var t=this.startNode();return"TSConstructorType"===e&&this.expect(o._new),this.tsFillSignature(o.arrow,t),this.finishNode(t,e)}},{key:"tsParseLiteralTypeNode",value:function(){var e=this,t=this.startNode();return t.literal=function(){switch(e.state.type){case o.num:case o.string:case o._true:case o._false:return e.parseExprAtom();default:throw e.unexpected()}}(),this.finishNode(t,"TSLiteralType")}},{key:"tsParseTemplateLiteralType",value:function(){var e=this.startNode(),t=this.parseTemplate(!1);return t.expressions.length>0&&this.raise(t.expressions[0].start,"Template literal types cannot have any substitution"),e.literal=t,this.finishNode(e,"TSLiteralType")}},{key:"tsParseNonArrayType",value:function(){switch(this.state.type){case o.name:case o._void:case o._null:var e=this.match(o._void)?"TSVoidKeyword":this.match(o._null)?"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!==e&&46!==this.lookaheadCharCode()){var t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference();case o.string:case o.num:case o._true:case o._false:return this.tsParseLiteralTypeNode();case o.plusMin:if("-"===this.state.value){var r=this.startNode();if(this.lookahead().type!==o.num)throw this.unexpected();return r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case o._this:var n=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(n):n;case o._typeof:return this.tsParseTypeQuery();case o._import:return this.tsParseImportType();case o.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case o.bracketL:return this.tsParseTupleType();case o.parenL:return this.tsParseParenthesizedType();case o.backQuote:return this.tsParseTemplateLiteralType()}throw this.unexpected()}},{key:"tsParseArrayTypeOrHigher",value:function(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(o.bracketL);)if(this.match(o.bracketR)){var t=this.startNodeAtNode(e);t.elementType=e,this.expect(o.bracketR),e=this.finishNode(t,"TSArrayType")}else{var r=this.startNodeAtNode(e);r.objectType=e,r.indexType=this.tsParseType(),this.expect(o.bracketR),e=this.finishNode(r,"TSIndexedAccessType")}return e}},{key:"tsParseTypeOperator",value:function(e){var t=this.startNode();return this.expectContextual(e),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===e&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}},{key:"tsCheckTypeAnnotationForReadOnly",value:function(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e.start,"'readonly' type modifier is only permitted on array and tuple literal types.")}}},{key:"tsParseInferType",value:function(){var e=this.startNode();this.expectContextual("infer");var t=this.startNode();return t.name=this.parseIdentifierName(t.start),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}},{key:"tsParseTypeOperatorOrHigher",value:function(){var e=this,t=["keyof","unique","readonly"].find((function(t){return e.isContextual(t)}));return t?this.tsParseTypeOperator(t):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()}},{key:"tsParseUnionOrIntersectionType",value:function(e,t,r){this.eat(r);var n=t();if(this.match(r)){for(var i=[n];this.eat(r);)i.push(t());var a=this.startNodeAtNode(n);a.types=i,n=this.finishNode(a,e)}return n}},{key:"tsParseIntersectionTypeOrHigher",value:function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),o.bitwiseAND)}},{key:"tsParseUnionTypeOrHigher",value:function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),o.bitwiseOR)}},{key:"tsIsStartOfFunctionType",value:function(){return!!this.isRelational("<")||this.match(o.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}},{key:"tsSkipParameterStart",value:function(){if(this.match(o.name)||this.match(o._this))return this.next(),!0;if(this.match(o.braceL)){var e=1;for(this.next();e>0;)this.match(o.braceL)?++e:this.match(o.braceR)&&--e,this.next();return!0}if(this.match(o.bracketL)){var t=1;for(this.next();t>0;)this.match(o.bracketL)?++t:this.match(o.bracketR)&&--t,this.next();return!0}return!1}},{key:"tsIsUnambiguouslyStartOfFunctionType",value:function(){if(this.next(),this.match(o.parenR)||this.match(o.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(o.colon)||this.match(o.comma)||this.match(o.question)||this.match(o.eq))return!0;if(this.match(o.parenR)&&(this.next(),this.match(o.arrow)))return!0}return!1}},{key:"tsParseTypeOrTypePredicateAnnotation",value:function(e){var t=this;return this.tsInType((function(){var r=t.startNode();t.expect(e);var n=t.tsTryParse(t.tsParseTypePredicateAsserts.bind(t)),i=t.tsIsIdentifier()&&t.tsTryParse(t.tsParseTypePredicatePrefix.bind(t));if(!i){if(!n)return t.tsParseTypeAnnotation(!1,r);var a=t.startNodeAtNode(r);return a.parameterName=t.parseIdentifier(),a.asserts=n,r.typeAnnotation=t.finishNode(a,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")}var s=t.tsParseTypeAnnotation(!1),o=t.startNodeAtNode(r);return o.parameterName=i,o.typeAnnotation=s,o.asserts=n,r.typeAnnotation=t.finishNode(o,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")}))}},{key:"tsTryParseTypeOrTypePredicateAnnotation",value:function(){return this.match(o.colon)?this.tsParseTypeOrTypePredicateAnnotation(o.colon):void 0}},{key:"tsTryParseTypeAnnotation",value:function(){return this.match(o.colon)?this.tsParseTypeAnnotation():void 0}},{key:"tsTryParseType",value:function(){return this.tsEatThenParseType(o.colon)}},{key:"tsParseTypePredicatePrefix",value:function(){var e=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e}},{key:"tsParseTypePredicateAsserts",value:function(){return!!this.tsIsIdentifier()&&!("asserts"!==this.parseIdentifier().name||this.hasPrecedingLineBreak()||!this.tsIsIdentifier())}},{key:"tsParseTypeAnnotation",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.startNode();return this.tsInType((function(){t&&e.expect(o.colon),r.typeAnnotation=e.tsParseType()})),this.finishNode(r,"TSTypeAnnotation")}},{key:"tsParseType",value:function(){ne(this.state.inType);var e=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(o._extends))return e;var t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsParseNonConditionalType(),this.expect(o.question),t.trueType=this.tsParseType(),this.expect(o.colon),t.falseType=this.tsParseType(),this.finishNode(t,"TSConditionalType")}},{key:"tsParseNonConditionalType",value:function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(o._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.tsParseUnionTypeOrHigher()}},{key:"tsParseTypeAssertion",value:function(){var e=this.startNode(),t=this.tsTryNextParseConstantContext();return e.typeAnnotation=t||this.tsNextThenParseType(),this.expectRelational(">"),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}},{key:"tsParseHeritageClause",value:function(e){var t=this.state.start,r=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return r.length||this.raise(t,"'".concat(e,"' list cannot be empty.")),r}},{key:"tsParseExpressionWithTypeArguments",value:function(){var e=this.startNode();return e.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}},{key:"tsParseInterfaceDeclaration",value:function(e){e.id=this.parseIdentifier(),this.checkLVal(e.id,130,void 0,"typescript interface declaration"),e.typeParameters=this.tsTryParseTypeParameters(),this.eat(o._extends)&&(e.extends=this.tsParseHeritageClause("extends"));var t=this.startNode();return t.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(t,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}},{key:"tsParseTypeAliasDeclaration",value:function(e){return e.id=this.parseIdentifier(),this.checkLVal(e.id,2,void 0,"typescript type alias"),e.typeParameters=this.tsTryParseTypeParameters(),e.typeAnnotation=this.tsExpectThenParseType(o.eq),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}},{key:"tsInNoContext",value:function(e){var t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}},{key:"tsInType",value:function(e){var t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}},{key:"tsEatThenParseType",value:function(e){return this.match(e)?this.tsNextThenParseType():void 0}},{key:"tsExpectThenParseType",value:function(e){var t=this;return this.tsDoThenParseType((function(){return t.expect(e)}))}},{key:"tsNextThenParseType",value:function(){var e=this;return this.tsDoThenParseType((function(){return e.next()}))}},{key:"tsDoThenParseType",value:function(e){var t=this;return this.tsInType((function(){return e(),t.tsParseType()}))}},{key:"tsParseEnumMember",value:function(){var e=this.startNode();return e.id=this.match(o.string)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(o.eq)&&(e.initializer=this.parseMaybeAssign()),this.finishNode(e,"TSEnumMember")}},{key:"tsParseEnumDeclaration",value:function(e,t){return t&&(e.const=!0),e.id=this.parseIdentifier(),this.checkLVal(e.id,t?779:267,void 0,"typescript enum declaration"),this.expect(o.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(o.braceR),this.finishNode(e,"TSEnumDeclaration")}},{key:"tsParseModuleBlock",value:function(){var e=this.startNode();return this.scope.enter(0),this.expect(o.braceL),this.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,o.braceR),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}},{key:"tsParseModuleOrNamespaceDeclaration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.id=this.parseIdentifier(),t||this.checkLVal(e.id,1024,null,"module or namespace declaration"),this.eat(o.dot)){var r=this.startNode();this.tsParseModuleOrNamespaceDeclaration(r,!0),e.body=r}else this.scope.enter(512),e.body=this.tsParseModuleBlock(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}},{key:"tsParseAmbientExternalModuleDeclaration",value:function(e){return this.isContextual("global")?(e.global=!0,e.id=this.parseIdentifier()):this.match(o.string)?e.id=this.parseExprAtom():this.unexpected(),this.match(o.braceL)?(this.scope.enter(512),e.body=this.tsParseModuleBlock(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}},{key:"tsParseImportEqualsDeclaration",value:function(e,t){return e.isExport=t||!1,e.id=this.parseIdentifier(),this.expect(o.eq),e.moduleReference=this.tsParseModuleReference(),this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}},{key:"tsIsExternalModuleReference",value:function(){return this.isContextual("require")&&40===this.lookaheadCharCode()}},{key:"tsParseModuleReference",value:function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}},{key:"tsParseExternalModuleReference",value:function(){var e=this.startNode();if(this.expectContextual("require"),this.expect(o.parenL),!this.match(o.string))throw this.unexpected();return e.expression=this.parseExprAtom(),this.expect(o.parenR),this.finishNode(e,"TSExternalModuleReference")}},{key:"tsLookAhead",value:function(e){var t=this.state.clone(),r=e();return this.state=t,r}},{key:"tsTryParseAndCatch",value:function(e){var t=this.tryParse((function(t){return e()||t()}));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}},{key:"tsTryParse",value:function(e){var t=this.state.clone(),r=e();return void 0!==r&&!1!==r?r:void(this.state=t)}},{key:"tsTryParseDeclare",value:function(e){if(!this.isLineTerminator()){var t,r=this.state.type;switch(this.isContextual("let")&&(r=o._var,t="let"),r){case o._function:return this.parseFunctionStatement(e,!1,!0);case o._class:return e.declare=!0,this.parseClass(e,!0,!1);case o._const:if(this.match(o._const)&&this.isLookaheadContextual("enum"))return this.expect(o._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0);case o._var:return t=t||this.state.value,this.parseVarStatement(e,t);case o.name:var n=this.state.value;return"global"===n?this.tsParseAmbientExternalModuleDeclaration(e):this.tsParseDeclaration(e,n,!0)}}}},{key:"tsTryParseExportDeclaration",value:function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}},{key:"tsParseExpressionStatement",value:function(e,t){switch(t.name){case"declare":var r=this.tsTryParseDeclare(e);if(r)return r.declare=!0,r;break;case"global":if(this.match(o.braceL)){this.scope.enter(512);var n=e;return n.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1)}}},{key:"tsParseDeclaration",value:function(e,t,r){switch(t){case"abstract":if(this.tsCheckLineTerminatorAndMatch(o._class,r)){var n=e;return n.abstract=!0,r&&(this.next(),this.match(o._class)||this.unexpected(null,o._class)),this.parseClass(n,!0,!1)}break;case"enum":if(r||this.match(o.name))return r&&this.next(),this.tsParseEnumDeclaration(e,!1);break;case"interface":if(this.tsCheckLineTerminatorAndMatch(o.name,r))return r&&this.next(),this.tsParseInterfaceDeclaration(e);break;case"module":if(r&&this.next(),this.match(o.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(this.tsCheckLineTerminatorAndMatch(o.name,r))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"namespace":if(this.tsCheckLineTerminatorAndMatch(o.name,r))return r&&this.next(),this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminatorAndMatch(o.name,r))return r&&this.next(),this.tsParseTypeAliasDeclaration(e)}}},{key:"tsCheckLineTerminatorAndMatch",value:function(e,t){return(t||this.match(e))&&!this.isLineTerminator()}},{key:"tsTryParseGenericAsyncArrowFunction",value:function(e,r){var n=this;if(this.isRelational("<")){var i=this.tsTryParseAndCatch((function(){var i=n.startNodeAt(e,r);return i.typeParameters=n.tsParseTypeParameters(),v(y(t.prototype),"parseFunctionParams",n).call(n,i),i.returnType=n.tsTryParseTypeOrTypePredicateAnnotation(),n.expect(o.arrow),i}));if(i)return this.parseArrowExpression(i,null,!0)}}},{key:"tsParseTypeArguments",value:function(){var e=this,t=this.startNode();return t.params=this.tsInType((function(){return e.tsInNoContext((function(){return e.expectRelational("<"),e.tsParseDelimitedList("TypeParametersOrArguments",e.tsParseType.bind(e))}))})),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(t,"TSTypeParameterInstantiation")}},{key:"tsIsDeclarationStart",value:function(){if(this.match(o.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1}},{key:"isExportDefaultSpecifier",value:function(){return!this.tsIsDeclarationStart()&&v(y(t.prototype),"isExportDefaultSpecifier",this).call(this)}},{key:"parseAssignableListItem",value:function(e,t){var r,n=this.state.start,i=this.state.startLoc,a=!1;e&&(r=this.parseAccessModifier(),a=!!this.tsParseModifier(["readonly"]));var s=this.parseMaybeDefault();this.parseAssignableListItemTypes(s);var o=this.parseMaybeDefault(s.start,s.loc.start,s);if(r||a){var u=this.startNodeAt(n,i);return t.length&&(u.decorators=t),r&&(u.accessibility=r),a&&(u.readonly=a),"Identifier"!==o.type&&"AssignmentPattern"!==o.type&&this.raise(u.start,"A parameter property may not be declared using a binding pattern."),u.parameter=o,this.finishNode(u,"TSParameterProperty")}return t.length&&(s.decorators=t),o}},{key:"parseFunctionBodyAndFinish",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(o.colon)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(o.colon));var i="FunctionDeclaration"===r?"TSDeclareFunction":"ClassMethod"===r?"TSDeclareMethod":void 0;i&&!this.match(o.braceL)&&this.isLineTerminator()?this.finishNode(e,i):v(y(t.prototype),"parseFunctionBodyAndFinish",this).call(this,e,r,n)}},{key:"registerFunctionStatementId",value:function(e){!e.body&&e.id?this.checkLVal(e.id,1024,null,"function name"):v(y(t.prototype),"registerFunctionStatementId",this).apply(this,arguments)}},{key:"parseSubscript",value:function(e,r,n,i,a){var s=this;if(!this.hasPrecedingLineBreak()&&this.match(o.bang)){this.state.exprAllowed=!1,this.next();var u=this.startNodeAt(r,n);return u.expression=e,this.finishNode(u,"TSNonNullExpression")}if(this.isRelational("<")){var c=this.tsTryParseAndCatch((function(){if(!i&&s.atPossibleAsync(e)){var t=s.tsTryParseGenericAsyncArrowFunction(r,n);if(t)return t}var u=s.startNodeAt(r,n);u.callee=e;var c=s.tsParseTypeArguments();if(c){if(!i&&s.eat(o.parenL))return u.arguments=s.parseCallExpressionArguments(o.parenR,!1),u.typeParameters=c,s.finishCallExpression(u,a.optionalChainMember);if(s.match(o.backQuote))return s.parseTaggedTemplateExpression(r,n,e,a,c)}s.unexpected()}));if(c)return c}return v(y(t.prototype),"parseSubscript",this).call(this,e,r,n,i,a)}},{key:"parseNewArguments",value:function(e){var r=this;if(this.isRelational("<")){var n=this.tsTryParseAndCatch((function(){var e=r.tsParseTypeArguments();return r.match(o.parenL)||r.unexpected(),e}));n&&(e.typeParameters=n)}v(y(t.prototype),"parseNewArguments",this).call(this,e)}},{key:"parseExprOp",value:function(e,r,n,i,a){if(re(o._in.binop)>i&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){var s=this.startNodeAt(r,n);s.expression=e;var u=this.tsTryNextParseConstantContext();return s.typeAnnotation=u||this.tsNextThenParseType(),this.finishNode(s,"TSAsExpression"),this.parseExprOp(s,r,n,i,a)}return v(y(t.prototype),"parseExprOp",this).call(this,e,r,n,i,a)}},{key:"checkReservedWord",value:function(e,t,r,n){}},{key:"checkDuplicateExports",value:function(){}},{key:"parseImport",value:function(e){return this.match(o.name)&&this.lookahead().type===o.eq?this.tsParseImportEqualsDeclaration(e):v(y(t.prototype),"parseImport",this).call(this,e)}},{key:"parseExport",value:function(e){if(this.match(o._import))return this.expect(o._import),this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(o.eq)){var r=e;return r.expression=this.parseExpression(),this.semicolon(),this.finishNode(r,"TSExportAssignment")}if(this.eatContextual("as")){var n=e;return this.expectContextual("namespace"),n.id=this.parseIdentifier(),this.semicolon(),this.finishNode(n,"TSNamespaceExportDeclaration")}return v(y(t.prototype),"parseExport",this).call(this,e)}},{key:"isAbstractClass",value:function(){return this.isContextual("abstract")&&this.lookahead().type===o._class}},{key:"parseExportDefaultExpression",value:function(){if(this.isAbstractClass()){var e=this.startNode();return this.next(),this.parseClass(e,!0,!0),e.abstract=!0,e}if("interface"===this.state.value){var r=this.tsParseDeclaration(this.startNode(),this.state.value,!0);if(r)return r}return v(y(t.prototype),"parseExportDefaultExpression",this).call(this)}},{key:"parseStatementContent",value:function(e,r){if(this.state.type===o._const){var n=this.lookahead();if(n.type===o.name&&"enum"===n.value){var i=this.startNode();return this.expect(o._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(i,!0)}}return v(y(t.prototype),"parseStatementContent",this).call(this,e,r)}},{key:"parseAccessModifier",value:function(){return this.tsParseModifier(["public","protected","private"])}},{key:"parseClassMember",value:function(e,r,n,i){var a=this.parseAccessModifier();a&&(r.accessibility=a),v(y(t.prototype),"parseClassMember",this).call(this,e,r,n,i)}},{key:"parseClassMemberWithIsStatic",value:function(e,r,n,i,a){var s=this.tsParseModifiers(["abstract","readonly","declare"]);Object.assign(r,s);var o=this.tsTryParseIndexSignature(r);if(o)return e.body.push(o),s.abstract&&this.raise(r.start,"Index signatures cannot have the 'abstract' modifier"),i&&this.raise(r.start,"Index signatures cannot have the 'static' modifier"),void(r.accessibility&&this.raise(r.start,"Index signatures cannot have an accessibility modifier ('".concat(r.accessibility,"')")));v(y(t.prototype),"parseClassMemberWithIsStatic",this).call(this,e,r,n,i,a)}},{key:"parsePostMemberNameModifiers",value:function(e){this.eat(o.question)&&(e.optional=!0),e.readonly&&this.match(o.parenL)&&this.raise(e.start,"Class methods cannot have the 'readonly' modifier"),e.declare&&this.match(o.parenL)&&this.raise(e.start,"Class methods cannot have the 'declare' modifier")}},{key:"parseExpressionStatement",value:function(e,r){return("Identifier"===r.type?this.tsParseExpressionStatement(e,r):void 0)||v(y(t.prototype),"parseExpressionStatement",this).call(this,e,r)}},{key:"shouldParseExportDeclaration",value:function(){return!!this.tsIsDeclarationStart()||v(y(t.prototype),"shouldParseExportDeclaration",this).call(this)}},{key:"parseConditional",value:function(e,r,n,i,a){var s=this;if(!a||!this.match(o.question))return v(y(t.prototype),"parseConditional",this).call(this,e,r,n,i,a);var u=this.tryParse((function(){return v(y(t.prototype),"parseConditional",s).call(s,e,r,n,i)}));return u.node?(u.error&&(this.state=u.failState),u.node):(a.start=u.error.pos||this.state.start,e)}},{key:"parseParenItem",value:function(e,r,n){if(e=v(y(t.prototype),"parseParenItem",this).call(this,e,r,n),this.eat(o.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(o.colon)){var i=this.startNodeAt(r,n);return i.expression=e,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return e}},{key:"parseExportDeclaration",value:function(e){var r,n=this.state.start,i=this.state.startLoc,a=this.eatContextual("declare");return this.match(o.name)&&(r=this.tsTryParseExportDeclaration()),r||(r=v(y(t.prototype),"parseExportDeclaration",this).call(this,e)),r&&a&&(this.resetStartLocation(r,n,i),r.declare=!0),r}},{key:"parseClassId",value:function(e,r,n){if(r&&!n||!this.isContextual("implements")){v(y(t.prototype),"parseClassId",this).call(this,e,r,n,e.declare?1024:139);var i=this.tsTryParseTypeParameters();i&&(e.typeParameters=i)}}},{key:"parseClassPropertyAnnotation",value:function(e){!e.optional&&this.eat(o.bang)&&(e.definite=!0);var t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}},{key:"parseClassProperty",value:function(e){return this.parseClassPropertyAnnotation(e),e.declare&&this.match(o.equal)&&this.raise(this.state.start,"'declare' class fields cannot have an initializer"),v(y(t.prototype),"parseClassProperty",this).call(this,e)}},{key:"parseClassPrivateProperty",value:function(e){return e.abstract&&this.raise(e.start,"Private elements cannot have the 'abstract' modifier."),e.accessibility&&this.raise(e.start,"Private elements cannot have an accessibility modifier ('".concat(e.accessibility,"')")),this.parseClassPropertyAnnotation(e),v(y(t.prototype),"parseClassPrivateProperty",this).call(this,e)}},{key:"pushClassMethod",value:function(e,r,n,i,a,s){var o=this.tsTryParseTypeParameters();o&&(r.typeParameters=o),v(y(t.prototype),"pushClassMethod",this).call(this,e,r,n,i,a,s)}},{key:"pushClassPrivateMethod",value:function(e,r,n,i){var a=this.tsTryParseTypeParameters();a&&(r.typeParameters=a),v(y(t.prototype),"pushClassPrivateMethod",this).call(this,e,r,n,i)}},{key:"parseClassSuper",value:function(e){v(y(t.prototype),"parseClassSuper",this).call(this,e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(e.implements=this.tsParseHeritageClause("implements"))}},{key:"parseObjPropValue",value:function(e){var r,n=this.tsTryParseTypeParameters();n&&(e.typeParameters=n);for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:64,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;switch(e.type){case"TSTypeCastExpression":return;case"TSParameterProperty":return void this.checkLVal(e.parameter,r,n,"parameter property");case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return void this.checkLVal(e.expression,r,n,i);default:return void v(y(t.prototype),"checkLVal",this).call(this,e,r,n,i)}}},{key:"parseBindingAtom",value:function(){switch(this.state.type){case o._this:return this.parseIdentifier(!0);default:return v(y(t.prototype),"parseBindingAtom",this).call(this)}}},{key:"parseMaybeDecoratorArguments",value:function(e){if(this.isRelational("<")){var r=this.tsParseTypeArguments();if(this.match(o.parenL)){var n=v(y(t.prototype),"parseMaybeDecoratorArguments",this).call(this,e);return n.typeParameters=r,n}this.unexpected(this.state.start,o.parenL)}return v(y(t.prototype),"parseMaybeDecoratorArguments",this).call(this,e)}},{key:"isClassMethod",value:function(){return this.isRelational("<")||v(y(t.prototype),"isClassMethod",this).call(this)}},{key:"isClassProperty",value:function(){return this.match(o.bang)||this.match(o.colon)||v(y(t.prototype),"isClassProperty",this).call(this)}},{key:"parseMaybeDefault",value:function(){for(var e,r=arguments.length,n=new Array(r),i=0;i0)||v(y(t.prototype),"maybeParseExportDefaultSpecifier",this).apply(this,arguments)}},{key:"checkExport",value:function(e){var r=e.specifiers;r&&r.length&&(e.specifiers=r.filter((function(e){return"Placeholder"===e.exported.type}))),v(y(t.prototype),"checkExport",this).call(this,e),e.specifiers=r}},{key:"parseImport",value:function(e){var r=this.parsePlaceholder("Identifier");if(!r)return v(y(t.prototype),"parseImport",this).apply(this,arguments);if(e.specifiers=[],!this.isContextual("from")&&!this.match(o.comma))return e.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");var n=this.startNodeAtNode(r);if(n.local=r,this.finishNode(n,"ImportDefaultSpecifier"),e.specifiers.push(n),this.eat(o.comma)){var i=this.maybeParseStarImportSpecifier(e);i||this.parseNamedImportSpecifiers(e)}return this.expectContextual("from"),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}},{key:"parseImportSource",value:function(){return this.parsePlaceholder("StringLiteral")||v(y(t.prototype),"parseImportSource",this).apply(this,arguments)}}]),t}(e)}},ue=Object.keys(oe),ce={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1},le=function e(t,r){h(this,e),this.line=t,this.column=r},pe=function e(t,r){h(this,e),this.start=t,this.end=r};function he(e){return e[e.length-1]}var fe=function(e){function t(){return h(this,t),g(this,y(t).apply(this,arguments))}return m(t,e),d(t,[{key:"getLocationForPosition",value:function(e){return e===this.state.start?this.state.startLoc:e===this.state.lastTokStart?this.state.lastTokStartLoc:e===this.state.end?this.state.endLoc:e===this.state.lastTokEnd?this.state.lastTokEndLoc:function(e,t){var r,n=1,i=0;for(p.lastIndex=0;(r=p.exec(e))&&r.index2&&void 0!==arguments[2]?arguments[2]:{},n=r.missingPluginNames,i=r.code,a=this.getLocationForPosition(e);t+=" (".concat(a.line,":").concat(a.column,")");var s=new SyntaxError(t);if(s.pos=e,s.loc=a,n&&(s.missingPlugin=n),void 0!==i&&(s.code=i),this.options.errorRecovery)return this.isLookahead||this.state.errors.push(s),s;throw s}}]),t}(function(e){function t(){return h(this,t),g(this,y(t).apply(this,arguments))}return m(t,e),d(t,[{key:"addComment",value:function(e){this.filename&&(e.loc.filename=this.filename),this.state.trailingComments.push(e),this.state.leadingComments.push(e)}},{key:"adjustCommentsAfterTrailingComma",value:function(e,t,r){if(0!==this.state.leadingComments.length){for(var n=null,i=t.length;null===n&&i>0;)n=t[--i];if(null!==n){for(var a=0;a0?n.trailingComments=s:void 0!==n.trailingComments&&(n.trailingComments=[])}}}},{key:"processComment",value:function(e){if(!("Program"===e.type&&e.body.length>0)){var t,r,n,i,a,s=this.state.commentStack;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(n=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(s.length>0){var o=he(s);o.trailingComments&&o.trailingComments[0].start>=e.end&&(n=o.trailingComments,delete o.trailingComments)}for(s.length>0&&he(s).start>=e.start&&(t=s.pop());s.length>0&&he(s).start>=e.start;)r=s.pop();if(!r&&t&&(r=t),t)switch(e.type){case"ObjectExpression":this.adjustCommentsAfterTrailingComma(e,e.properties);break;case"ObjectPattern":this.adjustCommentsAfterTrailingComma(e,e.properties,!0);break;case"CallExpression":this.adjustCommentsAfterTrailingComma(e,e.arguments);break;case"ArrayExpression":this.adjustCommentsAfterTrailingComma(e,e.elements);break;case"ArrayPattern":this.adjustCommentsAfterTrailingComma(e,e.elements,!0)}else this.state.commentPreviousNode&&("ImportSpecifier"===this.state.commentPreviousNode.type&&"ImportSpecifier"!==e.type||"ExportSpecifier"===this.state.commentPreviousNode.type&&"ExportSpecifier"!==e.type)&&this.adjustCommentsAfterTrailingComma(e,[this.state.commentPreviousNode],!0);if(r){if(r.leadingComments)if(r!==e&&r.leadingComments.length>0&&he(r.leadingComments).end<=e.start)e.leadingComments=r.leadingComments,delete r.leadingComments;else for(i=r.leadingComments.length-2;i>=0;--i)if(r.leadingComments[i].end<=e.start){e.leadingComments=r.leadingComments.splice(0,i+1);break}}else if(this.state.leadingComments.length>0)if(he(this.state.leadingComments).end<=e.start){if(this.state.commentPreviousNode)for(a=0;a0&&(e.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(i=0;ie.start);i++);var u=this.state.leadingComments.slice(0,i);u.length&&(e.leadingComments=u),0===(n=this.state.leadingComments.slice(i)).length&&(n=null)}this.state.commentPreviousNode=e,n&&(n.length&&n[0].start>=e.start&&he(n).end<=e.end?e.innerComments=n:e.trailingComments=n),s.push(e)}}}]),t}(function(){function e(){h(this,e),this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}return d(e,[{key:"hasPlugin",value:function(e){return this.plugins.has(e)}},{key:"getPluginOption",value:function(e,t){if(this.hasPlugin(e))return this.plugins.get(e)[t]}}]),e}())),de=function(){function e(){h(this,e),this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.inParameters=!1,this.maybeInArrowParameters=!1,this.inPipeline=!1,this.inType=!1,this.noAnonFunctionType=!1,this.inPropertyName=!1,this.inClassProperty=!1,this.hasFlowComment=!1,this.isIterator=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.classLevel=0,this.labels=[],this.decoratorStack=[[]],this.yieldPos=-1,this.awaitPos=-1,this.tokens=[],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.commentPreviousNode=null,this.pos=0,this.lineStart=0,this.type=o.eof,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.lastTokEnd=0,this.context=[F.braceStatement],this.exprAllowed=!0,this.containsEsc=!1,this.containsOctal=!1,this.octalPosition=null,this.exportedIdentifiers=[],this.invalidTemplateEscapePosition=null}return d(e,[{key:"init",value:function(e){this.strict=!1!==e.strictMode&&"module"===e.sourceType,this.curLine=e.startLine,this.startLoc=this.endLoc=this.curPosition()}},{key:"curPosition",value:function(){return new le(this.curLine,this.pos-this.lineStart)}},{key:"clone",value:function(t){for(var r=new e,n=Object.keys(this),i=0,a=n.length;i=48&&e<=57},ye=new Set(["g","m","s","i","y","u"]),De={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},ge={bin:[48,49]};ge.oct=[].concat(b(ge.bin),[50,51,52,53,54,55]),ge.dec=[].concat(b(ge.oct),[56,57]),ge.hex=[].concat(b(ge.dec),[65,66,67,68,69,70,97,98,99,100,101,102]);var ve=function e(t){h(this,e),this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new pe(t.startLoc,t.endLoc)},Ee=/^('|")((?:\\?.)*?)\1/,be=function(e){function t(){return h(this,t),g(this,y(t).apply(this,arguments))}return m(t,e),d(t,[{key:"addExtra",value:function(e,t,r){e&&((e.extra=e.extra||{})[t]=r)}},{key:"isRelational",value:function(e){return this.match(o.relational)&&this.state.value===e}},{key:"isLookaheadRelational",value:function(e){var t=this.nextTokenStart();if(this.input.charAt(t)===e){if(t+1===this.input.length)return!0;var r=this.input.charCodeAt(t+1);return r!==e.charCodeAt(0)&&61!==r}return!1}},{key:"expectRelational",value:function(e){this.isRelational(e)?this.next():this.unexpected(null,o.relational)}},{key:"eatRelational",value:function(e){return!!this.isRelational(e)&&(this.next(),!0)}},{key:"isContextual",value:function(e){return this.match(o.name)&&this.state.value===e&&!this.state.containsEsc}},{key:"isUnparsedContextual",value:function(e,t){var r=e+t.length;return this.input.slice(e,r)===t&&(r===this.input.length||!q(this.input.charCodeAt(r)))}},{key:"isLookaheadContextual",value:function(e){var t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}},{key:"eatContextual",value:function(e){return this.isContextual(e)&&this.eat(o.name)}},{key:"expectContextual",value:function(e,t){this.eatContextual(e)||this.unexpected(null,t)}},{key:"canInsertSemicolon",value:function(){return this.match(o.eof)||this.match(o.braceR)||this.hasPrecedingLineBreak()}},{key:"hasPrecedingLineBreak",value:function(){return l.test(this.input.slice(this.state.lastTokEnd,this.state.start))}},{key:"isLineTerminator",value:function(){return this.eat(o.semi)||this.canInsertSemicolon()}},{key:"semicolon",value:function(){this.isLineTerminator()||this.unexpected(null,o.semi)}},{key:"expect",value:function(e,t){this.eat(e)||this.unexpected(t,e)}},{key:"assertNoSpace",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unexpected space.";this.state.start>this.state.lastTokEnd&&this.raise(this.state.lastTokEnd,e)}},{key:"unexpected",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Unexpected token";throw"string"!=typeof t&&(t='Unexpected token, expected "'.concat(t.label,'"')),this.raise(null!=e?e:this.state.start,t)}},{key:"expectPlugin",value:function(e,t){if(!this.hasPlugin(e))throw this.raise(null!=t?t:this.state.start,"This experimental syntax requires enabling the parser plugin: '".concat(e,"'"),{missingPluginNames:[e]});return!0}},{key:"expectOnePlugin",value:function(e,t){var r=this;if(!e.some((function(e){return r.hasPlugin(e)})))throw this.raise(null!=t?t:this.state.start,"This experimental syntax requires enabling one of the following parser plugin(s): '".concat(e.join(", "),"'"),{missingPluginNames:e})}},{key:"checkYieldAwaitInDefaultParams",value:function(){-1!==this.state.yieldPos&&(-1===this.state.awaitPos||this.state.yieldPos1&&void 0!==arguments[1]?arguments[1]:this.state.clone(),r={node:null};try{var n=e((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw r.node=e,r}));if(this.state.errors.length>t.errors.length){var i=this.state;return this.state=t,{node:n,error:i.errors[t.errors.length],thrown:!1,aborted:!1,failState:i}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){var a=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:a};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:a};throw e}}}]),t}(function(e){function t(e,r){var n;return h(this,t),(n=g(this,y(t).call(this))).state=new de,n.state.init(e),n.input=r,n.length=r.length,n.isLookahead=!1,n}return m(t,e),d(t,[{key:"next",value:function(){this.isLookahead||(this.checkKeywordEscapes(),this.options.tokens&&this.state.tokens.push(new ve(this.state))),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}},{key:"eat",value:function(e){return!!this.match(e)&&(this.next(),!0)}},{key:"match",value:function(e){return this.state.type===e}},{key:"lookahead",value:function(){var e=this.state;this.state=e.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;var t=this.state;return this.state=e,t}},{key:"nextTokenStart",value:function(){var e=this.state.pos;return C.lastIndex=e,e+C.exec(this.input)[0].length}},{key:"lookaheadCharCode",value:function(){return this.input.charCodeAt(this.nextTokenStart())}},{key:"setStrict",value:function(e){if(this.state.strict=e,this.match(o.num)||this.match(o.string)){for(this.state.pos=this.state.start;this.state.pos=this.length?this.finishToken(o.eof):e.override?e.override(this):this.getTokenFromCode(this.input.codePointAt(this.state.pos))}},{key:"pushComment",value:function(e,t,r,n,i,a){var s={type:e?"CommentBlock":"CommentLine",value:t,start:r,end:n,loc:new pe(i,a)};this.options.tokens&&this.state.tokens.push(s),this.state.comments.push(s),this.addComment(s)}},{key:"skipBlockComment",value:function(){var e,t=this.state.curPosition(),r=this.state.pos,n=this.input.indexOf("*/",this.state.pos+2);if(-1===n)throw this.raise(r,"Unterminated comment");for(this.state.pos=n+2,p.lastIndex=r;(e=p.exec(this.input))&&e.index=48&&t<=57)throw this.raise(this.state.pos,"Unexpected digit after hash token");if((this.hasPlugin("classPrivateProperties")||this.hasPlugin("classPrivateMethods"))&&this.state.classLevel>0)return++this.state.pos,void this.finishToken(o.hash);if("smart"!==this.getPluginOption("pipelineOperator","proposal"))throw this.raise(this.state.pos,"Unexpected character '#'");this.finishOp(o.hash,1)}}},{key:"readToken_dot",value:function(){var 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(o.ellipsis)):(++this.state.pos,this.finishToken(o.dot))}},{key:"readToken_slash",value:function(){if(this.state.exprAllowed&&!this.state.inType)return++this.state.pos,void this.readRegexp();61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(o.assign,2):this.finishOp(o.slash,1)}},{key:"readToken_interpreter",value:function(){if(0!==this.state.pos||this.length<2)return!1;var e=this.state.pos;this.state.pos+=1;var t=this.input.charCodeAt(this.state.pos);if(33!==t)return!1;for(;!f(t)&&++this.state.pos=48&&t<=57?(++this.state.pos,this.finishToken(o.question)):(this.state.pos+=2,this.finishToken(o.questionDot)):61===t?this.finishOp(o.assign,3):this.finishOp(o.nullishCoalescing,2)}},{key:"getTokenFromCode",value:function(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(o.parenL);case 41:return++this.state.pos,void this.finishToken(o.parenR);case 59:return++this.state.pos,void this.finishToken(o.semi);case 44:return++this.state.pos,void this.finishToken(o.comma);case 91:return++this.state.pos,void this.finishToken(o.bracketL);case 93:return++this.state.pos,void this.finishToken(o.bracketR);case 123:return++this.state.pos,void this.finishToken(o.braceL);case 125:return++this.state.pos,void this.finishToken(o.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(o.doubleColon,2):(++this.state.pos,this.finishToken(o.colon)));case 63:return void this.readToken_question();case 96:return++this.state.pos,void this.finishToken(o.backQuote);case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)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:case 62:return void this.readToken_lt_gt(e);case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(o.tilde,1);case 64:return++this.state.pos,void this.finishToken(o.at);case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if($(e))return void this.readWord()}throw this.raise(this.state.pos,"Unexpected character '".concat(String.fromCodePoint(e),"'"))}},{key:"finishOp",value:function(e,t){var r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}},{key:"readRegexp",value:function(){for(var e,t,r=this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.state.pos);if(l.test(n))throw this.raise(r,"Unterminated regular expression");if(e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.state.pos}var i=this.input.slice(r,this.state.pos);++this.state.pos;for(var a="";this.state.pos-1&&this.raise(this.state.pos+1,"Duplicate regular expression flag");else{if(!q(u)&&92!==u)break;this.raise(this.state.pos+1,"Invalid regular expression flag")}++this.state.pos,a+=s}this.finishToken(o.regexp,{pattern:i,flags:a})}},{key:"readInt",value:function(e,t,r){for(var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=this.state.pos,a=16===e?De.hex:De.decBinOct,s=16===e?ge.hex:10===e?ge.dec:8===e?ge.oct:ge.bin,o=!1,u=0,c=0,l=null==t?1/0:t;c-1||a.indexOf(d)>-1||Number.isNaN(d))&&this.raise(this.state.pos,"A numeric separator is only allowed between two digits"),n||this.raise(this.state.pos,"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences"),++this.state.pos}else{if((h=p>=97?p-97+10:p>=65?p-65+10:me(p)?p-48:1/0)>=e)if(this.options.errorRecovery&&h<=9)h=0,this.raise(this.state.start+c+2,"Expected number in radix "+e);else{if(!r)break;h=0,o=!0}++this.state.pos,u=u*e+h}}return this.state.pos===i||null!=t&&this.state.pos-i!==t||o?null:u}},{key:"readRadixNumber",value:function(e){var t=this.state.pos,r=!1;this.state.pos+=2;var n=this.readInt(e);if(null==n&&this.raise(this.state.start+2,"Expected number in radix "+e),this.hasPlugin("bigInt")&&110===this.input.charCodeAt(this.state.pos)&&(++this.state.pos,r=!0),$(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,"Identifier directly after number");if(r){var i=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(o.bigint,i)}else this.finishToken(o.num,n)}},{key:"readNumber",value:function(e){var t=this.state.pos,r=!1,n=!1,i=!1;e||null!==this.readInt(10)||this.raise(t,"Invalid number");var a=this.state.pos-t>=2&&48===this.input.charCodeAt(t);a&&(this.state.strict&&this.raise(t,"Legacy octal literals are not allowed in strict mode"),/[89]/.test(this.input.slice(t,this.state.pos))&&(a=!1,i=!0));var s=this.input.charCodeAt(this.state.pos);if(46!==s||a||(++this.state.pos,this.readInt(10),r=!0,s=this.input.charCodeAt(this.state.pos)),69!==s&&101!==s||a||(43!==(s=this.input.charCodeAt(++this.state.pos))&&45!==s||++this.state.pos,null===this.readInt(10)&&this.raise(t,"Invalid number"),r=!0,s=this.input.charCodeAt(this.state.pos)),this.hasPlugin("numericSeparator")&&(a||i)){var u=this.input.slice(t,this.state.pos).indexOf("_");u>0&&this.raise(u+t,"Numeric separator can not be used after leading 0")}if(this.hasPlugin("bigInt")&&110===s&&((r||a||i)&&this.raise(t,"Invalid BigIntLiteral"),++this.state.pos,n=!0),$(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,"Identifier directly after number");var c=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");if(n)this.finishToken(o.bigint,c);else{var l=a?parseInt(c,8):parseFloat(c);this.finishToken(o.num,l)}}},{key:"readCodePoint",value:function(e){var t;if(123===this.input.charCodeAt(this.state.pos)){var r=++this.state.pos;if(t=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,!0,e),++this.state.pos,null===t)--this.state.invalidTemplateEscapePosition;else if(t>1114111){if(!e)return this.state.invalidTemplateEscapePosition=r-2,null;this.raise(r,"Code point out of bounds")}}else t=this.readHexChar(4,!1,e);return t}},{key:"readString",value:function(e){for(var t="",r=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,"Unterminated string constant");var n=this.input.charCodeAt(this.state.pos);if(n===e)break;if(92===n)t+=this.input.slice(r,this.state.pos),t+=this.readEscapedChar(!1),r=this.state.pos;else if(8232===n||8233===n)++this.state.pos,++this.state.curLine;else{if(f(n))throw this.raise(this.state.start,"Unterminated string constant");++this.state.pos}}t+=this.input.slice(r,this.state.pos++),this.finishToken(o.string,t)}},{key:"readTmplToken",value:function(){for(var e="",t=this.state.pos,r=!1;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,"Unterminated template");var n=this.input.charCodeAt(this.state.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(o.template)?36===n?(this.state.pos+=2,void this.finishToken(o.dollarBraceL)):(++this.state.pos,void this.finishToken(o.backQuote)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(o.template,r?null:e));if(92===n){e+=this.input.slice(t,this.state.pos);var i=this.readEscapedChar(!0);null===i?r=!0:e+=i,t=this.state.pos}else if(f(n)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,n){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}}},{key:"readEscapedChar",value:function(e){var t=!e,r=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,r){case 110:return"\n";case 114:return"\r";case 120:var n=this.readHexChar(2,!1,t);return null===n?null:String.fromCharCode(n);case 117:var i=this.readCodePoint(t);return null===i?null:String.fromCodePoint(i);case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(e){var a=this.state.pos-1;return this.state.invalidTemplateEscapePosition=a,null}default:if(r>=48&&r<=55){var s=this.state.pos-1,o=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],u=parseInt(o,8);u>255&&(o=o.slice(0,-1),u=parseInt(o,8)),this.state.pos+=o.length-1;var c=this.input.charCodeAt(this.state.pos);if("0"!==o||56===c||57===c){if(e)return this.state.invalidTemplateEscapePosition=s,null;this.state.strict?this.raise(s,"Octal literal in strict mode"):this.state.containsOctal||(this.state.containsOctal=!0,this.state.octalPosition=s)}return String.fromCharCode(u)}return String.fromCharCode(r)}}},{key:"readHexChar",value:function(e,t,r){var n=this.state.pos,i=this.readInt(16,e,t,!1);return null===i&&(r?this.raise(n,"Bad character escape sequence"):(this.state.pos=n-1,this.state.invalidTemplateEscapePosition=n-1)),i}},{key:"readWord1",value:function(){var e="";this.state.containsEsc=!1;for(var t=this.state.pos,r=this.state.pos;this.state.pos0)for(var r=0,n=Array.from(this.scope.undefinedExports);r-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.match(o._var)||this.match(o._const)||r){var n=this.startNode(),i=r?"let":this.state.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),(this.match(o._in)||this.isContextual("of"))&&1===n.declarations.length?this.parseForIn(e,n,t):(t>-1&&this.unexpected(t),this.parseFor(e,n))}var a={start:0},s=this.parseExpression(!0,a);if(this.match(o._in)||this.isContextual("of")){var u=this.isContextual("of")?"for-of statement":"for-in statement";return this.toAssignable(s,void 0,u),this.checkLVal(s,void 0,void 0,u),this.parseForIn(e,s,t)}return a.start&&this.unexpected(a.start),t>-1&&this.unexpected(t),this.parseFor(e,s)}},{key:"parseFunctionStatement",value:function(e,t,r){return this.next(),this.parseFunction(e,1|(r?0:2),t)}},{key:"parseIfStatement",value:function(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(o._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")}},{key:"parseReturnStatement",value:function(e){return this.scope.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.state.start,"'return' outside of function"),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}},{key:"parseSwitchStatement",value:function(e){this.next(),e.discriminant=this.parseHeaderExpression();var t,r,n=e.cases=[];for(this.expect(o.braceL),this.state.labels.push(Ae),this.scope.enter(0);!this.match(o.braceR);)if(this.match(o._case)||this.match(o._default)){var i=this.match(o._case);t&&this.finishNode(t,"SwitchCase"),n.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(r&&this.raise(this.state.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(o.colon)}else t?t.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}},{key:"parseThrowStatement",value:function(e){return this.next(),l.test(this.input.slice(this.state.lastTokEnd,this.state.start))&&this.raise(this.state.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}},{key:"parseTryStatement",value:function(e){var t=this;if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(o._catch)){var r=this.startNode();if(this.next(),this.match(o.parenL)){this.expect(o.parenL),r.param=this.parseBindingAtom();var n="Identifier"===r.param.type;this.scope.enter(n?32:0),this.checkLVal(r.param,9,null,"catch clause"),this.expect(o.parenR)}else r.param=null,this.scope.enter(0);r.body=this.withTopicForbiddingContext((function(){return t.parseBlock(!1,!1)})),this.scope.exit(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(o._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")}},{key:"parseVarStatement",value:function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")}},{key:"parseWhileStatement",value:function(e){var t=this;return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(xe),e.body=this.withTopicForbiddingContext((function(){return t.parseStatement("while")})),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}},{key:"parseWithStatement",value:function(e){var t=this;return this.state.strict&&this.raise(this.state.start,"'with' in strict mode"),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withTopicForbiddingContext((function(){return t.parseStatement("with")})),this.finishNode(e,"WithStatement")}},{key:"parseEmptyStatement",value:function(e){return this.next(),this.finishNode(e,"EmptyStatement")}},{key:"parseLabeledStatement",value:function(e,t,r,n){for(var i=0,a=this.state.labels;i=0;u--){var c=this.state.labels[u];if(c.statementStart!==e.start)break;c.statementStart=this.state.start,c.kind=s}return this.state.labels.push({name:t,kind:s,statementStart:this.state.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}},{key:"parseExpressionStatement",value:function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}},{key:"parseBlock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.startNode();return this.expect(o.braceL),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,o.braceR),t&&this.scope.exit(),this.finishNode(r,"BlockStatement")}},{key:"isValidDirective",value:function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}},{key:"parseBlockBody",value:function(e,t,r,n){var i=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?a:void 0,r,n)}},{key:"parseBlockOrModuleBlockBody",value:function(e,t,r,n){for(var i,a,s=!1;!this.eat(n);){s||!this.state.containsOctal||a||(a=this.state.octalPosition);var o=this.parseStatement(null,r);if(t&&!s&&this.isValidDirective(o)){var u=this.stmtToDirective(o);t.push(u),void 0===i&&"use strict"===u.value.value&&(i=this.state.strict,this.setStrict(!0),a&&this.raise(a,"Octal literal in strict mode"))}else s=!0,e.push(o)}!1===i&&this.setStrict(!1)}},{key:"parseFor",value:function(e,t){var r=this;return e.init=t,this.expect(o.semi),e.test=this.match(o.semi)?null:this.parseExpression(),this.expect(o.semi),e.update=this.match(o.parenR)?null:this.parseExpression(),this.expect(o.parenR),e.body=this.withTopicForbiddingContext((function(){return r.parseStatement("for")})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}},{key:"parseForIn",value:function(e,t,r){var n=this,i=this.match(o._in);return this.next(),i?r>-1&&this.unexpected(r):e.await=r>-1,"VariableDeclaration"!==t.type||null==t.declarations[0].init||i&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type?"AssignmentPattern"===t.type&&this.raise(t.start,"Invalid left-hand side in for-loop"):this.raise(t.start,"".concat(i?"for-in":"for-of"," loop variable declaration may not have an initializer")),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(o.parenR),e.body=this.withTopicForbiddingContext((function(){return n.parseStatement("for")})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")}},{key:"parseVar",value:function(e,t,r){var n=e.declarations=[],i=this.hasPlugin("typescript");for(e.kind=r;;){var a=this.startNode();if(this.parseVarId(a,r),this.eat(o.eq)?a.init=this.parseMaybeAssign(t):("const"!==r||this.match(o._in)||this.isContextual("of")?"Identifier"===a.id.type||t&&(this.match(o._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,"Complex binding patterns require an initialization value"):i||this.unexpected(),a.init=null),n.push(this.finishNode(a,"VariableDeclarator")),!this.eat(o.comma))break}return e}},{key:"parseVarId",value:function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"var"===t?5:9,void 0,"variable declaration","var"!==t)}},{key:"parseFunction",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=1&r,a=2&r,s=!(!i||4&r);this.initFunction(e,n),this.match(o.star)&&a&&this.raise(this.state.start,"Generators can only be declared at the top level or inside a block"),e.generator=this.eat(o.star),i&&(e.id=this.parseFunctionId(s));var c=this.state.maybeInArrowParameters,l=this.state.inClassProperty,p=this.state.yieldPos,h=this.state.awaitPos;return this.state.maybeInArrowParameters=!1,this.state.inClassProperty=!1,this.state.yieldPos=-1,this.state.awaitPos=-1,this.scope.enter(u(e.async,e.generator)),i||(e.id=this.parseFunctionId()),this.parseFunctionParams(e),this.withTopicForbiddingContext((function(){t.parseFunctionBodyAndFinish(e,i?"FunctionDeclaration":"FunctionExpression")})),this.scope.exit(),i&&!a&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=c,this.state.inClassProperty=l,this.state.yieldPos=p,this.state.awaitPos=h,e}},{key:"parseFunctionId",value:function(e){return e||this.match(o.name)?this.parseIdentifier():null}},{key:"parseFunctionParams",value:function(e,t){var r=this.state.inParameters;this.state.inParameters=!0,this.expect(o.parenL),e.params=this.parseBindingList(o.parenR,41,!1,t),this.state.inParameters=r,this.checkYieldAwaitInDefaultParams()}},{key:"registerFunctionStatementId",value:function(e){e.id&&this.scope.declareName(e.id.name,this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:9:17,e.id.start)}},{key:"parseClass",value:function(e,t,r){this.next(),this.takeDecorators(e);var n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass),this.state.strict=n,this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}},{key:"isClassProperty",value:function(){return this.match(o.eq)||this.match(o.semi)||this.match(o.braceR)}},{key:"isClassMethod",value:function(){return this.match(o.parenL)}},{key:"isNonstaticConstructor",value:function(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)}},{key:"parseClassBody",value:function(e){var t=this;this.state.classLevel++;var r={hadConstructor:!1},n=[],i=this.startNode();if(i.body=[],this.expect(o.braceL),this.withTopicForbiddingContext((function(){for(;!t.eat(o.braceR);)if(t.eat(o.semi)){if(n.length>0)throw t.raise(t.state.lastTokEnd,"Decorators must not be followed by a semicolon")}else if(t.match(o.at))n.push(t.parseDecorator());else{var a=t.startNode();n.length&&(a.decorators=n,t.resetStartLocationFromNode(a,n[0]),n=[]),t.parseClassMember(i,a,r,e),"constructor"===a.kind&&a.decorators&&a.decorators.length>0&&t.raise(a.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")}})),n.length)throw this.raise(this.state.start,"You have trailing decorators with no method");return this.state.classLevel--,this.finishNode(i,"ClassBody")}},{key:"parseClassMember",value:function(e,t,r,n){var i=!1,a=this.state.containsEsc;if(this.match(o.name)&&"static"===this.state.value){var s=this.parseIdentifier(!0);if(this.isClassMethod()){var u=t;return u.kind="method",u.computed=!1,u.key=s,u.static=!1,void this.pushClassMethod(e,u,!1,!1,!1,!1)}if(this.isClassProperty()){var c=t;return c.computed=!1,c.key=s,c.static=!1,void e.body.push(this.parseClassProperty(c))}if(a)throw this.unexpected();i=!0}this.parseClassMemberWithIsStatic(e,t,r,i,n)}},{key:"parseClassMemberWithIsStatic",value:function(e,t,r,n,i){var a=t,s=t,u=t,c=t,l=a,p=a;if(t.static=n,this.eat(o.star))return l.kind="method",this.parseClassPropertyName(l),"PrivateName"===l.key.type?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't be a generator"),void this.pushClassMethod(e,a,!0,!1,!1,!1));var h=this.state.containsEsc,f=this.parseClassPropertyName(t),d="PrivateName"===f.type,m="Identifier"===f.type,y=this.state.start;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(l.kind="method",d)return void this.pushClassPrivateMethod(e,s,!1,!1);var D=this.isNonstaticConstructor(a),g=!1;D&&(a.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(f.start,"Duplicate constructor in the same class"),r.hadConstructor=!0,g=i),this.pushClassMethod(e,a,!1,!1,D,g)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,c):this.pushClassProperty(e,u);else if(!m||"async"!==f.name||h||this.isLineTerminator())!m||"get"!==f.name&&"set"!==f.name||h||this.match(o.star)&&this.isLineTerminator()?this.isLineTerminator()?d?this.pushClassPrivateProperty(e,c):this.pushClassProperty(e,u):this.unexpected():(l.kind=f.name,this.parseClassPropertyName(a),"PrivateName"===l.key.type?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't have get/set modifier"),this.pushClassMethod(e,a,!1,!1,!1,!1)),this.checkGetterSetterParams(a));else{var v=this.eat(o.star);p.optional&&this.unexpected(y),l.kind="method",this.parseClassPropertyName(l),"PrivateName"===l.key.type?this.pushClassPrivateMethod(e,s,v,!0):(this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't be an async function"),this.pushClassMethod(e,a,v,!0,!1,!1))}}},{key:"parseClassPropertyName",value:function(e){var t=this.parsePropertyName(e);return e.computed||!e.static||"prototype"!==t.name&&"prototype"!==t.value||this.raise(t.start,"Classes may not have static property named prototype"),"PrivateName"===t.type&&"constructor"===t.id.name&&this.raise(t.start,"Classes may not have a private field named '#constructor'"),t}},{key:"pushClassProperty",value:function(e,t){t.computed||"constructor"!==t.key.name&&"constructor"!==t.key.value||this.raise(t.key.start,"Classes may not have a field named 'constructor'"),e.body.push(this.parseClassProperty(t))}},{key:"pushClassPrivateProperty",value:function(e,t){this.expectPlugin("classPrivateProperties",t.key.start),e.body.push(this.parseClassPrivateProperty(t))}},{key:"pushClassMethod",value:function(e,t,r,n,i,a){e.body.push(this.parseMethod(t,r,n,i,a,"ClassMethod",!0))}},{key:"pushClassPrivateMethod",value:function(e,t,r,n){this.expectPlugin("classPrivateMethods",t.key.start),e.body.push(this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0))}},{key:"parsePostMemberNameModifiers",value:function(e){}},{key:"parseAccessModifier",value:function(){}},{key:"parseClassPrivateProperty",value:function(e){return this.state.inClassProperty=!0,this.scope.enter(320),e.value=this.eat(o.eq)?this.parseMaybeAssign():null,this.semicolon(),this.state.inClassProperty=!1,this.scope.exit(),this.finishNode(e,"ClassPrivateProperty")}},{key:"parseClassProperty",value:function(e){return e.typeAnnotation||this.expectPlugin("classProperties"),this.state.inClassProperty=!0,this.scope.enter(320),this.match(o.eq)?(this.expectPlugin("classProperties"),this.next(),e.value=this.parseMaybeAssign()):e.value=null,this.semicolon(),this.state.inClassProperty=!1,this.scope.exit(),this.finishNode(e,"ClassProperty")}},{key:"parseClassId",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:139;this.match(o.name)?(e.id=this.parseIdentifier(),t&&this.checkLVal(e.id,n,void 0,"class name")):r||!t?e.id=null:this.unexpected(null,"A class name is required")}},{key:"parseClassSuper",value:function(e){e.superClass=this.eat(o._extends)?this.parseExprSubscripts():null}},{key:"parseExport",value:function(e){var t=this.maybeParseExportDefaultSpecifier(e),r=!t||this.eat(o.comma),n=r&&this.eatExportStar(e),i=n&&this.maybeParseExportNamespaceSpecifier(e),a=r&&(!i||this.eat(o.comma)),s=t||n;if(n&&!i)return t&&this.unexpected(),this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");var u,c=this.maybeParseExportNamedSpecifiers(e);if(t&&r&&!n&&!c||i&&a&&!c)throw this.unexpected(null,o.braceL);if(s||c?(u=!1,this.parseExportFrom(e,s)):u=this.maybeParseExportDeclaration(e),s||c||u)return this.checkExport(e,!0,!1,!!e.source),this.finishNode(e,"ExportNamedDeclaration");if(this.eat(o._default))return e.declaration=this.parseExportDefaultExpression(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration");throw this.unexpected(null,o.braceL)}},{key:"eatExportStar",value:function(e){return this.eat(o.star)}},{key:"maybeParseExportDefaultSpecifier",value:function(e){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");var t=this.startNode();return t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],!0}return!1}},{key:"maybeParseExportNamespaceSpecifier",value:function(e){if(this.isContextual("as")){e.specifiers||(e.specifiers=[]);var t=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),t.exported=this.parseIdentifier(!0),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}},{key:"maybeParseExportNamedSpecifiers",value:function(e){var t;return!!this.match(o.braceL)&&(e.specifiers||(e.specifiers=[]),(t=e.specifiers).push.apply(t,b(this.parseExportSpecifiers())),e.source=null,e.declaration=null,!0)}},{key:"maybeParseExportDeclaration",value:function(e){if(this.shouldParseExportDeclaration()){if(this.isContextual("async")){var t=this.nextTokenStart();this.isUnparsedContextual(t,"function")||this.unexpected(t,'Unexpected token, expected "function"')}return e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e),!0}return!1}},{key:"isAsyncFunction",value:function(){if(!this.isContextual("async"))return!1;var e=this.nextTokenStart();return!l.test(this.input.slice(this.state.pos,e))&&this.isUnparsedContextual(e,"function")}},{key:"parseExportDefaultExpression",value:function(){var e=this.startNode(),t=this.isAsyncFunction();if(this.match(o._function)||t)return this.next(),t&&this.next(),this.parseFunction(e,5,t);if(this.match(o._class))return this.parseClass(e,!0,!0);if(this.match(o.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax"),this.parseDecorators(!1),this.parseClass(e,!0,!0);if(this.match(o._const)||this.match(o._var)||this.isLet())throw this.raise(this.state.start,"Only expressions, functions or classes are allowed as the `default` export.");var r=this.parseMaybeAssign();return this.semicolon(),r}},{key:"parseExportDeclaration",value:function(e){return this.parseStatement(null)}},{key:"isExportDefaultSpecifier",value:function(){if(this.match(o.name))return"async"!==this.state.value&&"let"!==this.state.value;if(!this.match(o._default))return!1;var e=this.nextTokenStart();return 44===this.input.charCodeAt(e)||this.isUnparsedContextual(e,"from")}},{key:"parseExportFrom",value:function(e,t){this.eatContextual("from")?(e.source=this.parseImportSource(),this.checkExport(e)):t?this.unexpected():e.source=null,this.semicolon()}},{key:"shouldParseExportDeclaration",value:function(){if(this.match(o.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax")}return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isLet()||this.isAsyncFunction()}},{key:"checkExport",value:function(e,t,r,n){if(t)if(r)this.checkDuplicateExports(e,"default");else if(e.specifiers&&e.specifiers.length)for(var i=0,a=e.specifiers;i-1&&this.raise(e.start,"default"===t?"Only one default export allowed per module.":"`".concat(t,"` has already been exported. Exported identifiers must be unique.")),this.state.exportedIdentifiers.push(t)}},{key:"parseExportSpecifiers",value:function(){var e=[],t=!0;for(this.expect(o.braceL);!this.eat(o.braceR);){if(t)t=!1;else if(this.expect(o.comma),this.eat(o.braceR))break;var r=this.startNode();r.local=this.parseIdentifier(!0),r.exported=this.eatContextual("as")?this.parseIdentifier(!0):r.local.__clone(),e.push(this.finishNode(r,"ExportSpecifier"))}return e}},{key:"parseImport",value:function(e){if(e.specifiers=[],!this.match(o.string)){var t=!this.maybeParseDefaultImportSpecifier(e)||this.eat(o.comma),r=t&&this.maybeParseStarImportSpecifier(e);t&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual("from")}return e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}},{key:"parseImportSource",value:function(){return this.match(o.string)||this.unexpected(),this.parseExprAtom()}},{key:"shouldParseDefaultImport",value:function(e){return this.match(o.name)}},{key:"parseImportSpecifierLocal",value:function(e,t,r,n){t.local=this.parseIdentifier(),this.checkLVal(t.local,9,void 0,n),e.specifiers.push(this.finishNode(t,r))}},{key:"maybeParseDefaultImportSpecifier",value:function(e){return!!this.shouldParseDefaultImport(e)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0)}},{key:"maybeParseStarImportSpecifier",value:function(e){if(this.match(o.star)){var t=this.startNode();return this.next(),this.expectContextual("as"),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier","import namespace specifier"),!0}return!1}},{key:"parseNamedImportSpecifiers",value:function(e){var t=!0;for(this.expect(o.braceL);!this.eat(o.braceR);){if(t)t=!1;else{if(this.eat(o.colon))throw this.raise(this.state.start,"ES2015 named imports do not destructure. Use another statement for destructuring after the import.");if(this.expect(o.comma),this.eat(o.braceR))break}this.parseImportSpecifier(e)}}},{key:"parseImportSpecifier",value:function(e){var t=this.startNode();t.imported=this.parseIdentifier(!0),this.eatContextual("as")?t.local=this.parseIdentifier():(this.checkReservedWord(t.imported.name,t.start,!0,!0),t.local=t.imported.__clone()),this.checkLVal(t.local,9,void 0,"import specifier"),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))}}]),t}(function(e){function t(){return h(this,t),g(this,y(t).apply(this,arguments))}return m(t,e),d(t,[{key:"checkDuplicatedProto",value:function(e,t){if(!("SpreadElement"===e.type||e.computed||e.kind||e.shorthand)){var r=e.key;"__proto__"===("Identifier"===r.type?r.name:String(r.value))&&(t.used&&!t.start&&(t.start=r.start),t.used=!0)}}},{key:"getExpression",value:function(){this.scope.enter(1),this.nextToken();var e=this.parseExpression();return this.match(o.eof)||this.unexpected(),e.comments=this.state.comments,e.errors=this.state.errors,e}},{key:"parseExpression",value:function(e,t){var r=this.state.start,n=this.state.startLoc,i=this.parseMaybeAssign(e,t);if(this.match(o.comma)){var a=this.startNodeAt(r,n);for(a.expressions=[i];this.eat(o.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.toReferencedList(a.expressions),this.finishNode(a,"SequenceExpression")}return i}},{key:"parseMaybeAssign",value:function(e,t,r,n){var i,a=this.state.start,s=this.state.startLoc;if(this.isContextual("yield")){if(this.scope.inGenerator){var u=this.parseYield(e);return r&&(u=r.call(this,u,a,s)),u}this.state.exprAllowed=!1}t?i=!1:(t={start:0},i=!0),(this.match(o.parenL)||this.match(o.name))&&(this.state.potentialArrowAt=this.state.start);var c=this.parseMaybeConditional(e,t,n);if(r&&(c=r.call(this,c,a,s)),this.state.type.isAssign){var l=this.startNodeAt(a,s),p=this.state.value;l.operator=p,"??="===p&&(this.expectPlugin("nullishCoalescingOperator"),this.expectPlugin("logicalAssignment")),"||="!==p&&"&&="!==p||this.expectPlugin("logicalAssignment"),l.left=this.match(o.eq)?this.toAssignable(c,void 0,"assignment expression"):c,t.start>=l.left.start&&(t.start=0),this.checkLVal(c,void 0,void 0,"assignment expression");var h,f=function e(t){return"ParenthesizedExpression"===t.type?e(t.expression):t}(c);return"ObjectPattern"===f.type?h="`({a}) = 0` use `({a} = 0)`":"ArrayPattern"===f.type&&(h="`([a]) = 0` use `([a] = 0)`"),h&&(c.extra&&c.extra.parenthesized||"ParenthesizedExpression"===c.type)&&this.raise(f.start,"You're trying to assign to a parenthesized expression, eg. instead of ".concat(h)),this.next(),l.right=this.parseMaybeAssign(e),this.finishNode(l,"AssignmentExpression")}return i&&t.start&&this.unexpected(t.start),c}},{key:"parseMaybeConditional",value:function(e,t,r){var n=this.state.start,i=this.state.startLoc,a=this.state.potentialArrowAt,s=this.parseExprOps(e,t);return"ArrowFunctionExpression"===s.type&&s.start===a?s:t&&t.start?s:this.parseConditional(s,e,n,i,r)}},{key:"parseConditional",value:function(e,t,r,n,i){if(this.eat(o.question)){var a=this.startNodeAt(r,n);return a.test=e,a.consequent=this.parseMaybeAssign(),this.expect(o.colon),a.alternate=this.parseMaybeAssign(t),this.finishNode(a,"ConditionalExpression")}return e}},{key:"parseExprOps",value:function(e,t){var r=this.state.start,n=this.state.startLoc,i=this.state.potentialArrowAt,a=this.parseMaybeUnary(t);return"ArrowFunctionExpression"===a.type&&a.start===i?a:t&&t.start?a:this.parseExprOp(a,r,n,-1,e)}},{key:"parseExprOp",value:function(e,t,r,n,i){var a=this.state.type.binop;if(!(null==a||i&&this.match(o._in))&&a>n){var s=this.state.value;if("|>"===s&&this.state.inFSharpPipelineDirectBody)return e;var u=this.startNodeAt(t,r);u.left=e,u.operator=s,"**"!==s||"UnaryExpression"!==e.type||!this.options.createParenthesizedExpressions&&e.extra&&e.extra.parenthesized||this.raise(e.argument.start,"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.");var c=this.state.type;if(c===o.pipeline?(this.expectPlugin("pipelineOperator"),this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(e,t)):c===o.nullishCoalescing&&this.expectPlugin("nullishCoalescingOperator"),this.next(),c===o.pipeline&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&this.match(o.name)&&"await"===this.state.value&&this.scope.inAsync)throw this.raise(this.state.start,'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal');if(u.right=this.parseExprOpRightExpr(c,a,i),c===o.nullishCoalescing){if(!("LogicalExpression"!==e.type||"??"===e.operator||e.extra&&e.extra.parenthesized))throw this.raise(e.start,"Nullish coalescing operator(??) requires parens when mixing with logical operators");if(!("LogicalExpression"!==u.right.type||"??"===u.right.operator||u.right.extra&&u.right.extra.parenthesized))throw this.raise(u.right.start,"Nullish coalescing operator(??) requires parens when mixing with logical operators")}return this.finishNode(u,c===o.logicalOR||c===o.logicalAND||c===o.nullishCoalescing?"LogicalExpression":"BinaryExpression"),this.parseExprOp(u,t,r,n,i)}return e}},{key:"parseExprOpRightExpr",value:function(e,t,r){var n=this,i=this.state.start,a=this.state.startLoc;switch(e){case o.pipeline:switch(this.getPluginOption("pipelineOperator","proposal")){case"smart":return this.withTopicPermittingContext((function(){return n.parseSmartPipelineBody(n.parseExprOpBaseRightExpr(e,t,r),i,a)}));case"fsharp":return this.withSoloAwaitPermittingContext((function(){return n.parseFSharpPipelineBody(t,r)}))}default:return this.parseExprOpBaseRightExpr(e,t,r)}}},{key:"parseExprOpBaseRightExpr",value:function(e,t,r){var n=this.state.start,i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),n,i,e.rightAssociative?t-1:t,r)}},{key:"parseMaybeUnary",value:function(e){if(this.isContextual("await")&&this.isAwaitAllowed())return this.parseAwait();if(this.state.type.prefix){var t=this.startNode(),r=this.match(o.incDec);if(t.operator=this.state.value,t.prefix=!0,"throw"===t.operator&&this.expectPlugin("throwExpressions"),this.next(),t.argument=this.parseMaybeUnary(),e&&e.start&&this.unexpected(e.start),r)this.checkLVal(t.argument,void 0,void 0,"prefix operation");else if(this.state.strict&&"delete"===t.operator){var n=t.argument;"Identifier"===n.type?this.raise(t.start,"Deleting local variable in strict mode"):"MemberExpression"===n.type&&"PrivateName"===n.property.type&&this.raise(t.start,"Deleting a private field is not allowed")}return this.finishNode(t,r?"UpdateExpression":"UnaryExpression")}var i=this.state.start,a=this.state.startLoc,s=this.parseExprSubscripts(e);if(e&&e.start)return s;for(;this.state.type.postfix&&!this.canInsertSemicolon();){var u=this.startNodeAt(i,a);u.operator=this.state.value,u.prefix=!1,u.argument=s,this.checkLVal(s,void 0,void 0,"postfix operation"),this.next(),s=this.finishNode(u,"UpdateExpression")}return s}},{key:"parseExprSubscripts",value:function(e){var t=this.state.start,r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprAtom(e);return"ArrowFunctionExpression"===i.type&&i.start===n?i:e&&e.start?i:this.parseSubscripts(i,t,r)}},{key:"parseSubscripts",value:function(e,t,r,n){var i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsync(e),stop:!1};do{e=this.parseSubscript(e,t,r,n,i),i.maybeAsyncArrow=!1}while(!i.stop);return e}},{key:"parseSubscript",value:function(e,t,r,n,i){if(!n&&this.eat(o.doubleColon)){var a=this.startNodeAt(t,r);return a.object=e,a.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(a,"BindExpression"),t,r,n)}if(this.match(o.questionDot)){if(this.expectPlugin("optionalChaining"),i.optionalChainMember=!0,n&&40===this.lookaheadCharCode())return i.stop=!0,e;this.next();var s=this.startNodeAt(t,r);return this.eat(o.bracketL)?(s.object=e,s.property=this.parseExpression(),s.computed=!0,s.optional=!0,this.expect(o.bracketR),this.finishNode(s,"OptionalMemberExpression")):this.eat(o.parenL)?(s.callee=e,s.arguments=this.parseCallExpressionArguments(o.parenR,!1),s.optional=!0,this.finishCallExpression(s,!0)):(s.object=e,s.property=this.parseIdentifier(!0),s.computed=!1,s.optional=!0,this.finishNode(s,"OptionalMemberExpression"))}if(this.eat(o.dot)){var u=this.startNodeAt(t,r);return u.object=e,u.property=this.parseMaybePrivateName(),u.computed=!1,"PrivateName"===u.property.type&&"Super"===u.object.type&&this.raise(t,"Private fields can't be accessed on super"),i.optionalChainMember?(u.optional=!1,this.finishNode(u,"OptionalMemberExpression")):this.finishNode(u,"MemberExpression")}if(this.eat(o.bracketL)){var c=this.startNodeAt(t,r);return c.object=e,c.property=this.parseExpression(),c.computed=!0,this.expect(o.bracketR),i.optionalChainMember?(c.optional=!1,this.finishNode(c,"OptionalMemberExpression")):this.finishNode(c,"MemberExpression")}if(!n&&this.match(o.parenL)){var l=this.state.maybeInArrowParameters,p=this.state.yieldPos,h=this.state.awaitPos;this.state.maybeInArrowParameters=!0,this.state.yieldPos=-1,this.state.awaitPos=-1,this.next();var f=this.startNodeAt(t,r);return f.callee=e,f.arguments=this.parseCallExpressionArguments(o.parenR,i.maybeAsyncArrow,"Import"===e.type,"Super"!==e.type,f),this.finishCallExpression(f,i.optionalChainMember),i.maybeAsyncArrow&&this.shouldParseAsyncArrow()?(i.stop=!0,f=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,r),f),this.checkYieldAwaitInDefaultParams(),this.state.yieldPos=p,this.state.awaitPos=h):(this.toReferencedListDeep(f.arguments),-1!==p&&(this.state.yieldPos=p),(this.isAwaitAllowed()||l)&&-1===h||(this.state.awaitPos=h)),this.state.maybeInArrowParameters=l,f}return this.match(o.backQuote)?this.parseTaggedTemplateExpression(t,r,e,i):(i.stop=!0,e)}},{key:"parseTaggedTemplateExpression",value:function(e,t,r,n,i){var a=this.startNodeAt(e,t);return a.tag=r,a.quasi=this.parseTemplate(!0),i&&(a.typeParameters=i),n.optionalChainMember&&this.raise(e,"Tagged Template Literals are not allowed in optionalChain"),this.finishNode(a,"TaggedTemplateExpression")}},{key:"atPossibleAsync",value:function(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEnd===e.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(e.start,e.end)}},{key:"finishCallExpression",value:function(e,t){if("Import"===e.callee.type)if(1!==e.arguments.length)this.raise(e.start,"import() requires exactly one argument");else{var r=e.arguments[0];r&&"SpreadElement"===r.type&&this.raise(r.start,"... is not allowed in import()")}return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}},{key:"parseCallExpressionArguments",value:function(e,t,r,n,i){var a,s=[],u=!0,c=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(u)u=!1;else if(this.expect(o.comma),this.match(e)){r&&this.raise(this.state.lastTokStart,"Trailing comma is disallowed inside import(...) arguments"),i&&this.addExtra(i,"trailingComma",this.state.lastTokStart),this.next();break}this.match(o.parenL)&&!a&&(a=this.state.start),s.push(this.parseExprListItem(!1,t?{start:0}:void 0,t?{start:0}:void 0,n))}return t&&a&&this.shouldParseAsyncArrow()&&this.unexpected(),this.state.inFSharpPipelineDirectBody=c,s}},{key:"shouldParseAsyncArrow",value:function(){return this.match(o.arrow)&&!this.canInsertSemicolon()}},{key:"parseAsyncArrowFromCallExpression",value:function(e,t){var r;return this.expect(o.arrow),this.parseArrowExpression(e,t.arguments,!0,null===(r=t.extra)||void 0===r?void 0:r.trailingComma),e}},{key:"parseNoCallExpr",value:function(){var e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)}},{key:"parseExprAtom",value:function(e){this.state.type===o.slash&&this.readRegexp();var t,r=this.state.potentialArrowAt===this.state.start;switch(this.state.type){case o._super:return t=this.startNode(),this.next(),!this.match(o.parenL)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(t.start,"super is only allowed in object methods and classes"):this.raise(t.start,"super() is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?"),this.match(o.parenL)||this.match(o.bracketL)||this.match(o.dot)||this.raise(t.start,"super can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop])"),this.finishNode(t,"Super");case o._import:return t=this.startNode(),this.next(),this.match(o.dot)?this.parseImportMetaProperty(t):(this.expectPlugin("dynamicImport",t.start),this.match(o.parenL)||this.unexpected(null,o.parenL),this.finishNode(t,"Import"));case o._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case o.name:t=this.startNode();var n=this.state.containsEsc,i=this.parseIdentifier();if(!n&&"async"===i.name&&this.match(o._function)&&!this.canInsertSemicolon())return this.next(),this.parseFunction(t,void 0,!0);if(r&&!n&&"async"===i.name&&this.match(o.name)&&!this.canInsertSemicolon()){var a=[this.parseIdentifier()];return this.expect(o.arrow),this.parseArrowExpression(t,a,!0),t}return r&&this.match(o.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(t,[i],!1),t):i;case o._do:this.expectPlugin("doExpressions");var s=this.startNode();this.next();var u=this.state.labels;return this.state.labels=[],s.body=this.parseBlock(),this.state.labels=u,this.finishNode(s,"DoExpression");case o.regexp:var c=this.state.value;return(t=this.parseLiteral(c.value,"RegExpLiteral")).pattern=c.pattern,t.flags=c.flags,t;case o.num:return this.parseLiteral(this.state.value,"NumericLiteral");case o.bigint:return this.parseLiteral(this.state.value,"BigIntLiteral");case o.string:return this.parseLiteral(this.state.value,"StringLiteral");case o._null:return t=this.startNode(),this.next(),this.finishNode(t,"NullLiteral");case o._true:case o._false:return this.parseBooleanLiteral();case o.parenL:return this.parseParenAndDistinguishExpression(r);case o.bracketL:var l=this.state.inFSharpPipelineDirectBody;return this.state.inFSharpPipelineDirectBody=!1,t=this.startNode(),this.next(),t.elements=this.parseExprList(o.bracketR,!0,e,t),this.state.maybeInArrowParameters||this.toReferencedList(t.elements),this.state.inFSharpPipelineDirectBody=l,this.finishNode(t,"ArrayExpression");case o.braceL:var p=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var h=this.parseObj(!1,e);return this.state.inFSharpPipelineDirectBody=p,h;case o._function:return this.parseFunctionExpression();case o.at:this.parseDecorators();case o._class:return t=this.startNode(),this.takeDecorators(t),this.parseClass(t,!1);case o._new:return this.parseNew();case o.backQuote:return this.parseTemplate(!1);case o.doubleColon:t=this.startNode(),this.next(),t.object=null;var f=t.callee=this.parseNoCallExpr();if("MemberExpression"===f.type)return this.finishNode(t,"BindExpression");throw this.raise(f.start,"Binding should be performed on object property.");case o.hash:if(this.state.inPipeline)return t=this.startNode(),"smart"!==this.getPluginOption("pipelineOperator","proposal")&&this.raise(t.start,"Primary Topic Reference found but pipelineOperator not passed 'smart' for 'proposal' option."),this.next(),this.primaryTopicReferenceIsAllowedInCurrentTopicContext()||this.raise(t.start,"Topic reference was used in a lexical context without topic binding"),this.registerTopicReference(),this.finishNode(t,"PipelinePrimaryTopicReference");default:throw this.unexpected()}}},{key:"parseBooleanLiteral",value:function(){var e=this.startNode();return e.value=this.match(o._true),this.next(),this.finishNode(e,"BooleanLiteral")}},{key:"parseMaybePrivateName",value:function(){if(this.match(o.hash)){this.expectOnePlugin(["classPrivateProperties","classPrivateMethods"]);var e=this.startNode();return this.next(),this.assertNoSpace("Unexpected space between # and identifier"),e.id=this.parseIdentifier(!0),this.finishNode(e,"PrivateName")}return this.parseIdentifier(!0)}},{key:"parseFunctionExpression",value:function(){var e=this.startNode(),t=this.startNode();return this.next(),t=this.createIdentifier(t,"function"),this.scope.inGenerator&&this.eat(o.dot)?this.parseMetaProperty(e,t,"sent"):this.parseFunction(e)}},{key:"parseMetaProperty",value:function(e,t,r){e.meta=t,"function"===t.name&&"sent"===r&&(this.isContextual(r)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());var n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(e.property.start,"The only valid meta property for ".concat(t.name," is ").concat(t.name,".").concat(r)),this.finishNode(e,"MetaProperty")}},{key:"parseImportMetaProperty",value:function(e){var t=this.createIdentifier(this.startNodeAtNode(e),"import");return this.expect(o.dot),this.isContextual("meta")?(this.expectPlugin("importMeta"),this.inModule||this.raise(t.start,"import.meta may appear only with 'sourceType: \"module\"'",{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),this.sawUnambiguousESM=!0):this.hasPlugin("importMeta")||this.raise(t.start,"Dynamic imports require a parameter: import('a.js')"),this.parseMetaProperty(e,t,"meta")}},{key:"parseLiteral",value:function(e,t,r,n){r=r||this.state.start,n=n||this.state.startLoc;var i=this.startNodeAt(r,n);return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(r,this.state.end)),i.value=e,this.next(),this.finishNode(i,t)}},{key:"parseParenAndDistinguishExpression",value:function(e){var t,r=this.state.start,n=this.state.startLoc;this.expect(o.parenL);var i=this.state.maybeInArrowParameters,a=this.state.yieldPos,s=this.state.awaitPos,u=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.yieldPos=-1,this.state.awaitPos=-1,this.state.inFSharpPipelineDirectBody=!1;for(var c,l,p=this.state.start,h=this.state.startLoc,f=[],d={start:0},m={start:0},y=!0;!this.match(o.parenR);){if(y)y=!1;else if(this.expect(o.comma,m.start||null),this.match(o.parenR)){l=this.state.start;break}if(this.match(o.ellipsis)){var D=this.state.start,g=this.state.startLoc;c=this.state.start,f.push(this.parseParenItem(this.parseRestBinding(),D,g)),this.checkCommaAfterRest(41);break}f.push(this.parseMaybeAssign(!1,d,this.parseParenItem,m))}var v=this.state.start,E=this.state.startLoc;this.expect(o.parenR),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=u;var b=this.startNodeAt(r,n);if(e&&this.shouldParseArrow()&&(b=this.parseArrow(b))){this.checkYieldAwaitInDefaultParams(),this.state.yieldPos=a,this.state.awaitPos=s;for(var C=0;C1?((t=this.startNodeAt(p,h)).expressions=f,this.finishNodeAt(t,"SequenceExpression",v,E)):t=f[0],!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",r),t;var A=this.startNodeAt(r,n);return A.expression=t,this.finishNode(A,"ParenthesizedExpression"),A}},{key:"shouldParseArrow",value:function(){return!this.canInsertSemicolon()}},{key:"parseArrow",value:function(e){if(this.eat(o.arrow))return e}},{key:"parseParenItem",value:function(e,t,r){return e}},{key:"parseNew",value:function(){var e=this.startNode(),t=this.startNode();if(this.next(),t=this.createIdentifier(t,"new"),this.eat(o.dot)){var r=this.parseMetaProperty(e,t,"target");if(!this.scope.inNonArrowFunction&&!this.state.inClassProperty){var n="new.target can only be used in functions";this.hasPlugin("classProperties")&&(n+=" or class properties"),this.raise(r.start,n)}return r}return e.callee=this.parseNoCallExpr(),"Import"===e.callee.type?this.raise(e.callee.start,"Cannot use new with import(...)"):"OptionalMemberExpression"===e.callee.type||"OptionalCallExpression"===e.callee.type?this.raise(this.state.lastTokEnd,"constructors in/after an Optional Chain are not allowed"):this.eat(o.questionDot)&&this.raise(this.state.start,"constructors in/after an Optional Chain are not allowed"),this.parseNewArguments(e),this.finishNode(e,"NewExpression")}},{key:"parseNewArguments",value:function(e){if(this.eat(o.parenL)){var t=this.parseExprList(o.parenR);this.toReferencedList(t),e.arguments=t}else e.arguments=[]}},{key:"parseTemplateElement",value:function(e){var t=this.startNode();return null===this.state.value&&(e?this.state.invalidTemplateEscapePosition=null:this.raise(this.state.invalidTemplateEscapePosition||0,"Invalid escape sequence in template")),t.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\r\n?/g,"\n"),cooked:this.state.value},this.next(),t.tail=this.match(o.backQuote),this.finishNode(t,"TemplateElement")}},{key:"parseTemplate",value:function(e){var t=this.startNode();this.next(),t.expressions=[];var r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)this.expect(o.dollarBraceL),t.expressions.push(this.parseExpression()),this.expect(o.braceR),t.quasis.push(r=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")}},{key:"parseObj",value:function(e,t){var r=Object.create(null),n=!0,i=this.startNode();for(i.properties=[],this.next();!this.eat(o.braceR);){if(n)n=!1;else if(this.expect(o.comma),this.match(o.braceR)){this.addExtra(i,"trailingComma",this.state.lastTokStart),this.next();break}var a=this.parseObjectMember(e,t);e||this.checkDuplicatedProto(a,r),a.shorthand&&this.addExtra(a,"shorthand",!0),i.properties.push(a)}return this.match(o.eq)||void 0===r.start||this.raise(r.start,"Redefinition of __proto__ property"),this.finishNode(i,e?"ObjectPattern":"ObjectExpression")}},{key:"isAsyncProp",value:function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.match(o.name)||this.match(o.num)||this.match(o.string)||this.match(o.bracketL)||this.state.type.keyword||this.match(o.star))&&!this.hasPrecedingLineBreak()}},{key:"parseObjectMember",value:function(e,t){var r=[];if(this.match(o.at))for(this.hasPlugin("decorators")&&this.raise(this.state.start,"Stage 2 decorators disallow object literal property decorators");this.match(o.at);)r.push(this.parseDecorator());var n,i,a=this.startNode(),s=!1,u=!1;if(this.match(o.ellipsis))return r.length&&this.unexpected(),e?(this.next(),a.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(a,"RestElement")):this.parseSpread();r.length&&(a.decorators=r,r=[]),a.method=!1,(e||t)&&(n=this.state.start,i=this.state.startLoc),e||(s=this.eat(o.star));var c=this.state.containsEsc;return this.parsePropertyName(a),e||c||s||!this.isAsyncProp(a)?u=!1:(u=!0,s=this.eat(o.star),this.parsePropertyName(a)),this.parseObjPropValue(a,n,i,s,u,e,t,c),a}},{key:"isGetterOrSetterMethod",value:function(e,t){return!t&&!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&(this.match(o.string)||this.match(o.num)||this.match(o.bracketL)||this.match(o.name)||!!this.state.type.keyword)}},{key:"getGetterSetterExpectedParamCount",value:function(e){return"get"===e.kind?0:1}},{key:"checkGetterSetterParams",value:function(e){var t=this.getGetterSetterExpectedParamCount(e),r=e.start;e.params.length!==t&&("get"===e.kind?this.raise(r,"getter must not have any formal parameters"):this.raise(r,"setter must have exactly one formal parameter")),"set"===e.kind&&"RestElement"===e.params[e.params.length-1].type&&this.raise(r,"setter function argument must not be a rest parameter")}},{key:"parseObjectMethod",value:function(e,t,r,n,i){return r||t||this.match(o.parenL)?(n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")):!i&&this.isGetterOrSetterMethod(e,n)?((t||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),this.parseMethod(e,!1,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(e),e):void 0}},{key:"parseObjectProperty",value:function(e,t,r,n,i){return e.shorthand=!1,this.eat(o.colon)?(e.value=n?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssign(!1,i),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!0),n?e.value=this.parseMaybeDefault(t,r,e.key.__clone()):this.match(o.eq)&&i?(i.start||(i.start=this.state.start),e.value=this.parseMaybeDefault(t,r,e.key.__clone())):e.value=e.key.__clone(),e.shorthand=!0,this.finishNode(e,"ObjectProperty"))}},{key:"parseObjPropValue",value:function(e,t,r,n,i,a,s,o){var u=this.parseObjectMethod(e,n,i,a,o)||this.parseObjectProperty(e,t,r,a,s);return u||this.unexpected(),u}},{key:"parsePropertyName",value:function(e){if(this.eat(o.bracketL))e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(o.bracketR);else{var t=this.state.inPropertyName;this.state.inPropertyName=!0,e.key=this.match(o.num)||this.match(o.string)?this.parseExprAtom():this.parseMaybePrivateName(),"PrivateName"!==e.key.type&&(e.computed=!1),this.state.inPropertyName=t}return e.key}},{key:"initFunction",value:function(e,t){e.id=null,e.generator=!1,e.async=!!t}},{key:"parseMethod",value:function(e,t,r,n,i,a){var s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o=this.state.yieldPos,c=this.state.awaitPos;this.state.yieldPos=-1,this.state.awaitPos=-1,this.initFunction(e,r),e.generator=!!t;var l=n;return this.scope.enter(64|u(r,e.generator)|(s?256:0)|(i?128:0)),this.parseFunctionParams(e,l),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBodyAndFinish(e,a,!0),this.scope.exit(),this.state.yieldPos=o,this.state.awaitPos=c,e}},{key:"parseArrowExpression",value:function(e,t,r,n){this.scope.enter(16|u(r,!1)),this.initFunction(e,r);var i=this.state.maybeInArrowParameters,a=this.state.yieldPos,s=this.state.awaitPos;return this.state.maybeInArrowParameters=!1,this.state.yieldPos=-1,this.state.awaitPos=-1,t&&this.setArrowFunctionParameters(e,t,n),this.parseFunctionBody(e,!0),this.scope.exit(),this.state.maybeInArrowParameters=i,this.state.yieldPos=a,this.state.awaitPos=s,this.finishNode(e,"ArrowFunctionExpression")}},{key:"setArrowFunctionParameters",value:function(e,t,r){e.params=this.toAssignableList(t,!0,"arrow function parameters",r)}},{key:"isStrictBody",value:function(e){if("BlockStatement"===e.body.type&&e.body.directives.length)for(var t=0,r=e.body.directives;t2&&void 0!==arguments[2]&&arguments[2];this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}},{key:"parseFunctionBody",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t&&!this.match(o.braceL),i=this.state.strict,a=!1,s=this.state.inParameters;if(this.state.inParameters=!1,n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{var u=!this.isSimpleParamList(e.params);if((!i||u)&&(a=this.strictDirective(this.state.end))&&u){var c="method"!==e.kind&&"constructor"!==e.kind||!e.key?e.start:e.key.end;this.raise(c,"Illegal 'use strict' directive in function with non-simple parameter list")}var l=this.state.labels;this.state.labels=[],a&&(this.state.strict=!0),this.checkParams(e,!(i||a||t||r||u),t,!i&&a),e.body=this.parseBlock(!0,!1),this.state.labels=l}this.state.inParameters=s,this.state.strict&&e.id&&this.checkLVal(e.id,65,void 0,"function name",void 0,!i&&a),this.state.strict=i}},{key:"isSimpleParamList",value:function(e){for(var t=0,r=e.length;t3&&void 0!==arguments[3])||arguments[3],i=Object.create(null),a=0;a" after pipeline body; arrow function in pipeline body must be parenthesized');"PipelineTopicExpression"===t&&"SequenceExpression"===e.type&&this.raise(r,"Pipeline body may not be a comma-separated sequence expression")}},{key:"parseSmartPipelineBodyInStyle",value:function(e,t,r,n){var i=this.startNodeAt(r,n);switch(t){case"PipelineBareFunction":i.callee=e;break;case"PipelineBareConstructor":i.callee=e.callee;break;case"PipelineBareAwaitedFunction":i.callee=e.argument;break;case"PipelineTopicExpression":this.topicReferenceWasUsedInCurrentTopicContext()||this.raise(r,"Pipeline is in topic style but does not use topic reference"),i.expression=e;break;default:throw new Error("Internal @babel/parser error: Unknown pipeline style (".concat(t,")"))}return this.finishNode(i,t)}},{key:"checkSmartPipelineBodyStyle",value:function(e){return e.type,this.isSimpleReference(e)?"PipelineBareFunction":"PipelineTopicExpression"}},{key:"isSimpleReference",value:function(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}},{key:"withTopicPermittingContext",value:function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}},{key:"withTopicForbiddingContext",value:function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}},{key:"withSoloAwaitPermittingContext",value:function(e){var t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}},{key:"registerTopicReference",value:function(){this.state.topicContext.maxTopicIndex=0}},{key:"primaryTopicReferenceIsAllowedInCurrentTopicContext",value:function(){return this.state.topicContext.maxNumOfResolvableTopics>=1}},{key:"topicReferenceWasUsedInCurrentTopicContext",value:function(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}},{key:"parseFSharpPipelineBody",value:function(e,t){var r=this.state.start,n=this.state.startLoc;this.state.potentialArrowAt=this.state.start;var i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;var a=this.parseExprOp(this.parseMaybeUnary(),r,n,e,t);return this.state.inFSharpPipelineDirectBody=i,a}}]),t}(function(e){function t(){return h(this,t),g(this,y(t).apply(this,arguments))}return m(t,e),d(t,[{key:"toAssignable",value:function(e,t,r){var n;if(e)switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(var i=0,a=e.properties.length,s=a-1;i1&&void 0!==arguments[1]?arguments[1]:64,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];switch(e.type){case"Identifier":if(this.state.strict&&(a?B(e.name,this.inModule):P(e.name))&&this.raise(e.start,"".concat(64===t?"Assigning to":"Binding"," '").concat(e.name,"' in strict mode")),r){var s="_".concat(e.name);r[s]?this.raise(e.start,"Argument name clash"):r[s]=!0}i&&"let"===e.name&&this.raise(e.start,"'let' is not allowed to be used as a name in 'let' or 'const' declarations."),64&t||this.scope.declareName(e.name,t,e.start);break;case"MemberExpression":64!==t&&this.raise(e.start,"Binding member expression");break;case"ObjectPattern":for(var o=0,u=e.properties;o1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEnd,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.state.lastTokEndLoc;e.end=t,e.loc.end=r,this.options.ranges&&(e.range[1]=t)}},{key:"resetStartLocationFromNode",value:function(e,t){this.resetStartLocation(e,t.start,t.loc.start)}}]),t}(be)))));function we(e,t){var r=Fe;return e&&e.plugins&&(function(e){if(ie(e,"decorators")){if(ie(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");var t=ae(e,"decorators","decoratorsBeforeExport");if(null==t)throw new Error("The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.");if("boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean.")}if(ie(e,"flow")&&ie(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(ie(e,"placeholders")&&ie(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(ie(e,"pipelineOperator")&&-1===se.indexOf(ae(e,"pipelineOperator","proposal")))throw new Error("'pipelineOperator' requires 'proposal' option whose value should be one of: "+se.map((function(e){return"'".concat(e,"'")})).join(", "))}(e.plugins),r=function(e){var t=ue.filter((function(t){return ie(e,t)})),r=t.join("/"),n=Se[r];if(!n){n=Fe;for(var i=0;ie).join("\n\n")}},function(e,t){const r={jsonpath:'import jsonpath from "https://jslib.k6.io/jsonpath/1.0.2/index.js"',formurlencoded:'import formurlencoded from "https://jslib.k6.io/form-urlencoded/3.0.0/index.js"'};e.exports=function(e){if(function(e){return Object.values(e).find(e=>e)}(e)){const t=[];return function(e,t){const r=["sleep"];(e.check||e.group)&&(e.check&&r.push("check"),e.group&&r.push("group"));const n=r.join(", ");t.push(`import { ${n} } from "k6";`)}(e,t),function(e,t){e.http&&t.push('import http from "k6/http";')}(e,t),function(e,t){(e.formUrlEncode||e.jsonpath||e.MimeBuilder)&&(t.length>0&&t.push("\n"),e.formUrlEncode&&t.push(r.formurlencoded),e.jsonpath&&t.push(r.jsonpath))}(e,t),t.join("\n")}return null}},function(e,t,r){const n=r(8);e.exports=function(e){return e.comment.length?n(e.comment.join("\n")):null}},function(e,t,r){const n=r(36),i=r(120),a=r(121),s=r(177);e.exports=function(e){const t=[i(e.declares),s(e),a(e),"sleep(1);"].filter(e=>e);return`export default function() ${n(t)}`}},function(e,t){e.exports=function(e){if(e.size){return`let ${[...e].sort().join(", ")};`}return null}},function(e,t,r){const n=r(37),i=r(175),{FlowItemType:a}=r(1),{UnrecognizedError:s}=r(0);e.exports=function(e){if(e.flow.length){return e.flow.map(e=>function(e){switch(e.type){case a.External:return n(e.entry);case a.Group:return i(e);default:throw new s({name:"UnrecognizedFlowItemType"},`Unrecognized flow item type: ${e.type}`)}}(e)).join("\n\n")}return null}},function(e,t,r){const n=r(8),i=r(123),a=r(124);e.exports=function(e){const t=[i(e),a(e.request)].filter(e=>e).join("\n\n");return t?n(t):null}},function(e,t){e.exports=function(e){return e.comment||e.request.comment?[e.comment,e.request.comment].filter(e=>e).join("\n"):null}},function(e,t,r){const{lineBreak:n}=r(3);function i([e,t]){const r=t.size>1,i=[...t].map((t,i)=>function(e,t,r,i){return t.comment?n.test(t.comment)?""+`${a(e,r,i)}:\n${t.comment}`:`${a(e,r,i)}: ${t.comment}`:null}(e,t,r,i)).filter(e=>e);return i.length?i.join("\n"):null}function a(e,t,r){return t?`${e}[${r}]`:`${e}`}e.exports=function(e){const t=e.state;if(t.address.variable||!e.query.size||t.query.variable)return null;{const t=[...e.query].map(i).filter(e=>e);return t.length?""+`Query string notes:\n${t.join("\n")}`:null}}},function(e,t,r){const n=r(126),i=r(144),a=r(173);e.exports=function(e){return[i(e.request),n(e.checks),a(e.variables)].filter(e=>e).join("\n")}},function(e,t,r){const n=r(127),i=r(14);e.exports=function(e){if(e.size){const t=[...e].map(([e,t])=>n(e,t));return`check(response, ${i(t)});`}return null}},function(e,t,r){const n=r(128),{CheckType:i}=r(1),{UnrecognizedError:a}=r(0);e.exports=function(e,t){switch(t.type){case i.Text:return n.Text(e,t);case i.JSONPathValue:return n.JSONPathValue(e,t);case i.JSONPath:return n.JSONPath(e,t);case i.Regex:return n.Regex(e,t);default:throw new a({name:"UnrecognizedCheckType"},`Unrecognized check type: ${t.type}`)}}},function(e,t,r){Object.assign(t,{JSONPath:r(129),JSONPathValue:r(132),Regex:r(133),Text:r(134)})},function(e,t,r){const n=r(9),i=r(4);function a(e){return`response => ${function(e){const t=i(e.expression);return""+`{\n${n(`return !!${`jsonpath.query(response.json(), ${t})`}.length;`)}\n}`}(e)}`}e.exports=function(e,t){const r={name:e,value:a(t)};return t.comment&&(r.comment=t.comment),r}},function(e,t){e.exports=function(e,t=""){return JSON.stringify(e.join(t))}},function(e,t){e.exports=function(e){return JSON.stringify(e)}},function(e,t,r){const n=r(38),i=r(9),a=r(4);function s(e){const t={subject:o(e),comparison:n(e.condition,u(e)),negated:e.state.negated};return t.body=function(e){const t=e.negated?"!":"!!",r=""+`const values = ${e.subject};\nreturn ${t}values.find(value => value${e.comparison});`;return""+`{\n${i(r)}\n}`}(t),`response => ${t.body}`}function o(e){return`jsonpath.query(response.json(), ${a(e.expression)})`}function u(e){return a(e.value)}e.exports=function(e,t){const r={name:e,value:s(t)};return t.comment&&(r.comment=t.comment),r}},function(e,t,r){const n=r(9),i=r(4),a=r(39);function s(e){const t={subject:a(e.subject),expression:o(e),flags:u(e)};return t.body=function(e,t){return e.state.plural?function(e){const t=""+`const values = ${e.subject};\nconst expr = new RegExp(${c(e)});\nreturn !!values.find(value => expr.test(value));`;return""+`{\n${n(t)}\n}`}(t):function(e){const t=""+`const expr = new RegExp(${c(e)});\nreturn expr.test(${e.subject});`;return""+`{\n${n(t)}\n}`}(t)}(e,t),`response => ${t.body}`}function o(e){return i(e.expression)}function u(e){return e.flags?i(e.flags):null}function c(e){const t=[];return t.push(e.expression),e.flags&&t.push(e.flags),t.join(", ")}e.exports=function(e,t){const r={name:e,value:s(t)};return t.comment&&(r.comment=t.comment),r}},function(e,t,r){const n=r(38),i=r(9),a=r(4),s=r(39);function o(e){const t={subject:s(e.subject),comparison:n(e.condition,u(e)),negated:e.state.negated};return t.body=function(e,t){return e.state.plural?function(e){const t=e.negated?"!":"!!",r=""+`const values = ${e.subject};\nreturn ${t}values.find(value => value${e.comparison});`;return""+`{\n${i(r)}\n}`}(t):function(e){return(e.negated?"!":"")+e.subject+e.comparison}(t)}(e,t),`response => ${t.body}`}function u(e){return a(e.value)}e.exports=function(e,t){const r={name:e,value:o(t)};return t.comment&&(r.comment=t.comment),r}},function(e,t,r){const n=r(136),i=r(143);e.exports=function(e){return e.length?(e=[...e],i(e),e.map(e=>n(e)).join("\n")):null}},function(e,t,r){const n=r(8),i=r(137),{CommentLocation:a}=r(1),{lineBreak:s,multilineComment:o}=r(3);e.exports=function(e,t){const r=e.comment?n(e.comment):null,u=function(e,t){return t&&o.test(t)||s.test(e.value)||2+e.name.length+2+e.value.length>50?a.Top:a.Suffix}(e,r);return(r&&u===a.Top?`${r}\n`:"")+`${i(e.name)}: ${e.value}`+(t?"":",")+(r&&u===a.Suffix?` ${r}`:"")}},function(e,t,r){const n=r(4),i=r(40),a=r(23),{StringSpecies:s}=r(1),{UnrecognizedError:o}=r(0);e.exports=function(e){switch(i(e)){case s.Identifier:return e;case s.String:return n(e);case s.Template:return`[${a(e)}]`;default:throw new o({name:"UnrecognizedStringSpecies"},`Unrecognized string species: ${e}`)}}},function(e,t){e.exports=function(e){return r.test(e)};const r=/^(?!(?:do|if|in|for|let|new|try|var|case|else|enum|eval|null|this|true|void|with|await|break|catch|class|const|false|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$)(?:[$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\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\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\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-\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\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\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-\uA7AD\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D])(?:[$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\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\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\u0C81-\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\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\u1369-\u1371\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-\u19DA\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\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\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-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF])*$/},function(e,t,r){const{variable:n}=r(3);e.exports=function(e){return n.test(e)}},function(e,t,r){const n=r(41);e.exports=function(e,t=""){return["`",e.map(e=>n(e)).join(t),"`"].join("")}},function(e,t,r){const n=r(4);e.exports=function(e){return`vars[${n(e)}]`}},function(e,t,r){const n=r(41);e.exports=function(e){return`\`${n(e)}\``}},function(e,t,r){const n=r(40),{StringSpecies:i}=r(1),{UnrecognizedError:a}=r(0);function s(e,t){const r=n(e.key),s=n(t.key);if(r===s)return e.key>t.key?1:e.keye).join("\n")}(function(e){const t=p();return t.call=function(e){return m.has(e.method)?m.get(e.method):"request"}(e),t.method=function(e){return l(e.method)}(e),t.capacity=function(e){return"GET"!==e.method}(e),n(e,t),function(e,t){t.body=u(e),e.state.post.species===h.Structured&&"multipart/form-data"===e.post.type&&e.state.params.variable&&t.pre.push(c(e.post.params))}(e,t),t.headers=a(e.headers),t.cookies=i(e.cookies),t.options=function(e){if(e.headers||e.cookies){const t=[];return e.headers&&t.push({name:"headers",value:e.headers}),e.cookies&&t.push({name:"cookies",value:e.cookies}),o(t)}return null}(t),t.args=function(e){const t=[];"request"===e.call&&t.push(e.method);t.push(e.address),e.body?t.push(e.body):e.capacity&&e.options&&t.push("null");e.options&&t.push(e.options);return t}(t),t.compact=function(e){return!e.capacity||1===e.args.length||"null"===e.args[1]}(t),t}(e))}},function(e,t,r){const n=r(146),i=r(149),a=r(150),s=r(151),{AddressSpecies:o}=r(1),{UnrecognizedError:u}=r(0);e.exports=function(e,t){switch(e.state.address.species){case o.Fixed:i(e,t);break;case o.Constructed:n(e,t);break;case o.Resolved:a(e,t);break;case o.Runtime:s(e,t);break;default:throw new u({name:"UnrecognizedAddressSpecies"},`Unrecognized address species: ${e.state.address.species}`)}}},function(e,t,r){const n=r(4),i=r(147);e.exports=function(e,t){const r=new i(e.address);!function(e,t){for(const[r,n]of e.query)for(const{value:e}of n)t.addQuery(r,e)}(e,r),t.address=n(r.toString())}},function(e,t,r){var n,i,a; +*/var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,o,u=s(e),c=1;c0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,a=n.allocUnsafe(e>>>0),s=this.head,o=0;s;)t=s.data,r=a,i=o,t.copy(r,i),o+=s.data.length,s=s.next;return a},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(60),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(6))},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i,a,s,o,u=1,c={},l=!1,p=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){d(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){d(e.data)},n=function(e){a.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(i=p.documentElement,n=function(e){var t=p.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(d,0,e)}:(s="setImmediate$"+Math.random()+"$",o=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&d(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",o,!1):e.attachEvent("onmessage",o),n=function(t){e.postMessage(s+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r0)throw s(e,m,y,"uses non-zero precision (not supported)");switch(t.match(/-/)&&(l=!0),t.match(/0/)&&(p="0"),t.match(/\+/)&&(h=!0),o){case"s":if(null==f)throw s(e,m,y,"attempted to print undefined or null as a string (argument "+C+" to sprintf)");b+=u(p,r,l,f.toString());break;case"d":f=Math.floor(f);case"f":b+=(h=h&&f>0?"+":"")+u(p,r,l,f.toString());break;case"x":b+=u(p,r,l,f.toString(16));break;case"j":0===r&&(r=10),b+=i.inspect(f,!1,r);break;case"r":b+=c(f);break;default:throw s(e,m,y,"is not supported")}}else b+="%";return b+=E}function s(e,t,r,i){return n.equal(typeof e,"string"),n.equal(typeof r,"string"),n.equal(typeof t,"number"),n.equal(typeof i,"string"),new Error('format string "'+e+'": conversion specifier "'+r+'" at character '+t+" "+i)}function o(e){var t=Array.prototype.slice.call(arguments,1);return e.write(a.apply(this,t))}function u(e,t,r,n){for(var i=n;i.length1}))}(e),t.variable=function(e){return!(!e.post.params||!n(e.post.params.keys()).find((function(e){return i.variable.test(e)}))&&!n(e.post.params.values()).find((function(e){return n(e).find((function(e){var t=e.value;return t&&i.variable.test(t)}))})))}(e)}},function(e,t,r){var n=r(1).PostSpecies;e.exports=function(e){e.state.post.species=function(e){return e.params?n.Structured:e.text||e.type?n.Unstructured:n.Empty}(e.post)}},function(e,t,r){function n(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t=8"},i={"@angular/compiler":"8.2.13","@babel/code-frame":"7.5.5","@babel/parser":"7.7.3","@glimmer/syntax":"0.41.0","@iarna/toml":"2.2.3","@typescript-eslint/typescript-estree":"2.6.1","angular-estree-parser":"1.1.5","angular-html-parser":"1.3.0",camelcase:"5.3.1",chalk:"2.4.2","cjk-regex":"2.0.0",cosmiconfig:"5.2.1",dashify:"2.0.0",dedent:"0.7.0",diff:"4.0.1",editorconfig:"0.15.3","editorconfig-to-prettier":"0.1.1","escape-string-regexp":"1.0.5",esutils:"2.0.3","find-parent-dir":"0.3.0","find-project-root":"1.1.1","flow-parser":"0.111.3","get-stream":"4.1.0",globby:"6.1.0",graphql:"14.5.8","html-element-attributes":"2.2.0","html-styles":"1.0.0","html-tag-names":"1.1.4",ignore:"4.0.6","is-ci":"2.0.0","jest-docblock":"24.9.0","json-stable-stringify":"1.0.1",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.6.0","lodash.uniqby":"4.7.0",mem:"5.1.1",minimatch:"3.0.4",minimist:"1.2.0","n-readlines":"1.0.0","normalize-path":"3.0.0","parse-srcset":"ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee","postcss-less":"2.0.0","postcss-media-query-parser":"0.2.3","postcss-scss":"2.0.0","postcss-selector-parser":"2.2.3","postcss-values-parser":"1.5.0","regexp-util":"1.2.2","remark-math":"1.0.6","remark-parse":"5.0.0",resolve:"1.12.0",semver:"6.3.0","string-width":"4.1.0",typescript:"3.7.2","unicode-regex":"3.0.0",unified:"8.4.1",vnopts:"1.0.2","yaml-unist-parser":"1.1.1"},a={"@babel/core":"7.7.2","@babel/preset-env":"7.7.1","@rollup/plugin-alias":"2.2.0","@rollup/plugin-replace":"2.2.1","babel-loader":"8.0.6",benchmark:"2.1.4","builtin-modules":"3.1.0",codecov:"3.6.1","cross-env":"6.0.3",eslint:"6.6.0","eslint-config-prettier":"6.5.0","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-react":"7.16.0",execa:"3.2.0",jest:"23.3.0","jest-junit":"9.0.0","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.4.0",mkdirp:"0.5.1",prettier:"1.19.0",prettylint:"1.0.0",rimraf:"3.0.0",rollup:"1.26.3","rollup-plugin-babel":"4.3.3","rollup-plugin-commonjs":"10.1.0","rollup-plugin-json":"4.0.0","rollup-plugin-node-globals":"1.4.0","rollup-plugin-node-resolve":"5.2.0","rollup-plugin-terser":"5.1.2",shelljs:"0.8.3","snapshot-diff":"0.4.0","strip-ansi":"5.2.0","synchronous-promise":"2.0.10",tempy:"0.2.1","terser-webpack-plugin":"2.2.1",webpack:"4.41.2"},s={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dist":"node ./scripts/test-dist.js","test-integration":"jest tests_integration","perf-repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf-repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf-benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","check-types":"tsc",lint:"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint-docs":"prettylint {.,docs,website,website/blog}/*.md","lint-dist":'eslint --no-eslintrc --no-ignore --env=browser "dist/!(bin-prettier|index|third-party).js"',build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js","check-deps":"node ./scripts/check-deps.js",spellcheck:"npx -p cspell@4.0.31 cspell {bin,scripts,src}/**/*.js {docs,website/blog,changelog_unreleased}/**/*.md"},o={name:"prettier",version:"1.19.1",description:e,bin:r,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:n,dependencies:i,devDependencies:a,scripts:s},u=Object.freeze({__proto__:null,name:"prettier",version:"1.19.1",description:e,bin:r,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:n,dependencies:i,devDependencies:a,scripts:s,default:o});function c(e){return(c="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})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;re.length?r:e})),c.value=e.join(p)}else c.value=e.join(r.slice(o,o+c.count));o+=c.count,c.added||(u+=c.count)}}var h=t[s-1];return s>1&&"string"==typeof h.value&&(h.added||h.removed)&&e.equals("",h.value)&&(t[s-2].value+=h.value,t.pop()),t}function S(e){return{newPos:e.newPos,components:e.components.slice(0)}}w.prototype={diff:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.callback;"function"==typeof r&&(n=r,r={}),this.options=r;var i=this;function a(e){return n?(setTimeout((function(){n(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var s=(t=this.removeEmpty(this.tokenize(t))).length,o=e.length,u=1,c=s+o,l=[{newPos:-1,components:[]}],p=this.extractCommon(l[0],t,e,0);if(l[0].newPos+1>=s&&p+1>=o)return a([{value:this.join(t),count:t.length}]);function h(){for(var r=-1*u;r<=u;r+=2){var n=void 0,c=l[r-1],p=l[r+1],h=(p?p.newPos:0)-r;c&&(l[r-1]=void 0);var f=c&&c.newPos+1=s&&h+1>=o)return a(F(i,n.components,t,e,i.useLongestToken));l[r]=n}else l[r]=void 0}u++}if(n)!function e(){setTimeout((function(){if(u>c)return n();h()||e()}),0)}();else for(;u<=c;){var f=h();if(f)return f}},pushComponent:function(e,t,r){var n=e[e.length-1];n&&n.added===t&&n.removed===r?e[e.length-1]={count:n.count+1,added:t,removed:r}:e.push({count:1,added:t,removed:r})},extractCommon:function(e,t,r,n){for(var i=t.length,a=r.length,s=e.newPos,o=s-n,u=0;s+11&&void 0!==arguments[1]?arguments[1]:{},r=e.split(/\r\n|[\n\v\f\r\x85]/),n=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],a=0;function s(){var e={};for(i.push(e);a2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=V(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var n,i,a=e.split(/\r\n|[\n\v\f\r\x85]/),s=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=t.hunks,u=r.compareLine||function(e,t,r,n){return t===n},c=0,l=r.fuzzFactor||0,p=0,h=0;function f(e,t){for(var r=0;r0?n[0]:" ",s=n.length>0?n.substr(1):n;if(" "===i||"-"===i){if(!u(t+1,a[t],i,s)&&++c>l)return!1;t++}}return!0}for(var d=0;d0?w[0]:" ",S=w.length>0?w.substr(1):w,k=C.linedelimiters[A];if(" "===F)x++;else if("-"===F)a.splice(x,1),s.splice(x,1);else if("+"===F)a.splice(x,0,S),s.splice(x,0,k),x++;else if("\\"===F){var T=C.lines[A-1]?C.lines[A-1][0]:null;"+"===T?n=!0:"-"===T&&(i=!0)}}}if(n)for(;!a[a.length-1];)a.pop(),s.pop();else i&&(a.push(""),s.push("\n"));for(var P=0;P0?u(m.lines.slice(-s.context)):[],l-=h.length,p-=h.length)}(a=h).push.apply(a,R(i.map((function(e){return(t.added?"+":"-")+e})))),t.added?d+=i.length:f+=i.length}else{if(l)if(i.length<=2*s.context&&e=o.length-2&&i.length<=s.context){var E=/\n$/.test(r),b=/\n$/.test(n),C=0==i.length&&h.length>v.oldLines;!E&&C&&h.splice(v.oldLines,0,"\\ No newline at end of file"),(E||C)&&b||h.push("\\ No newline at end of file")}c.push(v),l=0,p=0,h=[]}f+=i.length,d+=i.length}},y=0;ye.length)return!1;for(var r=0;r"):n.removed&&t.push(""),t.push((i=n.value,void 0,i.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""))),n.added?t.push(""):n.removed&&t.push("")}var i;return t.join("")},canonicalize:U}),pe=Object.freeze({__proto__:null,default:{}}),he=void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},fe=[],de=[],me="undefined"!=typeof Uint8Array?Uint8Array:Array,ye=!1;function De(){ye=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t>18&63]+fe[i>>12&63]+fe[i>>6&63]+fe[63&i]);return a.join("")}function ve(e){var t;ye||De();for(var r=e.length,n=r%3,i="",a=[],s=0,o=r-n;so?o:s+16383));return 1===n?(t=e[r-1],i+=fe[t>>2],i+=fe[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=fe[t>>10],i+=fe[t>>4&63],i+=fe[t<<2&63],i+="="),a.push(i),a.join("")}function Ee(e,t,r,n,i){var a,s,o=8*i-n-1,u=(1<>1,l=-7,p=r?i-1:0,h=r?-1:1,f=e[t+p];for(p+=h,a=f&(1<<-l)-1,f>>=-l,l+=o;l>0;a=256*a+e[t+p],p+=h,l-=8);for(s=a&(1<<-l)-1,a>>=-l,l+=n;l>0;s=256*s+e[t+p],p+=h,l-=8);if(0===a)a=1-c;else{if(a===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),a-=c}return(f?-1:1)*s*Math.pow(2,a-n)}function be(e,t,r,n,i,a){var s,o,u,c=8*a-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:a-1,d=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+p>=1?h/u:h*Math.pow(2,1-p))*u>=2&&(s++,u/=2),s+p>=l?(o=0,s=l):s+p>=1?(o=(t*u-1)*Math.pow(2,i),s+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&o,f+=d,o/=256,i-=8);for(s=s<0;e[r+f]=255&s,f+=d,s/=256,c-=8);e[r+f-d]|=128*m}var Ce={}.toString,xe=Array.isArray||function(e){return"[object Array]"==Ce.call(e)};function Ae(){return Fe.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function we(e,t){if(Ae()=Ae())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ae().toString(16)+" bytes");return 0|e}function Ne(e){return!(null==e||!e._isBuffer)}function Ie(e,t){if(Ne(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return it(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return at(e).length;default:if(n)return it(e).length;t=(""+t).toLowerCase(),n=!0}}function Oe(e,t,r){var 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 Ge(this,t,r);case"utf8":case"utf-8":return We(this,t,r);case"ascii":return He(this,t,r);case"latin1":case"binary":return Je(this,t,r);case"base64":return $e(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xe(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function _e(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function je(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),r=+r,isNaN(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=Fe.from(t,n)),Ne(t))return 0===t.length?-1:Le(e,t,r,n,i);if("number"==typeof t)return t&=255,Fe.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Le(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Le(e,t,r,n,i){var a,s=1,o=e.length,u=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;s=2,o/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(a=r;ao&&(r=o-u),a=r;a>=0;a--){for(var p=!0,h=0;hi&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var s=0;s>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function $e(e,t,r){return 0===t&&r===e.length?ve(e):ve(e.slice(t,r))}function We(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+p<=r)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(a=e[i+1]))&&(u=(31&c)<<6|63&a)>127&&(l=u);break;case 3:a=e[i+1],s=e[i+2],128==(192&a)&&128==(192&s)&&(u=(15&c)<<12|(63&a)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:a=e[i+1],s=e[i+2],o=e[i+3],128==(192&a)&&128==(192&s)&&128==(192&o)&&(u=(15&c)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;ni)&&(r=i);for(var a="",s=t;sr)throw new RangeError("Trying to access beyond buffer length")}function Ye(e,t,r,n,i,a){if(!Ne(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function Ke(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function Ze(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function et(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function tt(e,t,r,n,i){return i||et(e,0,r,4),be(e,t,r,n,23,4),r+4}function rt(e,t,r,n,i){return i||et(e,0,r,8),be(e,t,r,n,52,8),r+8}Fe.TYPED_ARRAY_SUPPORT=void 0===he.TYPED_ARRAY_SUPPORT||he.TYPED_ARRAY_SUPPORT,Fe.poolSize=8192,Fe._augment=function(e){return e.__proto__=Fe.prototype,e},Fe.from=function(e,t,r){return Se(null,e,t,r)},Fe.TYPED_ARRAY_SUPPORT&&(Fe.prototype.__proto__=Uint8Array.prototype,Fe.__proto__=Uint8Array),Fe.alloc=function(e,t,r){return function(e,t,r,n){return ke(t),t<=0?we(e,t):void 0!==r?"string"==typeof n?we(e,t).fill(r,n):we(e,t).fill(r):we(e,t)}(null,e,t,r)},Fe.allocUnsafe=function(e){return Te(null,e)},Fe.allocUnsafeSlow=function(e){return Te(null,e)},Fe.isBuffer=function(e){return null!=e&&(!!e._isBuffer||ot(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&ot(e.slice(0,0))}(e))},Fe.compare=function(e,t){if(!Ne(e)||!Ne(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Fe.prototype.compare=function(e,t,r,n,i){if(!Ne(e))throw new TypeError("Argument must be a Buffer");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;for(var a=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),o=Math.min(a,s),u=this.slice(n,i),c=e.slice(t,r),l=0;li)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return Re(this,e,t,r);case"utf8":case"utf-8":return Me(this,e,t,r);case"ascii":return qe(this,e,t,r);case"latin1":case"binary":return Ue(this,e,t,r);case"base64":return ze(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ve(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},Fe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Fe.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},Fe.prototype.readUInt8=function(e,t){return t||Qe(e,1,this.length),this[e]},Fe.prototype.readUInt16LE=function(e,t){return t||Qe(e,2,this.length),this[e]|this[e+1]<<8},Fe.prototype.readUInt16BE=function(e,t){return t||Qe(e,2,this.length),this[e]<<8|this[e+1]},Fe.prototype.readUInt32LE=function(e,t){return t||Qe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Fe.prototype.readUInt32BE=function(e,t){return t||Qe(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Fe.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Qe(e,t,this.length);for(var n=this[e],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*t)),n},Fe.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Qe(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},Fe.prototype.readInt8=function(e,t){return t||Qe(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Fe.prototype.readInt16LE=function(e,t){t||Qe(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Fe.prototype.readInt16BE=function(e,t){t||Qe(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Fe.prototype.readInt32LE=function(e,t){return t||Qe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Fe.prototype.readInt32BE=function(e,t){return t||Qe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Fe.prototype.readFloatLE=function(e,t){return t||Qe(e,4,this.length),Ee(this,e,!0,23,4)},Fe.prototype.readFloatBE=function(e,t){return t||Qe(e,4,this.length),Ee(this,e,!1,23,4)},Fe.prototype.readDoubleLE=function(e,t){return t||Qe(e,8,this.length),Ee(this,e,!0,52,8)},Fe.prototype.readDoubleBE=function(e,t){return t||Qe(e,8,this.length),Ee(this,e,!1,52,8)},Fe.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||Ye(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+r},Fe.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,1,255,0),Fe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Fe.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,2,65535,0),Fe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ke(this,e,t,!0),t+2},Fe.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,2,65535,0),Fe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ke(this,e,t,!1),t+2},Fe.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,4,4294967295,0),Fe.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ze(this,e,t,!0),t+4},Fe.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,4,4294967295,0),Fe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ze(this,e,t,!1),t+4},Fe.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Ye(this,e,t,r,i-1,-i)}var a=0,s=1,o=0;for(this[t]=255&e;++a>0)-o&255;return t+r},Fe.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Ye(this,e,t,r,i-1,-i)}var a=r-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+r},Fe.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,1,127,-128),Fe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Fe.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,2,32767,-32768),Fe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ke(this,e,t,!0),t+2},Fe.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,2,32767,-32768),Fe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ke(this,e,t,!1),t+2},Fe.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,4,2147483647,-2147483648),Fe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ze(this,e,t,!0),t+4},Fe.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||Ye(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Fe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ze(this,e,t,!1),t+4},Fe.prototype.writeFloatLE=function(e,t,r){return tt(this,e,t,!0,r)},Fe.prototype.writeFloatBE=function(e,t,r){return tt(this,e,t,!1,r)},Fe.prototype.writeDoubleLE=function(e,t,r){return rt(this,e,t,!0,r)},Fe.prototype.writeDoubleBE=function(e,t,r){return rt(this,e,t,!1,r)},Fe.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!Fe.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.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;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function at(e){return function(e){var t,r,n,i,a,s;ye||De();var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[o-2]?2:"="===e[o-1]?1:0,s=new me(3*o/4-a),n=a>0?o-4:o;var u=0;for(t=0,r=0;t>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===a?(i=de[e.charCodeAt(t)]<<2|de[e.charCodeAt(t+1)]>>4,s[u++]=255&i):1===a&&(i=de[e.charCodeAt(t)]<<10|de[e.charCodeAt(t+1)]<<4|de[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(nt,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function st(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function ot(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var ut="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function ct(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lt(e,t){return e(t={exports:{}},t.exports),t.exports}function pt(e){return e&&e.default||e}var ht=pt(pe),ft=function(){function e(t,r){l(this,e),(r=r||{}).readChunk||(r.readChunk=1024),r.newLineCharacter?r.newLineCharacter=r.newLineCharacter.charCodeAt(0):r.newLineCharacter=10,this.fd="number"==typeof t?t:ht.openSync(t,"r"),this.options=r,this.newLineCharacter=r.newLineCharacter,this.reset()}return h(e,[{key:"_searchInBuffer",value:function(e,t){for(var r=-1,n=0;n<=e.length;n++)if(e[n]===t){r=n;break}return r}},{key:"reset",value:function(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}},{key:"close",value:function(){ht.closeSync(this.fd),this.fd=null}},{key:"_extractLines",value:function(e){for(var t,r=[],n=0,i=0;;){var a=e[n++];if(a===this.newLineCharacter)t=e.slice(i,n),r.push(t),i=n;else if(!a)break}var s=e.slice(i,n);return s.length&&r.push(s),r}},{key:"_readChunk",value:function(e){var t,r=0,n=[];do{var i=new Fe(this.options.readChunk);r+=t=ht.readSync(this.fd,i,0,this.options.readChunk,this.fdPosition),this.fdPosition=this.fdPosition+t,n.push(i)}while(t&&-1===this._searchInBuffer(n[n.length-1],this.options.newLineCharacter));var a=Fe.concat(n);return t1)for(var r=1;r)?=?)",u("XRANGEIDENTIFIERLOOSE"),a[s.XRANGEIDENTIFIERLOOSE]=a[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),a[s.XRANGEIDENTIFIER]=a[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),a[s.XRANGEPLAIN]="[v=\\s]*("+a[s.XRANGEIDENTIFIER]+")(?:\\.("+a[s.XRANGEIDENTIFIER]+")(?:\\.("+a[s.XRANGEIDENTIFIER]+")(?:"+a[s.PRERELEASE]+")?"+a[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),a[s.XRANGEPLAINLOOSE]="[v=\\s]*("+a[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[s.XRANGEIDENTIFIERLOOSE]+")(?:"+a[s.PRERELEASELOOSE]+")?"+a[s.BUILD]+"?)?)?",u("XRANGE"),a[s.XRANGE]="^"+a[s.GTLT]+"\\s*"+a[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),a[s.XRANGELOOSE]="^"+a[s.GTLT]+"\\s*"+a[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),a[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(a[s.COERCE],"g"),u("LONETILDE"),a[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),a[s.TILDETRIM]="(\\s*)"+a[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(a[s.TILDETRIM],"g"),u("TILDE"),a[s.TILDE]="^"+a[s.LONETILDE]+a[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),a[s.TILDELOOSE]="^"+a[s.LONETILDE]+a[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),a[s.LONECARET]="(?:\\^)",u("CARETTRIM"),a[s.CARETTRIM]="(\\s*)"+a[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(a[s.CARETTRIM],"g"),u("CARET"),a[s.CARET]="^"+a[s.LONECARET]+a[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),a[s.CARETLOOSE]="^"+a[s.LONECARET]+a[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),a[s.COMPARATORLOOSE]="^"+a[s.GTLT]+"\\s*("+a[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),a[s.COMPARATOR]="^"+a[s.GTLT]+"\\s*("+a[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),a[s.COMPARATORTRIM]="(\\s*)"+a[s.GTLT]+"\\s*("+a[s.LOOSEPLAIN]+"|"+a[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(a[s.COMPARATORTRIM],"g"),u("HYPHENRANGE"),a[s.HYPHENRANGE]="^\\s*("+a[s.XRANGEPLAIN]+")\\s+-\\s+("+a[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),a[s.HYPHENRANGELOOSE]="^\\s*("+a[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),a[s.STAR]="(<|>)?=?\\s*\\*";for(var l=0;l256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new h(e,t)}catch(e){return null}}function h(e,t){if(t&&"object"===c(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof h){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof h))return new h(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new h(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var r=p(e),n=p(t),i="";if(r.prerelease.length||n.prerelease.length){i="pre";var a="prerelease"}for(var s in r)if(("major"===s||"minor"===s||"patch"===s)&&r[s]!==n[s])return i+s;return a},t.compareIdentifiers=d;var f=/^[0-9]+$/;function d(e,t){var r=f.test(e),n=f.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e0}function D(e,t,r){return m(e,t,r)<0}function g(e,t,r){return 0===m(e,t,r)}function v(e,t,r){return 0!==m(e,t,r)}function E(e,t,r){return m(e,t,r)>=0}function b(e,t,r){return m(e,t,r)<=0}function C(e,t,r,n){switch(t){case"===":return"object"===c(e)&&(e=e.version),"object"===c(r)&&(r=r.version),e===r;case"!==":return"object"===c(e)&&(e=e.version),"object"===c(r)&&(r=r.version),e!==r;case"":case"=":case"==":return g(e,r,n);case"!=":return v(e,r,n);case">":return y(e,r,n);case">=":return E(e,r,n);case"<":return D(e,r,n);case"<=":return b(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}function x(e,t){if(t&&"object"===c(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof x){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof x))return new x(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===A?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return d(t,e)},t.major=function(e,t){return new h(e,t).major},t.minor=function(e,t){return new h(e,t).minor},t.patch=function(e,t){return new h(e,t).patch},t.compare=m,t.compareLoose=function(e,t){return m(e,t,!0)},t.compareBuild=function(e,t,r){var n=new h(e,r),i=new h(t,r);return n.compare(i)||n.compareBuild(i)},t.rcompare=function(e,t,r){return m(t,e,r)},t.sort=function(e,r){return e.sort((function(e,n){return t.compareBuild(e,n,r)}))},t.rsort=function(e,r){return e.sort((function(e,n){return t.compareBuild(n,e,r)}))},t.gt=y,t.lt=D,t.eq=g,t.neq=v,t.gte=E,t.lte=b,t.cmp=C,t.Comparator=x;var A={};function w(e,t){if(t&&"object"===c(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof w)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new w(e.raw,t);if(e instanceof x)return new w(e.value,t);if(!(this instanceof w))return new w(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function F(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every((function(e){return i.intersects(e,t)})),i=n.pop();return r}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function k(e,t,r,n,i,a,s,o,u,c,l,p,h){return((t=S(r)?"":S(n)?">="+r+".0.0":S(i)?">="+r+"."+n+".0":">="+t)+" "+(o=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":p?"<="+u+"."+c+"."+l+"-"+p:"<="+o)).trim()}function T(e,t,n){for(var i=0;i0){var a=e[i].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function P(e,t,r){try{t=new w(t,r)}catch(e){return!1}return t.test(e)}function B(e,t,r,n){var i,a,s,o,u;switch(e=new h(e,n),t=new w(t,n),r){case">":i=y,a=b,s=D,o=">",u=">=";break;case"<":i=D,a=E,s=y,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(P(e,t,n))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,n)?p=e:s(e.semver,f.semver,n)&&(f=e)})),p.operator===o||p.operator===u)return!1;if((!f.operator||f.operator===o)&&a(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}x.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new h(r[2],this.options.loose):this.semver=A},x.prototype.toString=function(){return this.value},x.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===A||e===A)return!0;if("string"==typeof e)try{e=new h(e,this.options)}catch(e){return!1}return C(e,this.operator,this.semver,this.options)},x.prototype.intersects=function(e,t){if(!(e instanceof x))throw new TypeError("a Comparator is required");var r;if(t&&"object"===c(t)||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new w(e.value,t),P(this.value,r,t));if(""===e.operator)return""===e.value||(r=new w(this.value,t),P(e.semver,r,t));var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=C(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=C(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||a&&s||o||u},t.Range=w,w.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},w.prototype.toString=function(){return this.range},w.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(n,k),r("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),r("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var a=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],o=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(n,(function(t,n,i,a,s){var o;return r("caret",e,t,n,i,a,s),S(n)?o="":S(i)?o=">="+n+".0.0 <"+(+n+1)+".0.0":S(a)?o="0"===n?">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":">="+n+"."+i+".0 <"+(+n+1)+".0.0":s?(r("replaceCaret pr",s),o="0"===n?"0"===i?">="+n+"."+i+"."+a+"-"+s+" <"+n+"."+i+"."+(+a+1):">="+n+"."+i+"."+a+"-"+s+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+a+"-"+s+" <"+(+n+1)+".0.0"):(r("no pr"),o="0"===n?"0"===i?">="+n+"."+i+"."+a+" <"+n+"."+i+"."+(+a+1):">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+a+" <"+(+n+1)+".0.0"),r("caret return",o),o}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(n,(function(t,n,i,a,s){var o;return r("tilde",e,t,n,i,a,s),S(n)?o="":S(i)?o=">="+n+".0.0 <"+(+n+1)+".0.0":S(a)?o=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":s?(r("replaceTilde pr",s),o=">="+n+"."+i+"."+a+"-"+s+" <"+n+"."+(+i+1)+".0"):o=">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0",r("tilde return",o),o}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(n,(function(n,i,a,s,o,u){r("xRange",e,n,i,a,s,o,u);var c=S(a),l=c||S(s),p=l||S(o),h=p;return"="===i&&h&&(i=""),u=t.includePrerelease?"-0":"",c?n=">"===i||"<"===i?"<0.0.0-0":"*":i&&h?(l&&(s=0),o=0,">"===i?(i=">=",l?(a=+a+1,s=0,o=0):(s=+s+1,o=0)):"<="===i&&(i="<",l?a=+a+1:s=+s+1),n=i+a+"."+s+"."+o+u):l?n=">="+a+".0.0"+u+" <"+(+a+1)+".0.0"+u:p&&(n=">="+a+"."+s+".0"+u+" <"+a+"."+(+s+1)+".0"+u),r("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(a)}))),o=o.map((function(e){return new x(e,this.options)}),this)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Range is required");return this.set.some((function(r){return F(r,t)&&e.set.some((function(e){return F(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new w(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},w.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new h(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!y(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return r&&e.test(r)?r:null},t.validRange=function(e,t){try{return new w(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return B(e,t,"<",r)},t.gtr=function(e,t,r){return B(e,t,">",r)},t.outside=B,t.prerelease=function(e,t){var r=p(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new w(e,r),t=new w(t,r),e.intersects(t)},t.coerce=function(e,t){if(e instanceof h)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var n;(n=i[s.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),i[s.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;i[s.COERCERTL].lastIndex=-1}else r=e.match(i[s.COERCE]);return null===r?null:p(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}})),qt=(Mt.SEMVER_SPEC_VERSION,Mt.re,Mt.src,Mt.tokens,Mt.parse,Mt.valid,Mt.clean,Mt.SemVer,Mt.inc,Mt.diff,Mt.compareIdentifiers,Mt.rcompareIdentifiers,Mt.major,Mt.minor,Mt.patch,Mt.compare,Mt.compareLoose,Mt.compareBuild,Mt.rcompare,Mt.sort,Mt.rsort,Mt.gt,Mt.lt,Mt.eq,Mt.neq,Mt.gte,Mt.lte,Mt.cmp,Mt.Comparator,Mt.Range,Mt.toComparators,Mt.satisfies,Mt.maxSatisfying,Mt.minSatisfying,Mt.minVersion,Mt.validRange,Mt.ltr,Mt.gtr,Mt.outside,Mt.prerelease,Mt.intersects,Mt.coerce,lt((function(e){e.exports=function(e){var t=void 0;t="string"==typeof e?[e]:e.raw;for(var r="",n=0;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function tr(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return s}function rr(e){return this instanceof rr?(this.v=e,this):new rr(e)}var nr=Object.freeze({__proto__:null,__extends:function(e,t){function r(){this.constructor=e}Kt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},get __assign(){return Zt},__rest:function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i=0;o--)(i=e[o])&&(s=(a<3?i(s):a>3?i(t,r,s):i(t,r))||s);return a>3&&s&&Object.defineProperty(t,r,s),s},__param:function(e,t){return function(r,n){t(r,n,e)}},__metadata:function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":c(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{u(n.next(e))}catch(e){a(e)}}function o(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){e.done?i(e.value):new r((function(t){t(e.value)})).then(s,o)}u((n=n.apply(e,t||[])).next())}))},__generator:function(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]1||o(e,t)}))})}function o(e,t){try{(r=i[e](t)).value instanceof rr?Promise.resolve(r.value.v).then(u,c):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function u(e){o("next",e)}function c(e){o("throw",e)}function l(e,t){e(t),a.shift(),a.length&&o(a[0][0],a[0][1])}},__asyncDelegator:function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:rr(e[n](t)),done:"return"===n}:i?i(t):t}:i}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=er(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),ir=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:function(e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e)},value:function(e){if(null===e||"object"!==c(e))return JSON.stringify(e);if(Array.isArray(e))return"[".concat(e.map((function(e){return t.apiDescriptor.value(e)})).join(", "),"]");var r=Object.keys(e);return 0===r.length?"{}":"{ ".concat(r.map((function(r){return"".concat(t.apiDescriptor.key(r),": ").concat(t.apiDescriptor.value(e[r]))})).join(", ")," }")},pair:function(e){var r=e.key,n=e.value;return t.apiDescriptor.value(f({},r,n))}}}));ct(ir),ir.apiDescriptor;var ar=pt(nr),sr=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ar.__exportStar(ir,t)}));ct(sr);var or=/[|\\{}()[\]^$+*?.]/g,ur=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(or,"\\$&")},cr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},lr=lt((function(e){var t={};for(var r in cr)cr.hasOwnProperty(r)&&(t[cr[r]]=r);var n=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in n)if(n.hasOwnProperty(i)){if(!("channels"in n[i]))throw new Error("missing channels property: "+i);if(!("labels"in n[i]))throw new Error("missing channel labels property: "+i);if(n[i].labels.length!==n[i].channels)throw new Error("channel and label counts mismatch: "+i);var a=n[i].channels,s=n[i].labels;delete n[i].channels,delete n[i].labels,Object.defineProperty(n[i],"channels",{value:a}),Object.defineProperty(n[i],"labels",{value:s})}n.rgb.hsl=function(e){var t,r,n=e[0]/255,i=e[1]/255,a=e[2]/255,s=Math.min(n,i,a),o=Math.max(n,i,a),u=o-s;return o===s?t=0:n===o?t=(i-a)/u:i===o?t=2+(a-n)/u:a===o&&(t=4+(n-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),r=(s+o)/2,[t,100*(o===s?0:r<=.5?u/(o+s):u/(2-o-s)),100*r]},n.rgb.hsv=function(e){var t,r,n=e[0],i=e[1],a=e[2],s=Math.min(n,i,a),o=Math.max(n,i,a),u=o-s;return r=0===o?0:u/o*1e3/10,o===s?t=0:n===o?t=(i-a)/u:i===o?t=2+(a-n)/u:a===o&&(t=4+(n-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),[t,r,o/255*1e3/10]},n.rgb.hwb=function(e){var t=e[0],r=e[1],i=e[2];return[n.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,i))*100,100*(i=1-1/255*Math.max(t,Math.max(r,i)))]},n.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-i)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},n.rgb.keyword=function(e){var r=t[e];if(r)return r;var n,i,a,s=1/0;for(var o in cr)if(cr.hasOwnProperty(o)){var u=cr[o],c=(i=e,a=u,Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)+Math.pow(i[2]-a[2],2));c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},n.rgb.lab=function(e){var t=n.rgb.xyz(e),r=t[0],i=t[1],a=t[2];return i/=100,a/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(r-i),200*(i-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},n.hsl.rgb=function(e){var t,r,n,i,a,s=e[0]/360,o=e[1]/100,u=e[2]/100;if(0===o)return[a=255*u,a,a];t=2*u-(r=u<.5?u*(1+o):u+o-u*o),i=[0,0,0];for(var c=0;c<3;c++)(n=s+1/3*-(c-1))<0&&n++,n>1&&n--,a=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,i[c]=255*a;return i},n.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,a=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,i*=a<=1?a:2-a,[t,100*(0===n?2*i/(a+i):2*r/(n+r)),(n+r)/2*100]},n.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),s=255*n*(1-r),o=255*n*(1-r*a),u=255*n*(1-r*(1-a));switch(n*=255,i){case 0:return[n,u,s];case 1:return[o,n,s];case 2:return[s,n,u];case 3:return[s,o,n];case 4:return[u,s,n];case 5:return[n,s,o]}},n.hsv.hsl=function(e){var t,r,n,i=e[0],a=e[1]/100,s=e[2]/100,o=Math.max(s,.01);return n=(2-a)*s,r=a*o,[i,100*(r=(r/=(t=(2-a)*o)<=1?t:2-t)||0),100*(n/=2)]},n.hwb.rgb=function(e){var t,r,n,i,a,s,o,u=e[0]/360,c=e[1]/100,l=e[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),n=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(n=1-n),i=c+n*((r=1-l)-c),t){default:case 6:case 0:a=r,s=i,o=c;break;case 1:a=i,s=r,o=c;break;case 2:a=c,s=r,o=i;break;case 3:a=c,s=i,o=r;break;case 4:a=i,s=c,o=r;break;case 5:a=r,s=c,o=i}return[255*a,255*s,255*o]},n.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},n.xyz.rgb=function(e){var t,r,n,i=e[0]/100,a=e[1]/100,s=e[2]/100;return r=-.9689*i+1.8758*a+.0415*s,n=.0557*i+-.204*a+1.057*s,t=(t=3.2406*i+-1.5372*a+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},n.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},n.lab.xyz=function(e){var t,r,n,i=e[0];t=e[1]/500+(r=(i+16)/116),n=r-e[2]/200;var a=Math.pow(r,3),s=Math.pow(t,3),o=Math.pow(n,3);return r=a>.008856?a:(r-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},n.lab.lch=function(e){var t,r=e[0],n=e[1],i=e[2];return(t=360*Math.atan2(i,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+i*i),t]},n.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},n.rgb.ansi16=function(e){var t=e[0],r=e[1],i=e[2],a=1 in arguments?arguments[1]:n.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===a&&(s+=60),s},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},n.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},n.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},n.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},n.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},n.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,i=e[2]/255,a=Math.max(Math.max(r,n),i),s=Math.min(Math.min(r,n),i),o=a-s;return t=o<=0?0:a===r?(n-i)/o%6:a===n?2+(i-r)/o:4+(r-n)/o+4,t/=6,[360*(t%=1),100*o,100*(o<1?s/(1-o):0)]},n.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return(n=r<.5?2*t*r:2*t*(1-r))<1&&(i=(r-.5*n)/(1-n)),[e[0],100*n,100*i]},n.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},n.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var i,a=[0,0,0],s=t%1*6,o=s%1,u=1-o;switch(Math.floor(s)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=u,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=u,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=u}return i=(1-r)*n,[255*(r*a[0]+i),255*(r*a[1]+i),255*(r*a[2]+i)]},n.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},n.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},n.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},n.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=n.gray.hsv=function(e){return[0,0,e[0]]},n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}})),pr=(lr.rgb,lr.hsl,lr.hsv,lr.hwb,lr.cmyk,lr.xyz,lr.lab,lr.lch,lr.hex,lr.keyword,lr.ansi16,lr.ansi256,lr.hcg,lr.apple,lr.gray,Object.keys(lr));function hr(e){var t=function(){for(var e={},t=pr.length,r=0;r1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"===c(r))for(var n=r.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))}));var yr,Dr=mr,gr=lt((function(e){var t=function(e,t){return function(){var r=e.apply(Dr,arguments);return"[".concat(r+t,"m")}},r=function(e,t){return function(){var r=e.apply(Dr,arguments);return"[".concat(38+t,";5;").concat(r,"m")}},n=function(e,t){return function(){var r=e.apply(Dr,arguments);return"[".concat(38+t,";2;").concat(r[0],";").concat(r[1],";").concat(r[2],"m")}};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){var e=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(var a=0,s=Object.keys(i);a=2,has16m:e>=3}}(function(e){if(!1===yr)return 0;if(Er("color=16m")||Er("color=full")||Er("color=truecolor"))return 3;if(Er("color=256"))return 2;if(e&&!e.isTTY&&!0!==yr)return 0;var t=yr?1:0;if("win32"===Rt.platform){var r=vr.release().split(".");return Number(Rt.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in br)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in br}))||"codeship"===br.CI_NAME?1:t;if("TEAMCITY_VERSION"in br)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(br.TEAMCITY_VERSION)?1:0;if("truecolor"===br.COLORTERM)return 3;if("TERM_PROGRAM"in br){var n=parseInt((br.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(br.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(br.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(br.TERM)?1:"COLORTERM"in br?1:(br.TERM,t)}(e))}Er("no-color")||Er("no-colors")||Er("color=false")?yr=!1:(Er("color")||Er("colors")||Er("color=true")||Er("color=always"))&&(yr=!0),"FORCE_COLOR"in br&&(yr=0===br.FORCE_COLOR.length||0!==parseInt(br.FORCE_COLOR,10));var xr={supportsColor:Cr,stdout:Cr(Rt.stdout),stderr:Cr(Rt.stderr)},Ar=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,wr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Fr=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Sr=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,kr=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Tr(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):kr.get(e)||e}function Pr(e,t){var r,n=[],i=t.trim().split(/\s*,\s*/g),a=!0,s=!1,o=void 0;try{for(var u,c=i[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var l=u.value;if(isNaN(l)){if(!(r=l.match(Fr)))throw new Error("Invalid Chalk template style argument: ".concat(l," (in style '").concat(e,"')"));n.push(r[2].replace(Sr,(function(e,t,r){return t?Tr(t):r})))}else n.push(Number(l))}}catch(e){s=!0,o=e}finally{try{a||null==c.return||c.return()}finally{if(s)throw o}}return n}function Br(e){wr.lastIndex=0;for(var t,r=[];null!==(t=wr.exec(e));){var n=t[1];if(t[2]){var i=Pr(n,t[2]);r.push([n].concat(i))}else r.push([n])}return r}function Nr(e,t){var r={},n=!0,i=!1,a=void 0;try{for(var s,o=t[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value,c=!0,l=!1,p=void 0;try{for(var h,f=u.styles[Symbol.iterator]();!(c=(h=f.next()).done);c=!0){var d=h.value;r[d[0]]=u.inverse?null:d.slice(1)}}catch(e){l=!0,p=e}finally{try{c||null==f.return||f.return()}finally{if(l)throw p}}}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}for(var m=e,y=0,D=Object.keys(r);y0?m[g].apply(m,r[g]):m[g]}}return m}var Ir=function(e,t){var r=[],n=[],i=[];if(t.replace(Ar,(function(t,a,s,o,u,c){if(a)i.push(Tr(a));else if(o){var l=i.join("");i=[],n.push(0===r.length?l:Nr(e,r)(l)),r.push({inverse:s,styles:Br(o)})}else if(u){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");n.push(Nr(e,r)(i.join(""))),i=[],r.pop()}else i.push(c)})),n.push(i.join("")),r.length>0){var a="Chalk template literal is missing ".concat(r.length," closing bracket").concat(1===r.length?"":"s"," (`}`)");throw new Error(a)}return n.join("")},Or=lt((function(e){var t=xr.stdout,r="win32"===Rt.platform&&!(Rt.env.TERM||"").toLowerCase().startsWith("xterm"),n=["ansi","ansi","ansi256","ansi16m"],i=new Set(["gray"]),a=Object.create(null);function s(e,r){r=r||{};var n=t?t.level:0;e.level=void 0===r.level?n:r.level,e.enabled="enabled"in r?r.enabled:e.level>0}function o(e){if(!this||!(this instanceof o)||this.template){var t={};return s(t,e),t.template=function(){var e=[].slice.call(arguments);return E.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,o.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=o,t.template}s(this,e)}r&&(gr.blue.open="");for(var u=function(){var e=l[c];gr[e].closeRe=new RegExp(ur(gr[e].close),"g"),a[e]={get:function(){var t=gr[e];return g.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}},c=0,l=Object.keys(gr);c1)for(var i=1;it.length&&(e=t,t=r);var n=e.length,i=t.length;if(0===n)return i;if(0===i)return n;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;if(0===n)return i;for(var a,s,o,u,c=0;cs?u>s?s+1:u:u>o?o+1:u;return s}(e,t)<3}));o&&s.push("Did you mean ".concat(Or.default.blue(n.key(o)),"?")),i.warn(s.join(" "))}}));ct(Ur),Ur.levenUnknownHandler;var zr=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ar.__exportStar(Ur,t)}));ct(zr);var Vr=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ar.__exportStar(jr,t),ar.__exportStar(Rr,t),ar.__exportStar(zr,t)}));ct(Vr);var $r=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function n(e,t){var n=new e(t),s=Object.create(n),o=!0,u=!1,c=void 0;try{for(var l,p=r[Symbol.iterator]();!(o=(l=p.next()).done);o=!0){var h=l.value;h in t&&(s[h]=a(t[h],n,i.prototype[h].length))}}catch(e){u=!0,c=e}finally{try{o||null==p.return||p.return()}finally{if(u)throw c}}return s}t.createSchema=n;var i=function(){function e(t){l(this,e),this.name=t.name}return h(e,[{key:"default",value:function(e){}},{key:"expected",value:function(e){return"nothing"}},{key:"validate",value:function(e,t){return!1}},{key:"deprecated",value:function(e,t){return!1}},{key:"forward",value:function(e,t){}},{key:"redirect",value:function(e,t){}},{key:"overlap",value:function(e,t,r){return e}},{key:"preprocess",value:function(e,t){return e}},{key:"postprocess",value:function(e,t){return e}}],[{key:"create",value:function(e){return n(this,e)}}]),e}();function a(e,t,r){return"function"==typeof e?function(){for(var n=arguments.length,i=new Array(n),a=0;a2&&void 0!==arguments[2]&&arguments[2];return!1!==e&&(!0===e?!!r||[{value:t}]:"value"in e?[e]:0!==e.length&&e)},t.normalizeTransferResult=r,t.normalizeForwardResult=n,t.normalizeRedirectResult=function(e,t){var r=n("object"===c(e)&&"redirect"in e?e.redirect:e,t);return 0===r.length?{remain:t,redirect:r}:"object"===c(e)&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}}));ct(Xr),Xr.recordFromArray,Xr.mapFromArray,Xr.createAutoChecklist,Xr.partition,Xr.isInt,Xr.comparePrimitive,Xr.normalizeDefaultResult,Xr.normalizeValidateResult,Xr.normalizeDeprecatedResult,Xr.normalizeTransferResult,Xr.normalizeForwardResult,Xr.normalizeRedirectResult;var Qr=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(e){var r;return l(this,t),(r=E(this,m(t).call(this,e)))._choices=Xr.mapFromArray(e.choices.map((function(e){return e&&"object"===c(e)?e:{value:e}})),"value"),r}return d(t,e),h(t,[{key:"expected",value:function(e){var t=this,r=e.descriptor,n=Array.from(this._choices.keys()).map((function(e){return t._choices.get(e)})).filter((function(e){return!e.deprecated})).map((function(e){return e.value})).sort(Xr.comparePrimitive).map(r.value),i=n.slice(0,-2),a=n.slice(-2);return i.concat(a.join(" or ")).join(", ")}},{key:"validate",value:function(e){return this._choices.has(e)}},{key:"deprecated",value:function(e){var t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}},{key:"forward",value:function(e){var t=this._choices.get(e);return t?t.forward:void 0}},{key:"redirect",value:function(e){var t=this._choices.get(e);return t?t.redirect:void 0}}]),t}($r.Schema);t.ChoiceSchema=r}));ct(Qr),Qr.ChoiceSchema;var Yr=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return l(this,t),E(this,m(t).apply(this,arguments))}return d(t,e),h(t,[{key:"expected",value:function(){return"a number"}},{key:"validate",value:function(e,t){return"number"==typeof e}}]),t}($r.Schema);t.NumberSchema=r}));ct(Yr),Yr.NumberSchema;var Kr=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return l(this,t),E(this,m(t).apply(this,arguments))}return d(t,e),h(t,[{key:"expected",value:function(){return"an integer"}},{key:"validate",value:function(e,r){return!0===r.normalizeValidateResult(b(m(t.prototype),"validate",this).call(this,e,r),e)&&Xr.isInt(e)}}]),t}(Yr.NumberSchema);t.IntegerSchema=r}));ct(Kr),Kr.IntegerSchema;var Zr=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return l(this,t),E(this,m(t).apply(this,arguments))}return d(t,e),h(t,[{key:"expected",value:function(){return"a string"}},{key:"validate",value:function(e){return"string"==typeof e}}]),t}($r.Schema);t.StringSchema=r}));ct(Zr),Zr.StringSchema;var en=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ar.__exportStar(Wr,t),ar.__exportStar(Hr,t),ar.__exportStar(Jr,t),ar.__exportStar(Gr,t),ar.__exportStar(Qr,t),ar.__exportStar(Kr,t),ar.__exportStar(Yr,t),ar.__exportStar(Zr,t)}));ct(en);var tn=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDescriptor=ir.apiDescriptor,t.defaultUnknownHandler=Ur.levenUnknownHandler,t.defaultInvalidHandler=Rr.commonInvalidHandler,t.defaultDeprecatedHandler=_r.commonDeprecatedHandler}));ct(tn),tn.defaultDescriptor,tn.defaultUnknownHandler,tn.defaultInvalidHandler,tn.defaultDeprecatedHandler;var rn=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e,t,n){return new r(t,n).normalize(e)};var r=function(){function e(t,r){l(this,e);var n=r||{},i=n.logger,a=void 0===i?console:i,s=n.descriptor,o=void 0===s?tn.defaultDescriptor:s,u=n.unknown,c=void 0===u?tn.defaultUnknownHandler:u,p=n.invalid,h=void 0===p?tn.defaultInvalidHandler:p,f=n.deprecated,d=void 0===f?tn.defaultDeprecatedHandler:f;this._utils={descriptor:o,logger:a||{warn:function(){}},schemas:Xr.recordFromArray(t,"name"),normalizeDefaultResult:Xr.normalizeDefaultResult,normalizeDeprecatedResult:Xr.normalizeDeprecatedResult,normalizeForwardResult:Xr.normalizeForwardResult,normalizeRedirectResult:Xr.normalizeRedirectResult,normalizeValidateResult:Xr.normalizeValidateResult},this._unknownHandler=c,this._invalidHandler=h,this._deprecatedHandler=d,this.cleanHistory()}return h(e,[{key:"cleanHistory",value:function(){this._hasDeprecationWarned=Xr.createAutoChecklist()}},{key:"normalize",value:function(e){var t=this,r={},n=[e],i=function(){for(;0!==n.length;){var e=n.shift(),i=t._applyNormalization(e,r);n.push.apply(n,A(i))}};i();for(var a=0,s=Object.keys(this._utils.schemas);at.length&&(e=t,t=r);for(var n=e.length,i=t.length;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;for(var a,s,o,u,c=0;cs?u>s?s+1:u:u>o?o+1:u;return s},un=on,cn=on;un.default=cn;var ln,pn={key:function(e){return 1===e.length?"-".concat(e):"--".concat(e)},value:function(e){return nn.apiDescriptor.value(e)},pair:function(e){var t=e.key,r=e.value;return!1===r?"--no-".concat(t):!0===r?pn.key(t):""===r?"".concat(pn.key(t)," without an argument"):"".concat(pn.key(t),"=").concat(r)}},hn=function(e){function t(e){var r,n=e.name,i=e.flags;return l(this,t),(r=E(this,m(t).call(this,{name:n,choices:i})))._flags=i.slice().sort(),r}return d(t,e),h(t,[{key:"preprocess",value:function(e,t){if("string"==typeof e&&0!==e.length&&-1===this._flags.indexOf(e)){var r=this._flags.find((function(t){return un(t,e)<3}));if(r)return t.logger.warn(["Unknown flag ".concat(Or.yellow(t.descriptor.value(e)),","),"did you mean ".concat(Or.blue(t.descriptor.value(r)),"?")].join(" ")),r}return e}},{key:"expected",value:function(){return"a flag"}}]),t}(nn.ChoiceSchema);function fn(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.logger,i=r.isCLI,a=void 0!==i&&i,s=r.passThrough,o=void 0!==s&&s,u=o?Array.isArray(o)?function(e,t){return-1===o.indexOf(e)?void 0:f({},e,t)}:function(e,t){return f({},e,t)}:nn.levenUnknownHandler,c=a?pn:nn.apiDescriptor,l=dn(t,{isCLI:a}),p=new nn.Normalizer(l,{logger:n,unknown:u,descriptor:c}),h=!1!==n;h&&ln&&(p._hasDeprecationWarned=ln);var d=p.normalize(e);return h&&(ln=p._hasDeprecationWarned),d}function dn(e,t){var r=t.isCLI,n=[];r&&n.push(nn.AnySchema.create({name:"_"}));var i=!0,a=!1,s=void 0;try{for(var o,u=e[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var c=o.value;n.push(mn(c,{isCLI:r,optionInfos:e})),c.alias&&r&&n.push(nn.AliasSchema.create({name:c.alias,sourceName:c.name}))}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}return n}function mn(e,t){var r,n=t.isCLI,i=t.optionInfos,a={name:e.name},s={};switch(e.type){case"int":r=nn.IntegerSchema,n&&(a.preprocess=function(e){return Number(e)});break;case"string":r=nn.StringSchema;break;case"choice":r=nn.ChoiceSchema,a.choices=e.choices.map((function(t){return"object"===c(t)&&t.redirect?Object.assign({},t,{redirect:{to:{key:e.name,value:t.redirect}}}):t}));break;case"boolean":r=nn.BooleanSchema;break;case"flag":r=hn,a.flags=i.map((function(e){return[].concat(e.alias||[],e.description?e.name:[],e.oppositeDescription?"no-".concat(e.name):[])})).reduce((function(e,t){return e.concat(t)}),[]);break;case"path":r=nn.StringSchema;break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?a.validate=function(t,r,n){return e.exception(t)||r.validate(t,n)}:a.validate=function(e,t,r){return void 0===e||t.validate(e,r)},e.redirect&&(s.redirect=function(t){return t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0}),e.deprecated&&(s.deprecated=!0),n&&!e.array){var o=a.preprocess||function(e){return e};a.preprocess=function(e,t,r){return t.preprocess(o(Array.isArray(e)?e[e.length-1]:e),r)}}return e.array?nn.ArraySchema.create(Object.assign(n?{preprocess:function(e){return[].concat(e)}}:{},s,{valueSchema:r.create(a)})):r.create(Object.assign({},a,s))}var yn={normalizeApiOptions:function(e,t,r){return fn(e,t,r)},normalizeCliOptions:function(e,t,r){return fn(e,t,Object.assign({isCLI:!0},r))}},Dn=function(e){return e.length>0?e[e.length-1]:null},gn=function e(t,r){return!(r=r||{}).ignoreDecorators&&t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?e(t.declaration.decorators[0]):!r.ignoreDecorators&&t.decorators&&t.decorators.length>0?e(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeof t.start?t.start:t.loc?t.loc.start:null},vn=function e(t){var r=t.nodes&&Dn(t.nodes);if(r&&t.source&&!t.source.end&&(t=r),t.__location)return t.__location.endOffset;var n=t.range?t.range[1]:"number"==typeof t.end?t.end:null;return t.typeAnnotation?Math.max(n,e(t.typeAnnotation)):t.loc&&!n?t.loc.end:n},En=lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}}));ct(En),En.matchToToken;var bn=lt((function(e){!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function r(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=r(t)}while(t);return!1},trailingStatement:r}}()})),Cn=(bn.isExpression,bn.isStatement,bn.isIterationStatement,bn.isSourceElement,bn.isProblematicIfStatement,bn.trailingStatement,lt((function(e){!function(){var t,r,n,i,a,s;function o(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(r={NonAsciiIdentifierStart:/[\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]/,NonAsciiIdentifierPart:/[\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]/},t={NonAsciiIdentifierStart:/[\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-\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\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\u1369-\u1371\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-\u19DA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),s=0;s<128;++s)i[s]=s>=97&&s<=122||s>=65&&s<=90||36===s||95===s;for(a=new Array(128),s=0;s<128;++s)a[s]=s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||36===s||95===s;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&n.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?i[e]:r.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES5:function(e){return e<128?a[e]:r.NonAsciiIdentifierPart.test(o(e))},isIdentifierStartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES6:function(e){return e<128?a[e]:t.NonAsciiIdentifierPart.test(o(e))}}}()}))),xn=(Cn.isDecimalDigit,Cn.isHexDigit,Cn.isOctalDigit,Cn.isWhiteSpace,Cn.isLineTerminator,Cn.isIdentifierStartES5,Cn.isIdentifierPartES5,Cn.isIdentifierStartES6,Cn.isIdentifierPartES6,lt((function(e){!function(){var t=Cn;function r(e,t){return!(!t&&"yield"===e)&&n(e,t)}function n(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function i(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function s(e){var r,n,i;if(0===e.length)return!1;if(i=e.charCodeAt(0),!t.isIdentifierStartES5(i))return!1;for(r=1,n=e.length;r=n)return!1;if(!(56320<=(a=e.charCodeAt(r))&&a<=57343))return!1;i=1024*(i-55296)+(a-56320)+65536}if(!s(i))return!1;s=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:r,isKeywordES6:n,isReservedWordES5:i,isReservedWordES6:a,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:s,isIdentifierNameES6:o,isIdentifierES5:function(e,t){return s(e)&&!i(e,t)},isIdentifierES6:function(e,t){return o(e)&&!a(e,t)}}}()}))),An=(xn.isKeywordES5,xn.isKeywordES6,xn.isReservedWordES5,xn.isReservedWordES6,xn.isRestrictedWord,xn.isIdentifierNameES5,xn.isIdentifierNameES6,xn.isIdentifierES5,xn.isIdentifierES6,lt((function(e,t){t.ast=bn,t.code=Cn,t.keyword=xn}))),wn=(An.ast,An.code,An.keyword,lt((function(e,t){function r(){var e=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(En);return r=function(){return e},e}function n(){var e=a(An);return n=function(){return e},e}function i(){var e=a(Or);return i=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return{keyword:e.cyan,capitalized:e.yellow,jsx_tag:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldHighlight=h,t.getChalk=f,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(h(t)){var r=f(t),n=s(r);return p(n,e)}return e};var o=/\r\n|[\n\r\u2028\u2029]/,u=/^[a-z][\w-]*$/i,c=/^[()[\]{}]$/;function l(e){var t=x(e.slice(-2),2),i=t[0],a=t[1],s=(0,r().matchToToken)(e);if("name"===s.type){if(n().default.keyword.isReservedWordES6(s.value))return"keyword";if(u.test(s.value)&&("<"===a[i-1]||"3&&void 0!==arguments[3]?arguments[3]:{};if(!n){n=!0;var a="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(Rt.emitWarning)Rt.emitWarning(a,"DeprecationWarning");else{var s=new Error(a);s.name="DeprecationWarning",console.warn(new Error(a))}}var u={start:{column:r=Math.max(r,0),line:t}};return o(e,u,i)};var n=!1;function i(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var a=/\r\n|[\n\r\u2028\u2029]/;function s(e,t,r){var n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),a=r||{},s=a.linesAbove,o=void 0===s?2:s,u=a.linesBelow,c=void 0===u?3:u,l=n.line,p=n.column,h=i.line,f=i.column,d=Math.max(l-(o+1),0),m=Math.min(t.length,h+c);-1===l&&(d=0),-1===h&&(m=t.length);var y=h-l,D={};if(y)for(var g=0;g<=y;g++){var v=g+l;if(p)if(0===g){var E=t[v-1].length;D[v]=[p,E-p+1]}else if(g===y)D[v]=[0,f];else{var b=t[v-g].length;D[v]=[0,b]}else D[v]=!0}else D[l]=p===f?!p||[p,0]:[p,f-p];return{start:d,end:m,markerLines:D}}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(n.highlightCode||n.forceColor)&&(0,r().shouldHighlight)(n),u=(0,r().getChalk)(n),c=i(u),l=function(e,t){return o?e(t):t},p=e.split(a),h=s(t,p,n),f=h.start,d=h.end,m=h.markerLines,y=t.start&&"number"==typeof t.start.column,D=String(d).length,g=o?(0,r().default)(e,n):e,v=g.split(a).slice(f,d).map((function(e,t){var r=f+1+t,i=" ".concat(r).slice(-D),a=" ".concat(i," | "),s=m[r],o=!m[r+1];if(s){var u="";if(Array.isArray(s)){var p=e.slice(0,Math.max(s[0]-1,0)).replace(/[^\t]/g," "),h=s[1]||1;u=["\n ",l(c.gutter,a.replace(/\d/g," ")),p,l(c.marker,"^").repeat(h)].join(""),o&&n.message&&(u+=" "+l(c.message,n.message))}return[l(c.marker,">"),l(c.gutter,a),e,u].join("")}return" ".concat(l(c.gutter,a)).concat(e)})).join("\n");return n.message&&!y&&(v="".concat(" ".repeat(D+1)).concat(n.message,"\n").concat(v)),o?u.reset(v):v}}));ct(Fn),Fn.codeFrameColumns;var Sn=dt.ConfigError,kn=gn,Tn=vn,Pn=Object.getOwnPropertyNames,Bn=Object.getOwnPropertyDescriptor;function Nn(e){var t={},r=!0,n=!1,i=void 0;try{for(var a,s=e.plugins[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;if(o.parsers){var u=!0,c=!1,l=void 0;try{for(var p,h=Pn(o.parsers)[Symbol.iterator]();!(u=(p=h.next()).done);u=!0){var f=p.value;Object.defineProperty(t,f,Bn(o.parsers,f))}}catch(e){c=!0,l=e}finally{try{u||null==h.return||h.return()}finally{if(c)throw l}}}}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return t}function In(e,t){if(t=t||Nn(e),"function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:kn,locEnd:Tn};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new Sn("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var On={parse:function(e,t){var r=Nn(t),n=Object.keys(r).reduce((function(e,t){return Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t].parse}})}),{}),i=In(t,r);try{return i.preprocess&&(e=i.preprocess(e,t)),{text:e,ast:i.parse(e,n,t)}}catch(t){var a=t.loc;if(a){var s=Fn;throw t.codeFrame=s.codeFrameColumns(e,a,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t.stack}},resolveParser:In},_n=dt.UndefinedParserError,jn=Yt.getSupportInfo,Ln=On.resolveParser,Rn={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function Mn(e,t){var r=function(e,t){if("string"!=typeof e)throw new TypeError("expected path to be a string");if("\\"===e||"/"===e)return"/";var r=e.length;if(r<=1)return e;var n="";if(r>4&&"\\"===e[3]){var i=e[2];"?"!==i&&"."!==i||"\\\\"!==e.slice(0,2)||(e=e.slice(2),n="//")}var a=e.split(/[/\\]+/);return!1!==t&&""===a[a.length-1]&&a.pop(),n+a.join("/")}(e).split("/"),n=r[r.length-1].toLowerCase(),i=jn(null,{plugins:t}).languages.find((function(t){return null!==t.since&&(t.extensions&&t.extensions.some((function(e){return n.endsWith(e)}))||t.filenames&&t.filenames.find((function(e){return e.toLowerCase()===n}))||-1===n.indexOf(".")&&t.interpreters&&-1!==t.interpreters.indexOf(function(e){if("string"!=typeof e)return"";var t;try{t=ht.openSync(e,"r")}catch(e){return""}try{var r=new ft(t).next().toString("utf8"),n=r.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(n)return n[1];var i=r.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return i?i[1]:""}catch(e){return""}finally{try{ht.closeSync(t)}catch(e){}}}(e)))}));return i&&i.parsers[0]}var qn=function(e,t){t=t||{};var r=Object.assign({},e),n=jn(null,{plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,i=n.reduce((function(e,t){return void 0!==t.default?Object.assign(e,f({},t.name,t.default)):e}),Object.assign({},Rn));if(!r.parser)if(r.filepath){if(r.parser=Mn(r.filepath,r.plugins),!r.parser)throw new _n("No parser could be inferred for file: ".concat(r.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),r.parser="babel";var a=Ln(yn.normalizeApiOptions(r,[n.find((function(e){return"parser"===e.name}))],{passThrough:!0,logger:!1}));r.astFormat=a.astFormat,r.locEnd=a.locEnd,r.locStart=a.locStart;var s=function(e){var t=e.astFormat;if(!t)throw new Error("getPlugin() requires astFormat to be set");var r=e.plugins.find((function(e){return e.printers&&e.printers[t]}));if(!r)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return r}(r);r.printer=s.printers[r.astFormat];var o=n.filter((function(e){return e.pluginDefaults&&void 0!==e.pluginDefaults[s.name]})).reduce((function(e,t){return Object.assign(e,f({},t.name,t.pluginDefaults[s.name]))}),{}),u=Object.assign({},i,o);return Object.keys(u).forEach((function(e){null==r[e]&&(r[e]=u[e])})),"json"===r.parser&&(r.trailingComma="none"),yn.normalizeApiOptions(r,n,Object.assign({passThrough:Object.keys(Rn)},t))},Un=function e(t,r,n){if(Array.isArray(t))return t.map((function(t){return e(t,r,n)})).filter((function(e){return e}));if(!t||"object"!==c(t))return t;for(var i={},a=0,s=Object.keys(t);a0){for(var i=0;i<~]))"].join("|");return new RegExp(t,e.onlyFirst?void 0:"g")}(),""):e},Kn=Yn,Zn=Yn;Kn.default=Zn;var ei=function(e){return!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)},ti=ei,ri=ei;ti.default=ri;var ni=function(e){if("string"!=typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))||0===e.length)return 0;e=Kn(e);for(var t=0,r=0;r=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=ti(n)?2:1)}return t},ii=ni,ai=ni;ii.default=ai;var si=/[^\x20-\x7F]/;function oi(e){if(e)switch(e.type){case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}function ui(e){return function(t,r,n){var i=n&&n.backwards;if(!1===r)return!1;for(var a=t.length,s=r;s>=0&&s"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((function(e,t){e.forEach((function(e){Ei[e]=t}))}));var Ci={"==":!0,"!=":!0,"===":!0,"!==":!0},xi={"*":!0,"/":!0,"%":!0},Ai={">>":!0,">>>":!0,"<<":!0};function wi(e,t,r){for(var n=0,i=r=r||0;i(r.match(s.regex)||[]).length?s.quote:a.quote),o}function Si(e,t,r){var n='"'===t?"'":'"',i=e.replace(/\\([\s\S])|(['"])/g,(function(e,i,a){return i===n?i:a===t?"\\"+a:a||(r&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(i)?i:"\\"+i)}));return t+i+t}function ki(e){return e&&e.comments&&e.comments.length>0&&e.comments.some((function(e){return"prettier-ignore"===e.value.trim()}))}function Ti(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var Pi,Bi={replaceEndOfLineWith:function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var s,o=e.split("\n")[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value;0!==r.length&&r.push(t),r.push(u)}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return r},getStringWidth:function(e){return e?si.test(e)?ii(e):e.length:0},getMaxContinuousCount:function(e,t){var r=e.match(new RegExp("(".concat(ur(t),")+"),"g"));return null===r?0:r.reduce((function(e,r){return Math.max(e,r.length/t.length)}),0)},getMinNotPresentContinuousCount:function(e,t){var r=e.match(new RegExp("(".concat(ur(t),")+"),"g"));if(null===r)return 0;var n=new Map,i=0,a=!0,s=!1,o=void 0;try{for(var u,c=r[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var l=u.value.length/t.length;n.set(l,!0),l>i&&(i=l)}}catch(e){s=!0,o=e}finally{try{a||null==c.return||c.return()}finally{if(s)throw o}}for(var p=1;p1?e[e.length-2]:null},getLast:Dn,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:gi,getNextNonSpaceNonCommentCharacterIndex:vi,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(vi(e,t,r))},skip:ui,skipWhitespace:ci,skipSpaces:li,skipToLineEnd:pi,skipEverythingButNewLine:hi,skipInlineComment:fi,skipTrailingComment:di,skipNewline:mi,isNextLineEmptyAfterIndex:Di,isNextLineEmpty:function(e,t,r){return Di(e,r(t))},isPreviousLineEmpty:function(e,t,r){var n=r(t)-1;return n=mi(e,n=li(e,n,{backwards:!0}),{backwards:!0}),(n=li(e,n,{backwards:!0}))!==mi(e,n,{backwards:!0})},hasNewline:yi,hasNewlineInRange:function(e,t,r){for(var n=t;n=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},Ii=function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},Oi=Bi.getStringWidth,_i=Ii,ji=Qn.concat,Li=Qn.fill,Ri=Qn.cursor;function Mi(e,t){return Ui(e,{type:"indent"},t)}function qi(e,t,r){return t===-1/0?e.root||{value:"",length:0,queue:[]}:t<0?Ui(e,{type:"dedent"},r):t?"root"===t.type?Object.assign({},e,{root:e}):Ui(e,"string"==typeof t?{type:"stringAlign",n:t}:{type:"numberAlign",n:t},r):e}function Ui(e,t,r){var n="dedent"===t.type?e.queue.slice(0,-1):e.queue.concat(t),i="",a=0,s=0,o=0,u=!0,c=!1,l=void 0;try{for(var p,h=n[Symbol.iterator]();!(u=(p=h.next()).done);u=!0){var f=p.value;switch(f.type){case"indent":y(),r.useTabs?d(1):m(r.tabWidth);break;case"stringAlign":y(),i+=f.n,a+=f.n.length;break;case"numberAlign":s+=1,o+=f.n;break;default:throw new Error("Unexpected type '".concat(f.type,"'"))}}}catch(e){c=!0,l=e}finally{try{u||null==h.return||h.return()}finally{if(c)throw l}}return D(),Object.assign({},e,{value:i,length:a,queue:n});function d(e){i+="\t".repeat(e),a+=r.tabWidth*e}function m(e){i+=" ".repeat(e),a+=e}function y(){r.useTabs?(s>0&&d(s),g()):D()}function D(){o>0&&m(o),g()}function g(){s=0,o=0}}function zi(e){if(0===e.length)return 0;for(var t=0;e.length>0&&"string"==typeof e[e.length-1]&&e[e.length-1].match(/^[ \t]*$/);)t+=e.pop().length;if(e.length&&"string"==typeof e[e.length-1]){var r=e[e.length-1].replace(/[ \t]*$/,"");t+=e[e.length-1].length-r.length,e[e.length-1]=r}return t}function Vi(e,t,r,n,i){for(var a=t.length,s=[e],o=[];r>=0;)if(0!==s.length){var u=s.pop(),c=u[0],l=u[1],p=u[2];if("string"==typeof p)o.push(p),r-=Oi(p);else switch(p.type){case"concat":for(var h=p.parts.length-1;h>=0;h--)s.push([c,l,p.parts[h]]);break;case"indent":s.push([Mi(c,n),l,p.contents]);break;case"align":s.push([qi(c,p.n,n),l,p.contents]);break;case"trim":r+=zi(o);break;case"group":if(i&&p.break)return!1;s.push([c,p.break?1:l,p.contents]),p.id&&(Pi[p.id]=s[s.length-1][1]);break;case"fill":for(var f=p.parts.length-1;f>=0;f--)s.push([c,l,p.parts[f]]);break;case"if-break":var d=p.groupId?Pi[p.groupId]:l;1===d&&p.breakContents&&s.push([c,l,p.breakContents]),2===d&&p.flatContents&&s.push([c,l,p.flatContents]);break;case"line":switch(l){case 2:if(!p.hard){p.soft||(o.push(" "),r-=1);break}return!0;case 1:return!0}}}else{if(0===a)return!0;s.push(t[a-1]),a--}return!1}var $i={};function Wi(e,t,r,n){for(var i=[e];0!==i.length;){var a=i.pop();if(a!==$i){var s=!0;if(t&&!1===t(a)&&(s=!1),r&&(i.push(a),i.push($i)),s)if("concat"===a.type||"fill"===a.type)for(var o=a.parts.length-1;o>=0;--o)i.push(a.parts[o]);else if("if-break"===a.type)a.flatContents&&i.push(a.flatContents),a.breakContents&&i.push(a.breakContents);else if("group"===a.type&&a.expandedStates)if(n)for(var u=a.expandedStates.length-1;u>=0;--u)i.push(a.expandedStates[u]);else i.push(a.contents);else a.contents&&i.push(a.contents)}else r(i.pop())}}function Hi(e,t){if("concat"===e.type||"fill"===e.type){var r=e.parts.map((function(e){return Hi(e,t)}));return t(Object.assign({},e,{parts:r}))}if("if-break"===e.type){var n=e.breakContents&&Hi(e.breakContents,t),i=e.flatContents&&Hi(e.flatContents,t);return t(Object.assign({},e,{breakContents:n,flatContents:i}))}if(e.contents){var a=Hi(e.contents,t);return t(Object.assign({},e,{contents:a}))}return t(e)}function Ji(e,t,r){var n=r,i=!1;return Wi(e,(function(e){var r=t(e);if(void 0!==r&&(i=!0,n=r),i)return!1})),n}function Gi(e){return"string"!=typeof e&&("line"===e.type||void 0)}function Xi(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function Qi(e){if(e.length>0){var t=e[e.length-1];t.expandedStates||(t.break=!0)}return null}function Yi(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}function Ki(e){if("concat"===e.type){for(var t=[],r=0;r=0;f--)a.push([l,p,h.parts[f]]);break;case"indent":a.push([Mi(l,t),p,h.contents]);break;case"align":a.push([qi(l,h.n,t),p,h.contents]);break;case"trim":i-=zi(s);break;case"group":switch(p){case 2:if(!o){a.push([l,h.break?1:2,h.contents]);break}case 1:o=!1;var d=[l,2,h.contents],m=r-i;if(!h.break&&Vi(d,a,m,t))a.push(d);else if(h.expandedStates){var y=h.expandedStates[h.expandedStates.length-1];if(h.break){a.push([l,1,y]);break}for(var D=1;D=h.expandedStates.length){a.push([l,1,y]);break}var g=[l,2,h.expandedStates[D]];if(Vi(g,a,m,t)){a.push(g);break}}}else a.push([l,1,h.contents])}h.id&&(Pi[h.id]=a[a.length-1][1]);break;case"fill":var v=r-i,E=h.parts;if(0===E.length)break;var b=E[0],C=[l,2,b],x=[l,1,b],A=Vi(C,[],v,t,!0);if(1===E.length){A?a.push(C):a.push(x);break}var w=E[1],F=[l,2,w],S=[l,1,w];if(2===E.length){A?(a.push(F),a.push(C)):(a.push(S),a.push(x));break}E.splice(0,2);var k=[l,p,Li(E)],T=E[0];Vi([l,2,ji([b,w,T])],[],v,t,!0)?(a.push(k),a.push(F),a.push(C)):A?(a.push(k),a.push(S),a.push(C)):(a.push(k),a.push(S),a.push(x));break;case"if-break":var P=h.groupId?Pi[h.groupId]:p;1===P&&h.breakContents&&a.push([l,p,h.breakContents]),2===P&&h.flatContents&&a.push([l,p,h.flatContents]);break;case"line-suffix":u.push([l,p,h.contents]);break;case"line-suffix-boundary":u.length>0&&a.push([l,p,{type:"line",hard:!0}]);break;case"line":switch(p){case 2:if(!h.hard){h.soft||(s.push(" "),i+=1);break}o=!0;case 1:if(u.length){a.push([l,p,h]),[].push.apply(a,u.reverse()),u=[];break}h.literal?l.root?(s.push(n,l.root.value),i=l.root.length):(s.push(n),i=0):(i-=zi(s),s.push(n+l.value),i=l.length)}}}var B=s.indexOf(Ri.placeholder);if(-1!==B){var N=s.indexOf(Ri.placeholder,B+1),I=s.slice(0,B).join(""),O=s.slice(B+1,N).join("");return{formatted:I+O+s.slice(N+1).join(""),cursorNodeStart:I.length,cursorNodeText:O}}return{formatted:s.join("")}}},utils:{isEmpty:function(e){return"string"==typeof e&&0===e.length},willBreak:function(e){return Ji(e,Xi,!1)},isLineNext:function(e){return Ji(e,Gi,!1)},traverseDoc:Wi,findInDoc:Ji,mapDoc:Hi,propagateBreaks:function(e){var t=new Set,r=[];Wi(e,(function(e){if("break-parent"===e.type&&Qi(r),"group"===e.type){if(r.push(e),t.has(e))return!1;t.add(e)}}),(function(e){"group"===e.type&&r.pop().break&&Qi(r)}),!0)},removeLines:function(e){return Hi(e,Yi)},stripTrailingHardline:function e(t){if("concat"===t.type&&0!==t.parts.length){var r=t.parts[t.parts.length-1];if("concat"===r.type)return 2===r.parts.length&&r.parts[0].hard&&"break-parent"===r.parts[1].type?{type:"concat",parts:t.parts.slice(0,-1)}:{type:"concat",parts:t.parts.slice(0,-1).concat(e(r))}}return t}},debug:{printDocToDebug:function(e){return Zi(Ki(e))}}},ta=ea.utils.mapDoc,ra={getMaxContinuousCount:Bi.getMaxContinuousCount,getStringWidth:Bi.getStringWidth,getAlignmentSize:Bi.getAlignmentSize,getIndentSize:Bi.getIndentSize,skip:Bi.skip,skipWhitespace:Bi.skipWhitespace,skipSpaces:Bi.skipSpaces,skipNewline:Bi.skipNewline,skipToLineEnd:Bi.skipToLineEnd,skipEverythingButNewLine:Bi.skipEverythingButNewLine,skipInlineComment:Bi.skipInlineComment,skipTrailingComment:Bi.skipTrailingComment,hasNewline:Bi.hasNewline,hasNewlineInRange:Bi.hasNewlineInRange,hasSpaces:Bi.hasSpaces,isNextLineEmpty:function(e,t,r){return Bi.isNextLineEmpty(e,t,r.locEnd)},isNextLineEmptyAfterIndex:Bi.isNextLineEmptyAfterIndex,isPreviousLineEmpty:function(e,t,r){return Bi.isPreviousLineEmpty(e,t,r.locStart)},getNextNonSpaceNonCommentCharacterIndex:function(e,t,r){return Bi.getNextNonSpaceNonCommentCharacterIndex(e,t,r.locEnd)},mapDoc:ta,makeString:Bi.makeString,addLeadingComment:Bi.addLeadingComment,addDanglingComment:Bi.addDanglingComment,addTrailingComment:Bi.addTrailingComment},na=ea.builders,ia=na.concat,aa=na.hardline,sa=na.breakParent,oa=na.indent,ua=na.lineSuffix,ca=na.join,la=na.cursor,pa=Bi.hasNewline,ha=Bi.skipNewline,fa=Bi.isPreviousLineEmpty,da=ra.addLeadingComment,ma=ra.addDanglingComment,ya=ra.addTrailingComment,Da=Symbol("child-nodes");function ga(e,t,r){if(e){var n,i=t.printer,a=t.locStart,s=t.locEnd;if(r){if(e&&i.canAttachComment&&i.canAttachComment(e)){var o;for(o=r.length-1;o>=0&&!(a(r[o])<=a(e)&&s(r[o])<=s(e));--o);return void r.splice(o+1,0,e)}}else if(e[Da])return e[Da];if(i.getCommentChildNodes?n=i.getCommentChildNodes(e):e&&"object"===c(e)&&(n=Object.keys(e).filter((function(e){return"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e})).map((function(t){return e[t]}))),n)return r||Object.defineProperty(e,Da,{value:r=[],enumerable:!1}),n.forEach((function(e){ga(e,t,r)})),r}}function va(e,t,r){var n=e.length;if(0!==n){var i,a=e[0],s=a.precedingNode,o=a.followingNode,u=r.locStart(o);for(i=n;i>0;--i){var c=e[i-1];zn.strictEqual(c.precedingNode,s),zn.strictEqual(c.followingNode,o);var l=t.slice(r.locEnd(c),u);if(!/^[\s(]*$/.test(l))break;u=r.locStart(c)}e.forEach((function(e,t){t=0)return void ya(t,o)}!function e(t,r,n){for(var i,a,s=n.locStart,o=n.locEnd,u=ga(t,n),c=0,l=u.length;c>1,h=u[p];if(s(h)-s(r)<=0&&o(r)-o(h)<=0)return r.enclosingNode=h,void e(h,r,n);if(o(h)-s(r)<=0)i=h,c=p+1;else{if(!(o(r)-s(h)<=0))throw new Error("Comment location overlaps with node location");a=h,l=p}}if(r.enclosingNode&&"TemplateLiteral"===r.enclosingNode.type){var f=r.enclosingNode.quasis,d=ba(f,r,n);i&&ba(f,i,n)!==d&&(i=null),a&&ba(f,a,n)!==d&&(a=null)}i&&(r.precedingNode=i),a&&(r.followingNode=a)}(t,o,n);var c=o.precedingNode,l=o.enclosingNode,p=o.followingNode,h=n.printer.handleComments&&n.printer.handleComments.ownLine?n.printer.handleComments.ownLine:function(){return!1},f=n.printer.handleComments&&n.printer.handleComments.endOfLine?n.printer.handleComments.endOfLine:function(){return!1},d=n.printer.handleComments&&n.printer.handleComments.remaining?n.printer.handleComments.remaining:function(){return!1},m=e.length-1===u;if(pa(r,a(o),{backwards:!0}))h(o,r,n,t,m)||(p?da(p,o):c?ya(c,o):ma(l||t,o));else if(pa(r,s(o)))f(o,r,n,t,m)||(c?ya(c,o):p?da(p,o):ma(l||t,o));else if(d(o,r,n,t,m));else if(c&&p){var y=i.length;y>0&&i[y-1].followingNode!==o.followingNode&&va(i,r,n),i.push(o)}else c?ya(c,o):p?da(p,o):ma(l||t,o)})),va(i,r,n),e.forEach((function(e){delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}))}},printComments:function(e,t,r,n){var i=e.getValue(),a=t(e),s=i&&i.comments;if(!s||0===s.length)return Ca(e,r,a);var o=[],u=[n?";":"",a];return e.each((function(e){var t=e.getValue(),n=t.leading,i=t.trailing;if(n){var a=function(e,t,r){var n=e.getValue(),i=Ea(e,r);if(!i)return"";var a=r.printer.isBlockComment&&r.printer.isBlockComment(n);return ia(a?[i,pa(r.originalText,r.locEnd(n))?aa:" "]:[i,aa])}(e,0,r);if(!a)return;o.push(a);var s=r.originalText,c=ha(s,r.locEnd(t));!1!==c&&pa(s,c)&&o.push(aa)}else i&&u.push(function(e,t,r){var n=e.getValue(),i=Ea(e,r);if(!i)return"";var a=r.printer.isBlockComment&&r.printer.isBlockComment(n),s=e.getNode(1),o=e.getNode(2),u=o&&("ClassDeclaration"===o.type||"ClassExpression"===o.type)&&o.superClass===s;if(pa(r.originalText,r.locStart(n),{backwards:!0})){var c=fa(r.originalText,n,r.locStart);return ua(ia([aa,c?aa:"",i]))}return ia(a||u?[" ",i]:[ua(ia([" ",i])),a?"":sa])}(e,0,r))}),"comments"),Ca(e,r,ia(o.concat(u)))},printDanglingComments:function(e,t,r,n){var i=[],a=e.getValue();return a&&a.comments?(e.each((function(e){var r=e.getValue();!r||r.leading||r.trailing||n&&!n(r)||i.push(Ea(e,t))}),"comments"),0===i.length?"":r?ca(aa,i):oa(ia([aa,ca(aa,i)]))):""},getSortedChildNodes:ga};function Aa(e){zn.ok(this instanceof Aa),this.stack=[e]}function wa(e,t){var r=Fa(e.stack,t);return-1===r?null:e.stack[r]}function Fa(e,t){for(var r=e.length-1;r>=0;r-=2){var n=e[r];if(n&&!Array.isArray(n)&&--t<0)return r}return-1}Aa.prototype.getName=function(){var e=this.stack,t=e.length;return t>1?e[t-2]:null},Aa.prototype.getValue=function(){var e=this.stack;return e[e.length-1]},Aa.prototype.getNode=function(e){return wa(this,~~e)},Aa.prototype.getParentNode=function(e){return wa(this,1+~~e)},Aa.prototype.call=function(e){for(var t=this.stack,r=t.length,n=t[r-1],i=arguments.length,a=1;a2&&void 0!==arguments[2]?arguments[2]:0,n=t.printer;n.preprocess&&(e=n.preprocess(e,t));var i=new Map;function a(e,r){var s,o=e.getValue(),u=o&&"object"===c(o)&&void 0===r;return u&&i.has(o)?i.get(o):(s=n.willPrintOwnComments&&n.willPrintOwnComments(e,t)?La(e,t,a,r):xa.printComments(e,(function(e){return La(e,t,a,r)}),t,r&&r.needsSemi),u&&i.set(o,s),s)}var s=a(new Sa(e));return r>0&&(s=Oa(Na([Ia,s]),r,t.tabWidth)),_a.propagateBreaks(s),s}function La(e,t,r,n){zn.ok(e instanceof Sa);var i=e.getValue(),a=t.printer;if(a.hasPrettierIgnore&&a.hasPrettierIgnore(e))return t.originalText.slice(t.locStart(i),t.locEnd(i));if(i)try{var s=Ta.printSubtree(e,r,t,ja);if(s)return s}catch(e){if(ut.PRETTIER_DEBUG)throw e}return a.print(e,t,r,n)}var Ra=ja;function Ma(e,t,r,n,i){n=n||function(){return!0},i=i||[];var a=r.locStart(e,r.locStart),s=r.locEnd(e,r.locEnd);if(a<=t&&t<=s){var o=!0,u=!1,c=void 0;try{for(var l,p=xa.getSortedChildNodes(e,r)[Symbol.iterator]();!(o=(l=p.next()).done);o=!0){var h=Ma(l.value,t,r,n,[e].concat(i));if(h)return h}}catch(e){u=!0,c=e}finally{try{o||null==p.return||p.return()}finally{if(u)throw c}}if(n(e))return{node:e,parentNodes:i}}}function qa(e,t){if(null==t)return!1;switch(e.parser){case"flow":case"babel":case"typescript":return["FunctionDeclaration","BlockStatement","BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","EmptyStatement","ExpressionStatement","ForInStatement","ForStatement","IfStatement","LabeledStatement","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","VariableDeclaration","WhileStatement","WithStatement","ClassDeclaration","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","TypeAlias","InterfaceDeclaration","TypeAliasDeclaration","ExportAssignment","ExportDeclaration"].indexOf(t.type)>-1;case"json":return["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"].indexOf(t.type)>-1;case"graphql":return["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"].indexOf(t.kind)>-1;case"vue":return"root"!==t.tag}return!1}var Ua={calculateRange:function(e,t,r){var n,i=e.slice(t.rangeStart,t.rangeEnd),a=Math.max(t.rangeStart+i.search(/\S/),t.rangeStart);for(n=t.rangeEnd;n>t.rangeStart&&!e[n-1].match(/\S/);--n);var s=Ma(r,a,t,(function(e){return qa(t,e)})),o=Ma(r,n,t,(function(e){return qa(t,e)}));if(!s||!o)return{rangeStart:0,rangeEnd:0};var u=function(e,t,r){var n=e.node,i=t.node;if(n===i)return{startNode:n,endNode:i};var a=!0,s=!1,o=void 0;try{for(var u,c=t.parentNodes[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var l=u.value;if(!("Program"!==l.type&&"File"!==l.type&&r.locStart(l)>=r.locStart(e.node)))break;i=l}}catch(e){s=!0,o=e}finally{try{a||null==c.return||c.return()}finally{if(s)throw o}}var p=!0,h=!1,f=void 0;try{for(var d,m=e.parentNodes[Symbol.iterator]();!(p=(d=m.next()).done);p=!0){var y=d.value;if(!("Program"!==y.type&&"File"!==y.type&&r.locEnd(y)<=r.locEnd(t.node)))break;n=y}}catch(e){h=!0,f=e}finally{try{p||null==m.return||m.return()}finally{if(h)throw f}}return{startNode:n,endNode:i}}(s,o,t),c=u.startNode,l=u.endNode;return{rangeStart:Math.min(t.locStart(c,t.locStart),t.locStart(l,t.locStart)),rangeEnd:Math.max(t.locEnd(c,t.locEnd),t.locEnd(l,t.locEnd))}},findNodeAtOffset:Ma},za=pt(le),Va=qn,$a=Ni,Wa=Ii,Ha=ea.utils.mapDoc,Ja=ea.printer.printDocToString,Ga=ea.debug.printDocToDebug,Xa=Symbol("cursor"),Qa={cursorOffset:"<<>>",rangeStart:"<<>>",rangeEnd:"<<>>"};function Ya(e,t,r){var n=t.comments;return n&&(delete t.comments,xa.attach(n,t,e,r)),t.tokens=[],r.originalText="yaml"===r.parser?e:e.trimRight(),n}function Ka(e,t,r){if(!e||!e.trim().length)return{formatted:"",cursorOffset:0};r=r||0;var n=On.parse(e,t),i=n.ast;if(e=n.text,t.cursorOffset>=0){var a=Ua.findNodeAtOffset(i,t.cursorOffset,t);a&&a.node&&(t.cursorNode=a.node)}var s=Ya(e,i,t),o=Ra(i,t,r),u=Wa(t.endOfLine),c=Ja("lf"===t.endOfLine?o:Ha(o,(function(e){return"string"==typeof e&&-1!==e.indexOf("\n")?e.replace(/\n/g,u):e})),t);if(function(e){if(e){for(var t=0;t0){var l=c.formatted.trim();void 0!==c.cursorNodeStart&&(c.cursorNodeStart-=c.formatted.indexOf(l)),c.formatted=l+Wa(t.endOfLine)}if(t.cursorOffset>=0){var p,h,f,d,m;if(t.cursorNode&&c.cursorNodeText?(p=t.locStart(t.cursorNode),h=e.slice(p,t.locEnd(t.cursorNode)),f=t.cursorOffset-p,d=c.cursorNodeStart,m=c.cursorNodeText):(p=0,h=e,f=t.cursorOffset,d=0,m=c.formatted),h===m)return{formatted:c.formatted,cursorOffset:d+f};var y=h.split("");y.splice(f,0,Xa);var D=m.split(""),g=za.diffArrays(y,D),v=d,E=!0,b=!1,C=void 0;try{for(var x,A=g[Symbol.iterator]();!(E=(x=A.next()).done);E=!0){var w=x.value;if(w.removed){if(w.value.indexOf(Xa)>-1)break}else v+=w.count}}catch(e){b=!0,C=e}finally{try{E||null==A.return||A.return()}finally{if(b)throw C}}return{formatted:c.formatted,cursorOffset:v}}return{formatted:c.formatted}}function Za(e,t){var r=On.resolveParser(t),n=!r.hasPragma||r.hasPragma(e);if(t.requirePragma&&!n)return{formatted:e};"auto"===t.endOfLine&&(t.endOfLine=$a(e));var i=t.cursorOffset>=0,a=t.rangeStart>0,s=t.rangeEnd=0;u--){var c=o[u];e=e.slice(0,t[c])+Qa[c]+e.slice(t[c])}e=e.replace(/\r\n?/g,"\n");for(var l=function(r){var n=o[r];e=e.replace(Qa[n],(function(e,r){return t[n]=r,""}))},p=0;pe.length&&(t.rangeEnd=e.length);var f=a||s?function(e,t){var r=On.parse(e,t),n=r.ast;e=r.text;var i,a=Ua.calculateRange(e,t,n),s=a.rangeStart,o=a.rangeEnd,u=e.slice(s,o),c=Math.min(s,e.lastIndexOf("\n",s)+1),l=e.slice(c,s),p=Bi.getAlignmentSize(l,t.tabWidth),h=Ka(u,Object.assign({},t,{rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>=s&&t.cursorOffset=o?y=t.cursorOffset-o+(s+f.length):void 0!==h.cursorOffset&&(y=h.cursorOffset+s),"lf"===t.endOfLine)i=d+f+m;else{var D=Wa(t.endOfLine);if(y>=0){for(var g=[d,f,m],v=0,E=y;vt.length-r?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}})),ys=(ms.graceful,lt((function(e,t){function r(){var e=vr;return r=function(){return e},e}function n(){var e,t=(e=ms)&&e.__esModule?e:{default:e};return n=function(){return t},t}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){var t=e.match(s);return t?t[0].trimLeft():""},t.strip=function(e){var t=e.match(s);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return h(e).pragmas},t.parseWithComments=h,t.print=function(e){var t=e.comments,i=void 0===t?"":t,a=e.pragmas,s=void 0===a?{}:a,o=(0,n().default)(i)||r().EOL,u=Object.keys(s),c=u.map((function(e){return f(e,s[e])})).reduce((function(e,t){return e.concat(t)}),[]).map((function(e){return" * "+e+o})).join("");if(!i){if(0===u.length)return"";if(1===u.length&&!Array.isArray(s[u[0]])){var l=s[u[0]];return"".concat("/**"," ").concat(f(u[0],l)[0]).concat(" */")}}var p=i.split(o).map((function(e){return"".concat(" *"," ").concat(e)})).join(o)+o;return"/**"+o+(i?p:"")+(i&&u.length?" *"+o:"")+c+" */"};var i=/\*\/$/,a=/^\/\*\*/,s=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,o=/(^|\s+)\/\/([^\r\n]*)/g,u=/^(\r?\n)+/,c=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,l=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g;function h(e){var t=(0,n().default)(e)||r().EOL;e=e.replace(a,"").replace(i,"").replace(p,"$1");for(var s="";s!==e;)s=e,e=e.replace(c,"".concat(t,"$1 $2").concat(t));e=e.replace(u,"").trimRight();for(var h,f=Object.create(null),d=e.replace(l,"").replace(u,"").trimRight();h=l.exec(e);){var m=h[2].replace(o,"");"string"==typeof f[h[1]]||Array.isArray(f[h[1]])?f[h[1]]=[].concat(f[h[1]],m):f[h[1]]=m}return{comments:d,pragmas:f}}function f(e,t){return[].concat(t).map((function(t){return"@".concat(e," ").concat(t).trim()}))}})));ct(ys),ys.extract,ys.strip,ys.parse,ys.parseWithComments,ys.print;var Ds={hasPragma:function(e){var t=Object.keys(ys.parse(ys.extract(e)));return-1!==t.indexOf("prettier")||-1!==t.indexOf("format")},insertPragma:function(e){var t=ys.parseWithComments(ys.extract(e)),r=Object.assign({format:""},t.pragmas),n=ys.print({pragmas:r,comments:t.comments.replace(/^(\s+?\r?\n)+/,"")}).replace(/(\r\n|\r)/g,"\n"),i=ys.strip(e);return n+(i.startsWith("\n")?"\n":"\n\n")+i}},gs={"---":"yaml","+++":"toml"},vs=function(e){var t=Object.keys(gs).map(ur).join("|"),r=e.match(new RegExp("^(".concat(t,")[^\\n\\S]*\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(null===r)return{frontMatter:null,content:e};var n=r[0].replace(/\n$/,""),i=r[1],a=r[2];return{frontMatter:{type:gs[i],value:a,raw:n},content:r[0].replace(/[^\n]/g," ")+e.slice(r[0].length)}},Es=["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"];function bs(e,t){for(var r,n=[].concat(t),i=-1;r=e.getParentNode(++i);)if(-1!==n.indexOf(r.type))return i;return-1}function Cs(e,t){var r=bs(e,t);return-1===r?null:e.getParentNode(r)}function xs(e){return"value-operator"===e.type&&"*"===e.value}function As(e){return"value-operator"===e.type&&"/"===e.value}function ws(e){return"value-operator"===e.type&&"+"===e.value}function Fs(e){return"value-operator"===e.type&&"-"===e.value}function Ss(e){return"value-operator"===e.type&&"%"===e.value}function ks(e){return"value-comma_group"===e.type&&e.groups&&e.groups[1]&&"value-colon"===e.groups[1].type}function Ts(e){return"value-paren_group"===e.type&&e.groups&&e.groups[0]&&ks(e.groups[0])}var Ps=Cs,Bs=function(e){var t=Cs(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()},Ns=function(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()},Is=function(e,t){var r=Cs(e,"value-func");return r&&r.value&&r.value.toLowerCase()===t},Os=function(e){var t=Cs(e,"css-rule");return t&&t.raws&&t.raws.selector&&(t.raws.selector.startsWith(":import")||t.raws.selector.startsWith(":export"))},_s=function(e,t){var r=[].concat(t),n=Cs(e,"css-atrule");return n&&-1!==r.indexOf(n.name.toLowerCase())},js=function(e){var t=e.getValue(),r=Cs(e,"css-atrule");return r&&"import"===r.name&&"url"===t.groups[0].value&&2===t.groups.length},Ls=function(e,t){var r=Cs(e,"css-atrule");return r&&r.name&&r.name.toLowerCase().endsWith("keyframes")&&-1!==["from","to"].indexOf(t.toLowerCase())},Rs=function(e){return-1!==ss.indexOf(e.toLowerCase())},Ms=function(e){return-1!==["initial","inherit","unset","revert"].indexOf(e.toLowerCase())},qs=function(e,t){return"less"===e||"scss"===e?"scss"===e:/(\w\s*: [^}:]+|#){|@import[^\n]+(url|,)/.test(t)},Us=function(e,t){var r=e.getParentNode();if(!r)return!1;var n=r.nodes;return n&&n.indexOf(t)===n.length-1},zs=function(e){return"css-atrule"===e.type&&-1!==["if","else","for","each","while"].indexOf(e.name)},Vs=function(e){return!!e.selector&&("string"==typeof e.selector&&/^@.+:.*$/.test(e.selector)||e.selector.value&&/^@.+:.*$/.test(e.selector.value))},$s=function(e){return"value-word"===e.type&&-1!==["<",">","<=",">="].indexOf(e.value)},Ws=function(e){return"value-word"===e.type&&-1!==["==","!="].indexOf(e.value)},Hs=xs,Js=As,Gs=ws,Xs=Fs,Qs=function(e){return xs(e)||As(e)||ws(e)||Fs(e)||Ss(e)},Ys=function(e){return"value-word"===e.type&&"in"===e.value},Ks=function(e){return"value-word"===e.type&&-1!==["from","through","end"].indexOf(e.value)},Zs=function(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},eo=function(e){return"value-word"===e.type&&-1!==["and","or","not"].indexOf(e.value)},to=function(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},ro=function(e){return e.value&&e.value.group&&e.value.group.group&&"value-paren_group"===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close},no=function(e){return e.raws&&""===e.raws.before},io=function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},ao=function(e){return e.name.startsWith("prettier-placeholder")},so=function(e){return e.prop.startsWith("@prettier-placeholder")},oo=function(e,t){return"$$"===e.value&&"value-func"===e.type&&t&&"value-word"===t.type&&!t.raws.before},uo=ks,co=function(e){var t=e.getValue();if(0===t.groups.length)return!1;var r=e.getParentNode(1);if(!(Ts(t)||r&&Ts(r)))return!1;var n=Cs(e,"css-decl");return!!(n&&n.prop&&n.prop.startsWith("$"))||!!Ts(r)||"value-func"===r.type},lo=function(e){return"value-comment"===e.type&&e.inline},po=function(e){return"value-word"===e.type&&"#"===e.value},ho=function(e){return"value-word"===e.type&&"{"===e.value},fo=function(e){return"value-word"===e.type&&"}"===e.value},mo=function(e){return-1!==["value-word","value-atword"].indexOf(e.type)},yo=function(e){return"value-colon"===e.type},Do=function(e){return e.value&&-1!==["not","and","or"].indexOf(e.value.toLowerCase())},go=function(e){return"value-func"===e.type&&-1!==Es.indexOf(e.value.toLowerCase())},vo=function(e){var t=vs(e),r=t.frontMatter,n=t.content;return(r?r.raw+"\n\n":"")+Ds.insertPragma(n)},Eo=Bi.printNumber,bo=Bi.printString,Co=Bi.hasIgnoreComment,xo=Bi.hasNewline,Ao=ra.isNextLineEmpty,wo=ea.builders,Fo=wo.concat,So=wo.join,ko=wo.line,To=wo.hardline,Po=wo.softline,Bo=wo.group,No=wo.fill,Io=wo.indent,Oo=wo.dedent,_o=wo.ifBreak,jo=ea.utils.removeLines,Lo=Ps,Ro=Bs,Mo=Ns,qo=Is,Uo=Os,zo=_s,Vo=js,$o=Ls,Wo=Rs,Ho=Ms,Jo=qs,Go=Us,Xo=zs,Qo=Vs,Yo=$s,Ko=Ws,Zo=Hs,eu=Js,tu=Gs,ru=Xs,nu=Qs,iu=Ys,au=Ks,su=Zs,ou=eo,uu=to,cu=ro,lu=no,pu=uo,hu=io,fu=ao,du=so,mu=oo,yu=co,Du=lo,gu=po,vu=ho,Eu=fo,bu=mo,Cu=yo,xu=Do,Au=go;function wu(e){switch(e.trailingComma){case"all":case"es5":return!0;case"none":default:return!1}}function Fu(e,t,r){var n=e.getValue(),i=[],a=0;return e.map((function(e){var s=n.nodes[a-1];if(s&&"css-comment"===s.type&&"prettier-ignore"===s.text.trim()){var o=e.getValue();i.push(t.originalText.slice(t.locStart(o),t.locEnd(o)))}else i.push(e.call(r));a!==n.nodes.length-1&&("css-comment"===n.nodes[a+1].type&&!xo(t.originalText,t.locStart(n.nodes[a+1]),{backwards:!0})&&"yaml"!==n.nodes[a].type&&"toml"!==n.nodes[a].type||"css-atrule"===n.nodes[a+1].type&&"else"===n.nodes[a+1].name&&"css-comment"!==n.nodes[a].type?i.push(" "):(i.push(To),Ao(t.originalText,e.getValue(),t)&&"yaml"!==n.nodes[a].type&&"toml"!==n.nodes[a].type&&i.push(To))),a++}),"nodes"),Fo(i)}var Su=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g,ku=RegExp(Su.source+"|"+"(".concat(/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g.source,")?")+"(".concat(/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g.source,")")+"(".concat(/[a-zA-Z]+/g.source,")?"),"g");function Tu(e,t){return e.replace(Su,(function(e){return bo(e,t)}))}function Pu(e,t){var r=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:r+e+r}function Bu(e){return e.replace(ku,(function(e,t,r,n,i){return!r&&n?(r||"")+Nu(n)+Mo(i||""):e}))}function Nu(e){return Eo(e).replace(/\.0(?=$|e)/,"")}var Iu={print:function(e,t,r){var n=e.getValue();if(!n)return"";if("string"==typeof n)return n;switch(n.type){case"yaml":case"toml":return Fo([n.raw,To]);case"css-root":var i=Fu(e,t,r);return i.parts.length?Fo([i,To]):i;case"css-comment":if(n.raws.content)return n.raws.content;var a=t.originalText.slice(t.locStart(n),t.locEnd(n)),s=n.raws.text||n.text;return-1===a.indexOf(s)?n.raws.inline?Fo(["// ",s]):Fo(["/* ",s," */"]):a;case"css-rule":return Fo([e.call(r,"selector"),n.important?" !important":"",n.nodes?Fo([" {",n.nodes.length>0?Io(Fo([To,Fu(e,t,r)])):"",To,"}",Qo(n)?";":""]):";"]);case"css-decl":var o=e.getParentNode();return Fo([n.raws.before.replace(/[\s;]/g,""),Uo(e)?n.prop:Mo(n.prop),":"===n.raws.between.trim()?":":n.raws.between.trim(),n.extend?"":" ",uu(n)?jo(e.call(r,"value")):e.call(r,"value"),n.raws.important?n.raws.important.replace(/\s*!\s*important/i," !important"):n.important?" !important":"",n.raws.scssDefault?n.raws.scssDefault.replace(/\s*!default/i," !default"):n.scssDefault?" !default":"",n.raws.scssGlobal?n.raws.scssGlobal.replace(/\s*!global/i," !global"):n.scssGlobal?" !global":"",n.nodes?Fo([" {",Io(Fo([Po,Fu(e,t,r)])),Po,"}"]):du(n)&&!o.raws.semicolon&&";"!==t.originalText[t.locEnd(n)-1]?"":";"]);case"css-atrule":var u=e.getParentNode();return Fo(["@",hu(n)||n.name.endsWith(":")?n.name:Mo(n.name),n.params?Fo([hu(n)?"":fu(n)&&/^\s*\n/.test(n.raws.afterName)?/^\s*\n\s*\n/.test(n.raws.afterName)?Fo([To,To]):To:" ",e.call(r,"params")]):"",n.selector?Io(Fo([" ",e.call(r,"selector")])):"",n.value?Bo(Fo([" ",e.call(r,"value"),Xo(n)?cu(n)?" ":ko:""])):"else"===n.name?" ":"",n.nodes?Fo([Xo(n)?"":" ","{",Io(Fo([n.nodes.length>0?Po:"",Fu(e,t,r)])),Po,"}"]):fu(n)&&!u.raws.semicolon&&";"!==t.originalText[t.locEnd(n)-1]?"":";"]);case"media-query-list":var c=[];return e.each((function(e){var t=e.getValue();"media-query"===t.type&&""===t.value||c.push(e.call(r))}),"nodes"),Bo(Io(So(ko,c)));case"media-query":return Fo([So(" ",e.map(r,"nodes")),Go(e,n)?"":","]);case"media-type":return Bu(Tu(n.value,t));case"media-feature-expression":return n.nodes?Fo(["(",Fo(e.map(r,"nodes")),")"]):n.value;case"media-feature":return Mo(Tu(n.value.replace(/ +/g," "),t));case"media-colon":return Fo([n.value," "]);case"media-value":return Bu(Tu(n.value,t));case"media-keyword":return Tu(n.value,t);case"media-url":return Tu(n.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":return n.value;case"selector-root":return Bo(Fo([zo(e,"custom-selector")?Fo([Lo(e,"css-atrule").customSelector,ko]):"",So(Fo([",",zo(e,["extend","custom-selector","nest"])?ko:To]),e.map(r,"nodes"))]));case"selector-selector":return Bo(Io(Fo(e.map(r,"nodes"))));case"selector-comment":return n.value;case"selector-string":return Tu(n.value,t);case"selector-tag":var l=e.getParentNode(),p=l&&l.nodes.indexOf(n),h=p&&l.nodes[p-1];return Fo([n.namespace?Fo([!0===n.namespace?"":n.namespace.trim(),"|"]):"","selector-nesting"===h.type?n.value:Bu(Wo(n.value)||$o(e,n.value)?n.value.toLowerCase():n.value)]);case"selector-id":return Fo(["#",n.value]);case"selector-class":return Fo([".",Bu(Tu(n.value,t))]);case"selector-attribute":return Fo(["[",n.namespace?Fo([!0===n.namespace?"":n.namespace.trim(),"|"]):"",n.attribute.trim(),n.operator?n.operator:"",n.value?Pu(Tu(n.value.trim(),t),t):"",n.insensitive?" i":"","]"]);case"selector-combinator":if("+"===n.value||">"===n.value||"~"===n.value||">>>"===n.value){var f=e.getParentNode(),d="selector-selector"===f.type&&f.nodes[0]===n?"":ko;return Fo([d,n.value,Go(e,n)?"":" "])}var m=n.value.trim().startsWith("(")?ko:"",y=Bu(Tu(n.value.trim(),t))||ko;return Fo([m,y]);case"selector-universal":return Fo([n.namespace?Fo([!0===n.namespace?"":n.namespace.trim(),"|"]):"",n.value]);case"selector-pseudo":return Fo([Mo(n.value),n.nodes&&n.nodes.length>0?Fo(["(",So(", ",e.map(r,"nodes")),")"]):""]);case"selector-nesting":return n.value;case"selector-unknown":var D=Lo(e,"css-rule");return D&&D.isSCSSNesterProperty?Bu(Tu(Mo(n.value),t)):n.value;case"value-value":case"value-root":return e.call(r,"group");case"value-comment":return Fo([n.inline?"//":"/*",n.value,n.inline?"":"*/"]);case"value-comma_group":for(var g=e.getParentNode(),v=e.getParentNode(1),E=Ro(e),b=E&&"value-value"===g.type&&("grid"===E||E.startsWith("grid-template")),C=Lo(e,"css-atrule"),x=C&&Xo(C),A=e.map(r,"groups"),w=[],F=qo(e,"url"),S=!1,k=!1,T=0;T0&&"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 Fo([n.open?e.call(r,"open"):"",So(",",e.map(r,"groups")),n.close?e.call(r,"close"):""]);if(!n.open){for(var z=e.map(r,"groups"),V=[],$=0;$0?oc(rc(["(",uc(rc([sc,nc(rc([cc("",", "),sc]),e.call((function(e){return fc(e,t,r)}),"arguments"))])),sc,")"])):"",hc(e,r,n),n.selectionSet?" ":"",e.call(r,"selectionSet")]));case"Name":return n.value;case"StringValue":return n.block?rc(['"""',ic,nc(ic,n.value.replace(/"""/g,"\\$&").split("\n")),ic,'"""']):rc(['"',n.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']);case"IntValue":case"FloatValue":case"EnumValue":return n.value;case"BooleanValue":return n.value?"true":"false";case"NullValue":return"null";case"Variable":return rc(["$",e.call(r,"name")]);case"ListValue":return oc(rc(["[",uc(rc([sc,nc(rc([cc("",", "),sc]),e.map(r,"values"))])),sc,"]"]));case"ObjectValue":return oc(rc(["{",t.bracketSpacing&&n.fields.length>0?" ":"",uc(rc([sc,nc(rc([cc("",", "),sc]),e.map(r,"fields"))])),sc,cc("",t.bracketSpacing&&n.fields.length>0?" ":""),"}"]));case"ObjectField":case"Argument":return rc([e.call(r,"name"),": ",e.call(r,"value")]);case"Directive":return rc(["@",e.call(r,"name"),n.arguments.length>0?oc(rc(["(",uc(rc([sc,nc(rc([cc("",", "),sc]),e.call((function(e){return fc(e,t,r)}),"arguments"))])),sc,")"])):""]);case"NamedType":return e.call(r,"name");case"VariableDefinition":return rc([e.call(r,"variable"),": ",e.call(r,"type"),n.defaultValue?rc([" = ",e.call(r,"defaultValue")]):"",hc(e,r,n)]);case"TypeExtensionDefinition":return rc(["extend ",e.call(r,"definition")]);case"ObjectTypeExtension":case"ObjectTypeDefinition":return rc([e.call(r,"description"),n.description?ic:"","ObjectTypeExtension"===n.kind?"extend ":"","type ",e.call(r,"name"),n.interfaces.length>0?rc([" implements ",nc(dc(t.originalText.substr(t.locStart(n),t.locEnd(n))),e.map(r,"interfaces"))]):"",hc(e,r,n),n.fields.length>0?rc([" {",uc(rc([ic,nc(ic,e.call((function(e){return fc(e,t,r)}),"fields"))])),ic,"}"]):""]);case"FieldDefinition":return rc([e.call(r,"description"),n.description?ic:"",e.call(r,"name"),n.arguments.length>0?oc(rc(["(",uc(rc([sc,nc(rc([cc("",", "),sc]),e.call((function(e){return fc(e,t,r)}),"arguments"))])),sc,")"])):"",": ",e.call(r,"type"),hc(e,r,n)]);case"DirectiveDefinition":return rc([e.call(r,"description"),n.description?ic:"","directive ","@",e.call(r,"name"),n.arguments.length>0?oc(rc(["(",uc(rc([sc,nc(rc([cc("",", "),sc]),e.call((function(e){return fc(e,t,r)}),"arguments"))])),sc,")"])):"",rc([" on ",nc(" | ",e.map(r,"locations"))])]);case"EnumTypeExtension":case"EnumTypeDefinition":return rc([e.call(r,"description"),n.description?ic:"","EnumTypeExtension"===n.kind?"extend ":"","enum ",e.call(r,"name"),hc(e,r,n),n.values.length>0?rc([" {",uc(rc([ic,nc(ic,e.call((function(e){return fc(e,t,r)}),"values"))])),ic,"}"]):""]);case"EnumValueDefinition":return rc([e.call(r,"description"),n.description?ic:"",e.call(r,"name"),hc(e,r,n)]);case"InputValueDefinition":return rc([e.call(r,"description"),n.description?n.description.block?ic:ac:"",e.call(r,"name"),": ",e.call(r,"type"),n.defaultValue?rc([" = ",e.call(r,"defaultValue")]):"",hc(e,r,n)]);case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return rc([e.call(r,"description"),n.description?ic:"","InputObjectTypeExtension"===n.kind?"extend ":"","input ",e.call(r,"name"),hc(e,r,n),n.fields.length>0?rc([" {",uc(rc([ic,nc(ic,e.call((function(e){return fc(e,t,r)}),"fields"))])),ic,"}"]):""]);case"SchemaDefinition":return rc(["schema",hc(e,r,n)," {",n.operationTypes.length>0?uc(rc([ic,nc(ic,e.call((function(e){return fc(e,t,r)}),"operationTypes"))])):"",ic,"}"]);case"OperationTypeDefinition":return rc([e.call(r,"operation"),": ",e.call(r,"type")]);case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return rc([e.call(r,"description"),n.description?ic:"","InterfaceTypeExtension"===n.kind?"extend ":"","interface ",e.call(r,"name"),hc(e,r,n),n.fields.length>0?rc([" {",uc(rc([ic,nc(ic,e.call((function(e){return fc(e,t,r)}),"fields"))])),ic,"}"]):""]);case"FragmentSpread":return rc(["...",e.call(r,"name"),hc(e,r,n)]);case"InlineFragment":return rc(["...",n.typeCondition?rc([" on ",e.call(r,"typeCondition")]):"",hc(e,r,n)," ",e.call(r,"selectionSet")]);case"UnionTypeExtension":case"UnionTypeDefinition":return oc(rc([e.call(r,"description"),n.description?ic:"",oc(rc(["UnionTypeExtension"===n.kind?"extend ":"","union ",e.call(r,"name"),hc(e,r,n),n.types.length>0?rc([" =",cc(""," "),uc(rc([cc(rc([ac," "])),nc(rc([ac,"| "]),e.map(r,"types"))]))]):""]))]));case"ScalarTypeExtension":case"ScalarTypeDefinition":return rc([e.call(r,"description"),n.description?ic:"","ScalarTypeExtension"===n.kind?"extend ":"","scalar ",e.call(r,"name"),hc(e,r,n)]);case"NonNullType":return rc([e.call(r,"type"),"!"]);case"ListType":return rc(["[",e.call(r,"type"),"]"]);default:throw new Error("unknown graphql type: "+JSON.stringify(n.kind))}},massageAstNode:function(e,t){delete t.loc,delete t.comments},hasPrettierIgnore:lc,insertPragma:ec,printComment:function(e){var t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimRight();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}},yc={bracketSpacing:Ou.bracketSpacing},Dc=[".graphql",".gql",".graphqls"],gc={name:"GraphQL",type:"data",extensions:Dc,tmScope:"source.graphql",aceMode:"text",languageId:139},vc={languages:[ju(pt(Object.freeze({__proto__:null,name:"GraphQL",type:"data",extensions:Dc,tmScope:"source.graphql",aceMode:"text",languageId:139,default:gc})),(function(e){return Object.assign(e,{since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]})}))],options:yc,printers:{graphql:mc}},Ec=ea.builders,bc=Ec.concat,Cc=Ec.join,xc=Ec.softline,Ac=Ec.hardline,wc=Ec.line,Fc=Ec.group,Sc=Ec.indent,kc=Ec.ifBreak,Tc=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function Pc(e,t,r){return bc(e.map((function(n,i){var a=e.getValue(),s=0===i,o=i==e.getParentNode(0).children.length-1&&!s;return Rc(a)&&o?r(n,t,r):s?bc([xc,r(n,t,r)]):r(n,t,r)}),"children"))}function Bc(e,t){var r={quote:'"',regex:/"/g},n={quote:"'",regex:/'/g},i=t.singleQuote?n:r,a=i===n?r:n,s=!1;(e.includes(i.quote)||e.includes(a.quote))&&(s=(e.match(i.regex)||[]).length>(e.match(a.regex)||[]).length);var o=s?a:i,u=e.replace(o.regex,"\\".concat(o.quote));return"".concat(o.quote).concat(u).concat(o.quote)}function Nc(e,t){return e.call(t,"path")}function Ic(e,t){var r=e.getValue(),n=[];return r.params.length>0&&(n=n.concat(e.map(t,"params"))),r.hash&&r.hash.pairs.length>0&&n.push(e.call(t,"hash")),n}function Oc(e,t,r){var n=[];return r=Object.assign({group:!0},r||{}),n.push(Nc(e,t)),n=n.concat(Ic(e,t)),r.group?Sc(Fc(Cc(wc,n))):Sc(Cc(wc,n))}function _c(e){var t=e.getValue();return t.program&&t.program.blockParams.length?bc([" as |",t.program.blockParams.join(" "),"|"]):""}function jc(e,t){return Fc(bc(["{{#",Oc(e,t),_c(e),xc,"}}"]))}function Lc(e,t){return bc(["{{/",e.call(t,"path"),"}}"])}function Rc(e){return"TextNode"===e.type&&!/\S/.test(e.chars)}function Mc(e){var t=e.getValue(),r=e.getParentNode(0),n=r.children||r.body;if(n){var i=n.indexOf(t);if(i>0)return n[i-1]}}function qc(e){var t=e.getValue(),r=e.getParentNode(0),n=r.children||r.body;if(n){var i=n.indexOf(t);if(i0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new Array(Math.min(e,t)).fill(Ac)}var Wc={print:function(e,t,r){var n=e.getValue();if(!n)return"";switch(n.type){case"Block":case"Program":case"Template":return Fc(bc(e.map(r,"body").filter((function(e){return""!==e}))));case"ElementNode":var i=n.tag[0],a=-1!==n.tag.indexOf("."),s=i.toUpperCase()===i||a,o=n.children.length>0,u=n.children.some((function(e){return!Rc(e)})),c=s&&(!o||!u)||-1!==Tc.indexOf(n.tag),l=c?bc([" />",xc]):">",p=c?"/>":">",h=qc(e);return bc([Fc(bc(["<",n.tag,function(e,t){return Sc(bc([n.attributes.length?wc:"",Cc(wc,e.map(t,"attributes")),n.modifiers.length?wc:"",Cc(wc,e.map(t,"modifiers")),n.comments.length?wc:"",Cc(wc,e.map(t,"comments"))]))}(e,r),n.blockParams.length?" as |".concat(n.blockParams.join(" "),"|"):"",kc(xc,""),kc(p,l)])),c?"":Fc(bc([u?Sc(Pc(e,t,r)):"",kc(o?Ac:"",""),bc([""])])),h&&"ElementNode"===h.type?Ac:""]);case"BlockStatement":var f=e.getParentNode(1),d=f&&f.inverse&&1===f.inverse.body.length&&f.inverse.body[0]===n&&"if"===f.inverse.body[0].path.parts[0],m=n.inverse&&1===n.inverse.body.length&&"BlockStatement"===n.inverse.body[0].type&&"if"===n.inverse.body[0].path.parts[0],y=m?function(e){return e}:Sc;if(n.inverse)return bc([d?bc(["{{else ",Oc(e,r),"}}"]):jc(e,r),Sc(bc([Ac,e.call(r,"program")])),n.inverse&&!m?bc([Ac,"{{else}}"]):"",n.inverse?y(bc([Ac,e.call(r,"inverse")])):"",d?"":bc([Ac,Lc(e,r)])]);if(d)return bc([bc(["{{else ",Oc(e,r),"}}"]),Sc(bc([Ac,e.call(r,"program")]))]);var D=n.program.body.some((function(e){return!Rc(e)}));return bc([jc(e,r),Fc(bc([Sc(bc([xc,e.call(r,"program")])),D?Ac:xc,Lc(e,r)]))]);case"ElementModifierStatement":case"MustacheStatement":var g=e.getParentNode(1),v=g&&"ConcatStatement"===g.type;return Fc(bc([!1===n.escaped?"{{{":"{{",Oc(e,r,{group:!1}),v?"":xc,!1===n.escaped?"}}}":"}}"]));case"SubExpression":var E=Ic(e,r),b=E.length>0?Sc(bc([wc,Fc(Cc(wc,E))])):"";return Fc(bc(["(",Nc(e,r),b,xc,")"]));case"AttrNode":var C="TextNode"===n.value.type;if(C&&n.value.loc.start.column===n.value.loc.end.column)return bc([n.name]);var x=e.call(r,"value"),w=C?Bc(x.parts.join(),t):x;return bc([n.name,"=",w]);case"ConcatStatement":return bc(['"',Fc(Sc(Cc(xc,e.map((function(e){return r(e)}),"parts").filter((function(e){return""!==e}))))),'"']);case"Hash":return bc([Cc(wc,e.map(r,"pairs"))]);case"HashPair":return bc([n.key,"=",e.call(r,"value")]);case"TextNode":var F=!Mc(e),S=!qc(e),k=!/\S/.test(n.chars),T=Vc(n.chars),P="Block"===e.getParentNode(0).type,B="ElementNode"===e.getParentNode(0).type,N="Template"===e.getParentNode(0).type,I=function(e){return Vc(((e="string"==typeof e?e:"").match(/^([^\S\r\n]*[\r\n])+/g)||[])[0]||"")}(n.chars),O=function(e){return Vc(((e="string"==typeof e?e:"").match(/([\r\n][^\S\r\n]*)+$/g)||[])[0]||"")}(n.chars);if((F||S)&&k&&(P||B||N))return"";k&&T?(I=Math.min(T,2),O=0):((zc(e,"ElementNode")||zc(e,"BlockStatement"))&&(O=Math.max(O,1)),(Uc(e,["ElementNode"])||Uc(e,["BlockStatement"]))&&(I=Math.max(I,1)));var _="",j="";if(e.stack.indexOf("attributes")>=0){var L=e.getParentNode(0);if("ConcatStatement"===L.type){var R=L.parts,M=R.indexOf(n);M>0&&"MustacheStatement"===R[M-1].type&&(_=" "),M-1?"--":"";return bc(["{{!",q,n.value,q,"}}"]);case"PathExpression":return n.original;case"BooleanLiteral":return String(n.value);case"CommentStatement":return bc(["\x3c!--",n.value,"--\x3e"]);case"StringLiteral":return Bc(n.value,t);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(n.type))}},massageAstNode:function(e,t){if(delete t.loc,delete t.selfClosing,"TextNode"===e.type){if(""===e.chars.replace(/\s+/,""))return null;t.chars=e.chars.replace(/^\s+/,"").replace(/\s+$/,"")}}},Hc=["hbs","htmlbars"],Jc=[".handlebars",".hbs"],Gc={name:"Handlebars",type:"markup",group:"HTML",aliases:Hc,extensions:Jc,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155},Xc={languages:[ju(pt(Object.freeze({__proto__:null,name:"Handlebars",type:"markup",group:"HTML",aliases:Hc,extensions:Jc,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155,default:Gc})),(function(e){return Object.assign(e,{since:null,parsers:["glimmer"],vscodeLanguageIds:["handlebars"]})}))],printers:{glimmer:Wc}},Qc={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"none",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"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",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",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",fieldset:"block",button:"inline-block",video:"inline-block",audio:"inline-block"},Yc="inline",Kc={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},Zc="normal",el=["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],tl=["title"],rl=["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],nl=["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],il=["autoplay","controls","crossorigin","loop","muted","preload","src"],al=["href","target"],sl=["color","face","size"],ol=["dir"],ul=["cite"],cl=["alink","background","bgcolor","link","text","vlink"],ll=["clear"],pl=["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],hl=["height","width"],fl=["align"],dl=["align","char","charoff","span","valign","width"],ml=["align","char","charoff","span","valign","width"],yl=["value"],Dl=["cite","datetime"],gl=["open"],vl=["title"],El=["open"],bl=["compact"],Cl=["align"],xl=["compact"],Al=["height","src","type","width"],wl=["disabled","form","name"],Fl=["color","face","size"],Sl=["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],kl=["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],Tl=["cols","rows"],Pl=["align"],Bl=["align"],Nl=["align"],Il=["align"],Ol=["align"],_l=["align"],jl=["profile"],Ll=["align","noshade","size","width"],Rl=["manifest","version"],Ml=["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],ql=["align","alt","border","crossorigin","decoding","height","hspace","ismap","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],Ul=["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],zl=["cite","datetime"],Vl=["prompt"],$l=["accesskey","for","form"],Wl=["accesskey","align"],Hl=["type","value"],Jl=["as","charset","color","crossorigin","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],Gl=["name"],Xl=["compact"],Ql=["charset","content","http-equiv","name","scheme"],Yl=["high","low","max","min","optimum","value"],Kl=["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],Zl=["compact","reversed","start","type"],ep=["disabled","label"],tp=["disabled","label","selected","value"],rp=["for","form","name"],np=["align"],ip=["name","type","value","valuetype"],ap=["width"],sp=["max","value"],op=["cite"],up=["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],cp=["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],lp=["name"],pp=["media","sizes","src","srcset","type"],hp=["media","nonce","title","type"],fp=["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],dp=["align","char","charoff","valign"],mp=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],yp=["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],Dp=["align","char","charoff","valign"],gp=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],vp=["align","char","charoff","valign"],Ep=["datetime"],bp=["align","bgcolor","char","charoff","valign"],Cp=["default","kind","label","src","srclang"],xp=["compact","type"],Ap=["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"],wp={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:el,abbr:tl,applet:rl,area:nl,audio:il,base:al,basefont:sl,bdo:ol,blockquote:ul,body:cl,br:ll,button:pl,canvas:hl,caption:fl,col:dl,colgroup:ml,data:yl,del:Dl,details:gl,dfn:vl,dialog:El,dir:bl,div:Cl,dl:xl,embed:Al,fieldset:wl,font:Fl,form:Sl,frame:kl,frameset:Tl,h1:Pl,h2:Bl,h3:Nl,h4:Il,h5:Ol,h6:_l,head:jl,hr:Ll,html:Rl,iframe:Ml,img:ql,input:Ul,ins:zl,isindex:Vl,label:$l,legend:Wl,li:Hl,link:Jl,map:Gl,menu:Xl,meta:Ql,meter:Yl,object:Kl,ol:Zl,optgroup:ep,option:tp,output:rp,p:np,param:ip,pre:ap,progress:sp,q:op,script:up,select:cp,slot:lp,source:pp,style:hp,table:fp,tbody:dp,td:mp,textarea:yp,tfoot:Dp,th:gp,thead:vp,time:Ep,tr:bp,track:Cp,ul:xp,video:Ap},Fp=pt(Object.freeze({__proto__:null,a:el,abbr:tl,applet:rl,area:nl,audio:il,base:al,basefont:sl,bdo:ol,blockquote:ul,body:cl,br:ll,button:pl,canvas:hl,caption:fl,col:dl,colgroup:ml,data:yl,del:Dl,details:gl,dfn:vl,dialog:El,dir:bl,div:Cl,dl:xl,embed:Al,fieldset:wl,font:Fl,form:Sl,frame:kl,frameset:Tl,h1:Pl,h2:Bl,h3:Nl,h4:Il,h5:Ol,h6:_l,head:jl,hr:Ll,html:Rl,iframe:Ml,img:ql,input:Ul,ins:zl,isindex:Vl,label:$l,legend:Wl,li:Hl,link:Jl,map:Gl,menu:Xl,meta:Ql,meter:Yl,object:Kl,ol:Zl,optgroup:ep,option:tp,output:rp,p:np,param:ip,pre:ap,progress:sp,q:op,script:up,select:cp,slot:lp,source:pp,style:hp,table:fp,tbody:dp,td:mp,textarea:yp,tfoot:Dp,th:gp,thead:vp,time:Ep,tr:bp,track:Cp,ul:xp,video:Ap,default:wp})),Sp=Qc,kp=Yc,Tp=Kc,Pp=Zc;function Bp(e){var t=Object.create(null),r=!0,n=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)t[a.value]=!0}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return t}function Np(e,t){return!("element"!==e.type||"template"!==e.fullName||!e.attrMap.lang||"html"===e.attrMap.lang)||!("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)||"ieConditionalComment"===e.type&&!e.complete||"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&-1===["template","style","script","html"].indexOf(e.fullName)||!(!Wp(e)||!e.children.some((function(e){return"text"!==e.type&&"interpolation"!==e.type})))}function Ip(e){return"attribute"!==e.type&&!Op(e)&&!!e.parent&&"number"==typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])}function Op(e){return"text"===e.type||"comment"===e.type}function _p(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName)}function jp(e){return"yaml"===e.type||"toml"===e.type}function Lp(e){return Hp(e).startsWith("pre")}function Rp(e){return"element"===e.type&&0!==e.children.length&&(-1!==["html","head","ul","ol","select"].indexOf(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function Mp(e){return Vp(e)||"element"===e.type&&"br"===e.fullName||qp(e)}function qp(e){return Up(e)&&zp(e)}function Up(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Vp(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return-1!==["script","select"].indexOf(e.name)}return!1}function $p(e){return"block"===e||"list-item"===e||e.startsWith("table")}function Wp(e){return Hp(e).startsWith("pre")}function Hp(e){return"element"===e.type&&!e.namespace&&Tp[e.name]||Pp}function Jp(e){var t=1/0,r=!0,n=!1,i=void 0;try{for(var a,s=e.split("\n")[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;if(0!==o.length){if(/\S/.test(o[0]))return 0;var u=o.match(/^\s*/)[0].length;o.length!==u&&u1&&void 0!==arguments[1]?arguments[1]:function(){return!0},r=0,n=e.stack.length-1;n>=0;n--){var i=e.stack[n];i&&"object"===c(i)&&!Array.isArray(i)&&t(i)&&r++}return r},Yp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jp(e);return 0===t?e:e.split("\n").map((function(e){return e.slice(t)})).join("\n")},Kp=Rp,Zp=function(e){return Rp(e)||"element"===e.type&&0!==e.children.length&&(-1!==["body","script","style"].indexOf(e.name)||e.children.some((function(e){return function(e){return e.children&&e.children.some((function(e){return"text"!==e.type}))}(e)})))||e.firstChild&&e.firstChild===e.lastChild&&Up(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||zp(e.lastChild))},eh=function(e){return jp(e)||e.next&&e.sourceSpan.end.line+1")}))},function(e,t){if("html"===t.parser)return e;var r=/\{\{([\s\S]+?)\}\}/g;return e.map((function(e){if(!dh(e))return e;var t=[],n=!0,i=!1,a=void 0;try{for(var s,o=e.children[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value;if("text"===u.type)for(var c=u.sourceSpan.constructor,l=u.sourceSpan.start,p=null,h=u.value.split(r),f=0;f$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))})}))},function(e){return e.map((function(e){return e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:yh(e)}):e.clone({children:e.children.map((function(e){return Object.assign({},e,{isLeadingSpaceSensitive:gh(e),isTrailingSpaceSensitive:vh(e)})})).map((function(e,t,r){return Object.assign({},e,{isLeadingSpaceSensitive:0===t?e.isLeadingSpaceSensitive:r[t-1].isTrailingSpaceSensitive&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:t===r.length-1?e.isTrailingSpaceSensitive:r[t+1].isLeadingSpaceSensitive&&e.isTrailingSpaceSensitive})}))}):e}))},function(e){var t=function(e){return"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!/[^\S\xA0]/.test(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type};return e.map((function(e){if(e.children){var r=e.children.map(t);if(r.some(Boolean)){for(var n=[],i=0;i")+a.firstChild.value+"")+o.value,sourceSpan:new u(s.sourceSpan.start,o.sourceSpan.end),isTrailingSpaceSensitive:c,hasTrailingSpaces:l}))}else n.push(a)}return e.clone({children:n})}}return e}))}],Ch=function(e,t){var r=!0,n=!1,i=void 0;try{for(var a,s=bh[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)e=(0,a.value)(e,t)}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return e},xh=function(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")},Ah=ea.builders,wh=Ah.concat,Fh=Ah.group,Sh=function(e){var t=e.trim();return/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/.test(t)||/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(t)},kh=function(e,t){var r=function(e){var t=/,([^,}\]]*)(?:,([^,}\]]*))?$/,r=e.match(/([^]*?)\s+(in|of)\s+([^]*)/);if(r){var n={};n.for=r[3].trim();var i=r[1].trim().replace(/^\(|\)$/g,""),a=i.match(t);return a?(n.alias=i.replace(t,""),n.iterator1=a[1].trim(),a[2]&&(n.iterator2=a[2].trim())):n.alias=i,{left:"".concat([n.alias,n.iterator1,n.iterator2].filter(Boolean).join(",")),operator:r[2],right:n.for}}}(e),n=r.left,i=r.operator,a=r.right;return wh([Fh(t("function _(".concat(n,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",i," ",t(a,{parser:"__js_expression"})])},Th=function(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueSlotScope:!0})},Ph=lt((function(e){var t,r;t=ut,r=function(){return function(e,t){var r=t&&t.logger||console;function n(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function i(t){var r,n=t.exec(e.substring(D));if(n)return r=n[0],D+=r.length,r}for(var a,s,o,u,c,l=e.length,p=/^[ \t\n\r\u000c]+/,h=/^[, \t\n\r\u000c]+/,f=/^[^ \t\n\r\u000c]+/,d=/[,]+$/,m=/^\d+$/,y=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,D=0,g=[];;){if(i(h),D>=l)return g;a=i(f),s=[],","===a.slice(-1)?(a=a.replace(d,""),E()):v()}function v(){for(i(p),o="",u="in descriptor";;){if(c=e.charAt(D),"in descriptor"===u)if(n(c))o&&(s.push(o),o="",u="after descriptor");else{if(","===c)return D+=1,o&&s.push(o),void E();if("("===c)o+=c,u="in parens";else{if(""===c)return o&&s.push(o),void E();o+=c}}else if("in parens"===u)if(")"===c)o+=c,u="in descriptor";else{if(""===c)return s.push(o),void E();o+=c}else if("after descriptor"===u)if(n(c));else{if(""===c)return void E();u="in descriptor",D-=1}D+=1}}function E(){var t,n,i,o,u,c,l,p,h,f=!1,d={};for(o=0;o\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function Mf(e){switch(e.isSelfClosing,e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--"}}function qf(e,t){if(e.isSelfClosing,df(e,t))return"";switch(e.type){case"ieConditionalComment":return"\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function zf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?Df(t,Qh):Df(tf(t.replace(/^\s*?\n|\n\s*?$/g,"")),Wh):Gh(Xh,t.split(/[\t\n\f\r ]+/)).parts}var Vf={preprocess:Ch,print:function(e,t,r){var n,i=e.getValue();switch(i.type){case"root":return Lh.concat([$h(xf(e,t,r)),Wh]);case"element":case"ieConditionalComment":var a=1===i.children.length&&"interpolation"===i.firstChild.type&&i.firstChild.isLeadingSpaceSensitive&&!i.firstChild.hasLeadingSpaces&&i.lastChild.isTrailingSpaceSensitive&&!i.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id");return Cf([$h(Cf([$h(Af(e,t,r),{id:s}),0===i.children.length?i.hasDanglingSpaces&&i.isDanglingSpaceSensitive?Xh:"":Cf([nf(i)?Uh:"",(n=Cf([a?Hh(Kh,"",{groupId:s}):i.firstChild.hasLeadingSpaces&&i.firstChild.isLeadingSpaceSensitive?Xh:"text"===i.firstChild.type&&i.isWhitespaceSensitive&&i.isIndentationSensitive?zh(Kh):Kh,xf(e,t,r)]),a?Hh(Jh(n),n,{groupId:s}):lf(i)&&"root"===i.parent.type&&"vue"===t.parser&&!t.vueIndentScriptAndStyle?n:Jh(n)),(i.next?Nf(i.next):If(i.parent))?i.lastChild.hasTrailingSpaces&&i.lastChild.isTrailingSpaceSensitive?" ":"":a?Hh(Kh,"",{groupId:s}):i.lastChild.hasTrailingSpaces&&i.lastChild.isTrailingSpaceSensitive?Xh:("comment"===i.lastChild.type||"text"===i.lastChild.type&&i.isWhitespaceSensitive&&i.isIndentationSensitive)&&new RegExp("\\n\\s{".concat(t.tabWidth*ef(e,(function(e){return e.parent&&"root"!==e.parent.type})),"}$")).test(i.lastChild.value)?"":Kh])])),Sf(i,t)]);case"ieConditionalStartComment":case"ieConditionalEndComment":return Cf([wf(i),Tf(i)]);case"interpolation":return Cf([wf(i,t),Cf(e.map(r,"children")),Tf(i,t)]);case"text":if("interpolation"===i.parent.type){var o=/\n[^\S\n]*?$/,u=o.test(i.value),c=u?i.value.replace(o,""):i.value;return Cf([Cf(Df(c,Qh)),u?Wh:""])}return Vh(hf([].concat(_f(i,t),zf(i),Lf(i,t))));case"docType":return Cf([$h(Cf([wf(i,t)," ",i.value.replace(/^html\b/i,"html").replace(/\s+/g," ")])),Tf(i,t)]);case"comment":return Cf([_f(i,t),Cf(Df(t.originalText.slice(t.locStart(i),t.locEnd(i)),Qh)),Lf(i,t)]);case"attribute":if(null===i.value)return i.rawName;var l=yf(i.value),p=Zh(l,"'")0)||r&&"Decorator"===r.type||(e.decorators&&0!==e.decorators.length?rd(e.decorators[e.decorators.length-1],n):td(e,n),0))}function ld(e,t,r,n,i){return t&&r&&("Property"===t.type||"MethodDefinition"===t.type)&&"Identifier"===r.type&&t.key===r&&":"!==Bi.getNextNonSpaceNonCommentCharacter(e,r,i.locEnd)?(rd(r,n),!0):!(!r||!t||"Decorator"!==r.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"MethodDefinition"!==t.type||(rd(r,n),0))}function pd(e,t,r,n,i,a){if(t&&"FunctionTypeParam"===t.type&&r&&"FunctionTypeAnnotation"===r.type&&n&&"FunctionTypeParam"!==n.type)return rd(t,i),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&r&&("ArrowFunctionExpression"===r.type||"FunctionExpression"===r.type||"FunctionDeclaration"===r.type||"ObjectMethod"===r.type||"ClassMethod"===r.type)&&")"===Bi.getNextNonSpaceNonCommentCharacter(e,i,a.locEnd))return rd(t,i),!0;if(r&&"FunctionDeclaration"===r.type&&n&&"BlockStatement"===n.type){var s=function(){if(0!==r.params.length)return Bi.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,a.locEnd(Bi.getLast(r.params)));var t=Bi.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,a.locEnd(r.id));return Bi.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,t+1)}();if(a.locStart(i)>s)return id(n,i),!0}return!1}function hd(e,t){return!(!e||"ImportSpecifier"!==e.type||(td(e,t),0))}function fd(e,t,r,n){return t&&t.body&&0===t.body.length?(n?nd(t,r):td(t,r),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length||(n?nd(e,r):td(e,r),0))}var dd={handleOwnLineComment:function(e,t,r,n,i){var a=e.precedingNode,s=e.enclosingNode,o=e.followingNode;return!!(pd(t,a,s,o,e,r)||function(e,t,r){return!(!e||"MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type||!t||"Identifier"!==t.type)&&(td(e,r),!0)}(s,o,e)||sd(t,a,s,o,e,r)||od(t,a,s,o,e,r)||ud(s,a,o,e)||cd(s,0,o,e)||hd(s,e)||function(e,t,r){return!(!e||"ForInStatement"!==e.type&&"ForOfStatement"!==e.type)&&(td(e,r),!0)}(s,0,e)||function(e,t,r,n){return!(!t||"UnionTypeAnnotation"!==t.type&&"TSUnionType"!==t.type)&&(rd(e,n),!0)}(a,s,0,e)||fd(s,n,e,i)||function(e,t,r,n,i){return!!(r&&"ImportSpecifier"===r.type&&t&&"ImportDeclaration"===t.type&&Bi.hasNewline(e,i.locEnd(n)))&&(rd(r,n),!0)}(t,s,a,e,r)||function(e,t){return!(!e||"AssignmentPattern"!==e.type)&&(td(e,t),!0)}(s,e)||ld(t,s,a,e,r))},handleEndOfLineComment:function(e,t,r,n,i){var a=e.precedingNode,s=e.enclosingNode,o=e.followingNode;return!!(pd(t,a,s,o,e,r)||function(e,t,r,n,i,a){var s=t&&!Bi.hasNewlineInRange(i,a.locEnd(t),a.locStart(n));return!(t&&s||!e||"ConditionalExpression"!==e.type||!r)&&(td(r,n),!0)}(s,a,o,e,t,r)||hd(s,e)||sd(t,a,s,o,e,r)||od(t,a,s,o,e,r)||ud(s,a,o,e)||cd(s,0,o,e)||function(e,t){return!(!e||"LabeledStatement"!==e.type)&&(td(e,t),!0)}(s,e)||function(e,t,r){return!!(t&&("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&e&&t.callee===e&&t.arguments.length>0)&&(td(t.arguments[0],r),!0)}(a,s,e)||function(e,t){return!(!e||"Property"!==e.type&&"ObjectProperty"!==e.type)&&(td(e,t),!0)}(s,e)||fd(s,n,e,i)||function(e,t,r){return!(!e||"TypeAlias"!==e.type)&&(td(e,r),!0)}(s,0,e)||function(e,t,r){return!(!e||"VariableDeclarator"!==e.type&&"AssignmentExpression"!==e.type||!t||"ObjectExpression"!==t.type&&"ArrayExpression"!==t.type&&"TemplateLiteral"!==t.type&&"TaggedTemplateExpression"!==t.type)&&(td(t,r),!0)}(s,o,e))},handleRemainingComment:function(e,t,r,n,i){var a=e.precedingNode,s=e.enclosingNode,o=e.followingNode;return!!(sd(t,a,s,o,e,r)||od(t,a,s,o,e,r)||function(e,t,r){return!(!e||"ObjectProperty"!==e.type&&"Property"!==e.type||!e.shorthand||e.key!==t||"AssignmentPattern"!==e.value.type)&&(rd(e.value.left,r),!0)}(s,a,e)||function(e,t,r,n){return")"===Bi.getNextNonSpaceNonCommentCharacter(e,r,n.locEnd)&&(!t||("FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ArrowFunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"ObjectMethod"!==t.type||0!==t.params.length)&&("CallExpression"!==t.type&&"OptionalCallExpression"!==t.type&&"NewExpression"!==t.type||0!==t.arguments.length)?!(!t||"MethodDefinition"!==t.type||0!==t.value.params.length)&&(nd(t.value,r),!0):(nd(t,r),!0))}(t,s,e,r)||ld(t,s,a,e,r)||fd(s,n,e,i)||function(e,t,r,n){if(!t||"ArrowFunctionExpression"!==t.type)return!1;var i=ra.getNextNonSpaceNonCommentCharacterIndex(e,r,n);return"=>"===e.substr(i,2)&&(nd(t,r),!0)}(t,s,e,r)||function(e,t,r,n,i){return"("===Bi.getNextNonSpaceNonCommentCharacter(e,n,i.locEnd)&&(!(!r||!t||"FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"MethodDefinition"!==t.type&&"ObjectMethod"!==t.type)&&(rd(r,n),!0))}(t,s,a,e,r)||function(e,t,r,n,i){return!(!t||"TSMappedType"!==t.type)&&(n&&"TSTypeParameter"===n.type&&n.name?(td(n.name,i),!0):!(!r||"TSTypeParameter"!==r.type||!r.constraint)&&(rd(r.constraint,i),!0))}(0,s,a,o,e)||function(e,t){return!(!e||"ContinueStatement"!==e.type&&"BreakStatement"!==e.type||e.label)&&(rd(e,t),!0)}(s,e))},hasLeadingComment:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some((function(e){return e.leading&&t(e)}))},isBlockComment:function(e){return"Block"===e.type||"CommentBlock"===e.type}},md=dd.isBlockComment,yd=dd.hasLeadingComment,Dd=ea.builders,gd=Dd.indent,vd=Dd.join,Ed=Dd.hardline,bd=Dd.softline,Cd=Dd.literalline,xd=Dd.concat,Ad=Dd.group,wd=Dd.dedentToRoot,Fd=ea.utils,Sd=Fd.mapDoc,kd=Fd.stripTrailingHardline;function Td(e){return e.replace(/([\\`]|\$\{)/g,"\\$1")}function Pd(e,t){return Sd(e,(function(e){if(!e.parts)return e;var r=[];return e.parts.forEach((function(e){"string"==typeof e?r.push(t?e.replace(/(\\*)`/g,"$1$1\\`"):Td(e)):r.push(e)})),Object.assign({},e,{parts:r})}))}function Bd(e){var t=[],r=!1;return e.map((function(e){return e.trim()})).forEach((function(e,n,i){""!==e&&(""===i[n-1]&&r?t.push(xd([Ed,e])):t.push(e),r=!0)})),0===t.length?null:vd(Ed,t)}function Nd(e){var t=e.getValue(),r=e.getParentNode(),n=e.getParentNode(1);return n&&t.quasis&&"JSXExpressionContainer"===r.type&&"JSXElement"===n.type&&"style"===n.openingElement.name.name&&n.openingElement.attributes.some((function(e){return"jsx"===e.name.name}))||r&&"TaggedTemplateExpression"===r.type&&"Identifier"===r.tag.type&&"css"===r.tag.name||r&&"TaggedTemplateExpression"===r.type&&"MemberExpression"===r.tag.type&&"css"===r.tag.object.name&&("global"===r.tag.property.name||"resolve"===r.tag.property.name)}function Id(e){return Md(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"ArrayExpression"===e.type&&"elements"===t},function(e,t){return"Property"===e.type&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t}].concat([function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}]))}function Od(e){var t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;var r=t.tag;switch(r.type){case"MemberExpression":return jd(r.object)||Ld(r);case"CallExpression":return jd(r.callee)||"MemberExpression"===r.callee.type&&("MemberExpression"===r.callee.object.type&&(jd(r.callee.object.object)||Ld(r.callee.object))||"CallExpression"===r.callee.object.type&&jd(r.callee.object.callee));case"Identifier":return"css"===r.name;default:return!1}}function _d(e){var t=e.getParentNode(),r=e.getParentNode(1);return r&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===r.type&&"JSXIdentifier"===r.name.type&&"css"===r.name.name}function jd(e){return"Identifier"===e.type&&"styled"===e.name}function Ld(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function Rd(e,t){return yd(e,(function(e){return md(e)&&e.value===" ".concat(t," ")}))}function Md(e,t){var r=e.stack.slice(),n=null,i=r.pop(),a=!0,s=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var l=u.value;if(void 0===i)return!1;if("number"==typeof n&&(n=r.pop(),i=r.pop()),!l(i,n))return!1;n=r.pop(),i=r.pop()}}catch(e){s=!0,o=e}finally{try{a||null==c.return||c.return()}finally{if(s)throw o}}return!0}var qd=0,Ud=function(e,t,r,n){var i,a=e.getValue(),s=e.getParentNode(),o=e.getParentNode(1);switch(a.type){case"TemplateLiteral":if([Nd,Od,_d,Id].some((function(t){return t(e)}))){var u=a.quasis.map((function(e){return e.value.raw})),c=0,l=u.reduce((function(e,t,r){return 0==r?t:e+"@prettier-placeholder-"+c+++"-id"+t}),"");return function(e,t,r){var n=t.getValue();if(1===n.quasis.length&&!n.quasis[0].value.raw.trim())return"``";var i=n.expressions?t.map(r,"expressions"):[],a=function(e,t){if(!t||!t.length)return e;var r=t.slice(),n=0,i=Sd(e,(function(e){if(!e||!e.parts||!e.parts.length)return e;var t=e.parts,i=t.indexOf("@"),a=i+1;if(i>-1&&"string"==typeof t[a]&&t[a].startsWith("prettier-placeholder")){var s=t[i],o=t[a],u=t.slice(a+1);t=t.slice(0,i).concat([s+o]).concat(u)}var c=t.findIndex((function(e){return"string"==typeof e&&e.startsWith("@prettier-placeholder")}));if(c>-1){var l=t[c],p=t.slice(c+1),h=l.match(/@prettier-placeholder-(.+)-id([\s\S]*)/),f=h[1],d=h[2],m=r[f];n++,t=t.slice(0,c).concat(["${",m,"}"+d]).concat(p)}return Object.assign({},e,{parts:t})}));return r.length===n?i:null}(e,i);if(!a)throw new Error("Couldn't insert all the expressions");return xd(["`",gd(xd([Ed,kd(a)])),bd,"`"])}(r(l,{parser:"css"}),e,t)}if(function(e){var t=e.getValue(),r=e.getParentNode();return Rd(t,"GraphQL")||r&&("TaggedTemplateExpression"===r.type&&("MemberExpression"===r.tag.type&&"graphql"===r.tag.object.name&&"experimental"===r.tag.property.name||"Identifier"===r.tag.type&&("gql"===r.tag.name||"graphql"===r.tag.name))||"CallExpression"===r.type&&"Identifier"===r.callee.type&&"graphql"===r.callee.name)}(e)){var p=a.expressions?e.map(t,"expressions"):[],h=a.quasis.length;if(1===h&&""===a.quasis[0].value.raw.trim())return"``";for(var f=[],d=0;d2&&""===g[0].trim()&&""===g[1].trim(),C=v>2&&""===g[v-1].trim()&&""===g[v-2].trim(),x=g.every((function(e){return/^\s*(?:#[^\r\n]*)?$/.test(e)}));if(!y&&/#[^\r\n]*$/.test(g[v-1]))return null;var A=null;(A=x?Bd(g):kd(r(D,{parser:"graphql"})))?(A=Pd(A,!1),!m&&b&&f.push(""),f.push(A),!y&&C&&f.push("")):m||y||!b||f.push(""),E&&f.push(xd(["${",E,"}"]))}return xd(["`",gd(xd([Ed,vd(Ed,f)])),Ed,"`"])}var w=function(e){return Rd(e.getValue(),"HTML")||Md(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t}])}(e)?"html":function(e){return Md(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"Property"===e.type&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t}].concat([function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}]))}(e)?"angular":void 0;if(w)return function(e,t,r,n,i){var a=e.getValue(),s=qd;qd=qd+1>>>0;var o=function(e){return"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(s,"_IN_JS")},u=a.quasis.map((function(e,t,r){return t===r.length-1?e.value.cooked:e.value.cooked+o(t)})).join(""),c=e.map(t,"expressions");if(0===c.length&&0===u.trim().length)return"``";var l=RegExp(o("(\\d+)"),"g"),p=Sd(kd(r(u,{parser:n})),(function(e){if("string"!=typeof e)return e;for(var t=[],r=e.split(l),n=0;n0;i--){var a=r.children[i-1];if("JSXText"!==a.type||dm(a)){n=a;break}}return n&&"JSXExpressionContainer"===n.type&&"JSXEmptyExpression"===n.expression.type&&n.expression.comments&&n.expression.comments.find((function(e){return"prettier-ignore"===e.value.trim()}))}(e)},hasTrailingComment:function(e){return e.comments&&e.comments.some((function(e){return e.trailing}))},identity:function(e){return e},isBinaryish:function(e){return"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type},isCallOrOptionalCallExpression:pm,isEmptyJSXElement:function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;var t=e.children[0];return tm(t)&&!dm(t)},isFlowAnnotationComment:function(e,t,r){var n=r.locStart(t),i=Xd(e,r.locEnd(t));return"/*"===e.substr(n,2)&&"*/"===e.substr(i,2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;var t=0,r=!0,n=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;if(im(o)){if((t+=1)>1)return!0}else if(pm(o)){var u=!0,c=!1,l=void 0;try{for(var p,h=o.arguments[Symbol.iterator]();!(u=(p=h.next()).done);u=!0)if(im(p.value))return!0}catch(e){c=!0,l=e}finally{try{u||null==h.return||h.return()}finally{if(c)throw l}}}}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return!1},isFunctionNotation:cm,isFunctionOrArrowExpression:im,isGetterOrSetter:om,isJestEachTemplateLiteral:function(e,t){var r=/^[xf]?(describe|it|test)$/;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))},isJSXNode:sm,isJSXWhitespaceExpression:function(e){return"JSXExpressionContainer"===e.type&&tm(e.expression)&&" "===e.expression.value&&!e.expression.comments},isLastStatement:function(e){var t=e.getParentNode();if(!t)return!0;var r=e.getValue(),n=(t.body||t.consequent).filter((function(e){return"EmptyStatement"!==e.type}));return n&&n[n.length-1]===r},isLiteral:tm,isLongCurriedCallExpression:function(e){var t=e.getValue(),r=e.getParentNode();return pm(t)&&pm(r)&&r.callee===t&&t.arguments.length>r.arguments.length&&r.arguments.length>0},isMeaningfulJSXText:dm,isMemberExpressionChain:function e(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&("Identifier"===t.object.type||e(t.object))},isMemberish:function(e){return"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"BindExpression"===e.type&&e.object},isNgForOf:function(e,t,r){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===r.body[0].type&&null===r.body[0].value},isNumericLiteral:rm,isObjectType:function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type},isObjectTypePropertyAFunction:function(e,t){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||cm(e,t))},isSimpleFlowType:function(e){return e&&-1!==["AnyTypeAnnotation","NullLiteralTypeAnnotation","GenericTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","StringTypeAnnotation"].indexOf(e.type)&&!("GenericTypeAnnotation"===e.type&&e.typeParameters)},isSimpleTemplateLiteral:function(e){return 0!==e.expressions.length&&e.expressions.every((function(e){if(e.comments)return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if("MemberExpression"===e.type||"OptionalMemberExpression"===e.type){for(var t=e;"MemberExpression"===t.type||"OptionalMemberExpression"===t.type;){if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type)return!1;if((t=t.object).comments)return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1}))},isStringLiteral:nm,isStringPropSafeToCoerceToIdentifier:function(e,t){return nm(e.key)&&Qd(e.key.value)&&"json"!==t.parser&&!("typescript"===t.parser&&"ClassProperty"===e.type)},isTemplateOnItsOwnLine:function(e,t,r){return("TemplateLiteral"===e.type&&ym(e)||"TaggedTemplateExpression"===e.type&&ym(e.quasi))&&!Wd(t,r.locStart(e),{backwards:!0})},isTestCall:function e(t,r){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(am(t)&&r&&e(r))return im(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return am(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&lm.test(t.callee.name)||("MemberExpression"===(n=t).callee.type||"OptionalMemberExpression"===n.callee.type)&&"Identifier"===n.callee.object.type&&"Identifier"===n.callee.property.type&&lm.test(n.callee.object.name)&&("only"===n.callee.property.name||"skip"===n.callee.property.name))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||nm(t.arguments[0])))return!(t.arguments[2]&&!rm(t.arguments[2]))&&((2===t.arguments.length?im(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&t.arguments[1].params.length<=1)||am(t.arguments[1]));var n;return!1},isTheOnlyJSXElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;var r=t.getNode();if(!r.expression||!sm(r.expression))return!1;var n=t.getParentNode();return"Program"===n.type&&1==n.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e,t){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||um(e,e.typeAnnotation,t))},matchJsxWhitespaceRegex:hm,needsHardlineAfterDanglingComment:function(e){if(!e.comments)return!1;var t=$d(e.comments.filter((function(e){return!e.leading&&!e.trailing})));return t&&!dd.isBlockComment(t)},rawText:Dm,returnArgumentHasLeadingComment:function(e,t){if(mm(e.originalText,t,e))return!0;if(em(t))for(var r,n=t;r=(i=n).expressions?i.expressions[0]:i.left||i.test||i.callee||i.object||i.tag||i.argument||i.expression;)if(n=r,mm(e.originalText,n,e))return!0;var i;return!1}},vm=gm.getLeftSidePathName,Em=gm.hasFlowShorthandAnnotationComment,bm=gm.hasNakedLeftSide,Cm=gm.hasNode;function xm(e,t){var r=t.getValue();return i(r)&&(n(r)||function e(r){var a=t.getParentNode(r);return!(!a||i(a))&&(n(a)||e(r+1))}(0));function n(e){return e.comments&&e.comments.some((function(e){return e.leading&&dd.isBlockComment(e)&&function(e){var t=e.trim().split("\n").map((function(e){return e.replace(/^[\s*]+/,"")})).join(" ").trim();if(!/^@type\s*\{[^]+\}$/.test(t))return!1;var r=!1,n=0,i=!0,a=!1,s=void 0;try{for(var o,u=t[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var c=o.value;if("{"===c){if(r)return!1;n++}else if("}"===c){if(0===n)return!1;0==--n&&(r=!0)}}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}return 0===n}(e.value)}))}function i(e){return e.extra&&e.extra.parenthesized}}function Am(e,t){var r=e.getParentNode();if(!r)return!1;var n=e.getName(),i=e.getNode();if(e.getValue()!==i)return!1;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(e){switch(e.type){case"ObjectExpression":return!0;default:return!1}}(i)&&wm(e))return!0;if(function(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForAwaitStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}(i))return!1;if(xm(t.originalText,e))return!0;if("flow"!==t.parser&&Em(e.getValue()))return!0;if("Identifier"===i.type)return!!(i.extra&&i.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(i.name));if("ParenthesizedExpression"===r.type)return!1;if(!("ClassDeclaration"!==r.type&&"ClassExpression"!==r.type||r.superClass!==i||"ArrowFunctionExpression"!==i.type&&"AssignmentExpression"!==i.type&&"AwaitExpression"!==i.type&&"BinaryExpression"!==i.type&&"ConditionalExpression"!==i.type&&"LogicalExpression"!==i.type&&"NewExpression"!==i.type&&"ObjectExpression"!==i.type&&"ParenthesizedExpression"!==i.type&&"SequenceExpression"!==i.type&&"TaggedTemplateExpression"!==i.type&&"UnaryExpression"!==i.type&&"UpdateExpression"!==i.type&&"YieldExpression"!==i.type))return!0;if("ExportDefaultDeclaration"===r.type)return function e(t,r){var n=t.getValue(),i=t.getParentNode();return"FunctionExpression"===n.type||"ClassExpression"===n.type?"ExportDefaultDeclaration"===i.type||!Am(t,r):!(!bm(n)||"ExportDefaultDeclaration"!==i.type&&Am(t,r))&&t.call.apply(t,[function(t){return e(t,r)}].concat(vm(t,n)))}(e,t);if("Decorator"===r.type&&r.expression===i){for(var a=!1,s=!1,o=i;o;)switch(o.type){case"MemberExpression":s=!0,o=o.object;break;case"CallExpression":if(s||a)return!0;a=!0,o=o.callee;break;case"Identifier":return!1;default:return!0}return!0}if("ArrowFunctionExpression"===r.type&&r.body===i&&"SequenceExpression"!==i.type&&Bi.startsWithNoLookaheadToken(i,!1)||"ExpressionStatement"===r.type&&Bi.startsWithNoLookaheadToken(i,!0))return!0;switch(i.type){case"SpreadElement":case"SpreadProperty":return"MemberExpression"===r.type&&"object"===n&&r.object===i;case"UpdateExpression":if("UnaryExpression"===r.type)return i.prefix&&("++"===i.operator&&"+"===r.operator||"--"===i.operator&&"-"===r.operator);case"UnaryExpression":switch(r.type){case"UnaryExpression":return i.operator===r.operator&&("+"===i.operator||"-"===i.operator);case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===n;case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===n;case"BinaryExpression":return"**"===r.operator&&"left"===n;case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if("UpdateExpression"===r.type)return!0;if("in"===i.operator&&function(t){for(var r=0;t;){var n=e.getParentNode(r++);if(!n)return!1;if("ForStatement"===n.type&&n.init===t)return!0;t=n}return!1}(i))return!0;case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(r.type){case"ConditionalExpression":return"TSAsExpression"===i.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===n;case"ClassExpression":case"ClassDeclaration":return"superClass"===n&&r.superClass===i;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSAsExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===n;case"AssignmentExpression":return r.left===i&&("TSTypeAssertion"===i.type||"TSAsExpression"===i.type);case"LogicalExpression":if("LogicalExpression"===i.type)return r.operator!==i.operator;case"BinaryExpression":if(!i.operator&&"TSTypeAssertion"!==i.type)return!0;var u=r.operator,c=Bi.getPrecedence(u),l=i.operator,p=Bi.getPrecedence(l);return c>p||(c===p&&"right"===n?(zn.strictEqual(r.right,i),!0):c===p&&!Bi.shouldFlatten(u,l)||(c1?"(":"",Tm(km([",",Pm]),e.map(r,"params")),t.length>1?")":""])}),"program","body",0):t.__isVueSlotScope?e.call((function(e){return Tm(km([",",Pm]),e.map(r,"params"))}),"program","body",0):void 0},Im=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign({},e,{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[]});default:return e}},Om=Bi.getParentExportDeclaration,_m=Bi.isExportDeclaration,jm=Bi.shouldFlatten,Lm=Bi.getNextNonSpaceNonCommentCharacter,Rm=Bi.hasNewline,Mm=Bi.hasNewlineInRange,qm=Bi.getLast,Um=Bi.getStringWidth,zm=Bi.printString,Vm=Bi.printNumber,$m=Bi.hasIgnoreComment,Wm=Bi.hasNodeIgnoreComment,Hm=Bi.getPenultimate,Jm=Bi.startsWithNoLookaheadToken,Gm=Bi.getIndentSize,Xm=Bi.matchAncestorTypes,Qm=Bi.getPreferredQuote,Ym=ra.isNextLineEmpty,Km=ra.isNextLineEmptyAfterIndex,Zm=ra.getNextNonSpaceNonCommentCharacterIndex,ey=Ds.insertPragma,ty=Nm,ry=Bm,ny=gm.classChildNeedsASIProtection,iy=gm.classPropMayCauseASIProblems,ay=gm.conditionalExpressionChainContainsJSX,sy=gm.getFlowVariance,oy=gm.getLeftSidePathName,uy=gm.getTypeScriptMappedTypeModifier,cy=gm.hasDanglingComments,ly=gm.hasFlowAnnotationComment,py=gm.hasFlowShorthandAnnotationComment,hy=gm.hasLeadingComment,fy=gm.hasLeadingOwnLineComment,dy=gm.hasNakedLeftSide,my=gm.hasNewlineBetweenOrAfterDecorators,yy=gm.hasNgSideEffect,Dy=gm.hasPrettierIgnore,gy=gm.hasTrailingComment,vy=gm.identity,Ey=gm.isBinaryish,by=gm.isCallOrOptionalCallExpression,Cy=gm.isEmptyJSXElement,xy=gm.isFlowAnnotationComment,Ay=gm.isFunctionCompositionArgs,wy=gm.isFunctionNotation,Fy=gm.isFunctionOrArrowExpression,Sy=gm.isGetterOrSetter,ky=gm.isJestEachTemplateLiteral,Ty=gm.isJSXNode,Py=gm.isJSXWhitespaceExpression,By=gm.isLastStatement,Ny=gm.isLiteral,Iy=gm.isLongCurriedCallExpression,Oy=gm.isMeaningfulJSXText,_y=gm.isMemberExpressionChain,jy=gm.isMemberish,Ly=gm.isNgForOf,Ry=gm.isNumericLiteral,My=gm.isObjectType,qy=gm.isObjectTypePropertyAFunction,Uy=gm.isSimpleFlowType,zy=gm.isSimpleTemplateLiteral,Vy=gm.isStringLiteral,$y=gm.isStringPropSafeToCoerceToIdentifier,Wy=gm.isTemplateOnItsOwnLine,Hy=gm.isTestCall,Jy=gm.isTheOnlyJSXElementInMarkdown,Gy=gm.isTSXFile,Xy=gm.isTypeAnnotationAFunction,Qy=gm.matchJsxWhitespaceRegex,Yy=gm.needsHardlineAfterDanglingComment,Ky=gm.rawText,Zy=gm.returnArgumentHasLeadingComment,eD=new WeakMap,tD=ea.builders,rD=tD.concat,nD=tD.join,iD=tD.line,aD=tD.hardline,sD=tD.softline,oD=tD.literalline,uD=tD.group,cD=tD.indent,lD=tD.align,pD=tD.conditionalGroup,hD=tD.fill,fD=tD.ifBreak,dD=tD.breakParent,mD=tD.lineSuffixBoundary,yD=tD.addAlignmentToDoc,DD=tD.dedent,gD=ea.utils,vD=gD.willBreak,ED=gD.isLineNext,bD=gD.isEmpty,CD=gD.removeLines,xD=ea.printer.printDocToString,AD=0;function wD(e,t){switch(t=t||"es5",e.trailingComma){case"all":if("all"===t)return!0;case"es5":if("es5"===t)return!0;case"none":default:return!1}}function FD(e,t,r){var n=e.getValue();return uD(rD([nD(iD,e.map(r,"decorators")),my(n,t)?aD:iD]))}function SD(e,t,r,n){var i,a,s=e.getValue(),o=s[n.testNodePropertyName],u=s[n.consequentNodePropertyName],c=s[n.alternateNodePropertyName],l=[],p=!1,h=e.getParentNode(),f=h.type===n.conditionalNodeType,d=0;do{a=i||s,i=e.getParentNode(d),d++}while(i&&i.type===n.conditionalNodeType);var m=i||h,y=a;if(n.shouldCheckJsx&&(Ty(o)||Ty(u)||Ty(c)||ay(y))){p=!0,f=!0;var D=function(e){return rD([fD("(",""),cD(rD([sD,e])),sD,fD(")","")])},g=function(e){return"NullLiteral"===e.type||"Literal"===e.type&&null===e.value};l.push(" ? ",g(u)?e.call(r,n.consequentNodePropertyName):D(e.call(r,n.consequentNodePropertyName))," : ",c.type===n.conditionalNodeType||g(c)?e.call(r,n.alternateNodePropertyName):D(e.call(r,n.alternateNodePropertyName)))}else{var v=rD([iD,"? ",u.type===n.conditionalNodeType?fD("","("):"",lD(2,e.call(r,n.consequentNodePropertyName)),u.type===n.conditionalNodeType?fD("",")"):"",iD,": ",c.type===n.conditionalNodeType?e.call(r,n.alternateNodePropertyName):lD(2,e.call(r,n.alternateNodePropertyName))]);l.push(h.type!==n.conditionalNodeType||h[n.alternateNodePropertyName]===s?v:t.useTabs?DD(cD(v)):lD(Math.max(0,t.tabWidth-2),v))}var E,b=!p&&("MemberExpression"===h.type||"OptionalMemberExpression"===h.type||"NGPipeExpression"===h.type&&h.left===s&&n.breakNested)&&!h.computed;return function(e){return n.breakNested?h===m?uD(e):e:uD(e)}(rD([].concat((E=rD(n.beforeParts()),h.type===n.conditionalNodeType&&h[n.alternateNodePropertyName]===s?lD(2,E):E),f?rD(l):cD(rD(l)),n.afterParts(b))))}function kD(e,t,r){var n=[],i=e.getNode(),a="ClassBody"===i.type;return e.map((function(e,s){var o=e.getValue();if(o&&"EmptyStatement"!==o.type){var u=r(e),c=t.originalText,l=[];if(t.semi||a||Jy(t,e)||!function(e,t){return"ExpressionStatement"===e.getNode().type&&e.call((function(e){return function e(t,r){var n=t.getValue();return!!(Fm(t,r)||"ParenthesizedExpression"===n.type||"TypeCastExpression"===n.type||"ArrowFunctionExpression"===n.type&&!LD(t,r)||"ArrayExpression"===n.type||"ArrayPattern"===n.type||"UnaryExpression"===n.type&&n.prefix&&("+"===n.operator||"-"===n.operator)||"TemplateLiteral"===n.type||"TemplateElement"===n.type||Ty(n)||"BindExpression"===n.type&&!n.object||"RegExpLiteral"===n.type||"Literal"===n.type&&n.pattern||"Literal"===n.type&&n.regex)||!!dy(n)&&t.call.apply(t,[function(t){return e(t,r)}].concat(oy(t,n)))}(e,t)}),"expression")}(e,t)?l.push(u):o.comments&&o.comments.some((function(e){return e.leading}))?l.push(r(e,{needsSemi:!0})):l.push(";",u),!t.semi&&a)if(iy(e))l.push(";");else if("ClassProperty"===o.type){var p=i.body[s+1];ny(p)&&l.push(";")}Ym(c,o,t)&&!By(e)&&l.push(aD),n.push(rD(l))}})),nD(aD,n)}function TD(e,t,r){var n=e.getNode();if(n.computed)return rD(["[",e.call(r,"key"),"]"]);var i=e.getParentNode(),a=n.key;if("consistent"===t.quoteProps&&!eD.has(i)){var s=(i.properties||i.body||i.members).some((function(e){return!e.computed&&e.key&&Vy(e.key)&&!$y(e,t)}));eD.set(i,s)}if("Identifier"===a.type&&("json"===t.parser||"consistent"===t.quoteProps&&eD.get(i))){var o=zm(JSON.stringify(a.name),t);return e.call((function(e){return xa.printComments(e,(function(){return o}),t)}),"key")}return $y(n,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!eD.get(i))?e.call((function(e){return xa.printComments(e,(function(){return a.value}),t)}),"key"):e.call(r,"key")}function PD(e,t,r){var n=e.getNode(),i=n.kind,a=n.value||n,s=[];return i&&"init"!==i&&"method"!==i&&"constructor"!==i?(zn.ok("get"===i||"set"===i),s.push(i," ")):(a.async&&s.push("async "),a.generator&&s.push("*")),s.push(TD(e,t,r),n.optional||n.key.optional?"?":"",n===a?BD(e,t,r):e.call((function(e){return BD(e,t,r)}),"value")),rD(s)}function BD(e,t,r){var n=[_D(e,0,r),uD(rD([jD(e,r,t),MD(e,r,t)]))];return e.getNode().body?n.push(" ",e.call(r,"body")):n.push(t.semi?";":""),rD(n)}function ND(e){return"ObjectExpression"===e.type&&(e.properties.length>0||e.comments)||"ArrayExpression"===e.type&&(e.elements.length>0||e.comments)||"TSTypeAssertion"===e.type&&ND(e.expression)||"TSAsExpression"===e.type&&ND(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type)&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||"CallExpression"===e.body.type||"OptionalCallExpression"===e.body.type||"ConditionalExpression"===e.body.type||Ty(e.body))}function ID(e,t,r){var n=e.getValue(),i=n.arguments;if(0===i.length)return rD(["(",xa.printDanglingComments(e,t,!0),")"]);if(2===i.length&&"ArrowFunctionExpression"===i[0].type&&0===i[0].params.length&&"BlockStatement"===i[0].body.type&&"ArrayExpression"===i[1].type&&!i.find((function(e){return e.comments})))return rD(["(",e.call(r,"arguments",0),", ",e.call(r,"arguments",1),")"]);var a=!1,s=!1,o=!1,u=i.length-1,c=e.map((function(e,n){var i=e.getNode(),c=[r(e)];return n===u||(Ym(t.originalText,i,t)?(0===n&&(o=!0),a=!0,c.push(",",aD,aD)):c.push(",",iD)),s=function(e,t){if(!e||"ArrowFunctionExpression"!==e.type||!e.body||"BlockStatement"!==e.body.type||!e.params||e.params.length<1)return!1;var n=!1;return t.each((function(e){var t=rD([r(e)]);n=n||vD(t)}),"params"),n}(i,e),rD(c)}),"arguments"),l=n.callee&&"Import"===n.callee.type||!wD(t,"all")?"":",";function p(){return uD(rD(["(",cD(rD([iD,rD(c)])),l,iD,")"]),{shouldBreak:!0})}if(Ay(i))return p();var h=function(e){if(2!==e.length)return!1;var t=e[0],r=e[1];return!(t.comments&&t.comments.length||"FunctionExpression"!==t.type&&("ArrowFunctionExpression"!==t.type||"BlockStatement"!==t.body.type)||"FunctionExpression"===r.type||"ArrowFunctionExpression"===r.type||"ConditionalExpression"===r.type||ND(r))}(i),f=function(e){var t=qm(e),r=Hm(e);return!hy(t)&&!gy(t)&&ND(t)&&(!r||r.type!==t.type)}(i);if(h||f){var d,m=(h?c.slice(1).some(vD):c.slice(0,-1).some(vD))||a||s,y=0;e.each((function(e){h&&0===y&&(d=[rD([e.call((function(e){return r(e,{expandFirstArg:!0})})),c.length>1?",":"",o?aD:iD,o?aD:""])].concat(c.slice(1))),f&&y===i.length-1&&(d=c.slice(0,-1).concat(e.call((function(e){return r(e,{expandLastArg:!0})})))),y++}),"arguments");var D=c.some(vD),g=rD(["(",rD(d),")"]);return rD([D?dD:"",pD([D||n.typeArguments||n.typeParameters?fD(p(),g):g,rD(h?["(",uD(d[0],{shouldBreak:!0}),rD(d.slice(1)),")"]:["(",rD(c.slice(0,-1)),uD(qm(d),{shouldBreak:!0}),")"]),p()],{shouldBreak:m})])}var v=rD(["(",cD(rD([sD,rD(c)])),fD(l),sD,")"]);return Iy(e)?v:uD(v,{shouldBreak:c.some(vD)||a})}function OD(e,t,r){var n=e.getValue();if(!n.typeAnnotation)return"";var i=e.getParentNode(),a=n.definite||i&&"VariableDeclarator"===i.type&&i.definite,s="DeclareFunction"===i.type&&i.id===n;return xy(t.originalText,n.typeAnnotation,t)?rD([" /*: ",e.call(r,"typeAnnotation")," */"]):rD([s?"":a?"!: ":": ",e.call(r,"typeAnnotation")])}function _D(e,t,r){var n=e.getValue();return n.typeArguments?e.call(r,"typeArguments"):n.typeParameters?e.call(r,"typeParameters"):""}function jD(e,t,r,n,i){var a=e.getValue(),s=e.getParentNode(),o=a.parameters?"parameters":"params",u=Hy(s),c=ng(a),l=n&&!(a[o]&&a[o].some((function(e){return e.comments}))),p=i?_D(e,0,t):"",h=[];if(a[o]){var f=a[o].length-1;h=e.map((function(e,n){var i=[],s=e.getValue();return i.push(t(e)),n===f?a.rest&&i.push(",",iD):u||c||l?i.push(", "):Ym(r.originalText,s,r)?i.push(",",aD,aD):i.push(",",iD),rD(i)}),o)}if(a.rest&&h.push(rD(["...",e.call(t,"rest")])),0===h.length)return rD([p,"(",xa.printDanglingComments(e,r,!0,(function(e){return")"===Lm(r.originalText,e,r.locEnd)})),")"]);var d=qm(a[o]);if(l)return uD(rD([CD(p),"(",rD(h.map(CD)),")"]));var m=a[o].every((function(e){return!e.decorators}));if(c&&m)return rD([p,"(",rD(h),")"]);if(u)return rD([p,"(",rD(h),")"]);if((qy(s,r)||Xy(s,r)||"TypeAlias"===s.type||"UnionTypeAnnotation"===s.type||"TSUnionType"===s.type||"IntersectionTypeAnnotation"===s.type||"FunctionTypeAnnotation"===s.type&&s.returnType===a)&&1===a[o].length&&null===a[o][0].name&&a[o][0].typeAnnotation&&null===a.typeParameters&&Uy(a[o][0].typeAnnotation)&&!a.rest)return"always"===r.arrowParens?rD(["(",rD(h),")"]):rD(h);var y=!(d&&"RestElement"===d.type||a.rest);return rD([p,"(",cD(rD([sD,rD(h)])),fD(y&&wD(r,"all")?",":""),sD,")"])}function LD(e,t){return"always"!==t.arrowParens&&"avoid"===t.arrowParens&&function(e){return!(1!==e.params.length||e.rest||e.typeParameters||cy(e)||"Identifier"!==e.params[0].type||e.params[0].typeAnnotation||e.params[0].comments||e.params[0].optional||e.predicate||e.returnType)}(e.getValue())}function RD(e,t,r){var n=e.getValue(),i=[];return n.async&&i.push("async "),i.push("function"),n.generator&&i.push("*"),n.id&&i.push(" ",e.call(t,"id")),i.push(_D(e,0,t),uD(rD([jD(e,t,r),MD(e,t,r)])),n.body?" ":"",e.call(t,"body")),rD(i)}function MD(e,t,r){var n=e.getValue(),i=e.call(t,"returnType");if(n.returnType&&xy(r.originalText,n.returnType,r))return rD([" /*: ",i," */"]);var a=[i];return n.returnType&&n.returnType.typeAnnotation&&a.unshift(": "),n.predicate&&a.push(n.returnType?" ":": ",e.call(t,"predicate")),rD(a)}function qD(e,t,r){var n=e.getValue(),i=t.semi?";":"",a=["export "],s=n.default||"ExportDefaultDeclaration"===n.type;if(s&&a.push("default "),a.push(xa.printDanglingComments(e,t,!0)),Yy(n)&&a.push(aD),n.declaration)a.push(e.call(r,"declaration")),s&&"ClassDeclaration"!==n.declaration.type&&"FunctionDeclaration"!==n.declaration.type&&"TSInterfaceDeclaration"!==n.declaration.type&&"DeclareClass"!==n.declaration.type&&"DeclareFunction"!==n.declaration.type&&"TSDeclareFunction"!==n.declaration.type&&a.push(i);else{if(n.specifiers&&n.specifiers.length>0){var o=[],u=[],c=[];e.each((function(t){var n=e.getValue().type;"ExportSpecifier"===n?o.push(r(t)):"ExportDefaultSpecifier"===n?u.push(r(t)):"ExportNamespaceSpecifier"===n&&c.push(rD(["* as ",r(t)]))}),"specifiers");var l=0!==c.length&&0!==o.length,p=0!==u.length&&(0!==c.length||0!==o.length),h=o.length>1||u.length>0||n.specifiers&&n.specifiers.some((function(e){return e.comments})),f="";0!==o.length&&(f=h?uD(rD(["{",cD(rD([t.bracketSpacing?iD:sD,nD(rD([",",iD]),o)])),fD(wD(t)?",":""),t.bracketSpacing?iD:sD,"}"])):rD(["{",t.bracketSpacing?" ":"",rD(o),t.bracketSpacing?" ":"","}"])),a.push("type"===n.exportKind?"type ":"",rD(u),rD([p?", ":""]),rD(c),rD([l?", ":""]),f)}else a.push("{}");n.source&&a.push(" from ",e.call(r,"source")),a.push(i)}return rD(a)}function UD(e,t){var r=Om(e);return r?zn.strictEqual(r.type,"DeclareExportDeclaration"):t.unshift("declare "),rD(t)}function zD(e,t,r){var n=e.getValue();return n.modifiers&&n.modifiers.length?rD([nD(" ",e.map(r,"modifiers"))," "]):""}function VD(e,t,r,n){var i=e.getValue();if(!i[n])return"";if(!Array.isArray(i[n]))return e.call(r,n);var a=e.getNode(2),s=e.getNode(4);return null!=a&&Hy(a)||0===i[n].length||1===i[n].length&&(rg(i[n][0])||"GenericTypeAnnotation"===i[n][0].type&&rg(i[n][0].id)||"TSTypeReference"===i[n][0].type&&rg(i[n][0].typeName)||"NullableTypeAnnotation"===i[n][0].type||s&&"VariableDeclarator"===s.type&&a&&"TSTypeAnnotation"===a.type&&"TSUnionType"!==i[n][0].type&&"UnionTypeAnnotation"!==i[n][0].type&&"TSConditionalType"!==i[n][0].type&&"TSMappedType"!==i[n][0].type)?rD(["<",nD(", ",e.map(r,n)),">"]):uD(rD(["<",cD(rD([sD,nD(rD([",",iD]),e.map(r,n))])),fD("typescript"!==t.parser&&wD(t,"all")?",":""),sD,">"]))}function $D(e,t,r){var n=e.getValue(),i=[];n.abstract&&i.push("abstract "),i.push("class"),n.id&&i.push(" ",e.call(r,"id")),i.push(e.call(r,"typeParameters"));var a=[];if(n.superClass){var s=rD(["extends ",e.call(r,"superClass"),e.call(r,"superTypeParameters")]);n.implements&&0!==n.implements.length||n.superClass.comments&&0!==n.superClass.comments.length?a.push(uD(rD([iD,e.call((function(e){return xa.printComments(e,(function(){return s}),t)}),"superClass")]))):i.push(rD([" ",e.call((function(e){return xa.printComments(e,(function(){return s}),t)}),"superClass")]))}else n.extends&&n.extends.length>0&&i.push(" extends ",nD(", ",e.map(r,"extends")));return n.mixins&&n.mixins.length>0&&a.push(iD,"mixins ",uD(cD(nD(rD([",",iD]),e.map(r,"mixins"))))),n.implements&&n.implements.length>0&&a.push(iD,"implements",uD(cD(rD([iD,nD(rD([",",iD]),e.map(r,"implements"))])))),a.length>0&&i.push(uD(cD(rD(a)))),n.body&&n.body.comments&&fy(t.originalText,n.body,t)?i.push(aD):i.push(" "),i.push(e.call(r,"body")),i}function WD(e){var t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"}function HD(e,t,r){var n=e.call(r,"property"),i=e.getValue(),a=WD(e);return i.computed?!i.property||Ry(i.property)?rD([a,"[",n,"]"]):uD(rD([a,"[",cD(rD([sD,n])),sD,"]"])):rD([a,".",n])}function JD(e,t,r){return rD(["::",e.call(r,"callee")])}function GD(e,t,r,n){return e?"":"JSXElement"===r.type&&!r.closingElement||n&&"JSXElement"===n.type&&!n.closingElement?1===t.length?sD:aD:sD}function XD(e,t,r,n){return e?aD:1===t.length?"JSXElement"===r.type&&!r.closingElement||n&&"JSXElement"===n.type&&!n.closingElement?aD:sD:aD}function QD(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&0!==e.right.properties.length||"ArrayExpression"===e.right.type&&0!==e.right.elements.length||!!Ty(e.right))}function YD(e,t,r,n){return fy(n.originalText,t,n)?cD(rD([aD,r])):Ey(t)&&!QD(t)||"ConditionalExpression"===t.type&&Ey(t.test)&&!QD(t.test)||"StringLiteralTypeAnnotation"===t.type||"ClassExpression"===t.type&&t.decorators&&t.decorators.length||("Identifier"===e.type||Vy(e)||"MemberExpression"===e.type)&&(Vy(t)||_y(t))&&"json"!==n.parser&&"json5"!==n.parser||"SequenceExpression"===t.type?uD(cD(rD([iD,r]))):rD([" ",r])}function KD(e,t,r,n,i,a){if(!n)return t;var s=YD(e,n,i,a);return uD(rD([t,r,s]))}function ZD(e,t,r){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||r?rD([" ",t]):cD(rD([iD,t]))}function eg(e,t,r){var n=Ky(e),i=r||"DirectiveLiteral"===e.type;return zm(n,t,i)}function tg(e){var t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}function rg(e){if(Uy(e)||My(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){var t=e.types.filter((function(e){return"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type})).length,r=e.types.filter((function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type})).length;if(e.types.length-1===t&&r>0)return!0}return!1}function ng(e){return e&&e.params&&1===e.params.length&&!e.params[0].comments&&("ObjectPattern"===e.params[0].type||"ArrayPattern"===e.params[0].type||"Identifier"===e.params[0].type&&e.params[0].typeAnnotation&&("TypeAnnotation"===e.params[0].typeAnnotation.type||"TSTypeAnnotation"===e.params[0].typeAnnotation.type)&&My(e.params[0].typeAnnotation.typeAnnotation)||"FunctionTypeParam"===e.params[0].type&&My(e.params[0].typeAnnotation)||"AssignmentPattern"===e.params[0].type&&("ObjectPattern"===e.params[0].left.type||"ArrayPattern"===e.params[0].left.type)&&("Identifier"===e.params[0].right.type||"ObjectExpression"===e.params[0].right.type&&0===e.params[0].right.properties.length||"ArrayExpression"===e.params[0].right.type&&0===e.params[0].right.elements.length))&&!e.rest}function ig(e,t,r,n){var i=[],a=[];return e.each((function(e){i.push(rD(a)),i.push(uD(n(e))),a=[",",iD],e.getValue()&&Ym(t.originalText,e.getValue(),t)&&a.push(sD)}),r),rD(i)}var ag={preprocess:Im,print:function(e,t,r,n){var i=e.getValue(),a=!1,s=function(e,t,r,n){var i=e.getValue(),a=t.semi?";":"";if(!i)return"";if("string"==typeof i)return i;var s=ty(e,t,r);if(s)return s;var o=[];switch(i.type){case"JsExpressionRoot":return e.call(r,"node");case"JsonRoot":return rD([e.call(r,"node"),aD]);case"File":return i.program&&i.program.interpreter&&o.push(e.call((function(e){return e.call(r,"interpreter")}),"program")),o.push(e.call(r,"program")),rD(o);case"Program":return i.directives&&e.each((function(e){o.push(r(e),a,aD),Ym(t.originalText,e.getValue(),t)&&o.push(aD)}),"directives"),o.push(e.call((function(e){return kD(e,t,r)}),"body")),o.push(xa.printDanglingComments(e,t,!0)),(i.body.length||i.comments)&&o.push(aD),rD(o);case"EmptyStatement":return"";case"ExpressionStatement":if(i.directive)return rD([eg(i.expression,t,!0),a]);if("__vue_event_binding"===t.parser){var u=e.getParentNode();if("Program"===u.type&&1===u.body.length&&u.body[0]===i)return rD([e.call(r,"expression"),ry(i.expression)?";":""])}return rD([e.call(r,"expression"),Jy(t,e)?"":a]);case"ParenthesizedExpression":return rD(["(",e.call(r,"expression"),")"]);case"AssignmentExpression":return KD(i.left,e.call(r,"left"),rD([" ",i.operator]),i.right,e.call(r,"right"),t);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":var l=e.getParentNode(),p=e.getParentNode(1),h=i!==l.body&&("IfStatement"===l.type||"WhileStatement"===l.type||"SwitchStatement"===l.type||"DoWhileStatement"===l.type),f=function e(t,r,n,i,a){var s=[],o=t.getValue();if(Ey(o)){jm(o.operator,o.left.operator)?s=s.concat(t.call((function(t){return e(t,r,n,!0,a)}),"left")):s.push(t.call(r,"left"));var u=QD(o),c=("|>"===o.operator||"NGPipeExpression"===o.type||"|"===o.operator&&"__vue_expression"===n.parser)&&!fy(n.originalText,o.right,n),l="NGPipeExpression"===o.type?"|":o.operator,p="NGPipeExpression"===o.type&&0!==o.arguments.length?uD(cD(rD([sD,": ",nD(rD([sD,":",fD(" ")]),t.map(r,"arguments").map((function(e){return lD(2,uD(e))})))]))):"",h=rD(u?[l," ",t.call(r,"right"),p]:[c?sD:"",l,c?" ":iD,t.call(r,"right"),p]),f=t.getParentNode(),d=!(a&&"LogicalExpression"===o.type)&&f.type!==o.type&&o.left.type!==o.type&&o.right.type!==o.type;s.push(" ",d?uD(h):h),i&&o.comments&&(s=xa.printComments(t,(function(){return rD(s)}),n))}else s.push(t.call(r));return s}(e,r,t,!1,h);if(h)return rD(f);if(("CallExpression"===l.type||"OptionalCallExpression"===l.type)&&l.callee===i||"UnaryExpression"===l.type||("MemberExpression"===l.type||"OptionalMemberExpression"===l.type)&&!l.computed)return uD(rD([cD(rD([sD,rD(f)])),sD]));var d="ReturnStatement"===l.type||"JSXExpressionContainer"===l.type&&"JSXAttribute"===p.type||"NGPipeExpression"!==i.type&&("NGRoot"===l.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===l.type&&"NGMicrosyntax"===p.type&&1===p.body.length)||i===l.body&&"ArrowFunctionExpression"===l.type||i!==l.body&&"ForStatement"===l.type||"ConditionalExpression"===l.type&&"ReturnStatement"!==p.type&&"CallExpression"!==p.type&&"OptionalCallExpression"!==p.type,m="AssignmentExpression"===l.type||"VariableDeclarator"===l.type||"ClassProperty"===l.type||"TSAbstractClassProperty"===l.type||"ClassPrivateProperty"===l.type||"ObjectProperty"===l.type||"Property"===l.type,y=Ey(i.left)&&jm(i.operator,i.left.operator);if(d||QD(i)&&!y||!QD(i)&&m)return uD(rD(f));if(0===f.length)return"";var D=Ty(i.right),g=rD(D?f.slice(1,-1):f.slice(1)),v=Symbol("logicalChain-"+ ++AD),E=uD(rD([f.length>0?f[0]:"",cD(g)]),{id:v});if(!D)return E;var b=qm(f);return uD(rD([E,fD(cD(b),b,{groupId:v})]));case"AssignmentPattern":return rD([e.call(r,"left")," = ",e.call(r,"right")]);case"TSTypeAssertion":var C=!("ArrayExpression"===i.expression.type||"ObjectExpression"===i.expression.type),x=uD(rD(["<",cD(rD([sD,e.call(r,"typeAnnotation")])),sD,">"])),w=rD([fD("("),cD(rD([sD,e.call(r,"expression")])),sD,fD(")")]);return C?pD([rD([x,e.call(r,"expression")]),rD([x,uD(w,{shouldBreak:!0})]),rD([x,e.call(r,"expression")])]):uD(rD([x,e.call(r,"expression")]));case"OptionalMemberExpression":case"MemberExpression":var F,S=e.getParentNode(),k=0;do{F=e.getParentNode(k),k++}while(F&&("MemberExpression"===F.type||"OptionalMemberExpression"===F.type||"TSNonNullExpression"===F.type));var T=F&&("NewExpression"===F.type||"BindExpression"===F.type||"VariableDeclarator"===F.type&&"Identifier"!==F.id.type||"AssignmentExpression"===F.type&&"Identifier"!==F.left.type)||i.computed||"Identifier"===i.object.type&&"Identifier"===i.property.type&&"MemberExpression"!==S.type&&"OptionalMemberExpression"!==S.type;return rD([e.call(r,"object"),T?HD(e,0,r):uD(cD(rD([sD,HD(e,0,r)])))]);case"MetaProperty":return rD([e.call(r,"meta"),".",e.call(r,"property")]);case"BindExpression":return i.object&&o.push(e.call(r,"object")),o.push(uD(cD(rD([sD,JD(e,0,r)])))),rD(o);case"Identifier":return rD([i.name,WD(e),OD(e,t,r)]);case"V8IntrinsicIdentifier":return rD(["%",i.name]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return rD(["...",e.call(r,"argument"),OD(e,t,r)]);case"FunctionDeclaration":case"FunctionExpression":return o.push(RD(e,r,t)),i.body||o.push(a),rD(o);case"ArrowFunctionExpression":i.async&&o.push("async "),LD(e,t)?o.push(e.call(r,"params",0)):o.push(uD(rD([jD(e,r,t,n&&(n.expandLastArg||n.expandFirstArg),!0),MD(e,r,t)])));var P=xa.printDanglingComments(e,t,!0,(function(e){var r=Zm(t.originalText,e,t);return"=>"===t.originalText.substr(r,2)}));P&&o.push(" ",P),o.push(" =>");var B=e.call((function(e){return r(e,n)}),"body");if(!fy(t.originalText,i.body,t)&&("ArrayExpression"===i.body.type||"ObjectExpression"===i.body.type||"BlockStatement"===i.body.type||Ty(i.body)||Wy(i.body,t.originalText,t)||"ArrowFunctionExpression"===i.body.type||"DoExpression"===i.body.type))return uD(rD([rD(o)," ",B]));if("SequenceExpression"===i.body.type)return uD(rD([rD(o),uD(rD([" (",cD(rD([sD,B])),sD,")"]))]));var N=(n&&n.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!(i.comments&&i.comments.length),I=n&&n.expandLastArg&&wD(t,"all"),O="ConditionalExpression"===i.body.type&&!Jm(i.body,!1);return uD(rD([rD(o),uD(rD([cD(rD([iD,O?fD("","("):"",B,O?fD("",")"):""])),N?rD([fD(I?",":""),sD]):""]))]));case"YieldExpression":return o.push("yield"),i.delegate&&o.push("*"),i.argument&&o.push(" ",e.call(r,"argument")),rD(o);case"AwaitExpression":o.push("await ",e.call(r,"argument"));var _=e.getParentNode();return("CallExpression"===_.type||"OptionalCallExpression"===_.type)&&_.callee===i||("MemberExpression"===_.type||"OptionalMemberExpression"===_.type)&&_.object===i?uD(rD([cD(rD([sD,rD(o)])),sD])):rD(o);case"ImportSpecifier":return i.importKind&&o.push(e.call(r,"importKind")," "),o.push(e.call(r,"imported")),i.local&&i.local.name!==i.imported.name&&o.push(" as ",e.call(r,"local")),rD(o);case"ExportSpecifier":return o.push(e.call(r,"local")),i.exported&&i.exported.name!==i.local.name&&o.push(" as ",e.call(r,"exported")),rD(o);case"ImportNamespaceSpecifier":return o.push("* as "),o.push(e.call(r,"local")),rD(o);case"ImportDefaultSpecifier":return e.call(r,"local");case"TSExportAssignment":return rD(["export = ",e.call(r,"expression"),a]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return qD(e,t,r);case"ExportAllDeclaration":return o.push("export "),"type"===i.exportKind&&o.push("type "),o.push("* from ",e.call(r,"source"),a),rD(o);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return e.call(r,"exported");case"ImportDeclaration":o.push("import "),i.importKind&&"value"!==i.importKind&&o.push(i.importKind+" ");var j=[],L=[];return i.specifiers&&i.specifiers.length>0?(e.each((function(e){var t=e.getValue();"ImportDefaultSpecifier"===t.type||"ImportNamespaceSpecifier"===t.type?j.push(r(e)):L.push(r(e))}),"specifiers"),j.length>0&&o.push(nD(", ",j)),j.length>0&&L.length>0&&o.push(", "),1===L.length&&0===j.length&&i.specifiers&&!i.specifiers.some((function(e){return e.comments}))?o.push(rD(["{",t.bracketSpacing?" ":"",rD(L),t.bracketSpacing?" ":"","}"])):L.length>=1&&o.push(uD(rD(["{",cD(rD([t.bracketSpacing?iD:sD,nD(rD([",",iD]),L)])),fD(wD(t)?",":""),t.bracketSpacing?iD:sD,"}"]))),o.push(" from ")):(i.importKind&&"type"===i.importKind||/{\s*}/.test(t.originalText.slice(t.locStart(i),t.locStart(i.source))))&&o.push("{} from "),o.push(e.call(r,"source"),a),rD(o);case"Import":return"import";case"TSModuleBlock":case"BlockStatement":var R=e.call((function(e){return kD(e,t,r)}),"body"),M=i.body.find((function(e){return"EmptyStatement"!==e.type})),q=i.directives&&i.directives.length>0,U=e.getParentNode(),z=e.getParentNode(1);return M||q||cy(i)||"ArrowFunctionExpression"!==U.type&&"FunctionExpression"!==U.type&&"FunctionDeclaration"!==U.type&&"ObjectMethod"!==U.type&&"ClassMethod"!==U.type&&"ClassPrivateMethod"!==U.type&&"ForStatement"!==U.type&&"WhileStatement"!==U.type&&"DoWhileStatement"!==U.type&&"DoExpression"!==U.type&&("CatchClause"!==U.type||z.finalizer)&&"TSModuleDeclaration"!==U.type?(o.push("{"),q&&e.each((function(e){o.push(cD(rD([aD,r(e),a]))),Ym(t.originalText,e.getValue(),t)&&o.push(aD)}),"directives"),M&&o.push(cD(rD([aD,R]))),o.push(xa.printDanglingComments(e,t)),o.push(aD,"}"),rD(o)):"{}";case"ReturnStatement":return o.push("return"),i.argument&&(Zy(t,i.argument)?o.push(rD([" (",cD(rD([aD,e.call(r,"argument")])),aD,")"])):"LogicalExpression"===i.argument.type||"BinaryExpression"===i.argument.type||"SequenceExpression"===i.argument.type?o.push(uD(rD([fD(" ("," "),cD(rD([sD,e.call(r,"argument")])),sD,fD(")")]))):o.push(" ",e.call(r,"argument"))),cy(i)&&o.push(" ",xa.printDanglingComments(e,t,!0)),o.push(a),rD(o);case"NewExpression":case"OptionalCallExpression":case"CallExpression":var V="NewExpression"===i.type,$=WD(e);if(!V&&"Identifier"===i.callee.type&&("require"===i.callee.name||"define"===i.callee.name)||1===i.arguments.length&&Wy(i.arguments[0],t.originalText,t)||!V&&Hy(i,e.getParentNode()))return rD([V?"new ":"",e.call(r,"callee"),$,_D(e,0,r),rD(["(",nD(", ",e.map(r,"arguments")),")"])]);var W="Identifier"===i.callee.type&&ly(i.callee.trailingComments);if(W&&(i.callee.trailingComments[0].printed=!0),!V&&jy(i.callee))return function(e,t,r){var n=[];function i(e){var r=t.originalText,n=Zm(r,e,t);return")"==r.charAt(n)?Km(r,n+1,t):Ym(r,e,t)}var a=e.getValue();n.unshift({node:a,printed:rD([WD(e),_D(e,0,r),ID(e,t,r)])}),e.call((function(e){return function e(a){var s=a.getValue();"CallExpression"!==s.type&&"OptionalCallExpression"!==s.type||!jy(s.callee)&&"CallExpression"!==s.callee.type&&"OptionalCallExpression"!==s.callee.type?jy(s)?(n.unshift({node:s,needsParens:Fm(a,t),printed:xa.printComments(a,(function(){return"OptionalMemberExpression"===s.type||"MemberExpression"===s.type?HD(a,0,r):JD(a,0,r)}),t)}),a.call((function(t){return e(t)}),"object")):"TSNonNullExpression"===s.type?(n.unshift({node:s,printed:xa.printComments(a,(function(){return"!"}),t)}),a.call((function(t){return e(t)}),"expression")):n.unshift({node:s,printed:a.call(r)}):(n.unshift({node:s,printed:rD([xa.printComments(a,(function(){return rD([WD(a),_D(a,0,r),ID(a,t,r)])}),t),i(s)?aD:""])}),a.call((function(t){return e(t)}),"callee"))}(e)}),"callee");for(var s=[],o=[n[0]],u=1;u0&&s.push(o);var p=s.length>=2&&!s[1][0].node.comments&&function(r){var n=e.getParentNode(),i=n&&"ExpressionStatement"===n.type,a=r[1].length&&r[1][0].node.computed;if(1===r[0].length){var s=r[0][0].node;return"ThisExpression"===s.type||"Identifier"===s.type&&(l(s.name)||i&&function(e){return e.length<=t.tabWidth}(s.name)||a)}var o=qm(r[0]).node;return("MemberExpression"===o.type||"OptionalMemberExpression"===o.type)&&"Identifier"===o.property.type&&(l(o.property.name)||a)}(s);function h(e){var t=e.map((function(e){return e.printed}));return e.length>0&&e[e.length-1].needsParens?rD(["("].concat(A(t),[")"])):rD(t)}var f=s.map(h),d=rD(f),m=p?3:2,y=s.slice(0,m).reduce((function(e,t){return e.concat(t)}),[]),D=y.slice(1,-1).some((function(e){return hy(e.node)}))||y.slice(0,-1).some((function(e){return gy(e.node)}))||s[m]&&hy(s[m][0].node);if(s.length<=m&&!D)return Iy(e)?d:uD(d);var g,v,E=qm(p?s.slice(1,2)[0]:s[0]).node,b="CallExpression"!==E.type&&"OptionalCallExpression"!==E.type&&i(E),C=rD([h(s[0]),p?rD(s.slice(1,2).map(h)):"",b?aD:"",function(e){return 0===e.length?"":cD(uD(rD([aD,nD(aD,e.map(h))])))}(s.slice(p?2:1))]),x=n.map((function(e){return e.node})).filter(by);return D||x.length>=3||f.slice(0,-1).some(vD)||(g=qm(f),v=qm(qm(s)).node,by(v)&&vD(g)&&x.slice(0,-1).some((function(e){return e.arguments.some(Fy)})))?uD(C):rD([vD(d)||b?dD:"",pD([d,C])])}(e,t,r);var H=rD([V?"new ":"",e.call(r,"callee"),$,W?"/*:: ".concat(i.callee.trailingComments[0].value.substring(2).trim()," */"):"",_D(e,0,r),ID(e,t,r)]);return by(i.callee)?uD(H):H;case"TSInterfaceDeclaration":return i.declare&&o.push("declare "),o.push(i.abstract?"abstract ":"",zD(e,0,r),"interface ",e.call(r,"id"),i.typeParameters?e.call(r,"typeParameters"):""," "),i.extends&&i.extends.length&&o.push(uD(cD(rD([sD,"extends ",(1===i.extends.length?vy:cD)(nD(rD([",",iD]),e.map(r,"extends")))," "])))),o.push(e.call(r,"body")),rD(o);case"ObjectTypeInternalSlot":return rD([i.static?"static ":"","[[",e.call(r,"id"),"]]",WD(e),i.method?"":": ",e.call(r,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":var J;J="TSTypeLiteral"===i.type?"members":"TSInterfaceBody"===i.type?"body":"properties";var G="ObjectTypeAnnotation"===i.type,X=[];G&&X.push("indexers","callProperties","internalSlots"),X.push(J);var Q=X.map((function(e){return i[e][0]})).sort((function(e,r){return t.locStart(e)-t.locStart(r)}))[0],Y=e.getParentNode(0),K=G&&Y&&("InterfaceDeclaration"===Y.type||"DeclareInterface"===Y.type||"DeclareClass"===Y.type)&&"body"===e.getName(),Z="TSInterfaceBody"===i.type||K||"ObjectPattern"===i.type&&"FunctionDeclaration"!==Y.type&&"FunctionExpression"!==Y.type&&"ArrowFunctionExpression"!==Y.type&&"ObjectMethod"!==Y.type&&"ClassMethod"!==Y.type&&"ClassPrivateMethod"!==Y.type&&"AssignmentPattern"!==Y.type&&"CatchClause"!==Y.type&&i.properties.some((function(e){return e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)}))||"ObjectPattern"!==i.type&&Q&&Mm(t.originalText,t.locStart(i),t.locStart(Q)),ee=K?";":"TSInterfaceBody"===i.type||"TSTypeLiteral"===i.type?fD(a,";"):",",te=i.exact?"{|":"{",re=i.exact?"|}":"}",ne=[];X.forEach((function(n){e.each((function(e){var n=e.getValue();ne.push({node:n,printed:r(e),loc:t.locStart(n)})}),n)}));var ie=[],ae=ne.sort((function(e,t){return e.loc-t.loc})).map((function(e){var r=rD(ie.concat(uD(e.printed)));return ie=[ee,iD],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!Wm(e.node)||ie.shift(),Ym(t.originalText,e.node,t)&&ie.push(aD),r}));i.inexact&&ae.push(rD(ie.concat(uD("..."))));var se,oe=qm(i[J]),ue=!(oe&&("RestProperty"===oe.type||"RestElement"===oe.type||Wm(oe)||i.inexact));if(0===ae.length){if(!cy(i))return rD([te,re,OD(e,t,r)]);se=uD(rD([te,xa.printDanglingComments(e,t),sD,re,WD(e),OD(e,t,r)]))}else se=rD([te,cD(rD([t.bracketSpacing?iD:sD,rD(ae)])),fD(ue&&(","!==ee||wD(t))?ee:""),rD([t.bracketSpacing?iD:sD,re]),WD(e),OD(e,t,r)]);var ce=e.getParentNode(2);return"ObjectPattern"===i.type&&Y&&ng(Y)&&!i.decorators&&Y.params[0]===i||rg(i)&&ce&&ng(ce)&&ce.params[0].typeAnnotation&&ce.params[0].typeAnnotation.typeAnnotation===i?se:uD(se,{shouldBreak:Z});case"ObjectProperty":case"Property":return i.method||"get"===i.kind||"set"===i.kind?PD(e,t,r):(i.shorthand?o.push(e.call(r,"value")):o.push(KD(i.key,TD(e,t,r),":",i.value,e.call(r,"value"),t)),rD(o));case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":case"TSAbstractMethodDefinition":return i.decorators&&0!==i.decorators.length&&o.push(FD(e,t,r)),i.accessibility&&o.push(i.accessibility+" "),i.static&&o.push("static "),"TSAbstractMethodDefinition"===i.type&&o.push("abstract "),o.push(PD(e,t,r)),rD(o);case"ObjectMethod":return PD(e,t,r);case"Decorator":return rD(["@",e.call(r,"expression"),e.call(r,"callee")]);case"ArrayExpression":case"ArrayPattern":if(0===i.elements.length)cy(i)?o.push(uD(rD(["[",xa.printDanglingComments(e,t),sD,"]"]))):o.push("[]");else{var le=qm(i.elements),pe=!(le&&"RestElement"===le.type),he=pe&&null===le,fe=i.elements.length>1&&i.elements.every((function(e,t,r){var n=e&&e.type;if("ArrayExpression"!==n&&"ObjectExpression"!==n)return!1;var i=r[t+1];if(i&&n!==i.type)return!1;var a="ArrayExpression"===n?"elements":"properties";return e[a]&&e[a].length>1}));o.push(uD(rD(["[",cD(rD([sD,ig(e,t,"elements",r)])),he?",":"",fD(pe&&!he&&wD(t)?",":""),xa.printDanglingComments(e,t,!0),sD,"]"]),{shouldBreak:fe}))}return o.push(WD(e),OD(e,t,r)),rD(o);case"SequenceExpression":var de=e.getParentNode(0);if("ExpressionStatement"===de.type||"ForStatement"===de.type){var me=[];return e.each((function(e){0===e.getName()?me.push(r(e)):me.push(",",cD(rD([iD,r(e)])))}),"expressions"),uD(rD(me))}return uD(rD([nD(rD([",",iD]),e.map(r,"expressions"))]));case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":return"null";case"RegExpLiteral":return tg(i);case"NumericLiteral":return Vm(i.extra.raw);case"BigIntLiteral":return(i.bigint||(i.extra?i.extra.raw:i.raw)).toLowerCase();case"BooleanLiteral":case"StringLiteral":case"Literal":if(i.regex)return tg(i.regex);if("number"==typeof i.value)return Vm(i.raw);if("string"!=typeof i.value)return""+i.value;var ye=e.getParentNode(1),De="typescript"===t.parser&&"string"==typeof i.value&&ye&&("Program"===ye.type||"BlockStatement"===ye.type);return eg(i,t,De);case"Directive":return e.call(r,"value");case"DirectiveLiteral":return eg(i,t);case"UnaryExpression":return o.push(i.operator),/[a-z]$/.test(i.operator)&&o.push(" "),i.argument.comments&&i.argument.comments.length>0?o.push(uD(rD(["(",cD(rD([sD,e.call(r,"argument")])),sD,")"]))):o.push(e.call(r,"argument")),rD(o);case"UpdateExpression":return o.push(e.call(r,"argument"),i.operator),i.prefix&&o.reverse(),rD(o);case"ConditionalExpression":return SD(e,t,r,{beforeParts:function(){return[e.call(r,"test")]},afterParts:function(e){return[e?sD:""]},shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyName:"test",breakNested:!0});case"VariableDeclaration":var ge,ve=e.map((function(e){return r(e)}),"declarations"),Ee=e.getParentNode(),be="ForStatement"===Ee.type||"ForInStatement"===Ee.type||"ForOfStatement"===Ee.type||"ForAwaitStatement"===Ee.type,Ce=i.declarations.some((function(e){return e.init}));return 1!==ve.length||i.declarations[0].comments?ve.length>0&&(ge=cD(ve[0])):ge=ve[0],o=[i.declare?"declare ":"",i.kind,ge?rD([" ",ge]):"",cD(rD(ve.slice(1).map((function(e){return rD([",",Ce&&!be?aD:iD,e])}))))],be&&Ee.body!==i||o.push(a),uD(rD(o));case"TSTypeAliasDeclaration":i.declare&&o.push("declare ");var xe=YD(i.id,i.typeAnnotation,i.typeAnnotation&&e.call(r,"typeAnnotation"),t);return o.push("type ",e.call(r,"id"),e.call(r,"typeParameters")," =",xe,a),uD(rD(o));case"VariableDeclarator":return KD(i.id,e.call(r,"id")," =",i.init,i.init&&e.call(r,"init"),t);case"WithStatement":return uD(rD(["with (",e.call(r,"object"),")",ZD(i.body,e.call(r,"body"))]));case"IfStatement":var Ae=ZD(i.consequent,e.call(r,"consequent")),we=uD(rD(["if (",uD(rD([cD(rD([sD,e.call(r,"test")])),sD])),")",Ae]));if(o.push(we),i.alternate){var Fe=gy(i.consequent)&&i.consequent.comments.some((function(e){return e.trailing&&!dd.isBlockComment(e)}))||Yy(i),Se="BlockStatement"===i.consequent.type&&!Fe;o.push(Se?" ":aD),cy(i)&&o.push(xa.printDanglingComments(e,t,!0),Fe?aD:" "),o.push("else",uD(ZD(i.alternate,e.call(r,"alternate"),"IfStatement"===i.alternate.type)))}return rD(o);case"ForStatement":var ke=ZD(i.body,e.call(r,"body")),Te=xa.printDanglingComments(e,t,!0),Pe=Te?rD([Te,sD]):"";return i.init||i.test||i.update?rD([Pe,uD(rD(["for (",uD(rD([cD(rD([sD,e.call(r,"init"),";",iD,e.call(r,"test"),";",iD,e.call(r,"update")])),sD])),")",ke]))]):rD([Pe,uD(rD(["for (;;)",ke]))]);case"WhileStatement":return uD(rD(["while (",uD(rD([cD(rD([sD,e.call(r,"test")])),sD])),")",ZD(i.body,e.call(r,"body"))]));case"ForInStatement":return uD(rD([i.each?"for each (":"for (",e.call(r,"left")," in ",e.call(r,"right"),")",ZD(i.body,e.call(r,"body"))]));case"ForOfStatement":case"ForAwaitStatement":var Be="ForAwaitStatement"===i.type||i.await;return uD(rD(["for",Be?" await":""," (",e.call(r,"left")," of ",e.call(r,"right"),")",ZD(i.body,e.call(r,"body"))]));case"DoWhileStatement":var Ne=ZD(i.body,e.call(r,"body")),Ie=uD(rD(["do",Ne]));return o=[Ie],"BlockStatement"===i.body.type?o.push(" "):o.push(aD),o.push("while ("),o.push(uD(rD([cD(rD([sD,e.call(r,"test")])),sD])),")",a),rD(o);case"DoExpression":return rD(["do ",e.call(r,"body")]);case"BreakStatement":return o.push("break"),i.label&&o.push(" ",e.call(r,"label")),o.push(a),rD(o);case"ContinueStatement":return o.push("continue"),i.label&&o.push(" ",e.call(r,"label")),o.push(a),rD(o);case"LabeledStatement":return"EmptyStatement"===i.body.type?rD([e.call(r,"label"),":;"]):rD([e.call(r,"label"),": ",e.call(r,"body")]);case"TryStatement":return rD(["try ",e.call(r,"block"),i.handler?rD([" ",e.call(r,"handler")]):"",i.finalizer?rD([" finally ",e.call(r,"finalizer")]):""]);case"CatchClause":if(i.param){var Oe=i.param.comments&&i.param.comments.some((function(e){return!dd.isBlockComment(e)||e.leading&&Rm(t.originalText,t.locEnd(e))||e.trailing&&Rm(t.originalText,t.locStart(e),{backwards:!0})})),_e=e.call(r,"param");return rD(["catch ",rD(Oe?["(",cD(rD([sD,_e])),sD,") "]:["(",_e,") "]),e.call(r,"body")])}return rD(["catch ",e.call(r,"body")]);case"ThrowStatement":return rD(["throw ",e.call(r,"argument"),a]);case"SwitchStatement":return rD([uD(rD(["switch (",cD(rD([sD,e.call(r,"discriminant")])),sD,")"]))," {",i.cases.length>0?cD(rD([aD,nD(aD,e.map((function(e){var n=e.getValue();return rD([e.call(r),i.cases.indexOf(n)!==i.cases.length-1&&Ym(t.originalText,n,t)?aD:""])}),"cases"))])):"",aD,"}"]);case"SwitchCase":i.test?o.push("case ",e.call(r,"test"),":"):o.push("default:");var je=i.consequent.filter((function(e){return"EmptyStatement"!==e.type}));if(je.length>0){var Le=e.call((function(e){return kD(e,t,r)}),"consequent");o.push(1===je.length&&"BlockStatement"===je[0].type?rD([" ",Le]):cD(rD([aD,Le])))}return rD(o);case"DebuggerStatement":return rD(["debugger",a]);case"JSXAttribute":if(o.push(e.call(r,"name")),i.value){var Re;if(Vy(i.value)){var Me=Ky(i.value).replace(/'/g,"'").replace(/"/g,'"'),qe=Qm(Me,t.jsxSingleQuote?"'":'"'),Ue="'"===qe?"'":""";Me=Me.slice(1,-1).replace(new RegExp(qe,"g"),Ue),Re=rD([qe,Me,qe])}else Re=e.call(r,"value");o.push("=",Re)}return rD(o);case"JSXIdentifier":return""+i.name;case"JSXNamespacedName":return nD(":",[e.call(r,"namespace"),e.call(r,"name")]);case"JSXMemberExpression":return nD(".",[e.call(r,"object"),e.call(r,"property")]);case"TSQualifiedName":return nD(".",[e.call(r,"left"),e.call(r,"right")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return rD(["{",e.call((function(e){var n=rD(["...",r(e)]),i=e.getValue();return i.comments&&i.comments.length?rD([cD(rD([sD,xa.printComments(e,(function(){return n}),t)])),sD]):n}),"JSXSpreadAttribute"===i.type?"argument":"expression"),"}"]);case"JSXExpressionContainer":var ze=e.getParentNode(0),Ve=!("JSXAttribute"===ze.type&&i.expression.comments&&i.expression.comments.length>0)&&("ArrayExpression"===i.expression.type||"ObjectExpression"===i.expression.type||"ArrowFunctionExpression"===i.expression.type||"CallExpression"===i.expression.type||"OptionalCallExpression"===i.expression.type||"FunctionExpression"===i.expression.type||"JSXEmptyExpression"===i.expression.type||"TemplateLiteral"===i.expression.type||"TaggedTemplateExpression"===i.expression.type||"DoExpression"===i.expression.type||Ty(ze)&&("ConditionalExpression"===i.expression.type||Ey(i.expression)));return uD(rD(Ve?["{",e.call(r,"expression"),mD,"}"]:["{",cD(rD([sD,e.call(r,"expression")])),sD,mD,"}"]));case"JSXFragment":case"JSXElement":var $e=xa.printComments(e,(function(){return function(e,t,r){var n=e.getValue();if("JSXElement"===n.type&&Cy(n))return rD([e.call(r,"openingElement"),e.call(r,"closingElement")]);var i="JSXElement"===n.type?e.call(r,"openingElement"):e.call(r,"openingFragment"),a="JSXElement"===n.type?e.call(r,"closingElement"):e.call(r,"closingFragment");if(1===n.children.length&&"JSXExpressionContainer"===n.children[0].type&&("TemplateLiteral"===n.children[0].expression.type||"TaggedTemplateExpression"===n.children[0].expression.type))return rD([i,rD(e.map(r,"children")),a]);n.children=n.children.map((function(e){return Py(e)?{type:"JSXText",value:" ",raw:" "}:e}));for(var s=n.children.filter(Ty).length>0,o=n.children.filter((function(e){return"JSXExpressionContainer"===e.type})).length>1,u="JSXElement"===n.type&&n.openingElement.attributes.length>1,c=vD(i)||s||u||o,l=t.singleQuote?"{' '}":'{" "}',p=fD(rD([l,sD])," "),h=n.openingElement&&n.openingElement.name&&"fbt"===n.openingElement.name.name,f=function(e,t,r,n,i){var a=e.getValue(),s=[];return e.map((function(e,t){var o=e.getValue();if(Ny(o)){var u=Ky(o);if(Oy(o)){var c,l=u.split(Qy);if(""===l[0]){if(s.push(""),l.shift(),/\n/.test(l[0])){var p=a.children[t+1];s.push(XD(i,l[1],o,p))}else s.push(n);l.shift()}if(""===qm(l)&&(l.pop(),c=l.pop()),0===l.length)return;if(l.forEach((function(e,t){t%2==1?s.push(iD):s.push(e)})),void 0!==c)if(/\n/.test(c)){var h=a.children[t+1];s.push(XD(i,qm(s),o,h))}else s.push(n);else{var f=a.children[t+1];s.push(GD(i,qm(s),o,f))}}else/\n/.test(u)?u.match(/\n/g).length>1&&(s.push(""),s.push(aD)):(s.push(""),s.push(n))}else{var d=r(e);s.push(d);var m=a.children[t+1];if(m&&Oy(m)){var y=Ky(m).trim().split(Qy)[0];s.push(GD(i,y,o,m))}else s.push(aD)}}),"children"),s}(e,0,r,p,h),d=n.children.filter((function(e){return Oy(e)})).length>0,m=f.length-2;m>=0;m--){var y=""===f[m]&&""===f[m+1],D=f[m]===aD&&""===f[m+1]&&f[m+2]===aD,g=(f[m]===sD||f[m]===aD)&&""===f[m+1]&&f[m+2]===p,v=f[m]===p&&""===f[m+1]&&(f[m+2]===sD||f[m+2]===aD),E=f[m]===p&&""===f[m+1]&&f[m+2]===p,b=f[m]===sD&&""===f[m+1]&&f[m+2]===aD||f[m]===aD&&""===f[m+1]&&f[m+2]===sD;D&&d||y||g||E||b?f.splice(m,2):v&&f.splice(m+1,2)}for(;f.length&&(ED(qm(f))||bD(qm(f)));)f.pop();for(;f.length&&(ED(f[0])||bD(f[0]))&&(ED(f[1])||bD(f[1]));)f.shift(),f.shift();var C=[];f.forEach((function(e,t){if(e===p){if(1===t&&""===f[t-1])return 2===f.length?void C.push(l):void C.push(rD([l,aD]));if(t===f.length-1)return void C.push(l);if(""===f[t-1]&&f[t-2]===aD)return void C.push(l)}C.push(e),vD(e)&&(c=!0)}));var x=d?hD(C):uD(rD(C),{shouldBreak:!0}),A=uD(rD([i,cD(rD([aD,x])),aD,a]));return c?A:pD([uD(rD([i,rD(f),a])),A])}(e,t,r)}),t);return function(e,t,r){var n=e.getParentNode();if(!n)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[n.type])return t;var i=Xm(e,["ArrowFunctionExpression","CallExpression","JSXExpressionContainer"])||Xm(e,["ArrowFunctionExpression","OptionalCallExpression","JSXExpressionContainer"]),a=Fm(e,r);return uD(rD([a?"":fD("("),cD(rD([sD,t])),sD,a?"":fD(")")]),{shouldBreak:i})}(e,$e,t);case"JSXOpeningElement":var We=e.getValue(),He=We.name&&We.name.comments&&We.name.comments.length>0||We.typeParameters&&We.typeParameters.comments&&We.typeParameters.comments.length>0;if(We.selfClosing&&!We.attributes.length&&!He)return rD(["<",e.call(r,"name"),e.call(r,"typeParameters")," />"]);if(We.attributes&&1===We.attributes.length&&We.attributes[0].value&&Vy(We.attributes[0].value)&&!We.attributes[0].value.value.includes("\n")&&!He&&(!We.attributes[0].comments||!We.attributes[0].comments.length))return uD(rD(["<",e.call(r,"name"),e.call(r,"typeParameters")," ",rD(e.map(r,"attributes")),We.selfClosing?" />":">"]));var Je=We.attributes.length&&gy(qm(We.attributes)),Ge=!We.attributes.length&&!He||t.jsxBracketSameLine&&(!He||We.attributes.length)&&!Je,Xe=We.attributes&&We.attributes.some((function(e){return e.value&&Vy(e.value)&&e.value.value.includes("\n")}));return uD(rD(["<",e.call(r,"name"),e.call(r,"typeParameters"),rD([cD(rD(e.map((function(e){return rD([iD,r(e)])}),"attributes"))),We.selfClosing?iD:Ge?">":sD]),We.selfClosing?"/>":Ge?"":">"]),{shouldBreak:Xe});case"JSXClosingElement":return rD([""]);case"JSXOpeningFragment":case"JSXClosingFragment":var Qe=i.comments&&i.comments.length,Ye=Qe&&!i.comments.every(dd.isBlockComment),Ke="JSXOpeningFragment"===i.type;return rD([Ke?"<":""]);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":var Ze=i.comments&&!i.comments.every(dd.isBlockComment);return rD([xa.printDanglingComments(e,t,!Ze),Ze?aD:""]);case"ClassBody":return i.comments||0!==i.body.length?rD(["{",i.body.length>0?cD(rD([aD,e.call((function(e){return kD(e,t,r)}),"body")])):xa.printDanglingComments(e,t),aD,"}"]):"{}";case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":i.decorators&&0!==i.decorators.length&&o.push(FD(e,t,r)),i.accessibility&&o.push(i.accessibility+" "),i.declare&&o.push("declare "),i.static&&o.push("static "),"TSAbstractClassProperty"===i.type&&o.push("abstract "),i.readonly&&o.push("readonly ");var et=sy(i);return et&&o.push(et),o.push(TD(e,t,r),WD(e),OD(e,t,r)),i.value&&o.push(" =",YD(i.key,i.value,e.call(r,"value"),t)),o.push(a),uD(rD(o));case"ClassDeclaration":case"ClassExpression":return i.declare&&o.push("declare "),o.push(rD($D(e,t,r))),rD(o);case"TSInterfaceHeritage":return o.push(e.call(r,"expression")),i.typeParameters&&o.push(e.call(r,"typeParameters")),rD(o);case"TemplateElement":return nD(oD,i.value.raw.split(/\r?\n/g));case"TemplateLiteral":var tt=e.map(r,"expressions"),rt=e.getParentNode();if(ky(i,rt)){var nt=function(e,t,r){var n=e.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(n.length>1||n.some((function(e){return 0!==e.length}))){for(var i=[],a=t.map((function(e){return"${"+xD(e,Object.assign({},r,{printWidth:1/0,endOfLine:"lf"})).formatted+"}"})),s=[{hasLineBreak:!1,cells:[]}],o=1;o ":": ",e.call(r,"returnType"),e.call(r,"predicate"),e.call(r,"typeAnnotation")),ht&&o.push(")"),uD(rD(o));case"TSRestType":return rD(["...",e.call(r,"typeAnnotation")]);case"TSOptionalType":return rD([e.call(r,"typeAnnotation"),"?"]);case"FunctionTypeParam":return rD([e.call(r,"name"),WD(e),i.name?": ":"",e.call(r,"typeAnnotation")]);case"GenericTypeAnnotation":return rD([e.call(r,"id"),e.call(r,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return("DeclareInterface"===i.type||i.declare)&&o.push("declare "),o.push("interface"),"DeclareInterface"!==i.type&&"InterfaceDeclaration"!==i.type||o.push(" ",e.call(r,"id"),e.call(r,"typeParameters")),i.extends.length>0&&o.push(uD(cD(rD([iD,"extends ",(1===i.extends.length?vy:cD)(nD(rD([",",iD]),e.map(r,"extends")))])))),o.push(" ",e.call(r,"body")),uD(rD(o));case"ClassImplements":case"InterfaceExtends":return rD([e.call(r,"id"),e.call(r,"typeParameters")]);case"TSClassImplements":return rD([e.call(r,"expression"),e.call(r,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":for(var ft=e.map(r,"types"),dt=[],mt=!1,yt=0;yt1&&(mt=!0),dt.push(" & ",yt>1?cD(ft[yt]):ft[yt])):dt.push(cD(rD([" &",iD,ft[yt]])));return uD(rD(dt));case"TSUnionType":case"UnionTypeAnnotation":var Dt=e.getParentNode(),gt=!("TypeParameterInstantiation"===Dt.type||"TSTypeParameterInstantiation"===Dt.type||"GenericTypeAnnotation"===Dt.type||"TSTypeReference"===Dt.type||"TSTypeAssertion"===Dt.type||"TupleTypeAnnotation"===Dt.type||"TSTupleType"===Dt.type||"FunctionTypeParam"===Dt.type&&!Dt.name||("TypeAlias"===Dt.type||"VariableDeclarator"===Dt.type||"TSTypeAliasDeclaration"===Dt.type)&&fy(t.originalText,i,t)),vt=rg(i),Et=e.map((function(e){var n=e.call(r);return vt||(n=lD(2,n)),xa.printComments(e,(function(){return n}),t)}),"types");if(vt)return nD(" | ",Et);var bt=gt&&!fy(t.originalText,i,t),Ct=rD([fD(rD([bt?iD:"","| "])),nD(rD([iD,"| "]),Et)]);return Fm(e,t)?uD(rD([cD(Ct),sD])):"TupleTypeAnnotation"===Dt.type&&Dt.types.length>1||"TSTupleType"===Dt.type&&Dt.elementTypes.length>1?uD(rD([cD(rD([fD(rD(["(",sD])),Ct])),sD,fD(")")])):uD(gt?cD(Ct):Ct);case"NullableTypeAnnotation":return rD(["?",e.call(r,"typeAnnotation")]);case"TSNullKeyword":case"NullLiteralTypeAnnotation":return"null";case"ThisTypeAnnotation":return"this";case"NumberTypeAnnotation":return"number";case"ObjectTypeCallProperty":return i.static&&o.push("static "),o.push(e.call(r,"value")),rD(o);case"ObjectTypeIndexer":var xt=sy(i);return rD([xt||"","[",e.call(r,"id"),i.id?": ":"",e.call(r,"key"),"]: ",e.call(r,"value")]);case"ObjectTypeProperty":var At=sy(i),wt="";return i.proto?wt="proto ":i.static&&(wt="static "),rD([wt,Sy(i)?i.kind+" ":"",At||"",TD(e,t,r),WD(e),wy(i,t)?"":": ",e.call(r,"value")]);case"QualifiedTypeIdentifier":return rD([e.call(r,"qualification"),".",e.call(r,"id")]);case"StringLiteralTypeAnnotation":return eg(i,t);case"NumberLiteralTypeAnnotation":return zn.strictEqual(c(i.value),"number"),null!=i.extra?Vm(i.extra.raw):Vm(i.raw);case"StringTypeAnnotation":return"string";case"DeclareTypeAlias":case"TypeAlias":("DeclareTypeAlias"===i.type||i.declare)&&o.push("declare ");var Ft=YD(i.id,i.right,e.call(r,"right"),t);return o.push("type ",e.call(r,"id"),e.call(r,"typeParameters")," =",Ft,a),uD(rD(o));case"TypeCastExpression":var St=e.getValue(),kt=St&&St.typeAnnotation&&St.typeAnnotation.range&&t.originalText.substring(St.typeAnnotation.range[0]).match(/^\/\*\s*:/);return rD(["(",e.call(r,"expression"),kt?" /*":"",": ",e.call(r,"typeAnnotation"),kt?" */":"",")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":var Tt=e.getValue(),Pt=Tt.range?t.originalText.substring(0,Tt.range[0]).lastIndexOf("/*"):-1;return Pt>=0&&t.originalText.substring(Pt).match(/^\/\*\s*::/)?rD(["/*:: ",VD(e,t,r,"params")," */"]):VD(e,t,r,"params");case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return VD(e,t,r,"params");case"TSTypeParameter":case"TypeParameter":var Bt=e.getParentNode();if("TSMappedType"===Bt.type)return o.push("[",e.call(r,"name")),i.constraint&&o.push(" in ",e.call(r,"constraint")),o.push("]"),rD(o);var Nt=sy(i);Nt&&o.push(Nt),o.push(e.call(r,"name")),i.bound&&(o.push(": "),o.push(e.call(r,"bound"))),i.constraint&&o.push(" extends ",e.call(r,"constraint")),i.default&&o.push(" = ",e.call(r,"default"));var It=e.getNode(2);return Bt.params&&1===Bt.params.length&&Gy(t)&&!i.constraint&&"ArrowFunctionExpression"===It.type&&o.push(","),rD(o);case"TypeofTypeAnnotation":return rD(["typeof ",e.call(r,"argument")]);case"VoidTypeAnnotation":return"void";case"InferredPredicate":return"%checks";case"DeclaredPredicate":return rD(["%checks(",e.call(r,"value"),")"]);case"TSAbstractKeyword":return"abstract";case"TSAnyKeyword":return"any";case"TSAsyncKeyword":return"async";case"TSBooleanKeyword":return"boolean";case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSNumberKeyword":return"number";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSSymbolKeyword":return"symbol";case"TSStaticKeyword":return"static";case"TSStringKeyword":return"string";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"TSVoidKeyword":return"void";case"TSAsExpression":return rD([e.call(r,"expression")," as ",e.call(r,"typeAnnotation")]);case"TSArrayType":return rD([e.call(r,"elementType"),"[]"]);case"TSPropertySignature":return i.export&&o.push("export "),i.accessibility&&o.push(i.accessibility+" "),i.static&&o.push("static "),i.readonly&&o.push("readonly "),o.push(TD(e,t,r),WD(e)),i.typeAnnotation&&(o.push(": "),o.push(e.call(r,"typeAnnotation"))),i.initializer&&o.push(" = ",e.call(r,"initializer")),rD(o);case"TSParameterProperty":return i.accessibility&&o.push(i.accessibility+" "),i.export&&o.push("export "),i.static&&o.push("static "),i.readonly&&o.push("readonly "),o.push(e.call(r,"parameter")),rD(o);case"TSTypeReference":return rD([e.call(r,"typeName"),VD(e,t,r,"typeParameters")]);case"TSTypeQuery":return rD(["typeof ",e.call(r,"exprName")]);case"TSIndexSignature":var Ot=e.getParentNode();return rD([i.export?"export ":"",i.accessibility?rD([i.accessibility," "]):"",i.static?"static ":"",i.readonly?"readonly ":"","[",i.parameters?rD(e.map(r,"parameters")):"","]: ",e.call(r,"typeAnnotation"),"ClassBody"===Ot.type?a:""]);case"TSTypePredicate":return rD([i.asserts?"asserts ":"",e.call(r,"parameterName"),i.typeAnnotation?rD([" is ",e.call(r,"typeAnnotation")]):""]);case"TSNonNullExpression":return rD([e.call(r,"expression"),"!"]);case"TSThisType":return"this";case"TSImportType":return rD([i.isTypeOf?"typeof ":"","import(",e.call(r,"parameter"),")",i.qualifier?rD([".",e.call(r,"qualifier")]):"",VD(e,t,r,"typeParameters")]);case"TSLiteralType":return e.call(r,"literal");case"TSIndexedAccessType":return rD([e.call(r,"objectType"),"[",e.call(r,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSCallSignatureDeclaration"!==i.type&&o.push("new "),o.push(uD(jD(e,r,t,!1,!0))),i.returnType){var _t="TSConstructorType"===i.type;o.push(_t?" => ":": ",e.call(r,"returnType"))}return rD(o);case"TSTypeOperator":return rD([i.operator," ",e.call(r,"typeAnnotation")]);case"TSMappedType":var jt=Mm(t.originalText,t.locStart(i),t.locEnd(i));return uD(rD(["{",cD(rD([t.bracketSpacing?iD:sD,i.readonly?rD([uy(i.readonly,"readonly")," "]):"",zD(e,0,r),e.call(r,"typeParameter"),i.optional?uy(i.optional,"?"):"",": ",e.call(r,"typeAnnotation"),fD(a,"")])),xa.printDanglingComments(e,t,!0),t.bracketSpacing?iD:sD,"}"]),{shouldBreak:jt});case"TSMethodSignature":return o.push(i.accessibility?rD([i.accessibility," "]):"",i.export?"export ":"",i.static?"static ":"",i.readonly?"readonly ":"",i.computed?"[":"",e.call(r,"key"),i.computed?"]":"",WD(e),jD(e,r,t,!1,!0)),i.returnType&&o.push(": ",e.call(r,"returnType")),uD(rD(o));case"TSNamespaceExportDeclaration":return o.push("export as namespace ",e.call(r,"id")),t.semi&&o.push(";"),uD(rD(o));case"TSEnumDeclaration":return i.declare&&o.push("declare "),i.modifiers&&o.push(zD(e,0,r)),i.const&&o.push("const "),o.push("enum ",e.call(r,"id")," "),0===i.members.length?o.push(uD(rD(["{",xa.printDanglingComments(e,t),sD,"}"]))):o.push(uD(rD(["{",cD(rD([aD,ig(e,t,"members",r),wD(t,"es5")?",":""])),xa.printDanglingComments(e,t,!0),aD,"}"]))),rD(o);case"TSEnumMember":return o.push(e.call(r,"id")),i.initializer&&o.push(" = ",e.call(r,"initializer")),rD(o);case"TSImportEqualsDeclaration":return i.isExport&&o.push("export "),o.push("import ",e.call(r,"id")," = ",e.call(r,"moduleReference")),t.semi&&o.push(";"),uD(rD(o));case"TSExternalModuleReference":return rD(["require(",e.call(r,"expression"),")"]);case"TSModuleDeclaration":var Lt=e.getParentNode(),Rt=Ny(i.id),Mt="TSModuleDeclaration"===Lt.type,qt=i.body&&"TSModuleDeclaration"===i.body.type;if(Mt)o.push(".");else{i.declare&&o.push("declare "),o.push(zD(e,0,r));var Ut=t.originalText.slice(t.locStart(i),t.locStart(i.id));"Identifier"===i.id.type&&"global"===i.id.name&&!/namespace|module/.test(Ut)||o.push(Rt||/(^|\s)module(\s|$)/.test(Ut)?"module ":"namespace ")}return o.push(e.call(r,"id")),qt?o.push(e.call(r,"body")):i.body?o.push(" ",uD(e.call(r,"body"))):o.push(a),rD(o);case"PrivateName":return rD(["#",e.call(r,"id")]);case"TSConditionalType":return SD(e,t,r,{beforeParts:function(){return[e.call(r,"checkType")," ","extends"," ",e.call(r,"extendsType")]},afterParts:function(){return[]},shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyName:"checkType",breakNested:!0});case"TSInferType":return rD(["infer"," ",e.call(r,"typeParameter")]);case"InterpreterDirective":return o.push("#!",i.value,aD),Ym(t.originalText,i,t)&&o.push(aD),rD(o);case"NGRoot":return rD([].concat(e.call(r,"node"),i.node.comments&&0!==i.node.comments.length?rD([" //",i.node.comments[0].value.trimRight()]):[]));case"NGChainedExpression":return uD(nD(rD([";",iD]),e.map((function(e){return yy(e)?r(e):rD(["(",r(e),")"])}),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return rD([i.prefix,":",i.value]);case"NGMicrosyntax":return rD(e.map((function(e,t){return rD([0===t?"":Ly(e.getValue(),t,i)?" ":rD([";",iD]),r(e)])}),"body"));case"NGMicrosyntaxKey":return/^[a-z_$][a-z0-9_$]*(-[a-z_$][a-z0-9_$])*$/i.test(i.name)?i.name:JSON.stringify(i.name);case"NGMicrosyntaxExpression":return rD([e.call(r,"expression"),null===i.alias?"":rD([" as ",e.call(r,"alias")])]);case"NGMicrosyntaxKeyedExpression":var zt=e.getName(),Vt=e.getParentNode(),$t=Ly(i,zt,Vt)||(1===zt&&("then"===i.key.name||"else"===i.key.name)||2===zt&&"else"===i.key.name&&"NGMicrosyntaxKeyedExpression"===Vt.body[zt-1].type&&"then"===Vt.body[zt-1].key.name)&&"NGMicrosyntaxExpression"===Vt.body[0].type;return rD([e.call(r,"key"),$t?" ":": ",e.call(r,"expression")]);case"NGMicrosyntaxLet":return rD(["let ",e.call(r,"key"),null===i.value?"":rD([" = ",e.call(r,"value")])]);case"NGMicrosyntaxAs":return rD([e.call(r,"key")," as ",e.call(r,"alias")]);case"ArgumentPlaceholder":return"?";default:throw new Error("unknown type: "+JSON.stringify(i.type))}}(e,t,r,n);if(!i||bD(s))return s;var o=Om(e),u=[];if("ClassMethod"===i.type||"ClassPrivateMethod"===i.type||"ClassProperty"===i.type||"TSAbstractClassProperty"===i.type||"ClassPrivateProperty"===i.type||"MethodDefinition"===i.type||"TSAbstractMethodDefinition"===i.type);else if(i.decorators&&i.decorators.length>0&&!(o&&t.locStart(o,{ignoreDecorators:!0})>t.locStart(i.decorators[0]))){var l="ClassExpression"===i.type||"ClassDeclaration"===i.type||my(i,t)?aD:iD;e.each((function(e){var t=e.getValue();t=t.expression?t.expression:t.callee,u.push(r(e),l)}),"decorators"),o&&u.unshift(aD)}else _m(i)&&i.declaration&&i.declaration.decorators&&i.declaration.decorators.length>0&&t.locStart(i,{ignoreDecorators:!0})>t.locStart(i.declaration.decorators[0])?e.each((function(e){var t="Decorator"===e.getValue().type?"":"@";u.push(t,r(e),aD)}),"declaration","decorators"):a=Fm(e,t);var p=[];if(a&&p.unshift("("),p.push(s),a){var h=e.getValue();py(h)&&(p.push(" /*"),p.push(h.trailingComments[0].value.trimLeft()),p.push("*/"),h.trailingComments[0].printed=!0),p.push(")")}return u.length>0?uD(rD(u.concat(p))):rD(p)},embed:Ud,insertPragma:ey,massageAstNode:Vd,hasPrettierIgnore:Dy,willPrintOwnComments:function(e){var t=e.getValue(),r=e.getParentNode();return(t&&(Ty(t)||py(t)||r&&("CallExpression"===r.type||"OptionalCallExpression"===r.type)&&(ly(t.leadingComments)||ly(t.trailingComments)))||r&&("JSXSpreadAttribute"===r.type||"JSXSpreadChild"===r.type||"UnionTypeAnnotation"===r.type||"TSUnionType"===r.type||("ClassDeclaration"===r.type||"ClassExpression"===r.type)&&r.superClass===t))&&!$m(e)},canAttachComment:function(e){return e.type&&"CommentBlock"!==e.type&&"CommentLine"!==e.type&&"Line"!==e.type&&"Block"!==e.type&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type},printComment:function(e,t){var r=e.getValue();switch(r.type){case"CommentBlock":case"Block":if(function(e){var t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every((function(e){return"*"===e.trim()[0]}))}(r)){var n=function(e){var t=e.value.split("\n");return rD(["/*",nD(aD,t.map((function(e,r){return 0===r?e.trimRight():" "+(r x`"},{value:"always",description:"Always include parens. Example: `(x) => x`"}]},bracketSpacing:Ou.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:"JavaScript",type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:"JavaScript",type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:Ou.singleQuote,jsxSingleQuote:{since:"1.15.0",category:"JavaScript",type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:"JavaScript",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:{since:"0.0.0",category:"JavaScript",type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"none",description:"No trailing commas."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:!0,deprecated:"0.19.0",redirect:"es5"},{value:!1,deprecated:"0.19.0",redirect:"none"}]}},fg=["js","node"],dg=[".js","._js",".bones",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],mg=["Jakefile"],yg=["chakra","d8","js","node","rhino","v8","v8-shell"],Dg={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:fg,extensions:dg,filenames:mg,interpreters:yg,languageId:183},gg=Object.freeze({__proto__:null,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:fg,extensions:dg,filenames:mg,interpreters:yg,languageId:183,default:Dg}),vg=[".jsx"],Eg={name:"JSX",type:"programming",group:"JavaScript",extensions:vg,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178},bg=Object.freeze({__proto__:null,name:"JSX",type:"programming",group:"JavaScript",extensions:vg,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178,default:Eg}),Cg=["ts"],xg=["deno","ts-node"],Ag=[".ts"],wg={name:"TypeScript",type:"programming",color:"#2b7489",aliases:Cg,interpreters:xg,extensions:Ag,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},Fg=Object.freeze({__proto__:null,name:"TypeScript",type:"programming",color:"#2b7489",aliases:Cg,interpreters:xg,extensions:Ag,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378,default:wg}),Sg=[".tsx"],kg={name:"TSX",type:"programming",group:"TypeScript",extensions:Sg,tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924},Tg=Object.freeze({__proto__:null,name:"TSX",type:"programming",group:"TypeScript",extensions:Sg,tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924,default:kg}),Pg=[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],Bg=[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","composer.lock","mcmod.info"],Ng={name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:Pg,filenames:Bg,languageId:174},Ig=Object.freeze({__proto__:null,name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:Pg,filenames:Bg,languageId:174,default:Ng}),Og=["jsonc"],_g=[".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"],jg=[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","jsconfig.json","language-configuration.json","tsconfig.json"],Lg={name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:Og,extensions:_g,filenames:jg,languageId:423},Rg=Object.freeze({__proto__:null,name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:Og,extensions:_g,filenames:jg,languageId:423,default:Lg}),Mg=[".json5"],qg={name:"JSON5",type:"data",extensions:Mg,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},Ug=Object.freeze({__proto__:null,name:"JSON5",type:"data",extensions:Mg,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175,default:qg}),zg=pt(gg),Vg=pt(bg),$g=pt(Fg),Wg=pt(Tg),Hg=pt(Ig),Jg=pt(Rg),Gg=pt(Ug),Xg={languages:[ju(zg,(function(e){return Object.assign(e,{since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript","mongo"],interpreters:e.interpreters.concat(["nodejs"])})})),ju(zg,(function(e){return Object.assign(e,{name:"Flow",since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})})),ju(Vg,(function(e){return Object.assign(e,{since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascriptreact"]})})),ju($g,(function(e){return Object.assign(e,{since:"1.4.0",parsers:["typescript"],vscodeLanguageIds:["typescript"]})})),ju(Wg,(function(e){return Object.assign(e,{since:"1.4.0",parsers:["typescript"],vscodeLanguageIds:["typescriptreact"]})})),ju(Hg,(function(e){return Object.assign(e,{name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]})})),ju(Hg,(function(e){return Object.assign(e,{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],filenames:e.filenames.concat([".prettierrc"])})})),ju(Jg,(function(e){return Object.assign(e,{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:e.filenames.concat([".eslintrc"])})})),ju(Gg,(function(e){return Object.assign(e,{since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]})}))],options:hg,printers:{estree:ag,"estree-json":pg}},Qg="[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u3000-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d]",Yg="[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",Kg="[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]",Zg=Bi.getLast,ev=["liquidNode","inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],tv=ev.concat(["tableCell","paragraph","heading"]),rv=new RegExp(Yg),nv=new RegExp(Kg),iv={mapAst:function(e,t){return function e(r,n,i){var a=t(r,n,i=i||[]);return Array.isArray(a)?a:((a=Object.assign({},a)).children&&(a.children=a.children.reduce((function(t,r,n){var s=e(r,n,[a].concat(i));return Array.isArray(s)||(s=[s]),t.push.apply(t,s),t}),[])),a)}(e,null,null)},splitText:function(e,t){var r=[];return("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(Qg,")\n(").concat(Qg,")"),"g"),"$1$2")).split(/([ \t\n]+)/).forEach((function(e,t,i){t%2!=1?(0!==t&&t!==i.length-1||""!==e)&&e.split(new RegExp("(".concat(Qg,")"))).forEach((function(e,t,r){(0!==t&&t!==r.length-1||""!==e)&&(t%2!=0?n(nv.test(e)?{type:"word",value:e,kind:"cjk-punctuation",hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:e,kind:rv.test(e)?"k-letter":"cj-letter",hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==e&&n({type:"word",value:e,kind:"non-cjk",hasLeadingPunctuation:nv.test(e[0]),hasTrailingPunctuation:nv.test(Zg(e))}))})):r.push({type:"whitespace",value:/\n/.test(e)?"\n":" "})})),r;function n(e){var t,n,i=Zg(r);i&&"word"===i.type&&("non-cjk"===i.kind&&"cj-letter"===e.kind&&!i.hasTrailingPunctuation||"cj-letter"===i.kind&&"non-cjk"===e.kind&&!e.hasLeadingPunctuation?r.push({type:"whitespace",value:" "}):(t="non-cjk",n="cjk-punctuation",i.kind===t&&e.kind===n||i.kind===n&&e.kind===t||[i.value,e.value].some((function(e){return/\u3000/.test(e)}))||r.push({type:"whitespace",value:""}))),r.push(e)}},punctuationPattern:Kg,getFencedCodeBlockValue:function(e,t){var r=t.slice(e.position.start.offset,e.position.end.offset),n=r.match(/^\s*/)[0].length,i=new RegExp("^\\s{0,".concat(n,"}")),a=r.split("\n"),s=r[n],o=r.slice(n).match(new RegExp("^[".concat(s,"]+")))[0],u=new RegExp("^\\s{0,3}".concat(o)).test(a[a.length-1].slice(c(a.length-1)));return a.slice(1,u?-1:void 0).map((function(e,t){return e.slice(c(t+1)).replace(i,"")})).join("\n");function c(t){return e.position.indent[t-1]-1}},getOrderedListItemInfo:function(e,t){var r=x(t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/),4);return{numberText:r[1],marker:r[2],leadingSpaces:r[3]}},INLINE_NODE_TYPES:ev,INLINE_NODE_WRAPPER_TYPES:tv},av=ea.builders,sv=av.hardline,ov=av.literalline,uv=av.concat,cv=av.markAsRoot,lv=ea.utils.mapDoc,pv=iv.getFencedCodeBlockValue,hv=function(e,t,r,n){var i=e.getValue();if("code"===i.type&&null!==i.lang){var a=i.lang.match(/^[A-Za-z0-9_-]+/),s=function(e){var t=Yt.getSupportInfo(null,{plugins:n.plugins}).languages.find((function(t){return t.name.toLowerCase()===e||t.aliases&&-1!==t.aliases.indexOf(e)||t.extensions&&t.extensions.find((function(t){return t.substring(1)===e}))}));return t?t.parsers[0]:null}(a?a[0]:"");if(s){var o=n.__inJsTemplate?"~":"`",u=o.repeat(Math.max(3,Bi.getMaxContinuousCount(i.value,o)+1)),c=r(pv(i,n.originalText),{parser:s});return cv(uv([u,i.lang,sv,l(c),u]))}}if("yaml"===i.type)return cv(uv(["---",sv,i.value&&i.value.trim()?l(r(i.value,{parser:"yaml"})):"","---"]));switch(i.type){case"importExport":return r(i.value,{parser:"babel"});case"jsx":return r(i.value,{parser:"__js_expression"})}return null;function l(e){return lv(e,(function(e){return"string"==typeof e&&e.includes("\n")?uv(e.split(/(\n)/g).map((function(e,t){return t%2==0?e:ov}))):e}))}},fv=["format","prettier"];function dv(e){var t="@(".concat(fv.join("|"),")"),r=new RegExp(["\x3c!--\\s*".concat(t,"\\s*--\x3e"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(t,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),n=e.match(r);return n&&0===n.index}var mv={startWithPragma:dv,hasPragma:function(e){return dv(vs(e).content.trimLeft())},insertPragma:function(e){var t=vs(e),r="\x3c!-- @".concat(fv[0]," --\x3e");return t.frontMatter?"".concat(t.frontMatter.raw,"\n\n").concat(r,"\n\n").concat(t.content):"".concat(r,"\n\n").concat(t.content)}},yv=iv.getOrderedListItemInfo,Dv=iv.mapAst,gv=iv.splitText,vv=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function Ev(e,t,r){return Dv(e,(function(e){if(!e.children)return e;var n=e.children.reduce((function(e,n){var i=e[e.length-1];return i&&t(i,n)?e.splice(-1,1,r(i,n)):e.push(n),e}),[]);return Object.assign({},e,{children:n})}))}var bv=function(e,t){return e=function(e){return Ev(e,(function(e,t){return"importExport"===e.type&&"importExport"===t.type}),(function(e,t){return{type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}}}))}(e=function(e){return Dv(e,(function(e){return"import"!==e.type&&"export"!==e.type?e:Object.assign({},e,{type:"importExport"})}))}(e=function(e,t){return Dv(e,(function(e,r,n){var i=x(n,1)[0];if("text"!==e.type)return e;var a=e.value;return"paragraph"===i.type&&(0===r&&(a=a.trimLeft()),r===i.children.length-1&&(a=a.trimRight())),{type:"sentence",position:e.position,children:gv(a,t)}}))}(e=function(e,t){return Dv(e,(function(e,n,i){if("list"===e.type&&0!==e.children.length){for(var a=0;a1)return!0;var s=r(i);if(-1===s)return!1;if(1===e.children.length)return s%t.tabWidth==0;var o=r(a);return s===o&&(s%t.tabWidth==0||yv(a,t.originalText).leadingSpaces.length>1)}(e)}return e}));function r(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}}(e=function(e,t){return Dv(e,(function(e,r,n){if("code"===e.type){var i=/^\n?( {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=i,i)for(var a=0;au?u:s));return Av([c,Iv(c,e.call(r))])}})])}function Xv(e,t){return function(e,t,r){r=r||function(){return!0};var n=-1,i=!0,a=!1,s=void 0;try{for(var o,u=t.children[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var c=o.value;if(c.type===e.type&&r(c)?n++:n=-1,c===e)return n}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}}(e,t,(function(t){return t.ordered===e.ordered}))}function Qv(e,t){for(var r,n=[].concat(t),i=-1;r=e.getParentNode(++i);)if(-1!==n.indexOf(r.type))return i;return-1}function Yv(e,t){var r=Qv(e,t);return-1===r?null:e.getParentNode(r)}function Kv(e,t,r){if("preserve"===r.proseWrap&&"\n"===t)return Tv;var n="always"===r.proseWrap&&!Yv(e,Hv);return""!==t?n?Fv:" ":n?Pv:""}function Zv(e,t,r){var n=[],i=null,a=e.getValue().children;return a.forEach((function(e,t){switch(rE(e)){case"start":null===i&&(i={index:t,offset:e.position.end.offset});break;case"end":null!==i&&(n.push({start:i,end:{index:t,offset:e.position.start.offset}}),i=null)}})),eE(e,t,r,{processor:function(e,i){if(0!==n.length){var s=n[0];if(i===s.start.index)return Av([a[s.start.index].value,t.originalText.slice(s.start.offset,s.end.offset),a[s.end.index].value]);if(s.start.index$/);return null!==t&&(t[1]?t[1]:"next")}function nE(e){return e&&-1!==zv.indexOf(e.type)}function iE(e){return e&&/\n+$/.test(e.value)}function aE(e,t){var r=t.prevNode&&"list"===t.prevNode.type,n="code"===e.type&&e.isIndented;return r&&n}function sE(e){return jv(e,(function(e){if(!e.parts)return e;if("concat"===e.type&&1===e.parts.length)return e.parts[0];var t=[];return e.parts.forEach((function(e){"concat"===e.type?t.push.apply(t,e.parts):""!==e&&t.push(e)})),Object.assign({},e,{parts:cE(t)})}))}function oE(e,t){var r=[" "].concat(t||[]);return new RegExp(r.map((function(e){return"\\".concat(e)})).join("|")).test(e)?"<".concat(e,">"):e}function uE(e,t,r){if(null==r&&(r=!0),!e)return"";if(r)return" "+uE(e,t,!1);if(e.includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");var n=e.split("'").length-1,i=e.split('"').length-1,a=n>i?'"':i>n?"'":t.singleQuote?"'":'"';return e=e.replace(new RegExp("(".concat(a,")"),"g"),"\\$1"),"".concat(a).concat(e).concat(a)}function cE(e){return e.reduce((function(e,t){var r=Bi.getLast(e);return"string"==typeof r&&"string"==typeof t?e.splice(-1,1,r+t):e.push(t),e}),[])}var lE={preprocess:bv,print:function(e,t,r){var n=e.getValue();if(function(e){var t=Yv(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return Av(qv(t.originalText.slice(n.position.start.offset,n.position.end.offset),t).map((function(r){return"word"===r.type?r.value:""===r.value?"":Kv(e,r.value,t)})));switch(n.type){case"root":return 0===n.children.length?"":Av([sE(Zv(e,t,r)),-1===Wv.indexOf(tE(n).type)?Tv:""]);case"paragraph":return eE(e,t,r,{postprocessor:Nv});case"sentence":return eE(e,t,r);case"word":return n.value.replace(/[*$]/g,"\\$&").replace(new RegExp(["(^|".concat(Uv,")(_+)"),"(_+)(".concat(Uv,"|$)")].join("|"),"g"),(function(e,t,r,n,i){return(r?"".concat(t).concat(r):"".concat(n).concat(i)).replace(/_/g,"\\_")}));case"whitespace":var i=e.getParentNode(),a=i.children.indexOf(n),s=i.children[a+1],o=s&&/^>|^([-+*]|#{1,6}|[0-9]+[.)])$/.test(s.value)?"never":t.proseWrap;return Kv(e,n.value,{proseWrap:o});case"emphasis":var u=e.getParentNode(),c=u.children.indexOf(n),l=u.children[c-1],p=u.children[c+1],h=l&&"sentence"===l.type&&l.children.length>0&&"word"===Bi.getLast(l.children).type&&!Bi.getLast(l.children).hasTrailingPunctuation||p&&"sentence"===p.type&&p.children.length>0&&"word"===p.children[0].type&&!p.children[0].hasLeadingPunctuation||Yv(e,"emphasis")?"*":"_";return Av([h,eE(e,t,r),h]);case"strong":return Av(["**",eE(e,t,r),"**"]);case"delete":return Av(["~~",eE(e,t,r),"~~"]);case"inlineCode":var f=Bi.getMinNotPresentContinuousCount(n.value,"`"),d="`".repeat(f||1),m=f?" ":"";return Av([d,m,n.value,m,d]);case"link":switch(t.originalText[n.position.start.offset]){case"<":var y=n.url.startsWith("mailto:")&&"mailto:"!==t.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+"mailto:".length)?n.url.slice("mailto:".length):n.url;return Av(["<",y,">"]);case"[":return Av(["[",eE(e,t,r),"](",oE(n.url,")"),uE(n.title,t),")"]);default:return t.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return Av(["![",n.alt||"","](",oE(n.url,")"),uE(n.title,t),")"]);case"blockquote":return Av(["> ",Iv("> ",eE(e,t,r))]);case"heading":return Av(["#".repeat(n.depth)+" ",eE(e,t,r)]);case"code":if(n.isIndented){var D=" ".repeat(4);return Iv(D,Av([D,Av($v(n.value,Tv))]))}var g=t.__inJsTemplate?"~":"`",v=g.repeat(Math.max(3,Bi.getMaxContinuousCount(n.value,g)+1));return Av([v,n.lang||"",Tv,Av($v(Rv(n,t.originalText),Tv)),Tv,v]);case"yaml":case"toml":return t.originalText.slice(n.position.start.offset,n.position.end.offset);case"html":var E=e.getParentNode(),b="root"===E.type&&Bi.getLast(E.children)===n?n.value.trimRight():n.value,C=/^$/.test(b);return Av($v(b,C?Tv:kv(Sv)));case"list":var x=Xv(n,e.getParentNode()),A=n.ordered&&n.children.length>1&&1==+Mv(n.children[1],t.originalText).numberText;return eE(e,t,r,{processor:function(e,i){var a,s=(a=n.ordered?(0===i?n.start:A?1:n.start+i)+(x%2==0?". ":") "):x%2==0?"- ":"* ",n.isAligned||n.hasIndentedCodeblock?function(e,t){var r,n=0==(r=e.length%t.tabWidth)?0:t.tabWidth-r;return e+" ".repeat(n>=4?0:n)}(a,t):a);return Av([s,Iv(" ".repeat(s.length),Gv(e,t,r,s))])}});case"thematicBreak":var w=Qv(e,"list");return-1===w?"---":Xv(e.getParentNode(w),e.getParentNode(w+1))%2==0?"***":"---";case"linkReference":return Av(["[",eE(e,t,r),"]","full"===n.referenceType?Av(["[",n.identifier,"]"]):"collapsed"===n.referenceType?"[]":""]);case"imageReference":switch(n.referenceType){case"full":return Av(["![",n.alt||"","][",n.identifier,"]"]);default:return Av(["![",n.alt,"]","collapsed"===n.referenceType?"[]":""])}case"definition":var F="always"===t.proseWrap?Fv:" ";return _v(Av([Av(["[",n.identifier,"]:"]),Ov(Av([F,oE(n.url),null===n.title?"":Av([F,uE(n.title,t,!1)])]))]));case"footnote":return Av(["[^",eE(e,t,r),"]"]);case"footnoteReference":return Av(["[^",n.identifier,"]"]);case"footnoteDefinition":var S=e.getParentNode().children[e.getName()+1],k=1===n.children.length&&"paragraph"===n.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&n.children[0].position.start.line===n.children[0].position.end.line);return Av(["[^",n.identifier,"]: ",k?eE(e,t,r):_v(Av([Iv(" ".repeat(t.tabWidth),eE(e,t,r,{processor:function(e,t){return 0===t?_v(Av([Pv,Pv,e.call(r)])):e.call(r)}})),S&&"footnoteDefinition"===S.type?Pv:""]))]);case"table":return function(e,t,r){var n=Tv.parts[0],i=e.getValue(),a=[];e.map((function(e){var n=[];e.map((function(e){n.push(Lv(e.call(r),t).formatted)}),"children"),a.push(n)}),"children");var s=a.reduce((function(e,t){return e.map((function(e,r){return Math.max(e,Bi.getStringWidth(t[r]))}))}),a[0].map((function(){return 3}))),o=wv(n,[l(a[0]),c(),wv(n,a.slice(1).map((function(e){return l(e)})))]);if("never"!==t.proseWrap)return Av([xv,o]);var u=wv(n,[l(a[0],!0),c(!0),wv(n,a.slice(1).map((function(e){return l(e,!0)})))]);return Av([xv,_v(Bv(u,o))]);function c(e){return Av(["| ",wv(" | ",s.map((function(t,r){var n=e?3:t;switch(i.align[r]){case"left":return":"+"-".repeat(n-1);case"right":return"-".repeat(n-1)+":";case"center":return":"+"-".repeat(n-2)+":";default:return"-".repeat(n)}})))," |"])}function l(e,t){return Av(["| ",wv(" | ",t?e:e.map((function(e,t){switch(i.align[t]){case"right":return r=e,n=s[t],a=n-Bi.getStringWidth(r),Av([" ".repeat(a),r]);case"center":return function(e,t){var r=t-Bi.getStringWidth(e),n=Math.floor(r/2),i=r-n;return Av([" ".repeat(n),e," ".repeat(i)])}(e,s[t]);default:return function(e,t){var r=t-Bi.getStringWidth(e);return Av([e," ".repeat(r)])}(e,s[t])}var r,n,a})))," |"])}}(e,t,r);case"tableCell":return eE(e,t,r);case"break":return/\s/.test(t.originalText[n.position.start.offset])?Av([" ",kv(Sv)]):Av(["\\",Tv]);case"liquidNode":return Av($v(n.value,Tv));case"importExport":case"jsx":return n.value;case"math":return Av(["$$",Tv,n.value?Av([Av($v(n.value,Tv)),Tv]):"","$$"]);case"inlineMath":return t.originalText.slice(t.locStart(n),t.locEnd(n));case"tableRow":case"listItem":default:throw new Error("Unknown markdown type ".concat(JSON.stringify(n.type)))}},embed:hv,massageAstNode:function(e,t,r){return delete t.position,delete t.raw,"code"!==e.type&&"yaml"!==e.type&&"import"!==e.type&&"export"!==e.type&&"jsx"!==e.type||delete t.value,"list"===e.type&&delete t.isAligned,"text"===e.type?null:("inlineCode"===e.type&&(t.value=e.value.replace(/[ \t\n]+/g," ")),r&&"root"===r.type&&r.children.length>0&&(r.children[0]===e||("yaml"===r.children[0].type||"toml"===r.children[0].type)&&r.children[1]===e)&&"html"===e.type&&mv.startWithPragma(e.value)?null:void 0)},hasPrettierIgnore:function(e){var t=+e.getName();return 0!==t&&"next"===rE(e.getParentNode().children[t-1])},insertPragma:mv.insertPragma},pE={proseWrap:Ou.proseWrap,singleQuote:Ou.singleQuote},hE=["pandoc"],fE=[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".workbook"],dE=["contents.lr"],mE={name:"Markdown",type:"prose",aliases:hE,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:fE,filenames:dE,tmScope:"source.gfm",languageId:222},yE=pt(Object.freeze({__proto__:null,name:"Markdown",type:"prose",aliases:hE,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:fE,filenames:dE,tmScope:"source.gfm",languageId:222,default:mE})),DE={languages:[ju(yE,(function(e){return Object.assign(e,{since:"1.8.0",parsers:["remark"],vscodeLanguageIds:["markdown"],filenames:e.filenames.concat(["README"]),extensions:e.extensions.filter((function(e){return".mdx"!==e}))})})),ju(yE,(function(e){return Object.assign(e,{name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]})}))],options:pE,printers:{mdast:lE}},gE=function(e){return/^\s*@(prettier|format)\s*$/.test(e)},vE=function(e){return"# @format\n\n".concat(e)},EE=Bi.getLast;function bE(e,t){return e&&"string"==typeof e.type&&(!t||-1!==t.indexOf(e.type))}function CE(e){return"prettier-ignore"===e.value.trim()}function xE(e){return e&&e.leadingComments&&0!==e.leadingComments.length}function AE(e){return e&&e.middleComments&&0!==e.middleComments.length}function wE(e){return e&&e.indicatorComment}function FE(e){return e&&e.trailingComment}function SE(e){return e&&e.endComments&&0!==e.endComments.length}function kE(e){var t=[],r=void 0,n=!0,i=!1,a=void 0;try{for(var s,o=e.split(/( +)/g)[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value;" "!==u?" "===r?t.push(u):t.push((t.pop()||"")+u):void 0===r&&t.unshift(""),r=u}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return" "===r&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var TE={getLast:EE,getAncestorCount:function(e,t){for(var r=0,n=e.stack.length-1,i=0;i=0&&0===t[n].length;n--)r++;return 0===r?t:r>=2&&!i?t.slice(0,-(r-1)):t.slice(0,-r)}},getFlowScalarLineContents:function(e,t,r){var n=t.split("\n").map((function(e,t,r){return 0===t&&t===r.length-1?e:0!==t&&t!==r.length-1?e.trim():0===t?e.trimRight():e.trimLeft()}));return"preserve"===r.proseWrap?n.map((function(e){return 0===e.length?[]:[e]})):n.map((function(e){return 0===e.length?[]:kE(e)})).reduce((function(t,r,i){return 0===i||0===n[i-1].length||0===r.length||"quoteDouble"===e&&EE(EE(t)).endsWith("\\")?t.concat([r]):t.concat([t.pop().concat(r)])}),[]).map((function(e){return"never"===r.proseWrap?[e.join(" ")]:e}))},getLastDescendantNode:function e(t){return"children"in t&&0!==t.children.length?e(EE(t.children)):t},hasPrettierIgnore:function(e){var t=e.getValue();if("documentBody"===t.type){var r=e.getParentNode();return SE(r.head)&&CE(EE(r.head.endComments))}return xE(t)&&CE(EE(t.leadingComments))},hasLeadingComments:xE,hasMiddleComments:AE,hasIndicatorComment:wE,hasTrailingComment:FE,hasEndComments:SE},PE=vE,BE=gE,NE=TE.getAncestorCount,IE=TE.getBlockValueLineContents,OE=TE.getFlowScalarLineContents,_E=TE.getLast,jE=TE.getLastDescendantNode,LE=TE.hasLeadingComments,RE=TE.hasMiddleComments,ME=TE.hasIndicatorComment,qE=TE.hasTrailingComment,UE=TE.hasEndComments,zE=TE.hasPrettierIgnore,VE=TE.isLastDescendantNode,$E=TE.isNextLineEmpty,WE=TE.isNode,HE=TE.isEmptyNode,JE=TE.defineShortcut,GE=TE.mapNode,XE=ea.builders,QE=XE.conditionalGroup,YE=XE.breakParent,KE=XE.concat,ZE=XE.dedent,eb=XE.dedentToRoot,tb=XE.fill,rb=XE.group,nb=XE.hardline,ib=XE.ifBreak,ab=XE.join,sb=XE.line,ob=XE.lineSuffix,ub=XE.literalline,cb=XE.markAsRoot,lb=XE.softline,pb=Bi.replaceEndOfLineWith;function hb(e){switch(e.type){case"document":JE(e,"head",(function(){return e.children[0]})),JE(e,"body",(function(){return e.children[1]}));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":JE(e,"content",(function(){return e.children[0]}));break;case"mappingItem":case"flowMappingItem":JE(e,"key",(function(){return e.children[0]})),JE(e,"value",(function(){return e.children[1]}))}return e}function fb(e,t,r,n,i){switch(e.type){case"root":return KE([ab(nb,r.map((function(t,n){var a=e.children[n],s=e.children[n+1];return KE([i(t),yb(a,s)?KE([nb,"...",qE(a)?KE([" ",r.call(i,"trailingComment")]):""]):!s||qE(s.head)?"":KE([nb,"---"])])}),"children")),0===e.children.length||(w=jE(e),WE(w,["blockLiteral","blockFolded"])&&"keep"===w.chomping)?"":nb]);case"document":var a=t.children[r.getName()+1];return ab(nb,["head"===Db(e,a,t,n)?ab(nb,[0===e.head.children.length&&0===e.head.endComments.length?"":r.call(i,"head"),KE(["---",qE(e.head)?KE([" ",r.call(i,"head","trailingComment")]):""])].filter(Boolean)):"",(A=e,0!==A.body.children.length||UE(A.body)?r.call(i,"body"):"")].filter(Boolean));case"documentHead":return ab(nb,[].concat(r.map(i,"children"),r.map(i,"endComments")));case"documentBody":var s=ab(nb,r.map(i,"children")).parts,o=ab(nb,r.map(i,"endComments")).parts,u=0===s.length||0===o.length?"":function(e){return WE(e,["blockFolded","blockLiteral"])?"keep"===e.chomping?"":KE([nb,nb]):nb}(jE(e));return KE([].concat(s,u,o));case"directive":return KE(["%",ab(" ",[e.name].concat(e.parameters))]);case"comment":return KE(["#",e.value]);case"alias":return KE(["*",e.value]);case"tag":return n.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return KE(["&",e.value]);case"plain":return bb(e.type,n.originalText.slice(e.position.start.offset,e.position.end.offset),n);case"quoteDouble":case"quoteSingle":var c=n.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&c.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(c)){var l="quoteDouble"===e.type?'"':"'";return KE([l,bb(e.type,c,n),l])}if(c.includes('"'))return KE(["'",bb(e.type,"quoteDouble"===e.type?c.replace(/\\"/g,'"').replace(/'/g,"'".repeat(2)):c,n),"'"]);if(c.includes("'"))return KE(['"',bb(e.type,"quoteSingle"===e.type?c.replace(/''/g,"'"):c,n),'"']);var p=n.singleQuote?"'":'"';return KE([p,bb(e.type,c,n),p]);case"blockFolded":case"blockLiteral":var h=NE(r,(function(e){return WE(e,["sequence","mapping"])})),f=VE(r);return KE(["blockFolded"===e.type?">":"|",null===e.indent?"":e.indent.toString(),"clip"===e.chomping?"":"keep"===e.chomping?"+":"-",ME(e)?KE([" ",r.call(i,"indicatorComment")]):"",(null===e.indent?ZE:eb)(db(null===e.indent?n.tabWidth:e.indent-1+h,KE(IE(e,{parentIndent:h,isLastDescendant:f,options:n}).reduce((function(t,r,n,i){return t.concat(0===n?nb:"",tb(ab(sb,r).parts),n!==i.length-1?0===r.length?nb:cb(ub):"keep"===e.chomping&&f?0===r.length?eb(nb):eb(ub):"")}),[]))))]);case"sequence":return ab(nb,r.map(i,"children"));case"sequenceItem":return KE(["- ",db(2,e.content?r.call(i,"content"):"")]);case"mappingKey":case"mappingValue":return e.content?r.call(i,"content"):"";case"mapping":return ab(nb,r.map(i,"children"));case"mappingItem":case"flowMappingItem":var d=HE(e.key),m=HE(e.value);if(d&&m)return KE([": "]);var y=r.call(i,"key"),D=r.call(i,"value");if(m)return"flowMappingItem"===e.type&&"flowMapping"===t.type?y:"mappingItem"!==e.type||!gb(e.key.content,n)||qE(e.key.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?KE(["? ",db(2,y)]):KE([y,vb(e)?" ":"",":"]);if(d)return KE([": ",db(2,D)]);var g=Symbol("mappingKey");return LE(e.value)||!mb(e.key.content)?KE(["? ",db(2,y),nb,ab("",r.map(i,"value","leadingComments").map((function(e){return KE([e,nb])}))),": ",db(2,D)]):!function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(e.key.content)||LE(e.key.content)||RE(e.key.content)||qE(e.key.content)||UE(e.key)||LE(e.value.content)||RE(e.value.content)||UE(e.value)||!gb(e.value.content,n)?QE([KE([rb(KE([ib("? "),rb(db(2,y),{id:g})])),ib(KE([nb,": ",db(2,D)]),F(KE([vb(e)?" ":"",":",LE(e.value.content)||UE(e.value)&&e.value.content&&!WE(e.value.content,["mapping","sequence"])||"mapping"===t.type&&qE(e.key.content)&&mb(e.value.content)||WE(e.value.content,["mapping","sequence"])&&null===e.value.content.tag&&null===e.value.content.anchor?nb:e.value.content?sb:"",D])),{groupId:g})])]):KE([y,vb(e)?" ":"",": ",D]);case"flowMapping":case"flowSequence":var v="flowMapping"===e.type?"{":"[",E="flowMapping"===e.type?"}":"]",b="flowMapping"===e.type&&0!==e.children.length&&n.bracketSpacing?sb:lb,C=0!==e.children.length&&"flowMappingItem"===(x=_E(e.children)).type&&HE(x.key)&&HE(x.value);return KE([v,F(KE([b,KE(r.map((function(t,r){return KE([i(t),r===e.children.length-1?"":KE([",",sb,e.children[r].position.start.line!==e.children[r+1].position.start.line?Eb(t,n.originalText):""])])}),"children")),ib(",","")])),C?"":b,E]);case"flowSequenceItem":return r.call(i,"content");default:throw new Error("Unexpected node type ".concat(e.type))}var x,A,w;function F(e){return XE.align(" ".repeat(n.tabWidth),e)}}function db(e,t){return"number"==typeof e&&e>0?XE.align(" ".repeat(e),t):XE.align(e,t)}function mb(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}function yb(e,t){return qE(e)||t&&(0!==t.head.children.length||UE(t.head))}function Db(e,t,r,n){return r.children[0]===e&&/---(\s|$)/.test(n.originalText.slice(n.locStart(e),n.locStart(e)+4))||0!==e.head.children.length||UE(e.head)||qE(e.head)?"head":!yb(e,t)&&!!t&&"root"}function gb(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return-1===e.value.indexOf("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}function vb(e){return e.key.content&&"alias"===e.key.content.type}function Eb(e,t){var r=e.getValue(),n=e.stack[0];return n.isNextEmptyLinePrintedChecklist=n.isNextEmptyLinePrintedChecklist||[],!n.isNextEmptyLinePrintedChecklist[r.position.end.line]&&$E(r,t)?(n.isNextEmptyLinePrintedChecklist[r.position.end.line]=!0,lb):""}function bb(e,t,r){var n=OE(e,t,r);return ab(nb,n.map((function(e){return tb(ab(sb,e).parts)})))}var Cb={preprocess:function(e){return GE(e,hb)},print:function(e,t,r){var n=e.getValue(),i=e.getParentNode(),a=n.tag?e.call(r,"tag"):"",s=n.anchor?e.call(r,"anchor"):"",o=WE(n,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!VE(e)?Eb(e,t.originalText):"";return KE(["mappingValue"!==n.type&&LE(n)?KE([ab(nb,e.map(r,"leadingComments")),nb]):"",a,a&&s?" ":"",s,a||s?WE(n,["sequence","mapping"])&&!RE(n)?nb:" ":"",RE(n)?KE([1===n.middleComments.length?"":nb,ab(nb,e.map(r,"middleComments")),nb]):"",zE(e)?KE(pb(t.originalText.slice(n.position.start.offset,n.position.end.offset),ub)):rb(fb(n,i,e,t,r)),qE(n)&&!WE(n,["document","documentHead"])?ob(KE(["mappingValue"!==n.type||n.content?" ":"","mappingKey"===i.type&&"mapping"===e.getParentNode(2).type&&mb(n)?"":YE,e.call(r,"trailingComment")])):"",o,UE(n)&&!WE(n,["documentHead","documentBody"])?db("sequenceItem"===n.type?2:0,KE([nb,ab(nb,e.map(r,"endComments"))])):""])},massageAstNode:function(e,t){if(WE(t))switch(delete t.position,t.type){case"comment":if(BE(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:PE},xb={bracketSpacing:Ou.bracketSpacing,singleQuote:Ou.singleQuote,proseWrap:Ou.proseWrap},Ab=["yml"],wb=[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yml.mysql"],Fb=[".clang-format",".clang-tidy",".gemrc","glide.lock"],Sb={name:"YAML",type:"data",tmScope:"source.yaml",aliases:Ab,extensions:wb,filenames:Fb,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},kb={languages:[ju(pt(Object.freeze({__proto__:null,name:"YAML",type:"data",tmScope:"source.yaml",aliases:Ab,extensions:wb,filenames:Fb,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407,default:Sb})),(function(e){return Object.assign(e,{since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml"]})}))],printers:{yaml:Cb},options:xb},Tb=Gt.version,Pb=Yt.getSupportInfo,Bb=[Zu,vc,Xc,ed,Xg,DE,kb],Nb=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Ib(e){return function(){var t=Array.from(arguments),r=t[1]&&t[1].plugins||[];return Nb(r)||(r=Object.values(r)),t[1]=Object.assign({},t[1],{plugins:Bb.concat(r)}),e.apply(null,t)}}var Ob=Ib(es);return{formatWithCursor:Ob,format:function(e,t){return Ob(e,t).formatted},check:function(e,t){return Ob(e,t).formatted===e},doc:ea,getSupportInfo:Ib(Pb),version:Tb,util:ra,__debug:{parse:Ib(ts),formatAST:Ib(rs),formatDoc:Ib(ns),printToDoc:Ib(is),printDocToString:Ib(as)}}},e.exports=r()}).call(this,r(6))},function(e,t,r){!function(e){"use strict";var t=function(e,t){var r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e,t){return e(t={exports:{}},t.exports),t.exports}var i,a=Object.freeze({__proto__:null,default:{EOL:"\n"}}),s=n((function(e){e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");var t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return null;var r=t.filter((function(e){return"\r\n"===e})).length;return r>t.length-r?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}})),o=(s.graceful,(i=a)&&i.default||i),u=n((function(e,t){function r(){var e=o;return r=function(){return e},e}function n(){var e,t=(e=s)&&e.__esModule?e:{default:e};return n=function(){return t},t}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){var t=e.match(u);return t?t[0].trimLeft():""},t.strip=function(e){var t=e.match(u);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return d(e).pragmas},t.parseWithComments=d,t.print=function(e){var t=e.comments,i=void 0===t?"":t,a=e.pragmas,s=void 0===a?{}:a,o=(0,n().default)(i)||r().EOL,u=Object.keys(s),c=u.map((function(e){return m(e,s[e])})).reduce((function(e,t){return e.concat(t)}),[]).map((function(e){return" * "+e+o})).join("");if(!i){if(0===u.length)return"";if(1===u.length&&!Array.isArray(s[u[0]])){var l=s[u[0]];return"".concat("/**"," ").concat(m(u[0],l)[0]).concat(" */")}}var p=i.split(o).map((function(e){return"".concat(" *"," ").concat(e)})).join(o)+o;return"/**"+o+(i?p:"")+(i&&u.length?" *"+o:"")+c+" */"};var i=/\*\/$/,a=/^\/\*\*/,u=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,c=/(^|\s+)\/\/([^\r\n]*)/g,l=/^(\r?\n)+/,p=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,h=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,f=/(\r?\n|^) *\* ?/g;function d(e){var t=(0,n().default)(e)||r().EOL;e=e.replace(a,"").replace(i,"").replace(f,"$1");for(var s="";s!==e;)s=e,e=e.replace(p,"".concat(t,"$1 $2").concat(t));e=e.replace(l,"").trimRight();for(var o,u=Object.create(null),d=e.replace(h,"").replace(l,"").trimRight();o=h.exec(e);){var m=o[2].replace(c,"");"string"==typeof u[o[1]]||Array.isArray(u[o[1]])?u[o[1]]=[].concat(u[o[1]],m):u[o[1]]=m}return{comments:d,pragmas:u}}function m(e,t){return[].concat(t).map((function(t){return"@".concat(e," ").concat(t).trim()}))}}));r(u),u.extract,u.strip,u.parse,u.parseWithComments,u.print;var c=function(e){return e.length>0?e[e.length-1]:null},l={locStart:function e(t,r){return!(r=r||{}).ignoreDecorators&&t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?e(t.declaration.decorators[0]):!r.ignoreDecorators&&t.decorators&&t.decorators.length>0?e(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeof t.start?t.start:t.loc?t.loc.start:null},locEnd:function e(t){var r=t.nodes&&c(t.nodes);if(r&&t.source&&!t.source.end&&(t=r),t.__location)return t.__location.endOffset;var n=t.range?t.range[1]:"number"==typeof t.end?t.end:null;return t.typeAnnotation?Math.max(n,e(t.typeAnnotation)):t.loc&&!n?t.loc.end:n}};function p(e){return(p="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})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<~]))"].join("|");return new RegExp(t,e.onlyFirst?void 0:"g")}(),""):e},x=C,A=C;x.default=A;var w=function(e){return!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)},F=w,S=w;F.default=S;var k=function(e){if("string"!=typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))||0===e.length)return 0;e=x(e);for(var t=0,r=0;r=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=F(n)?2:1)}return t},T=k,P=k;function B(e){return function(t,r,n){var i=n&&n.backwards;if(!1===r)return!1;for(var a=t.length,s=r;s>=0&&s"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((function(e,t){e.forEach((function(e){N[e]=t}))}));var I=c,O=n((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=!0,n=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,e),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=null!=r.binop?r.binop:null,this.updateContext=null},i=new Map;function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keyword=e;var r=new n(e,t);return i.set(e,r),r}function s(e,t){return new n(e,{beforeExpr:r,binop:t})}var o={num:new n("num",{startsExpr:!0}),bigint:new n("bigint",{startsExpr:!0}),regexp:new n("regexp",{startsExpr:!0}),string:new n("string",{startsExpr:!0}),name:new n("name",{startsExpr:!0}),eof:new n("eof"),bracketL:new n("[",{beforeExpr:r,startsExpr:!0}),bracketR:new n("]"),braceL:new n("{",{beforeExpr:r,startsExpr:!0}),braceBarL:new n("{|",{beforeExpr:r,startsExpr:!0}),braceR:new n("}"),braceBarR:new n("|}"),parenL:new n("(",{beforeExpr:r,startsExpr:!0}),parenR:new n(")"),comma:new n(",",{beforeExpr:r}),semi:new n(";",{beforeExpr:r}),colon:new n(":",{beforeExpr:r}),doubleColon:new n("::",{beforeExpr:r}),dot:new n("."),question:new n("?",{beforeExpr:r}),questionDot:new n("?."),arrow:new n("=>",{beforeExpr:r}),template:new n("template"),ellipsis:new n("...",{beforeExpr:r}),backQuote:new n("`",{startsExpr:!0}),dollarBraceL:new n("${",{beforeExpr:r,startsExpr:!0}),at:new n("@"),hash:new n("#",{startsExpr:!0}),interpreterDirective:new n("#!..."),eq:new n("=",{beforeExpr:r,isAssign:!0}),assign:new n("_=",{beforeExpr:r,isAssign:!0}),incDec:new n("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:new n("!",{beforeExpr:r,prefix:!0,startsExpr:!0}),tilde:new n("~",{beforeExpr:r,prefix:!0,startsExpr:!0}),pipeline:s("|>",0),nullishCoalescing:s("??",1),logicalOR:s("||",2),logicalAND:s("&&",3),bitwiseOR:s("|",4),bitwiseXOR:s("^",5),bitwiseAND:s("&",6),equality:s("==/!=/===/!==",7),relational:s("/<=/>=",8),bitShift:s("<>/>>>",9),plusMin:new n("+/-",{beforeExpr:r,binop:10,prefix:!0,startsExpr:!0}),modulo:new n("%",{beforeExpr:r,binop:11,startsExpr:!0}),star:s("*",11),slash:s("/",11),exponent:new n("**",{beforeExpr:r,binop:12,rightAssociative:!0}),_break:a("break"),_case:a("case",{beforeExpr:r}),_catch:a("catch"),_continue:a("continue"),_debugger:a("debugger"),_default:a("default",{beforeExpr:r}),_do:a("do",{isLoop:!0,beforeExpr:r}),_else:a("else",{beforeExpr:r}),_finally:a("finally"),_for:a("for",{isLoop:!0}),_function:a("function",{startsExpr:!0}),_if:a("if"),_return:a("return",{beforeExpr:r}),_switch:a("switch"),_throw:a("throw",{beforeExpr:r,prefix:!0,startsExpr:!0}),_try:a("try"),_var:a("var"),_const:a("const"),_while:a("while",{isLoop:!0}),_with:a("with"),_new:a("new",{beforeExpr:r,startsExpr:!0}),_this:a("this",{startsExpr:!0}),_super:a("super",{startsExpr:!0}),_class:a("class",{startsExpr:!0}),_extends:a("extends",{beforeExpr:r}),_export:a("export"),_import:a("import",{startsExpr:!0}),_null:a("null",{startsExpr:!0}),_true:a("true",{startsExpr:!0}),_false:a("false",{startsExpr:!0}),_in:a("in",{beforeExpr:r,binop:8}),_instanceof:a("instanceof",{beforeExpr:r,binop:8}),_typeof:a("typeof",{beforeExpr:r,prefix:!0,startsExpr:!0}),_void:a("void",{beforeExpr:r,prefix:!0,startsExpr:!0}),_delete:a("delete",{beforeExpr:r,prefix:!0,startsExpr:!0})};function u(e,t){return 2|(e?4:0)|(t?8:0)}function c(e){return null!=e&&"Property"===e.type&&"init"===e.kind&&!1===e.method}var l=/\r\n?|[\n\u2028\u2029]/,p=new RegExp(l.source,"g");function f(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var C=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function x(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 A=function e(t,r,n,i){h(this,e),this.token=t,this.isExpr=!!r,this.preserveSpace=!!n,this.override=i},w={braceStatement:new A("{",!1),braceExpression:new A("{",!0),templateQuasi:new A("${",!1),parenStatement:new A("(",!1),parenExpression:new A("(",!0),template:new A("`",!0,!0,(function(e){return e.readTmplToken()})),functionExpression:new A("function",!0),functionStatement:new A("function",!1)};o.parenR.updateContext=o.braceR.updateContext=function(){if(1!==this.state.context.length){var e=this.state.context.pop();e===w.braceStatement&&"function"===this.curContext().token&&(e=this.state.context.pop()),this.state.exprAllowed=!e.isExpr}else this.state.exprAllowed=!0},o.name.updateContext=function(e){var t=!1;e!==o.dot&&("of"===this.state.value&&!this.state.exprAllowed||"yield"===this.state.value&&this.scope.inGenerator)&&(t=!0),this.state.exprAllowed=t,this.state.isIterator&&(this.state.isIterator=!1)},o.braceL.updateContext=function(e){this.state.context.push(this.braceIsBlock(e)?w.braceStatement:w.braceExpression),this.state.exprAllowed=!0},o.dollarBraceL.updateContext=function(){this.state.context.push(w.templateQuasi),this.state.exprAllowed=!0},o.parenL.updateContext=function(e){var t=e===o._if||e===o._for||e===o._with||e===o._while;this.state.context.push(t?w.parenStatement:w.parenExpression),this.state.exprAllowed=!0},o.incDec.updateContext=function(){},o._function.updateContext=o._class.updateContext=function(e){!e.beforeExpr||e===o.semi||e===o._else||e===o._return&&l.test(this.input.slice(this.state.lastTokEnd,this.state.start))||(e===o.colon||e===o.braceL)&&this.curContext()===w.b_stat?this.state.context.push(w.functionStatement):this.state.context.push(w.functionExpression),this.state.exprAllowed=!1},o.backQuote.updateContext=function(){this.curContext()===w.template?this.state.context.pop():this.state.context.push(w.template),this.state.exprAllowed=!1};var F=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),S=new Set(["eval","arguments"]),k=function(e,t){return t&&"await"===e||"enum"===e};function T(e,t){return k(e,t)||F.has(e)}function P(e){return S.has(e)}function B(e,t){return T(e,t)||P(e)}var N=/^in(stanceof)?$/,I="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",O="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",_=new RegExp("["+I+"]"),j=new RegExp("["+I+O+"]");I=O=null;var L=[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,157,310,10,21,11,7,153,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,477,28,11,0,9,21,155,22,13,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,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,0,33,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,0,161,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,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,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,754,9486,286,50,2,18,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,2357,44,11,6,17,0,370,43,1301,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,42710,42,4148,12,221,3,5761,15,7472,3104,541],R=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,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,232,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,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,19723,1,5319,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,262,6,10,9,419,13,1495,6,110,6,6,9,792487,239];function M(e,t){for(var r=65536,n=0,i=t.length;ne)return!1;if((r+=t[n+1])>=e)return!0}return!1}function q(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&_.test(String.fromCharCode(e)):M(e,L)))}function U(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&j.test(String.fromCharCode(e)):M(e,L)||M(e,R))))}var z=["any","bool","boolean","empty","false","mixed","null","number","static","string","true","typeof","void","interface","extends","_"];function V(e){return"type"===e.importKind||"typeof"===e.importKind}function $(e){return(e.type===o.name||!!e.type.keyword)&&"from"!==e.value}var W={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},H=/\*?\s*@((?:no)?flow)\b/,J={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},G=/^[\da-fA-F]+$/,X=/^\d+$/;function Q(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function Y(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return Y(e.object)+"."+Y(e.property);throw new Error("Node had unexpected type: "+e.type)}w.j_oTag=new A("...",!0,!0),o.jsxName=new n("jsxName"),o.jsxText=new n("jsxText",{beforeExpr:!0}),o.jsxTagStart=new n("jsxTagStart",{startsExpr:!0}),o.jsxTagEnd=new n("jsxTagEnd"),o.jsxTagStart.updateContext=function(){this.state.context.push(w.j_expr),this.state.context.push(w.j_oTag),this.state.exprAllowed=!1},o.jsxTagEnd.updateContext=function(e){var t=this.state.context.pop();t===w.j_oTag&&e===o.slash||t===w.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===w.j_expr):this.state.exprAllowed=!0};var K=function e(t){h(this,e),this.var=[],this.lexical=[],this.functions=[],this.flags=t},Z=function(){function e(t,r){h(this,e),this.scopeStack=[],this.undefinedExports=new Map,this.raise=t,this.inModule=r}return d(e,[{key:"createScope",value:function(e){return new K(e)}},{key:"enter",value:function(e){this.scopeStack.push(this.createScope(e))}},{key:"exit",value:function(){this.scopeStack.pop()}},{key:"treatFunctionsAsVarInScope",value:function(e){return!!(2&e.flags||!this.inModule&&1&e.flags)}},{key:"declareName",value:function(e,t,r){var n=this.currentScope();if(8&t||16&t)this.checkRedeclarationInScope(n,e,t,r),16&t?n.functions.push(e):n.lexical.push(e),8&t&&this.maybeExportDefined(n,e);else if(4&t)for(var i=this.scopeStack.length-1;i>=0&&(n=this.scopeStack[i],this.checkRedeclarationInScope(n,e,t,r),n.var.push(e),this.maybeExportDefined(n,e),!(515&n.flags));--i);this.inModule&&1&n.flags&&this.undefinedExports.delete(e)}},{key:"maybeExportDefined",value:function(e,t){this.inModule&&1&e.flags&&this.undefinedExports.delete(t)}},{key:"checkRedeclarationInScope",value:function(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.raise(n,"Identifier '".concat(t,"' has already been declared"))}},{key:"isRedeclaredInScope",value:function(e,t,r){return!!(1&r)&&(8&r?e.lexical.indexOf(t)>-1||e.functions.indexOf(t)>-1||e.var.indexOf(t)>-1:16&r?e.lexical.indexOf(t)>-1||!this.treatFunctionsAsVarInScope(e)&&e.var.indexOf(t)>-1:e.lexical.indexOf(t)>-1&&!(32&e.flags&&e.lexical[0]===t)||!this.treatFunctionsAsVarInScope(e)&&e.functions.indexOf(t)>-1)}},{key:"checkLocalExport",value:function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&-1===this.scopeStack[0].functions.indexOf(e.name)&&this.undefinedExports.set(e.name,e.start)}},{key:"currentScope",value:function(){return this.scopeStack[this.scopeStack.length-1]}},{key:"currentVarScope",value:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(515&t.flags)return t}}},{key:"currentThisScope",value:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if((515&t.flags||256&t.flags)&&!(16&t.flags))return t}}},{key:"inFunction",get:function(){return(2&this.currentVarScope().flags)>0}},{key:"inGenerator",get:function(){return(8&this.currentVarScope().flags)>0}},{key:"inAsync",get:function(){return(4&this.currentVarScope().flags)>0}},{key:"allowSuper",get:function(){return(64&this.currentThisScope().flags)>0}},{key:"allowDirectSuper",get:function(){return(128&this.currentThisScope().flags)>0}},{key:"inNonArrowFunction",get:function(){return(2&this.currentThisScope().flags)>0}},{key:"treatFunctionsAsVar",get:function(){return this.treatFunctionsAsVarInScope(this.currentScope())}}]),e}(),ee=function(e){function t(){var e,r;h(this,t);for(var n=arguments.length,i=new Array(n),a=0;a-1){if(256&n){var i=!!(512&n),a=e.constEnums.indexOf(r)>-1;return i!==a}return!0}return 128&n&&e.classes.indexOf(r)>-1?e.lexical.indexOf(r)>-1&&!!(1&n):!!(2&n&&e.types.indexOf(r)>-1)||v(y(t.prototype),"isRedeclaredInScope",this).apply(this,arguments)}},{key:"checkLocalExport",value:function(e){-1===this.scopeStack[0].types.indexOf(e.name)&&-1===this.scopeStack[0].exportOnlyBindings.indexOf(e.name)&&v(y(t.prototype),"checkLocalExport",this).call(this,e)}}]),t}(Z);function re(e){if(null==e)throw new Error("Unexpected ".concat(e," value."));return e}function ne(e){if(!e)throw new Error("Assert fail")}function ie(e,t){return e.some((function(e){return Array.isArray(e)?e[0]===t:e===t}))}function ae(e,t,r){var n=e.find((function(e){return Array.isArray(e)?e[0]===t:e===t}));return n&&Array.isArray(n)?n[1][r]:null}o.placeholder=new n("%%",{startsExpr:!0});var se=["minimal","smart","fsharp"],oe={estree:function(e){return function(e){function t(){return h(this,t),g(this,y(t).apply(this,arguments))}return m(t,e),d(t,[{key:"estreeParseRegExpLiteral",value:function(e){var t=e.pattern,r=e.flags,n=null;try{n=new RegExp(t,r)}catch(e){}var i=this.estreeParseLiteral(n);return i.regex={pattern:t,flags:r},i}},{key:"estreeParseLiteral",value:function(e){return this.parseLiteral(e,"Literal")}},{key:"directiveToStmt",value:function(e){var t=e.value,r=this.startNodeAt(e.start,e.loc.start),n=this.startNodeAt(t.start,t.loc.start);return n.value=t.value,n.raw=t.extra.raw,r.expression=this.finishNodeAt(n,"Literal",t.end,t.loc.end),r.directive=t.extra.raw.slice(1,-1),this.finishNodeAt(r,"ExpressionStatement",e.end,e.loc.end)}},{key:"initFunction",value:function(e,r){v(y(t.prototype),"initFunction",this).call(this,e,r),e.expression=!1}},{key:"checkDeclaration",value:function(e){c(e)?this.checkDeclaration(e.value):v(y(t.prototype),"checkDeclaration",this).call(this,e)}},{key:"checkGetterSetterParams",value:function(e){var t=e,r="get"===t.kind?0:1,n=t.start;t.value.params.length!==r?"get"===t.kind?this.raise(n,"getter must not have any formal parameters"):this.raise(n,"setter must have exactly one formal parameter"):"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raise(n,"setter function argument must not be a rest parameter")}},{key:"checkLVal",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;switch(e.type){case"ObjectPattern":e.properties.forEach((function(e){r.checkLVal("Property"===e.type?e.value:e,n,i,"object destructuring pattern",s)}));break;default:v(y(t.prototype),"checkLVal",this).call(this,e,n,i,a,s)}}},{key:"checkDuplicatedProto",value:function(e,t){if(!("SpreadElement"===e.type||e.computed||e.method||e.shorthand)){var r=e.key;"__proto__"===("Identifier"===r.type?r.name:String(r.value))&&"init"===e.kind&&(t.used&&!t.start&&(t.start=r.start),t.used=!0)}}},{key:"isStrictBody",value:function(e){if("BlockStatement"===e.body.type&&e.body.body.length>0)for(var t=0,r=e.body.body;t2&&void 0!==arguments[2]&&arguments[2];v(y(t.prototype),"parseFunctionBody",this).call(this,e,r,n),e.expression="BlockStatement"!==e.body.type}},{key:"parseMethod",value:function(e,r,n,i,a,s){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=this.startNode();return u.kind=e.kind,(u=v(y(t.prototype),"parseMethod",this).call(this,u,r,n,i,a,s,o)).type="FunctionExpression",delete u.kind,e.value=u,s="ClassMethod"===s?"MethodDefinition":s,this.finishNode(e,s)}},{key:"parseObjectMethod",value:function(e,r,n,i,a){var s=v(y(t.prototype),"parseObjectMethod",this).call(this,e,r,n,i,a);return s&&(s.type="Property","method"===s.kind&&(s.kind="init"),s.shorthand=!1),s}},{key:"parseObjectProperty",value:function(e,r,n,i,a){var s=v(y(t.prototype),"parseObjectProperty",this).call(this,e,r,n,i,a);return s&&(s.kind="init",s.type="Property"),s}},{key:"toAssignable",value:function(e,r,n){return c(e)?(this.toAssignable(e.value,r,n),e):v(y(t.prototype),"toAssignable",this).call(this,e,r,n)}},{key:"toAssignableObjectExpressionProp",value:function(e,r,n){if("get"===e.kind||"set"===e.kind)throw this.raise(e.key.start,"Object pattern can't contain getter or setter");if(e.method)throw this.raise(e.key.start,"Object pattern can't contain methods");v(y(t.prototype),"toAssignableObjectExpressionProp",this).call(this,e,r,n)}}]),t}(e)},jsx:function(e){return function(e){function t(){return h(this,t),g(this,y(t).apply(this,arguments))}return m(t,e),d(t,[{key:"jsxReadToken",value:function(){for(var e="",r=this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,"Unterminated JSX contents");var n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?60===n&&this.state.exprAllowed?(++this.state.pos,this.finishToken(o.jsxTagStart)):v(y(t.prototype),"getTokenFromCode",this).call(this,n):(e+=this.input.slice(r,this.state.pos),this.finishToken(o.jsxText,e));case 38:e+=this.input.slice(r,this.state.pos),e+=this.jsxReadEntity(),r=this.state.pos;break;default:f(n)?(e+=this.input.slice(r,this.state.pos),e+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}}},{key:"jsxReadNewLine",value:function(e){var 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}},{key:"jsxReadString",value:function(e){for(var t="",r=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,"Unterminated string constant");var 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):f(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}return t+=this.input.slice(r,this.state.pos++),this.finishToken(o.string,t)}},{key:"jsxReadEntity",value:function(){for(var e,t="",r=0,n=this.input[this.state.pos],i=++this.state.pos;this.state.pos"):!Q(i)&&Q(a)?this.raise(a.start,"Expected corresponding JSX closing tag for <"+Y(i.name)+">"):Q(i)||Q(a)||Y(a.name)!==Y(i.name)&&this.raise(a.start,"Expected corresponding JSX closing tag for <"+Y(i.name)+">")}if(Q(i)?(r.openingFragment=i,r.closingFragment=a):(r.openingElement=i,r.closingElement=a),r.children=n,this.isRelational("<"))throw this.raise(this.state.start,"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?");return Q(i)?this.finishNode(r,"JSXFragment"):this.finishNode(r,"JSXElement")}},{key:"jsxParseElement",value:function(){var e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)}},{key:"parseExprAtom",value:function(e){return this.match(o.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(o.jsxTagStart)?this.jsxParseElement():this.isRelational("<")&&33!==this.input.charCodeAt(this.state.pos)?(this.finishToken(o.jsxTagStart),this.jsxParseElement()):v(y(t.prototype),"parseExprAtom",this).call(this,e)}},{key:"getTokenFromCode",value:function(e){if(this.state.inPropertyName)return v(y(t.prototype),"getTokenFromCode",this).call(this,e);var r=this.curContext();if(r===w.j_expr)return this.jsxReadToken();if(r===w.j_oTag||r===w.j_cTag){if(q(e))return this.jsxReadWord();if(62===e)return++this.state.pos,this.finishToken(o.jsxTagEnd);if((34===e||39===e)&&r===w.j_oTag)return this.jsxReadString(e)}return 60===e&&this.state.exprAllowed&&33!==this.input.charCodeAt(this.state.pos+1)?(++this.state.pos,this.finishToken(o.jsxTagStart)):v(y(t.prototype),"getTokenFromCode",this).call(this,e)}},{key:"updateContext",value:function(e){if(this.match(o.braceL)){var r=this.curContext();r===w.j_oTag?this.state.context.push(w.braceExpression):r===w.j_expr?this.state.context.push(w.templateQuasi):v(y(t.prototype),"updateContext",this).call(this,e),this.state.exprAllowed=!0}else{if(!this.match(o.slash)||e!==o.jsxTagStart)return v(y(t.prototype),"updateContext",this).call(this,e);this.state.context.length-=2,this.state.context.push(w.j_cTag),this.state.exprAllowed=!1}}}]),t}(e)},flow:function(e){return function(e){function t(e,r){var n;return h(this,t),(n=g(this,y(t).call(this,e,r))).flowPragma=void 0,n}return m(t,e),d(t,[{key:"shouldParseTypes",value:function(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}},{key:"shouldParseEnums",value:function(){return!!this.getPluginOption("flow","enums")}},{key:"finishToken",value:function(e,r){return e!==o.string&&e!==o.semi&&e!==o.interpreterDirective&&void 0===this.flowPragma&&(this.flowPragma=null),v(y(t.prototype),"finishToken",this).call(this,e,r)}},{key:"addComment",value:function(e){if(void 0===this.flowPragma){var r=H.exec(e.value);if(r)if("flow"===r[1])this.flowPragma="flow";else{if("noflow"!==r[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}return v(y(t.prototype),"addComment",this).call(this,e)}},{key:"flowParseTypeInitialiser",value:function(e){var t=this.state.inType;this.state.inType=!0,this.expect(e||o.colon);var r=this.flowParseType();return this.state.inType=t,r}},{key:"flowParsePredicate",value:function(){var e=this.startNode(),t=this.state.startLoc,r=this.state.start;this.expect(o.modulo);var n=this.state.startLoc;return this.expectContextual("checks"),t.line===n.line&&t.column===n.column-1||this.raise(r,"Spaces between ´%´ and ´checks´ are not allowed here."),this.eat(o.parenL)?(e.value=this.parseExpression(),this.expect(o.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}},{key:"flowParseTypeAndPredicateInitialiser",value:function(){var e=this.state.inType;this.state.inType=!0,this.expect(o.colon);var t=null,r=null;return this.match(o.modulo)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(o.modulo)&&(r=this.flowParsePredicate())),[t,r]}},{key:"flowParseDeclareClass",value:function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}},{key:"flowParseDeclareFunction",value:function(e){this.next();var t=e.id=this.parseIdentifier(),r=this.startNode(),n=this.startNode();this.isRelational("<")?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(o.parenL);var i=this.flowParseFunctionTypeParams();r.params=i.params,r.rest=i.rest,this.expect(o.parenR);var a=E(this.flowParseTypeAndPredicateInitialiser(),2);return r.returnType=a[0],e.predicate=a[1],n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.finishNode(e,"DeclareFunction")}},{key:"flowParseDeclare",value:function(e,t){if(this.match(o._class))return this.flowParseDeclareClass(e);if(this.match(o._function))return this.flowParseDeclareFunction(e);if(this.match(o._var))return this.flowParseDeclareVariable(e);if(this.eatContextual("module"))return this.match(o.dot)?this.flowParseDeclareModuleExports(e):(t&&this.raise(this.state.lastTokStart,"`declare module` cannot be used inside another `declare module`"),this.flowParseDeclareModule(e));if(this.isContextual("type"))return this.flowParseDeclareTypeAlias(e);if(this.isContextual("opaque"))return this.flowParseDeclareOpaqueType(e);if(this.isContextual("interface"))return this.flowParseDeclareInterface(e);if(this.match(o._export))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}},{key:"flowParseDeclareVariable",value:function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}},{key:"flowParseDeclareModule",value:function(e){var t=this;this.scope.enter(0),this.match(o.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();var r=e.body=this.startNode(),n=r.body=[];for(this.expect(o.braceL);!this.match(o.braceR);){var i=this.startNode();this.match(o._import)?(this.next(),this.isContextual("type")||this.match(o._typeof)||this.raise(this.state.lastTokStart,"Imports within a `declare module` body must always be `import type` or `import typeof`"),this.parseImport(i)):(this.expectContextual("declare","Only declares and type imports are allowed inside declare module"),i=this.flowParseDeclare(i,!0)),n.push(i)}this.scope.exit(),this.expect(o.braceR),this.finishNode(r,"BlockStatement");var a=null,s=!1,u="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";return n.forEach((function(e){!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(s&&t.raise(e.start,"Duplicate `declare module.exports` statement"),"ES"===a&&t.raise(e.start,u),a="CommonJS",s=!0):("CommonJS"===a&&t.raise(e.start,u),a="ES")})),e.kind=a||"CommonJS",this.finishNode(e,"DeclareModule")}},{key:"flowParseDeclareExportDeclaration",value:function(e,t){if(this.expect(o._export),this.eat(o._default))return this.match(o._function)||this.match(o._class)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(o._const)||this.isLet()||(this.isContextual("type")||this.isContextual("interface"))&&!t){var r=this.state.value,n=W[r];this.unexpected(this.state.start,"`declare export ".concat(r,"` is not supported. Use `").concat(n,"` instead"))}if(this.match(o._var)||this.match(o._function)||this.match(o._class)||this.isContextual("opaque"))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(o.star)||this.match(o.braceL)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque"))return"ExportNamedDeclaration"===(e=this.parseExport(e)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;throw this.unexpected()}},{key:"flowParseDeclareModuleExports",value:function(e){return this.next(),this.expectContextual("exports"),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}},{key:"flowParseDeclareTypeAlias",value:function(e){return this.next(),this.flowParseTypeAlias(e),e.type="DeclareTypeAlias",e}},{key:"flowParseDeclareOpaqueType",value:function(e){return this.next(),this.flowParseOpaqueType(e,!0),e.type="DeclareOpaqueType",e}},{key:"flowParseDeclareInterface",value:function(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")}},{key:"flowParseInterfaceish",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.id=this.flowParseRestrictedIdentifier(!t),this.scope.declareName(e.id.name,t?17:9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(o._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(o.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(o.comma))}if(this.isContextual("implements")){this.next();do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(o.comma))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}},{key:"flowParseInterfaceExtends",value:function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}},{key:"flowParseInterface",value:function(e){return this.flowParseInterfaceish(e),this.finishNode(e,"InterfaceDeclaration")}},{key:"checkNotUnderscore",value:function(e){"_"===e&&this.raise(this.state.start,"`_` is only allowed as a type argument to call or new")}},{key:"checkReservedType",value:function(e,t){z.indexOf(e)>-1&&this.raise(t,"Cannot overwrite reserved type ".concat(e))}},{key:"flowParseRestrictedIdentifier",value:function(e){return this.checkReservedType(this.state.value,this.state.start),this.parseIdentifier(e)}},{key:"flowParseTypeAlias",value:function(e){return e.id=this.flowParseRestrictedIdentifier(),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(o.eq),this.semicolon(),this.finishNode(e,"TypeAlias")}},{key:"flowParseOpaqueType",value:function(e,t){return this.expectContextual("type"),e.id=this.flowParseRestrictedIdentifier(!0),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(o.colon)&&(e.supertype=this.flowParseTypeInitialiser(o.colon)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(o.eq)),this.semicolon(),this.finishNode(e,"OpaqueType")}},{key:"flowParseTypeParameter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.state.start,r=this.startNode(),n=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return r.name=i.name,r.variance=n,r.bound=i.typeAnnotation,this.match(o.eq)?(this.eat(o.eq),r.default=this.flowParseType()):e&&this.raise(t,"Type parameter declaration needs a default, since a preceding type parameter declaration has a default."),this.finishNode(r,"TypeParameter")}},{key:"flowParseTypeParameterDeclaration",value:function(){var e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.isRelational("<")||this.match(o.jsxTagStart)?this.next():this.unexpected();var r=!1;do{var n=this.flowParseTypeParameter(r);t.params.push(n),n.default&&(r=!0),this.isRelational(">")||this.expect(o.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}},{key:"flowParseTypeParameterInstantiation",value:function(){var e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expectRelational("<");var r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(o.comma);return this.state.noAnonFunctionType=r,this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}},{key:"flowParseTypeParameterInstantiationCallOrNew",value:function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.isRelational(">")||this.expect(o.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}},{key:"flowParseInterfaceType",value:function(){var e=this.startNode();if(this.expectContextual("interface"),e.extends=[],this.eat(o._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(o.comma));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}},{key:"flowParseObjectPropertyKey",value:function(){return this.match(o.num)||this.match(o.string)?this.parseExprAtom():this.parseIdentifier(!0)}},{key:"flowParseObjectTypeIndexer",value:function(e,t,r){return e.static=t,this.lookahead().type===o.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(o.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}},{key:"flowParseObjectTypeInternalSlot",value:function(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(o.bracketR),this.expect(o.bracketR),this.isRelational("<")||this.match(o.parenL)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start))):(e.method=!1,this.eat(o.question)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}},{key:"flowParseObjectTypeMethodish",value:function(e){for(e.params=[],e.rest=null,e.typeParameters=null,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(o.parenL);!this.match(o.parenR)&&!this.match(o.ellipsis);)e.params.push(this.flowParseFunctionTypeParam()),this.match(o.parenR)||this.expect(o.comma);return this.eat(o.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam()),this.expect(o.parenR),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}},{key:"flowParseObjectTypeCallProperty",value:function(e,t){var r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")}},{key:"flowParseObjectType",value:function(e){var t=e.allowStatic,r=e.allowExact,n=e.allowSpread,i=e.allowProto,a=e.allowInexact,s=this.state.inType;this.state.inType=!0;var u,c,l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];var p=!1;for(r&&this.match(o.braceBarL)?(this.expect(o.braceBarL),u=o.braceBarR,c=!0):(this.expect(o.braceL),u=o.braceR,c=!1),l.exact=c;!this.match(u);){var h=!1,f=null,d=null,m=this.startNode();if(i&&this.isContextual("proto")){var y=this.lookahead();y.type!==o.colon&&y.type!==o.question&&(this.next(),f=this.state.start,t=!1)}if(t&&this.isContextual("static")){var D=this.lookahead();D.type!==o.colon&&D.type!==o.question&&(this.next(),h=!0)}var g=this.flowParseVariance();if(this.eat(o.bracketL))null!=f&&this.unexpected(f),this.eat(o.bracketL)?(g&&this.unexpected(g.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(m,h))):l.indexers.push(this.flowParseObjectTypeIndexer(m,h,g));else if(this.match(o.parenL)||this.isRelational("<"))null!=f&&this.unexpected(f),g&&this.unexpected(g.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(m,h));else{var v,E="init";if(this.isContextual("get")||this.isContextual("set")){var b=this.lookahead();b.type!==o.name&&b.type!==o.string&&b.type!==o.num||(E=this.state.value,this.next())}var C=this.flowParseObjectTypeProperty(m,h,f,g,E,n,null!==(v=a)&&void 0!==v?v:!c);null===C?(p=!0,d=this.state.lastTokStart):l.properties.push(C)}this.flowObjectTypeSemicolon(),!d||this.match(o.braceR)||this.match(o.braceBarR)||this.raise(d,"Explicit inexact syntax must appear at the end of an inexact object")}this.expect(u),n&&(l.inexact=p);var x=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=s,x}},{key:"flowParseObjectTypeProperty",value:function(e,t,r,n,i,a,s){if(this.eat(o.ellipsis))return this.match(o.comma)||this.match(o.semi)||this.match(o.braceR)||this.match(o.braceBarR)?(a?s||this.raise(this.state.lastTokStart,"Explicit inexact syntax cannot appear inside an explicit exact object type"):this.raise(this.state.lastTokStart,"Explicit inexact syntax cannot appear in class or interface definitions"),n&&this.raise(n.start,"Explicit inexact syntax cannot have variance"),null):(a||this.raise(this.state.lastTokStart,"Spread operator cannot appear in class or interface definitions"),null!=r&&this.unexpected(r),n&&this.raise(n.start,"Spread properties cannot have variance"),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=i;var u=!1;return this.isRelational("<")||this.match(o.parenL)?(e.method=!0,null!=r&&this.unexpected(r),n&&this.unexpected(n.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(e)):("init"!==i&&this.unexpected(),e.method=!1,this.eat(o.question)&&(u=!0),e.value=this.flowParseTypeInitialiser(),e.variance=n),e.optional=u,this.finishNode(e,"ObjectTypeProperty")}},{key:"flowCheckGetterSetterParams",value:function(e){var t="get"===e.kind?0:1,r=e.start;e.value.params.length+(e.value.rest?1:0)!==t&&("get"===e.kind?this.raise(r,"getter must not have any formal parameters"):this.raise(r,"setter must have exactly one formal parameter")),"set"===e.kind&&e.value.rest&&this.raise(r,"setter function argument must not be a rest parameter")}},{key:"flowObjectTypeSemicolon",value:function(){this.eat(o.semi)||this.eat(o.comma)||this.match(o.braceR)||this.match(o.braceBarR)||this.unexpected()}},{key:"flowParseQualifiedTypeIdentifier",value:function(e,t,r){e=e||this.state.start,t=t||this.state.startLoc;for(var n=r||this.parseIdentifier();this.eat(o.dot);){var i=this.startNodeAt(e,t);i.qualification=n,i.id=this.parseIdentifier(),n=this.finishNode(i,"QualifiedTypeIdentifier")}return n}},{key:"flowParseGenericType",value:function(e,t,r){var n=this.startNodeAt(e,t);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t,r),this.isRelational("<")&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}},{key:"flowParseTypeofType",value:function(){var e=this.startNode();return this.expect(o._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}},{key:"flowParseTupleType",value:function(){var e=this.startNode();for(e.types=[],this.expect(o.bracketL);this.state.pos0&&void 0!==arguments[0]?arguments[0]:[],t=null;!this.match(o.parenR)&&!this.match(o.ellipsis);)e.push(this.flowParseFunctionTypeParam()),this.match(o.parenR)||this.expect(o.comma);return this.eat(o.ellipsis)&&(t=this.flowParseFunctionTypeParam()),{params:e,rest:t}}},{key:"flowIdentToTypeAnnotation",value:function(e,t,r,n){switch(n.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,t,n)}}},{key:"flowParsePrimaryType",value:function(){var e,r,n=this.state.start,i=this.state.startLoc,a=this.startNode(),s=!1,u=this.state.noAnonFunctionType;switch(this.state.type){case o.name:return this.isContextual("interface")?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(n,i,a,this.parseIdentifier());case o.braceL:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case o.braceBarL:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case o.bracketL:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=u,r;case o.relational:if("<"===this.state.value)return a.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(o.parenL),e=this.flowParseFunctionTypeParams(),a.params=e.params,a.rest=e.rest,this.expect(o.parenR),this.expect(o.arrow),a.returnType=this.flowParseType(),this.finishNode(a,"FunctionTypeAnnotation");break;case o.parenL:if(this.next(),!this.match(o.parenR)&&!this.match(o.ellipsis))if(this.match(o.name)){var c=this.lookahead().type;s=c!==o.question&&c!==o.colon}else s=!0;if(s){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=u,this.state.noAnonFunctionType||!(this.match(o.comma)||this.match(o.parenR)&&this.lookahead().type===o.arrow))return this.expect(o.parenR),r;this.eat(o.comma)}return e=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),a.params=e.params,a.rest=e.rest,this.expect(o.parenR),this.expect(o.arrow),a.returnType=this.flowParseType(),a.typeParameters=null,this.finishNode(a,"FunctionTypeAnnotation");case o.string:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case o._true:case o._false:return a.value=this.match(o._true),this.next(),this.finishNode(a,"BooleanLiteralTypeAnnotation");case o.plusMin:if("-"===this.state.value){if(this.next(),this.match(o.num))return this.parseLiteral(-this.state.value,"NumberLiteralTypeAnnotation",a.start,a.loc.start);if(this.match(o.bigint))return this.parseLiteral(-this.state.value,"BigIntLiteralTypeAnnotation",a.start,a.loc.start);throw this.raise(this.state.start,'Unexpected token, expected "number" or "bigint"')}this.unexpected();case o.num:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case o.bigint:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case o._void:return this.next(),this.finishNode(a,"VoidTypeAnnotation");case o._null:return this.next(),this.finishNode(a,"NullLiteralTypeAnnotation");case o._this:return this.next(),this.finishNode(a,"ThisTypeAnnotation");case o.star:return this.next(),this.finishNode(a,"ExistsTypeAnnotation");default:if("typeof"===this.state.type.keyword)return this.flowParseTypeofType();if(this.state.type.keyword){var l=this.state.type.label;return this.next(),v(y(t.prototype),"createIdentifier",this).call(this,a,l)}}throw this.unexpected()}},{key:"flowParsePostfixType",value:function(){for(var e=this.state.start,t=this.state.startLoc,r=this.flowParsePrimaryType();this.match(o.bracketL)&&!this.canInsertSemicolon();){var n=this.startNodeAt(e,t);n.elementType=r,this.expect(o.bracketL),this.expect(o.bracketR),r=this.finishNode(n,"ArrayTypeAnnotation")}return r}},{key:"flowParsePrefixType",value:function(){var e=this.startNode();return this.eat(o.question)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}},{key:"flowParseAnonFunctionWithoutParens",value:function(){var e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(o.arrow)){var t=this.startNodeAt(e.start,e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}},{key:"flowParseIntersectionType",value:function(){var e=this.startNode();this.eat(o.bitwiseAND);var t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(o.bitwiseAND);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}},{key:"flowParseUnionType",value:function(){var e=this.startNode();this.eat(o.bitwiseOR);var t=this.flowParseIntersectionType();for(e.types=[t];this.eat(o.bitwiseOR);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}},{key:"flowParseType",value:function(){var e=this.state.inType;this.state.inType=!0;var t=this.flowParseUnionType();return this.state.inType=e,this.state.exprAllowed=this.state.exprAllowed||this.state.noAnonFunctionType,t}},{key:"flowParseTypeOrImplicitInstantiation",value:function(){if(this.state.type===o.name&&"_"===this.state.value){var e=this.state.start,t=this.state.startLoc,r=this.parseIdentifier();return this.flowParseGenericType(e,t,r)}return this.flowParseType()}},{key:"flowParseTypeAnnotation",value:function(){var e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}},{key:"flowParseTypeAnnotatableIdentifier",value:function(e){var t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(o.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}},{key:"typeCastToParameter",value:function(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc.end),e.expression}},{key:"flowParseVariance",value:function(){var e=null;return this.match(o.plusMin)&&(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")),e}},{key:"parseFunctionBody",value:function(e,r){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r?this.forwardNoArrowParamsConversionAt(e,(function(){return v(y(t.prototype),"parseFunctionBody",n).call(n,e,!0,i)})):v(y(t.prototype),"parseFunctionBody",this).call(this,e,!1,i)}},{key:"parseFunctionBodyAndFinish",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.match(o.colon)){var i=this.startNode(),a=this.flowParseTypeAndPredicateInitialiser(),s=E(a,2);i.typeAnnotation=s[0],e.predicate=s[1],e.returnType=i.typeAnnotation?this.finishNode(i,"TypeAnnotation"):null}v(y(t.prototype),"parseFunctionBodyAndFinish",this).call(this,e,r,n)}},{key:"parseStatement",value:function(e,r){if(this.state.strict&&this.match(o.name)&&"interface"===this.state.value){var n=this.startNode();return this.next(),this.flowParseInterface(n)}if(this.shouldParseEnums()&&this.isContextual("enum")){var i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}var a=v(y(t.prototype),"parseStatement",this).call(this,e,r);return void 0!==this.flowPragma||this.isValidDirective(a)||(this.flowPragma=null),a}},{key:"parseExpressionStatement",value:function(e,r){if("Identifier"===r.type)if("declare"===r.name){if(this.match(o._class)||this.match(o.name)||this.match(o._function)||this.match(o._var)||this.match(o._export))return this.flowParseDeclare(e)}else if(this.match(o.name)){if("interface"===r.name)return this.flowParseInterface(e);if("type"===r.name)return this.flowParseTypeAlias(e);if("opaque"===r.name)return this.flowParseOpaqueType(e,!1)}return v(y(t.prototype),"parseExpressionStatement",this).call(this,e,r)}},{key:"shouldParseExportDeclaration",value:function(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||this.shouldParseEnums()&&this.isContextual("enum")||v(y(t.prototype),"shouldParseExportDeclaration",this).call(this)}},{key:"isExportDefaultSpecifier",value:function(){return(!this.match(o.name)||!("type"===this.state.value||"interface"===this.state.value||"opaque"===this.state.value||this.shouldParseEnums()&&"enum"===this.state.value))&&v(y(t.prototype),"isExportDefaultSpecifier",this).call(this)}},{key:"parseExportDefaultExpression",value:function(){if(this.shouldParseEnums()&&this.isContextual("enum")){var e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return v(y(t.prototype),"parseExportDefaultExpression",this).call(this)}},{key:"parseConditional",value:function(e,r,n,i,a){var s=this;if(!this.match(o.question))return e;if(a){var u=this.tryParse((function(){return v(y(t.prototype),"parseConditional",s).call(s,e,r,n,i)}));return u.node?(u.error&&(this.state=u.failState),u.node):(a.start=u.error.pos||this.state.start,e)}this.expect(o.question);var c=this.state.clone(),l=this.state.noArrowAt,p=this.startNodeAt(n,i),h=this.tryParseConditionalConsequent(),f=h.consequent,d=h.failed,m=E(this.getArrowLikeExpressions(f),2),D=m[0],g=m[1];if(d||g.length>0){var C=b(l);if(g.length>0){this.state=c,this.state.noArrowAt=C;for(var x=0;x1&&this.raise(c.start,"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate."),d&&1===D.length){this.state=c,this.state.noArrowAt=C.concat(D[0].start);var F=this.tryParseConditionalConsequent();f=F.consequent,d=F.failed}}return this.getArrowLikeExpressions(f,!0),this.state.noArrowAt=l,this.expect(o.colon),p.test=e,p.consequent=f,p.alternate=this.forwardNoArrowParamsConversionAt(p,(function(){return s.parseMaybeAssign(r,void 0,void 0,void 0)})),this.finishNode(p,"ConditionalExpression")}},{key:"tryParseConditionalConsequent",value:function(){this.state.noArrowParamsConversionAt.push(this.state.start);var e=this.parseMaybeAssign(),t=!this.match(o.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}},{key:"getArrowLikeExpressions",value:function(e,t){for(var r=this,n=[e],i=[];0!==n.length;){var a=n.pop();"ArrowFunctionExpression"===a.type?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):i.push(a),n.push(a.body)):"ConditionalExpression"===a.type&&(n.push(a.consequent),n.push(a.alternate))}return t?(i.forEach((function(e){return r.finishArrowValidation(e)})),[i,[]]):function(e,t){for(var r=[],n=[],i=0;i1)&&t||this.raise(n.typeAnnotation.start,"The type cast expression is expected to be wrapped with parenthesis")}return e}},{key:"checkLVal",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if("TypeCastExpression"!==e.type)return v(y(t.prototype),"checkLVal",this).call(this,e,r,n,i)}},{key:"parseClassProperty",value:function(e){return this.match(o.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),v(y(t.prototype),"parseClassProperty",this).call(this,e)}},{key:"parseClassPrivateProperty",value:function(e){return this.match(o.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),v(y(t.prototype),"parseClassPrivateProperty",this).call(this,e)}},{key:"isClassMethod",value:function(){return this.isRelational("<")||v(y(t.prototype),"isClassMethod",this).call(this)}},{key:"isClassProperty",value:function(){return this.match(o.colon)||v(y(t.prototype),"isClassProperty",this).call(this)}},{key:"isNonstaticConstructor",value:function(e){return!this.match(o.colon)&&v(y(t.prototype),"isNonstaticConstructor",this).call(this,e)}},{key:"pushClassMethod",value:function(e,r,n,i,a,s){r.variance&&this.unexpected(r.variance.start),delete r.variance,this.isRelational("<")&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),v(y(t.prototype),"pushClassMethod",this).call(this,e,r,n,i,a,s)}},{key:"pushClassPrivateMethod",value:function(e,r,n,i){r.variance&&this.unexpected(r.variance.start),delete r.variance,this.isRelational("<")&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),v(y(t.prototype),"pushClassPrivateMethod",this).call(this,e,r,n,i)}},{key:"parseClassSuper",value:function(e){if(v(y(t.prototype),"parseClassSuper",this).call(this,e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual("implements")){this.next();var r=e.implements=[];do{var n=this.startNode();n.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,r.push(this.finishNode(n,"ClassImplements"))}while(this.eat(o.comma))}}},{key:"parsePropertyName",value:function(e){var r=this.flowParseVariance(),n=v(y(t.prototype),"parsePropertyName",this).call(this,e);return e.variance=r,n}},{key:"parseObjPropValue",value:function(e,r,n,i,a,s,u,c){var l;e.variance&&this.unexpected(e.variance.start),delete e.variance,this.isRelational("<")&&(l=this.flowParseTypeParameterDeclaration(),this.match(o.parenL)||this.unexpected()),v(y(t.prototype),"parseObjPropValue",this).call(this,e,r,n,i,a,s,u,c),l&&((e.value||e).typeParameters=l)}},{key:"parseAssignableListItemTypes",value:function(e){return this.eat(o.question)&&("Identifier"!==e.type&&this.raise(e.start,"A binding pattern parameter cannot be optional in an implementation signature."),e.optional=!0),this.match(o.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),this.resetEndLocation(e),e}},{key:"parseMaybeDefault",value:function(e,r,n){var i=v(y(t.prototype),"parseMaybeDefault",this).call(this,e,r,n);return"AssignmentPattern"===i.type&&i.typeAnnotation&&i.right.startt.length){e.members=r;for(var a=0;a=h){a.members=s.booleanMembers,e.body=this.finishNode(a,"EnumBooleanBody");for(var f=0,d=s.defaultedMembers;f=h){a.members=s.numberMembers,e.body=this.finishNode(a,"EnumNumberBody");for(var y=0,D=s.defaultedMembers;y")}throw new Error("Unreachable")}},{key:"tsParseList",value:function(e,t){for(var r=[];!this.tsIsListTerminator(e);)r.push(t());return r}},{key:"tsParseDelimitedList",value:function(e,t){return re(this.tsParseDelimitedListWorker(e,t,!0))}},{key:"tsParseDelimitedListWorker",value:function(e,t,r){for(var n=[];!this.tsIsListTerminator(e);){var i=t();if(null==i)return;if(n.push(i),!this.eat(o.comma)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(o.comma))}}return n}},{key:"tsParseBracketedList",value:function(e,t,r,n){n||(r?this.expect(o.bracketL):this.expectRelational("<"));var i=this.tsParseDelimitedList(e,t);return r?this.expect(o.bracketR):this.expectRelational(">"),i}},{key:"tsParseImportType",value:function(){var e=this.startNode();return this.expect(o._import),this.expect(o.parenL),this.match(o.string)||this.raise(this.state.start,"Argument in a type import must be a string literal"),e.argument=this.parseExprAtom(),this.expect(o.parenR),this.eat(o.dot)&&(e.qualifier=this.tsParseEntityName(!0)),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}},{key:"tsParseEntityName",value:function(e){for(var t=this.parseIdentifier();this.eat(o.dot);){var r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdentifier(e),t=this.finishNode(r,"TSQualifiedName")}return t}},{key:"tsParseTypeReference",value:function(){var e=this.startNode();return e.typeName=this.tsParseEntityName(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}},{key:"tsParseThisTypePredicate",value:function(e){this.next();var t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),this.finishNode(t,"TSTypePredicate")}},{key:"tsParseThisTypeNode",value:function(){var e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}},{key:"tsParseTypeQuery",value:function(){var e=this.startNode();return this.expect(o._typeof),this.match(o._import)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(!0),this.finishNode(e,"TSTypeQuery")}},{key:"tsParseTypeParameter",value:function(){var e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsEatThenParseType(o._extends),e.default=this.tsEatThenParseType(o.eq),this.finishNode(e,"TSTypeParameter")}},{key:"tsTryParseTypeParameters",value:function(){if(this.isRelational("<"))return this.tsParseTypeParameters()}},{key:"tsParseTypeParameters",value:function(){var e=this.startNode();return this.isRelational("<")||this.match(o.jsxTagStart)?this.next():this.unexpected(),e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),this.finishNode(e,"TSTypeParameterDeclaration")}},{key:"tsTryNextParseConstantContext",value:function(){return this.lookahead().type===o._const?(this.next(),this.tsParseTypeReference()):null}},{key:"tsFillSignature",value:function(e,t){var r=e===o.arrow;t.typeParameters=this.tsTryParseTypeParameters(),this.expect(o.parenL),t.parameters=this.tsParseBindingListForSignature(),r?t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}},{key:"tsParseBindingListForSignature",value:function(){var e=this;return this.parseBindingList(o.parenR,41).map((function(t){return"Identifier"!==t.type&&"RestElement"!==t.type&&"ObjectPattern"!==t.type&&"ArrayPattern"!==t.type&&e.raise(t.start,"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern,"+"instead got ".concat(t.type)),t}))}},{key:"tsParseTypeMemberSemicolon",value:function(){this.eat(o.comma)||this.semicolon()}},{key:"tsParseSignatureMember",value:function(e,t){return this.tsFillSignature(o.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}},{key:"tsIsUnambiguouslyIndexSignature",value:function(){return this.next(),this.eat(o.name)&&this.match(o.colon)}},{key:"tsTryParseIndexSignature",value:function(e){if(this.match(o.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(o.bracketL);var t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(o.bracketR),e.parameters=[t];var r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}}},{key:"tsParsePropertyOrMethodSignature",value:function(e,t){this.eat(o.question)&&(e.optional=!0);var r=e;if(t||!this.match(o.parenL)&&!this.isRelational("<")){var n=r;t&&(n.readonly=!0);var i=this.tsTryParseTypeAnnotation();return i&&(n.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSPropertySignature")}var a=r;return this.tsFillSignature(o.colon,a),this.tsParseTypeMemberSemicolon(),this.finishNode(a,"TSMethodSignature")}},{key:"tsParseTypeMember",value:function(){var e=this.startNode();if(this.match(o.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(o._new)){var t=this.startNode();return this.next(),this.match(o.parenL)||this.isRelational("<")?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}var r=!!this.tsParseModifier(["readonly"]),n=this.tsTryParseIndexSignature(e);return n?(r&&(e.readonly=!0),n):(this.parsePropertyName(e),this.tsParsePropertyOrMethodSignature(e,r))}},{key:"tsParseTypeLiteral",value:function(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}},{key:"tsParseObjectTypeMembers",value:function(){this.expect(o.braceL);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(o.braceR),e}},{key:"tsIsStartOfMappedType",value:function(){return this.next(),this.eat(o.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(o.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(o._in))))}},{key:"tsParseMappedTypeParameter",value:function(){var e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsExpectThenParseType(o._in),this.finishNode(e,"TSTypeParameter")}},{key:"tsParseMappedType",value:function(){var e=this.startNode();return this.expect(o.braceL),this.match(o.plusMin)?(e.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(o.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),this.expect(o.bracketR),this.match(o.plusMin)?(e.optional=this.state.value,this.next(),this.expect(o.question)):this.eat(o.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(o.braceR),this.finishNode(e,"TSMappedType")}},{key:"tsParseTupleType",value:function(){var e=this,t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var r=!1;return t.elementTypes.forEach((function(t){"TSOptionalType"===t.type?r=!0:r&&"TSRestType"!==t.type&&e.raise(t.start,"A required element cannot follow an optional element.")})),this.finishNode(t,"TSTupleType")}},{key:"tsParseTupleElementType",value:function(){if(this.match(o.ellipsis)){var e=this.startNode();return this.next(),e.typeAnnotation=this.tsParseType(),this.checkCommaAfterRest(93),this.finishNode(e,"TSRestType")}var t=this.tsParseType();if(this.eat(o.question)){var r=this.startNodeAtNode(t);return r.typeAnnotation=t,this.finishNode(r,"TSOptionalType")}return t}},{key:"tsParseParenthesizedType",value:function(){var e=this.startNode();return this.expect(o.parenL),e.typeAnnotation=this.tsParseType(),this.expect(o.parenR),this.finishNode(e,"TSParenthesizedType")}},{key:"tsParseFunctionOrConstructorType",value:function(e){var t=this.startNode();return"TSConstructorType"===e&&this.expect(o._new),this.tsFillSignature(o.arrow,t),this.finishNode(t,e)}},{key:"tsParseLiteralTypeNode",value:function(){var e=this,t=this.startNode();return t.literal=function(){switch(e.state.type){case o.num:case o.string:case o._true:case o._false:return e.parseExprAtom();default:throw e.unexpected()}}(),this.finishNode(t,"TSLiteralType")}},{key:"tsParseTemplateLiteralType",value:function(){var e=this.startNode(),t=this.parseTemplate(!1);return t.expressions.length>0&&this.raise(t.expressions[0].start,"Template literal types cannot have any substitution"),e.literal=t,this.finishNode(e,"TSLiteralType")}},{key:"tsParseNonArrayType",value:function(){switch(this.state.type){case o.name:case o._void:case o._null:var e=this.match(o._void)?"TSVoidKeyword":this.match(o._null)?"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!==e&&46!==this.lookaheadCharCode()){var t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference();case o.string:case o.num:case o._true:case o._false:return this.tsParseLiteralTypeNode();case o.plusMin:if("-"===this.state.value){var r=this.startNode();if(this.lookahead().type!==o.num)throw this.unexpected();return r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case o._this:var n=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(n):n;case o._typeof:return this.tsParseTypeQuery();case o._import:return this.tsParseImportType();case o.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case o.bracketL:return this.tsParseTupleType();case o.parenL:return this.tsParseParenthesizedType();case o.backQuote:return this.tsParseTemplateLiteralType()}throw this.unexpected()}},{key:"tsParseArrayTypeOrHigher",value:function(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(o.bracketL);)if(this.match(o.bracketR)){var t=this.startNodeAtNode(e);t.elementType=e,this.expect(o.bracketR),e=this.finishNode(t,"TSArrayType")}else{var r=this.startNodeAtNode(e);r.objectType=e,r.indexType=this.tsParseType(),this.expect(o.bracketR),e=this.finishNode(r,"TSIndexedAccessType")}return e}},{key:"tsParseTypeOperator",value:function(e){var t=this.startNode();return this.expectContextual(e),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===e&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}},{key:"tsCheckTypeAnnotationForReadOnly",value:function(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e.start,"'readonly' type modifier is only permitted on array and tuple literal types.")}}},{key:"tsParseInferType",value:function(){var e=this.startNode();this.expectContextual("infer");var t=this.startNode();return t.name=this.parseIdentifierName(t.start),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}},{key:"tsParseTypeOperatorOrHigher",value:function(){var e=this,t=["keyof","unique","readonly"].find((function(t){return e.isContextual(t)}));return t?this.tsParseTypeOperator(t):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()}},{key:"tsParseUnionOrIntersectionType",value:function(e,t,r){this.eat(r);var n=t();if(this.match(r)){for(var i=[n];this.eat(r);)i.push(t());var a=this.startNodeAtNode(n);a.types=i,n=this.finishNode(a,e)}return n}},{key:"tsParseIntersectionTypeOrHigher",value:function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),o.bitwiseAND)}},{key:"tsParseUnionTypeOrHigher",value:function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),o.bitwiseOR)}},{key:"tsIsStartOfFunctionType",value:function(){return!!this.isRelational("<")||this.match(o.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}},{key:"tsSkipParameterStart",value:function(){if(this.match(o.name)||this.match(o._this))return this.next(),!0;if(this.match(o.braceL)){var e=1;for(this.next();e>0;)this.match(o.braceL)?++e:this.match(o.braceR)&&--e,this.next();return!0}if(this.match(o.bracketL)){var t=1;for(this.next();t>0;)this.match(o.bracketL)?++t:this.match(o.bracketR)&&--t,this.next();return!0}return!1}},{key:"tsIsUnambiguouslyStartOfFunctionType",value:function(){if(this.next(),this.match(o.parenR)||this.match(o.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(o.colon)||this.match(o.comma)||this.match(o.question)||this.match(o.eq))return!0;if(this.match(o.parenR)&&(this.next(),this.match(o.arrow)))return!0}return!1}},{key:"tsParseTypeOrTypePredicateAnnotation",value:function(e){var t=this;return this.tsInType((function(){var r=t.startNode();t.expect(e);var n=t.tsTryParse(t.tsParseTypePredicateAsserts.bind(t)),i=t.tsIsIdentifier()&&t.tsTryParse(t.tsParseTypePredicatePrefix.bind(t));if(!i){if(!n)return t.tsParseTypeAnnotation(!1,r);var a=t.startNodeAtNode(r);return a.parameterName=t.parseIdentifier(),a.asserts=n,r.typeAnnotation=t.finishNode(a,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")}var s=t.tsParseTypeAnnotation(!1),o=t.startNodeAtNode(r);return o.parameterName=i,o.typeAnnotation=s,o.asserts=n,r.typeAnnotation=t.finishNode(o,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")}))}},{key:"tsTryParseTypeOrTypePredicateAnnotation",value:function(){return this.match(o.colon)?this.tsParseTypeOrTypePredicateAnnotation(o.colon):void 0}},{key:"tsTryParseTypeAnnotation",value:function(){return this.match(o.colon)?this.tsParseTypeAnnotation():void 0}},{key:"tsTryParseType",value:function(){return this.tsEatThenParseType(o.colon)}},{key:"tsParseTypePredicatePrefix",value:function(){var e=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e}},{key:"tsParseTypePredicateAsserts",value:function(){return!!this.tsIsIdentifier()&&!("asserts"!==this.parseIdentifier().name||this.hasPrecedingLineBreak()||!this.tsIsIdentifier())}},{key:"tsParseTypeAnnotation",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.startNode();return this.tsInType((function(){t&&e.expect(o.colon),r.typeAnnotation=e.tsParseType()})),this.finishNode(r,"TSTypeAnnotation")}},{key:"tsParseType",value:function(){ne(this.state.inType);var e=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(o._extends))return e;var t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsParseNonConditionalType(),this.expect(o.question),t.trueType=this.tsParseType(),this.expect(o.colon),t.falseType=this.tsParseType(),this.finishNode(t,"TSConditionalType")}},{key:"tsParseNonConditionalType",value:function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(o._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.tsParseUnionTypeOrHigher()}},{key:"tsParseTypeAssertion",value:function(){var e=this.startNode(),t=this.tsTryNextParseConstantContext();return e.typeAnnotation=t||this.tsNextThenParseType(),this.expectRelational(">"),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}},{key:"tsParseHeritageClause",value:function(e){var t=this.state.start,r=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return r.length||this.raise(t,"'".concat(e,"' list cannot be empty.")),r}},{key:"tsParseExpressionWithTypeArguments",value:function(){var e=this.startNode();return e.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}},{key:"tsParseInterfaceDeclaration",value:function(e){e.id=this.parseIdentifier(),this.checkLVal(e.id,130,void 0,"typescript interface declaration"),e.typeParameters=this.tsTryParseTypeParameters(),this.eat(o._extends)&&(e.extends=this.tsParseHeritageClause("extends"));var t=this.startNode();return t.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(t,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}},{key:"tsParseTypeAliasDeclaration",value:function(e){return e.id=this.parseIdentifier(),this.checkLVal(e.id,2,void 0,"typescript type alias"),e.typeParameters=this.tsTryParseTypeParameters(),e.typeAnnotation=this.tsExpectThenParseType(o.eq),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}},{key:"tsInNoContext",value:function(e){var t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}},{key:"tsInType",value:function(e){var t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}},{key:"tsEatThenParseType",value:function(e){return this.match(e)?this.tsNextThenParseType():void 0}},{key:"tsExpectThenParseType",value:function(e){var t=this;return this.tsDoThenParseType((function(){return t.expect(e)}))}},{key:"tsNextThenParseType",value:function(){var e=this;return this.tsDoThenParseType((function(){return e.next()}))}},{key:"tsDoThenParseType",value:function(e){var t=this;return this.tsInType((function(){return e(),t.tsParseType()}))}},{key:"tsParseEnumMember",value:function(){var e=this.startNode();return e.id=this.match(o.string)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(o.eq)&&(e.initializer=this.parseMaybeAssign()),this.finishNode(e,"TSEnumMember")}},{key:"tsParseEnumDeclaration",value:function(e,t){return t&&(e.const=!0),e.id=this.parseIdentifier(),this.checkLVal(e.id,t?779:267,void 0,"typescript enum declaration"),this.expect(o.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(o.braceR),this.finishNode(e,"TSEnumDeclaration")}},{key:"tsParseModuleBlock",value:function(){var e=this.startNode();return this.scope.enter(0),this.expect(o.braceL),this.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,o.braceR),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}},{key:"tsParseModuleOrNamespaceDeclaration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.id=this.parseIdentifier(),t||this.checkLVal(e.id,1024,null,"module or namespace declaration"),this.eat(o.dot)){var r=this.startNode();this.tsParseModuleOrNamespaceDeclaration(r,!0),e.body=r}else this.scope.enter(512),e.body=this.tsParseModuleBlock(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}},{key:"tsParseAmbientExternalModuleDeclaration",value:function(e){return this.isContextual("global")?(e.global=!0,e.id=this.parseIdentifier()):this.match(o.string)?e.id=this.parseExprAtom():this.unexpected(),this.match(o.braceL)?(this.scope.enter(512),e.body=this.tsParseModuleBlock(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}},{key:"tsParseImportEqualsDeclaration",value:function(e,t){return e.isExport=t||!1,e.id=this.parseIdentifier(),this.expect(o.eq),e.moduleReference=this.tsParseModuleReference(),this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}},{key:"tsIsExternalModuleReference",value:function(){return this.isContextual("require")&&40===this.lookaheadCharCode()}},{key:"tsParseModuleReference",value:function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}},{key:"tsParseExternalModuleReference",value:function(){var e=this.startNode();if(this.expectContextual("require"),this.expect(o.parenL),!this.match(o.string))throw this.unexpected();return e.expression=this.parseExprAtom(),this.expect(o.parenR),this.finishNode(e,"TSExternalModuleReference")}},{key:"tsLookAhead",value:function(e){var t=this.state.clone(),r=e();return this.state=t,r}},{key:"tsTryParseAndCatch",value:function(e){var t=this.tryParse((function(t){return e()||t()}));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}},{key:"tsTryParse",value:function(e){var t=this.state.clone(),r=e();return void 0!==r&&!1!==r?r:void(this.state=t)}},{key:"tsTryParseDeclare",value:function(e){if(!this.isLineTerminator()){var t,r=this.state.type;switch(this.isContextual("let")&&(r=o._var,t="let"),r){case o._function:return this.parseFunctionStatement(e,!1,!0);case o._class:return e.declare=!0,this.parseClass(e,!0,!1);case o._const:if(this.match(o._const)&&this.isLookaheadContextual("enum"))return this.expect(o._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0);case o._var:return t=t||this.state.value,this.parseVarStatement(e,t);case o.name:var n=this.state.value;return"global"===n?this.tsParseAmbientExternalModuleDeclaration(e):this.tsParseDeclaration(e,n,!0)}}}},{key:"tsTryParseExportDeclaration",value:function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}},{key:"tsParseExpressionStatement",value:function(e,t){switch(t.name){case"declare":var r=this.tsTryParseDeclare(e);if(r)return r.declare=!0,r;break;case"global":if(this.match(o.braceL)){this.scope.enter(512);var n=e;return n.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1)}}},{key:"tsParseDeclaration",value:function(e,t,r){switch(t){case"abstract":if(this.tsCheckLineTerminatorAndMatch(o._class,r)){var n=e;return n.abstract=!0,r&&(this.next(),this.match(o._class)||this.unexpected(null,o._class)),this.parseClass(n,!0,!1)}break;case"enum":if(r||this.match(o.name))return r&&this.next(),this.tsParseEnumDeclaration(e,!1);break;case"interface":if(this.tsCheckLineTerminatorAndMatch(o.name,r))return r&&this.next(),this.tsParseInterfaceDeclaration(e);break;case"module":if(r&&this.next(),this.match(o.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(this.tsCheckLineTerminatorAndMatch(o.name,r))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"namespace":if(this.tsCheckLineTerminatorAndMatch(o.name,r))return r&&this.next(),this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminatorAndMatch(o.name,r))return r&&this.next(),this.tsParseTypeAliasDeclaration(e)}}},{key:"tsCheckLineTerminatorAndMatch",value:function(e,t){return(t||this.match(e))&&!this.isLineTerminator()}},{key:"tsTryParseGenericAsyncArrowFunction",value:function(e,r){var n=this;if(this.isRelational("<")){var i=this.tsTryParseAndCatch((function(){var i=n.startNodeAt(e,r);return i.typeParameters=n.tsParseTypeParameters(),v(y(t.prototype),"parseFunctionParams",n).call(n,i),i.returnType=n.tsTryParseTypeOrTypePredicateAnnotation(),n.expect(o.arrow),i}));if(i)return this.parseArrowExpression(i,null,!0)}}},{key:"tsParseTypeArguments",value:function(){var e=this,t=this.startNode();return t.params=this.tsInType((function(){return e.tsInNoContext((function(){return e.expectRelational("<"),e.tsParseDelimitedList("TypeParametersOrArguments",e.tsParseType.bind(e))}))})),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(t,"TSTypeParameterInstantiation")}},{key:"tsIsDeclarationStart",value:function(){if(this.match(o.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1}},{key:"isExportDefaultSpecifier",value:function(){return!this.tsIsDeclarationStart()&&v(y(t.prototype),"isExportDefaultSpecifier",this).call(this)}},{key:"parseAssignableListItem",value:function(e,t){var r,n=this.state.start,i=this.state.startLoc,a=!1;e&&(r=this.parseAccessModifier(),a=!!this.tsParseModifier(["readonly"]));var s=this.parseMaybeDefault();this.parseAssignableListItemTypes(s);var o=this.parseMaybeDefault(s.start,s.loc.start,s);if(r||a){var u=this.startNodeAt(n,i);return t.length&&(u.decorators=t),r&&(u.accessibility=r),a&&(u.readonly=a),"Identifier"!==o.type&&"AssignmentPattern"!==o.type&&this.raise(u.start,"A parameter property may not be declared using a binding pattern."),u.parameter=o,this.finishNode(u,"TSParameterProperty")}return t.length&&(s.decorators=t),o}},{key:"parseFunctionBodyAndFinish",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(o.colon)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(o.colon));var i="FunctionDeclaration"===r?"TSDeclareFunction":"ClassMethod"===r?"TSDeclareMethod":void 0;i&&!this.match(o.braceL)&&this.isLineTerminator()?this.finishNode(e,i):v(y(t.prototype),"parseFunctionBodyAndFinish",this).call(this,e,r,n)}},{key:"registerFunctionStatementId",value:function(e){!e.body&&e.id?this.checkLVal(e.id,1024,null,"function name"):v(y(t.prototype),"registerFunctionStatementId",this).apply(this,arguments)}},{key:"parseSubscript",value:function(e,r,n,i,a){var s=this;if(!this.hasPrecedingLineBreak()&&this.match(o.bang)){this.state.exprAllowed=!1,this.next();var u=this.startNodeAt(r,n);return u.expression=e,this.finishNode(u,"TSNonNullExpression")}if(this.isRelational("<")){var c=this.tsTryParseAndCatch((function(){if(!i&&s.atPossibleAsync(e)){var t=s.tsTryParseGenericAsyncArrowFunction(r,n);if(t)return t}var u=s.startNodeAt(r,n);u.callee=e;var c=s.tsParseTypeArguments();if(c){if(!i&&s.eat(o.parenL))return u.arguments=s.parseCallExpressionArguments(o.parenR,!1),u.typeParameters=c,s.finishCallExpression(u,a.optionalChainMember);if(s.match(o.backQuote))return s.parseTaggedTemplateExpression(r,n,e,a,c)}s.unexpected()}));if(c)return c}return v(y(t.prototype),"parseSubscript",this).call(this,e,r,n,i,a)}},{key:"parseNewArguments",value:function(e){var r=this;if(this.isRelational("<")){var n=this.tsTryParseAndCatch((function(){var e=r.tsParseTypeArguments();return r.match(o.parenL)||r.unexpected(),e}));n&&(e.typeParameters=n)}v(y(t.prototype),"parseNewArguments",this).call(this,e)}},{key:"parseExprOp",value:function(e,r,n,i,a){if(re(o._in.binop)>i&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){var s=this.startNodeAt(r,n);s.expression=e;var u=this.tsTryNextParseConstantContext();return s.typeAnnotation=u||this.tsNextThenParseType(),this.finishNode(s,"TSAsExpression"),this.parseExprOp(s,r,n,i,a)}return v(y(t.prototype),"parseExprOp",this).call(this,e,r,n,i,a)}},{key:"checkReservedWord",value:function(e,t,r,n){}},{key:"checkDuplicateExports",value:function(){}},{key:"parseImport",value:function(e){return this.match(o.name)&&this.lookahead().type===o.eq?this.tsParseImportEqualsDeclaration(e):v(y(t.prototype),"parseImport",this).call(this,e)}},{key:"parseExport",value:function(e){if(this.match(o._import))return this.expect(o._import),this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(o.eq)){var r=e;return r.expression=this.parseExpression(),this.semicolon(),this.finishNode(r,"TSExportAssignment")}if(this.eatContextual("as")){var n=e;return this.expectContextual("namespace"),n.id=this.parseIdentifier(),this.semicolon(),this.finishNode(n,"TSNamespaceExportDeclaration")}return v(y(t.prototype),"parseExport",this).call(this,e)}},{key:"isAbstractClass",value:function(){return this.isContextual("abstract")&&this.lookahead().type===o._class}},{key:"parseExportDefaultExpression",value:function(){if(this.isAbstractClass()){var e=this.startNode();return this.next(),this.parseClass(e,!0,!0),e.abstract=!0,e}if("interface"===this.state.value){var r=this.tsParseDeclaration(this.startNode(),this.state.value,!0);if(r)return r}return v(y(t.prototype),"parseExportDefaultExpression",this).call(this)}},{key:"parseStatementContent",value:function(e,r){if(this.state.type===o._const){var n=this.lookahead();if(n.type===o.name&&"enum"===n.value){var i=this.startNode();return this.expect(o._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(i,!0)}}return v(y(t.prototype),"parseStatementContent",this).call(this,e,r)}},{key:"parseAccessModifier",value:function(){return this.tsParseModifier(["public","protected","private"])}},{key:"parseClassMember",value:function(e,r,n,i){var a=this.parseAccessModifier();a&&(r.accessibility=a),v(y(t.prototype),"parseClassMember",this).call(this,e,r,n,i)}},{key:"parseClassMemberWithIsStatic",value:function(e,r,n,i,a){var s=this.tsParseModifiers(["abstract","readonly","declare"]);Object.assign(r,s);var o=this.tsTryParseIndexSignature(r);if(o)return e.body.push(o),s.abstract&&this.raise(r.start,"Index signatures cannot have the 'abstract' modifier"),i&&this.raise(r.start,"Index signatures cannot have the 'static' modifier"),void(r.accessibility&&this.raise(r.start,"Index signatures cannot have an accessibility modifier ('".concat(r.accessibility,"')")));v(y(t.prototype),"parseClassMemberWithIsStatic",this).call(this,e,r,n,i,a)}},{key:"parsePostMemberNameModifiers",value:function(e){this.eat(o.question)&&(e.optional=!0),e.readonly&&this.match(o.parenL)&&this.raise(e.start,"Class methods cannot have the 'readonly' modifier"),e.declare&&this.match(o.parenL)&&this.raise(e.start,"Class methods cannot have the 'declare' modifier")}},{key:"parseExpressionStatement",value:function(e,r){return("Identifier"===r.type?this.tsParseExpressionStatement(e,r):void 0)||v(y(t.prototype),"parseExpressionStatement",this).call(this,e,r)}},{key:"shouldParseExportDeclaration",value:function(){return!!this.tsIsDeclarationStart()||v(y(t.prototype),"shouldParseExportDeclaration",this).call(this)}},{key:"parseConditional",value:function(e,r,n,i,a){var s=this;if(!a||!this.match(o.question))return v(y(t.prototype),"parseConditional",this).call(this,e,r,n,i,a);var u=this.tryParse((function(){return v(y(t.prototype),"parseConditional",s).call(s,e,r,n,i)}));return u.node?(u.error&&(this.state=u.failState),u.node):(a.start=u.error.pos||this.state.start,e)}},{key:"parseParenItem",value:function(e,r,n){if(e=v(y(t.prototype),"parseParenItem",this).call(this,e,r,n),this.eat(o.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(o.colon)){var i=this.startNodeAt(r,n);return i.expression=e,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return e}},{key:"parseExportDeclaration",value:function(e){var r,n=this.state.start,i=this.state.startLoc,a=this.eatContextual("declare");return this.match(o.name)&&(r=this.tsTryParseExportDeclaration()),r||(r=v(y(t.prototype),"parseExportDeclaration",this).call(this,e)),r&&a&&(this.resetStartLocation(r,n,i),r.declare=!0),r}},{key:"parseClassId",value:function(e,r,n){if(r&&!n||!this.isContextual("implements")){v(y(t.prototype),"parseClassId",this).call(this,e,r,n,e.declare?1024:139);var i=this.tsTryParseTypeParameters();i&&(e.typeParameters=i)}}},{key:"parseClassPropertyAnnotation",value:function(e){!e.optional&&this.eat(o.bang)&&(e.definite=!0);var t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}},{key:"parseClassProperty",value:function(e){return this.parseClassPropertyAnnotation(e),e.declare&&this.match(o.equal)&&this.raise(this.state.start,"'declare' class fields cannot have an initializer"),v(y(t.prototype),"parseClassProperty",this).call(this,e)}},{key:"parseClassPrivateProperty",value:function(e){return e.abstract&&this.raise(e.start,"Private elements cannot have the 'abstract' modifier."),e.accessibility&&this.raise(e.start,"Private elements cannot have an accessibility modifier ('".concat(e.accessibility,"')")),this.parseClassPropertyAnnotation(e),v(y(t.prototype),"parseClassPrivateProperty",this).call(this,e)}},{key:"pushClassMethod",value:function(e,r,n,i,a,s){var o=this.tsTryParseTypeParameters();o&&(r.typeParameters=o),v(y(t.prototype),"pushClassMethod",this).call(this,e,r,n,i,a,s)}},{key:"pushClassPrivateMethod",value:function(e,r,n,i){var a=this.tsTryParseTypeParameters();a&&(r.typeParameters=a),v(y(t.prototype),"pushClassPrivateMethod",this).call(this,e,r,n,i)}},{key:"parseClassSuper",value:function(e){v(y(t.prototype),"parseClassSuper",this).call(this,e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(e.implements=this.tsParseHeritageClause("implements"))}},{key:"parseObjPropValue",value:function(e){var r,n=this.tsTryParseTypeParameters();n&&(e.typeParameters=n);for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:64,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;switch(e.type){case"TSTypeCastExpression":return;case"TSParameterProperty":return void this.checkLVal(e.parameter,r,n,"parameter property");case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return void this.checkLVal(e.expression,r,n,i);default:return void v(y(t.prototype),"checkLVal",this).call(this,e,r,n,i)}}},{key:"parseBindingAtom",value:function(){switch(this.state.type){case o._this:return this.parseIdentifier(!0);default:return v(y(t.prototype),"parseBindingAtom",this).call(this)}}},{key:"parseMaybeDecoratorArguments",value:function(e){if(this.isRelational("<")){var r=this.tsParseTypeArguments();if(this.match(o.parenL)){var n=v(y(t.prototype),"parseMaybeDecoratorArguments",this).call(this,e);return n.typeParameters=r,n}this.unexpected(this.state.start,o.parenL)}return v(y(t.prototype),"parseMaybeDecoratorArguments",this).call(this,e)}},{key:"isClassMethod",value:function(){return this.isRelational("<")||v(y(t.prototype),"isClassMethod",this).call(this)}},{key:"isClassProperty",value:function(){return this.match(o.bang)||this.match(o.colon)||v(y(t.prototype),"isClassProperty",this).call(this)}},{key:"parseMaybeDefault",value:function(){for(var e,r=arguments.length,n=new Array(r),i=0;i0)||v(y(t.prototype),"maybeParseExportDefaultSpecifier",this).apply(this,arguments)}},{key:"checkExport",value:function(e){var r=e.specifiers;r&&r.length&&(e.specifiers=r.filter((function(e){return"Placeholder"===e.exported.type}))),v(y(t.prototype),"checkExport",this).call(this,e),e.specifiers=r}},{key:"parseImport",value:function(e){var r=this.parsePlaceholder("Identifier");if(!r)return v(y(t.prototype),"parseImport",this).apply(this,arguments);if(e.specifiers=[],!this.isContextual("from")&&!this.match(o.comma))return e.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");var n=this.startNodeAtNode(r);if(n.local=r,this.finishNode(n,"ImportDefaultSpecifier"),e.specifiers.push(n),this.eat(o.comma)){var i=this.maybeParseStarImportSpecifier(e);i||this.parseNamedImportSpecifiers(e)}return this.expectContextual("from"),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}},{key:"parseImportSource",value:function(){return this.parsePlaceholder("StringLiteral")||v(y(t.prototype),"parseImportSource",this).apply(this,arguments)}}]),t}(e)}},ue=Object.keys(oe),ce={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1},le=function e(t,r){h(this,e),this.line=t,this.column=r},pe=function e(t,r){h(this,e),this.start=t,this.end=r};function he(e){return e[e.length-1]}var fe=function(e){function t(){return h(this,t),g(this,y(t).apply(this,arguments))}return m(t,e),d(t,[{key:"getLocationForPosition",value:function(e){return e===this.state.start?this.state.startLoc:e===this.state.lastTokStart?this.state.lastTokStartLoc:e===this.state.end?this.state.endLoc:e===this.state.lastTokEnd?this.state.lastTokEndLoc:function(e,t){var r,n=1,i=0;for(p.lastIndex=0;(r=p.exec(e))&&r.index2&&void 0!==arguments[2]?arguments[2]:{},n=r.missingPluginNames,i=r.code,a=this.getLocationForPosition(e);t+=" (".concat(a.line,":").concat(a.column,")");var s=new SyntaxError(t);if(s.pos=e,s.loc=a,n&&(s.missingPlugin=n),void 0!==i&&(s.code=i),this.options.errorRecovery)return this.isLookahead||this.state.errors.push(s),s;throw s}}]),t}(function(e){function t(){return h(this,t),g(this,y(t).apply(this,arguments))}return m(t,e),d(t,[{key:"addComment",value:function(e){this.filename&&(e.loc.filename=this.filename),this.state.trailingComments.push(e),this.state.leadingComments.push(e)}},{key:"adjustCommentsAfterTrailingComma",value:function(e,t,r){if(0!==this.state.leadingComments.length){for(var n=null,i=t.length;null===n&&i>0;)n=t[--i];if(null!==n){for(var a=0;a0?n.trailingComments=s:void 0!==n.trailingComments&&(n.trailingComments=[])}}}},{key:"processComment",value:function(e){if(!("Program"===e.type&&e.body.length>0)){var t,r,n,i,a,s=this.state.commentStack;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(n=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(s.length>0){var o=he(s);o.trailingComments&&o.trailingComments[0].start>=e.end&&(n=o.trailingComments,delete o.trailingComments)}for(s.length>0&&he(s).start>=e.start&&(t=s.pop());s.length>0&&he(s).start>=e.start;)r=s.pop();if(!r&&t&&(r=t),t)switch(e.type){case"ObjectExpression":this.adjustCommentsAfterTrailingComma(e,e.properties);break;case"ObjectPattern":this.adjustCommentsAfterTrailingComma(e,e.properties,!0);break;case"CallExpression":this.adjustCommentsAfterTrailingComma(e,e.arguments);break;case"ArrayExpression":this.adjustCommentsAfterTrailingComma(e,e.elements);break;case"ArrayPattern":this.adjustCommentsAfterTrailingComma(e,e.elements,!0)}else this.state.commentPreviousNode&&("ImportSpecifier"===this.state.commentPreviousNode.type&&"ImportSpecifier"!==e.type||"ExportSpecifier"===this.state.commentPreviousNode.type&&"ExportSpecifier"!==e.type)&&this.adjustCommentsAfterTrailingComma(e,[this.state.commentPreviousNode],!0);if(r){if(r.leadingComments)if(r!==e&&r.leadingComments.length>0&&he(r.leadingComments).end<=e.start)e.leadingComments=r.leadingComments,delete r.leadingComments;else for(i=r.leadingComments.length-2;i>=0;--i)if(r.leadingComments[i].end<=e.start){e.leadingComments=r.leadingComments.splice(0,i+1);break}}else if(this.state.leadingComments.length>0)if(he(this.state.leadingComments).end<=e.start){if(this.state.commentPreviousNode)for(a=0;a0&&(e.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(i=0;ie.start);i++);var u=this.state.leadingComments.slice(0,i);u.length&&(e.leadingComments=u),0===(n=this.state.leadingComments.slice(i)).length&&(n=null)}this.state.commentPreviousNode=e,n&&(n.length&&n[0].start>=e.start&&he(n).end<=e.end?e.innerComments=n:e.trailingComments=n),s.push(e)}}}]),t}(function(){function e(){h(this,e),this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}return d(e,[{key:"hasPlugin",value:function(e){return this.plugins.has(e)}},{key:"getPluginOption",value:function(e,t){if(this.hasPlugin(e))return this.plugins.get(e)[t]}}]),e}())),de=function(){function e(){h(this,e),this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.inParameters=!1,this.maybeInArrowParameters=!1,this.inPipeline=!1,this.inType=!1,this.noAnonFunctionType=!1,this.inPropertyName=!1,this.inClassProperty=!1,this.hasFlowComment=!1,this.isIterator=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.classLevel=0,this.labels=[],this.decoratorStack=[[]],this.yieldPos=-1,this.awaitPos=-1,this.tokens=[],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.commentPreviousNode=null,this.pos=0,this.lineStart=0,this.type=o.eof,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.lastTokEnd=0,this.context=[w.braceStatement],this.exprAllowed=!0,this.containsEsc=!1,this.containsOctal=!1,this.octalPosition=null,this.exportedIdentifiers=[],this.invalidTemplateEscapePosition=null}return d(e,[{key:"init",value:function(e){this.strict=!1!==e.strictMode&&"module"===e.sourceType,this.curLine=e.startLine,this.startLoc=this.endLoc=this.curPosition()}},{key:"curPosition",value:function(){return new le(this.curLine,this.pos-this.lineStart)}},{key:"clone",value:function(t){for(var r=new e,n=Object.keys(this),i=0,a=n.length;i=48&&e<=57},ye=new Set(["g","m","s","i","y","u"]),De={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},ge={bin:[48,49]};ge.oct=[].concat(b(ge.bin),[50,51,52,53,54,55]),ge.dec=[].concat(b(ge.oct),[56,57]),ge.hex=[].concat(b(ge.dec),[65,66,67,68,69,70,97,98,99,100,101,102]);var ve=function e(t){h(this,e),this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new pe(t.startLoc,t.endLoc)},Ee=/^('|")((?:\\?.)*?)\1/,be=function(e){function t(){return h(this,t),g(this,y(t).apply(this,arguments))}return m(t,e),d(t,[{key:"addExtra",value:function(e,t,r){e&&((e.extra=e.extra||{})[t]=r)}},{key:"isRelational",value:function(e){return this.match(o.relational)&&this.state.value===e}},{key:"isLookaheadRelational",value:function(e){var t=this.nextTokenStart();if(this.input.charAt(t)===e){if(t+1===this.input.length)return!0;var r=this.input.charCodeAt(t+1);return r!==e.charCodeAt(0)&&61!==r}return!1}},{key:"expectRelational",value:function(e){this.isRelational(e)?this.next():this.unexpected(null,o.relational)}},{key:"eatRelational",value:function(e){return!!this.isRelational(e)&&(this.next(),!0)}},{key:"isContextual",value:function(e){return this.match(o.name)&&this.state.value===e&&!this.state.containsEsc}},{key:"isUnparsedContextual",value:function(e,t){var r=e+t.length;return this.input.slice(e,r)===t&&(r===this.input.length||!U(this.input.charCodeAt(r)))}},{key:"isLookaheadContextual",value:function(e){var t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}},{key:"eatContextual",value:function(e){return this.isContextual(e)&&this.eat(o.name)}},{key:"expectContextual",value:function(e,t){this.eatContextual(e)||this.unexpected(null,t)}},{key:"canInsertSemicolon",value:function(){return this.match(o.eof)||this.match(o.braceR)||this.hasPrecedingLineBreak()}},{key:"hasPrecedingLineBreak",value:function(){return l.test(this.input.slice(this.state.lastTokEnd,this.state.start))}},{key:"isLineTerminator",value:function(){return this.eat(o.semi)||this.canInsertSemicolon()}},{key:"semicolon",value:function(){this.isLineTerminator()||this.unexpected(null,o.semi)}},{key:"expect",value:function(e,t){this.eat(e)||this.unexpected(t,e)}},{key:"assertNoSpace",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unexpected space.";this.state.start>this.state.lastTokEnd&&this.raise(this.state.lastTokEnd,e)}},{key:"unexpected",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Unexpected token";throw"string"!=typeof t&&(t='Unexpected token, expected "'.concat(t.label,'"')),this.raise(null!=e?e:this.state.start,t)}},{key:"expectPlugin",value:function(e,t){if(!this.hasPlugin(e))throw this.raise(null!=t?t:this.state.start,"This experimental syntax requires enabling the parser plugin: '".concat(e,"'"),{missingPluginNames:[e]});return!0}},{key:"expectOnePlugin",value:function(e,t){var r=this;if(!e.some((function(e){return r.hasPlugin(e)})))throw this.raise(null!=t?t:this.state.start,"This experimental syntax requires enabling one of the following parser plugin(s): '".concat(e.join(", "),"'"),{missingPluginNames:e})}},{key:"checkYieldAwaitInDefaultParams",value:function(){-1!==this.state.yieldPos&&(-1===this.state.awaitPos||this.state.yieldPos1&&void 0!==arguments[1]?arguments[1]:this.state.clone(),r={node:null};try{var n=e((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw r.node=e,r}));if(this.state.errors.length>t.errors.length){var i=this.state;return this.state=t,{node:n,error:i.errors[t.errors.length],thrown:!1,aborted:!1,failState:i}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){var a=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:a};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:a};throw e}}}]),t}(function(e){function t(e,r){var n;return h(this,t),(n=g(this,y(t).call(this))).state=new de,n.state.init(e),n.input=r,n.length=r.length,n.isLookahead=!1,n}return m(t,e),d(t,[{key:"next",value:function(){this.isLookahead||(this.checkKeywordEscapes(),this.options.tokens&&this.state.tokens.push(new ve(this.state))),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}},{key:"eat",value:function(e){return!!this.match(e)&&(this.next(),!0)}},{key:"match",value:function(e){return this.state.type===e}},{key:"lookahead",value:function(){var e=this.state;this.state=e.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;var t=this.state;return this.state=e,t}},{key:"nextTokenStart",value:function(){var e=this.state.pos;return C.lastIndex=e,e+C.exec(this.input)[0].length}},{key:"lookaheadCharCode",value:function(){return this.input.charCodeAt(this.nextTokenStart())}},{key:"setStrict",value:function(e){if(this.state.strict=e,this.match(o.num)||this.match(o.string)){for(this.state.pos=this.state.start;this.state.pos=this.length?this.finishToken(o.eof):e.override?e.override(this):this.getTokenFromCode(this.input.codePointAt(this.state.pos))}},{key:"pushComment",value:function(e,t,r,n,i,a){var s={type:e?"CommentBlock":"CommentLine",value:t,start:r,end:n,loc:new pe(i,a)};this.options.tokens&&this.state.tokens.push(s),this.state.comments.push(s),this.addComment(s)}},{key:"skipBlockComment",value:function(){var e,t=this.state.curPosition(),r=this.state.pos,n=this.input.indexOf("*/",this.state.pos+2);if(-1===n)throw this.raise(r,"Unterminated comment");for(this.state.pos=n+2,p.lastIndex=r;(e=p.exec(this.input))&&e.index=48&&t<=57)throw this.raise(this.state.pos,"Unexpected digit after hash token");if((this.hasPlugin("classPrivateProperties")||this.hasPlugin("classPrivateMethods"))&&this.state.classLevel>0)return++this.state.pos,void this.finishToken(o.hash);if("smart"!==this.getPluginOption("pipelineOperator","proposal"))throw this.raise(this.state.pos,"Unexpected character '#'");this.finishOp(o.hash,1)}}},{key:"readToken_dot",value:function(){var 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(o.ellipsis)):(++this.state.pos,this.finishToken(o.dot))}},{key:"readToken_slash",value:function(){if(this.state.exprAllowed&&!this.state.inType)return++this.state.pos,void this.readRegexp();61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(o.assign,2):this.finishOp(o.slash,1)}},{key:"readToken_interpreter",value:function(){if(0!==this.state.pos||this.length<2)return!1;var e=this.state.pos;this.state.pos+=1;var t=this.input.charCodeAt(this.state.pos);if(33!==t)return!1;for(;!f(t)&&++this.state.pos=48&&t<=57?(++this.state.pos,this.finishToken(o.question)):(this.state.pos+=2,this.finishToken(o.questionDot)):61===t?this.finishOp(o.assign,3):this.finishOp(o.nullishCoalescing,2)}},{key:"getTokenFromCode",value:function(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(o.parenL);case 41:return++this.state.pos,void this.finishToken(o.parenR);case 59:return++this.state.pos,void this.finishToken(o.semi);case 44:return++this.state.pos,void this.finishToken(o.comma);case 91:return++this.state.pos,void this.finishToken(o.bracketL);case 93:return++this.state.pos,void this.finishToken(o.bracketR);case 123:return++this.state.pos,void this.finishToken(o.braceL);case 125:return++this.state.pos,void this.finishToken(o.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(o.doubleColon,2):(++this.state.pos,this.finishToken(o.colon)));case 63:return void this.readToken_question();case 96:return++this.state.pos,void this.finishToken(o.backQuote);case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)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:case 62:return void this.readToken_lt_gt(e);case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(o.tilde,1);case 64:return++this.state.pos,void this.finishToken(o.at);case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(q(e))return void this.readWord()}throw this.raise(this.state.pos,"Unexpected character '".concat(String.fromCodePoint(e),"'"))}},{key:"finishOp",value:function(e,t){var r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}},{key:"readRegexp",value:function(){for(var e,t,r=this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.state.pos);if(l.test(n))throw this.raise(r,"Unterminated regular expression");if(e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.state.pos}var i=this.input.slice(r,this.state.pos);++this.state.pos;for(var a="";this.state.pos-1&&this.raise(this.state.pos+1,"Duplicate regular expression flag");else{if(!U(u)&&92!==u)break;this.raise(this.state.pos+1,"Invalid regular expression flag")}++this.state.pos,a+=s}this.finishToken(o.regexp,{pattern:i,flags:a})}},{key:"readInt",value:function(e,t,r){for(var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=this.state.pos,a=16===e?De.hex:De.decBinOct,s=16===e?ge.hex:10===e?ge.dec:8===e?ge.oct:ge.bin,o=!1,u=0,c=0,l=null==t?1/0:t;c-1||a.indexOf(d)>-1||Number.isNaN(d))&&this.raise(this.state.pos,"A numeric separator is only allowed between two digits"),n||this.raise(this.state.pos,"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences"),++this.state.pos}else{if((h=p>=97?p-97+10:p>=65?p-65+10:me(p)?p-48:1/0)>=e)if(this.options.errorRecovery&&h<=9)h=0,this.raise(this.state.start+c+2,"Expected number in radix "+e);else{if(!r)break;h=0,o=!0}++this.state.pos,u=u*e+h}}return this.state.pos===i||null!=t&&this.state.pos-i!==t||o?null:u}},{key:"readRadixNumber",value:function(e){var t=this.state.pos,r=!1;this.state.pos+=2;var n=this.readInt(e);if(null==n&&this.raise(this.state.start+2,"Expected number in radix "+e),this.hasPlugin("bigInt")&&110===this.input.charCodeAt(this.state.pos)&&(++this.state.pos,r=!0),q(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,"Identifier directly after number");if(r){var i=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(o.bigint,i)}else this.finishToken(o.num,n)}},{key:"readNumber",value:function(e){var t=this.state.pos,r=!1,n=!1,i=!1;e||null!==this.readInt(10)||this.raise(t,"Invalid number");var a=this.state.pos-t>=2&&48===this.input.charCodeAt(t);a&&(this.state.strict&&this.raise(t,"Legacy octal literals are not allowed in strict mode"),/[89]/.test(this.input.slice(t,this.state.pos))&&(a=!1,i=!0));var s=this.input.charCodeAt(this.state.pos);if(46!==s||a||(++this.state.pos,this.readInt(10),r=!0,s=this.input.charCodeAt(this.state.pos)),69!==s&&101!==s||a||(43!==(s=this.input.charCodeAt(++this.state.pos))&&45!==s||++this.state.pos,null===this.readInt(10)&&this.raise(t,"Invalid number"),r=!0,s=this.input.charCodeAt(this.state.pos)),this.hasPlugin("numericSeparator")&&(a||i)){var u=this.input.slice(t,this.state.pos).indexOf("_");u>0&&this.raise(u+t,"Numeric separator can not be used after leading 0")}if(this.hasPlugin("bigInt")&&110===s&&((r||a||i)&&this.raise(t,"Invalid BigIntLiteral"),++this.state.pos,n=!0),q(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,"Identifier directly after number");var c=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");if(n)this.finishToken(o.bigint,c);else{var l=a?parseInt(c,8):parseFloat(c);this.finishToken(o.num,l)}}},{key:"readCodePoint",value:function(e){var t;if(123===this.input.charCodeAt(this.state.pos)){var r=++this.state.pos;if(t=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,!0,e),++this.state.pos,null===t)--this.state.invalidTemplateEscapePosition;else if(t>1114111){if(!e)return this.state.invalidTemplateEscapePosition=r-2,null;this.raise(r,"Code point out of bounds")}}else t=this.readHexChar(4,!1,e);return t}},{key:"readString",value:function(e){for(var t="",r=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,"Unterminated string constant");var n=this.input.charCodeAt(this.state.pos);if(n===e)break;if(92===n)t+=this.input.slice(r,this.state.pos),t+=this.readEscapedChar(!1),r=this.state.pos;else if(8232===n||8233===n)++this.state.pos,++this.state.curLine;else{if(f(n))throw this.raise(this.state.start,"Unterminated string constant");++this.state.pos}}t+=this.input.slice(r,this.state.pos++),this.finishToken(o.string,t)}},{key:"readTmplToken",value:function(){for(var e="",t=this.state.pos,r=!1;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,"Unterminated template");var n=this.input.charCodeAt(this.state.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(o.template)?36===n?(this.state.pos+=2,void this.finishToken(o.dollarBraceL)):(++this.state.pos,void this.finishToken(o.backQuote)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(o.template,r?null:e));if(92===n){e+=this.input.slice(t,this.state.pos);var i=this.readEscapedChar(!0);null===i?r=!0:e+=i,t=this.state.pos}else if(f(n)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,n){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}}},{key:"readEscapedChar",value:function(e){var t=!e,r=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,r){case 110:return"\n";case 114:return"\r";case 120:var n=this.readHexChar(2,!1,t);return null===n?null:String.fromCharCode(n);case 117:var i=this.readCodePoint(t);return null===i?null:String.fromCodePoint(i);case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(e){var a=this.state.pos-1;return this.state.invalidTemplateEscapePosition=a,null}default:if(r>=48&&r<=55){var s=this.state.pos-1,o=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],u=parseInt(o,8);u>255&&(o=o.slice(0,-1),u=parseInt(o,8)),this.state.pos+=o.length-1;var c=this.input.charCodeAt(this.state.pos);if("0"!==o||56===c||57===c){if(e)return this.state.invalidTemplateEscapePosition=s,null;this.state.strict?this.raise(s,"Octal literal in strict mode"):this.state.containsOctal||(this.state.containsOctal=!0,this.state.octalPosition=s)}return String.fromCharCode(u)}return String.fromCharCode(r)}}},{key:"readHexChar",value:function(e,t,r){var n=this.state.pos,i=this.readInt(16,e,t,!1);return null===i&&(r?this.raise(n,"Bad character escape sequence"):(this.state.pos=n-1,this.state.invalidTemplateEscapePosition=n-1)),i}},{key:"readWord1",value:function(){var e="";this.state.containsEsc=!1;for(var t=this.state.pos,r=this.state.pos;this.state.pos0)for(var r=0,n=Array.from(this.scope.undefinedExports);r-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.match(o._var)||this.match(o._const)||r){var n=this.startNode(),i=r?"let":this.state.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),(this.match(o._in)||this.isContextual("of"))&&1===n.declarations.length?this.parseForIn(e,n,t):(t>-1&&this.unexpected(t),this.parseFor(e,n))}var a={start:0},s=this.parseExpression(!0,a);if(this.match(o._in)||this.isContextual("of")){var u=this.isContextual("of")?"for-of statement":"for-in statement";return this.toAssignable(s,void 0,u),this.checkLVal(s,void 0,void 0,u),this.parseForIn(e,s,t)}return a.start&&this.unexpected(a.start),t>-1&&this.unexpected(t),this.parseFor(e,s)}},{key:"parseFunctionStatement",value:function(e,t,r){return this.next(),this.parseFunction(e,1|(r?0:2),t)}},{key:"parseIfStatement",value:function(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(o._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")}},{key:"parseReturnStatement",value:function(e){return this.scope.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.state.start,"'return' outside of function"),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}},{key:"parseSwitchStatement",value:function(e){this.next(),e.discriminant=this.parseHeaderExpression();var t,r,n=e.cases=[];for(this.expect(o.braceL),this.state.labels.push(Ae),this.scope.enter(0);!this.match(o.braceR);)if(this.match(o._case)||this.match(o._default)){var i=this.match(o._case);t&&this.finishNode(t,"SwitchCase"),n.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(r&&this.raise(this.state.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(o.colon)}else t?t.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}},{key:"parseThrowStatement",value:function(e){return this.next(),l.test(this.input.slice(this.state.lastTokEnd,this.state.start))&&this.raise(this.state.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}},{key:"parseTryStatement",value:function(e){var t=this;if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(o._catch)){var r=this.startNode();if(this.next(),this.match(o.parenL)){this.expect(o.parenL),r.param=this.parseBindingAtom();var n="Identifier"===r.param.type;this.scope.enter(n?32:0),this.checkLVal(r.param,9,null,"catch clause"),this.expect(o.parenR)}else r.param=null,this.scope.enter(0);r.body=this.withTopicForbiddingContext((function(){return t.parseBlock(!1,!1)})),this.scope.exit(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(o._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")}},{key:"parseVarStatement",value:function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")}},{key:"parseWhileStatement",value:function(e){var t=this;return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(xe),e.body=this.withTopicForbiddingContext((function(){return t.parseStatement("while")})),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}},{key:"parseWithStatement",value:function(e){var t=this;return this.state.strict&&this.raise(this.state.start,"'with' in strict mode"),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withTopicForbiddingContext((function(){return t.parseStatement("with")})),this.finishNode(e,"WithStatement")}},{key:"parseEmptyStatement",value:function(e){return this.next(),this.finishNode(e,"EmptyStatement")}},{key:"parseLabeledStatement",value:function(e,t,r,n){for(var i=0,a=this.state.labels;i=0;u--){var c=this.state.labels[u];if(c.statementStart!==e.start)break;c.statementStart=this.state.start,c.kind=s}return this.state.labels.push({name:t,kind:s,statementStart:this.state.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}},{key:"parseExpressionStatement",value:function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}},{key:"parseBlock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.startNode();return this.expect(o.braceL),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,o.braceR),t&&this.scope.exit(),this.finishNode(r,"BlockStatement")}},{key:"isValidDirective",value:function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}},{key:"parseBlockBody",value:function(e,t,r,n){var i=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?a:void 0,r,n)}},{key:"parseBlockOrModuleBlockBody",value:function(e,t,r,n){for(var i,a,s=!1;!this.eat(n);){s||!this.state.containsOctal||a||(a=this.state.octalPosition);var o=this.parseStatement(null,r);if(t&&!s&&this.isValidDirective(o)){var u=this.stmtToDirective(o);t.push(u),void 0===i&&"use strict"===u.value.value&&(i=this.state.strict,this.setStrict(!0),a&&this.raise(a,"Octal literal in strict mode"))}else s=!0,e.push(o)}!1===i&&this.setStrict(!1)}},{key:"parseFor",value:function(e,t){var r=this;return e.init=t,this.expect(o.semi),e.test=this.match(o.semi)?null:this.parseExpression(),this.expect(o.semi),e.update=this.match(o.parenR)?null:this.parseExpression(),this.expect(o.parenR),e.body=this.withTopicForbiddingContext((function(){return r.parseStatement("for")})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}},{key:"parseForIn",value:function(e,t,r){var n=this,i=this.match(o._in);return this.next(),i?r>-1&&this.unexpected(r):e.await=r>-1,"VariableDeclaration"!==t.type||null==t.declarations[0].init||i&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type?"AssignmentPattern"===t.type&&this.raise(t.start,"Invalid left-hand side in for-loop"):this.raise(t.start,"".concat(i?"for-in":"for-of"," loop variable declaration may not have an initializer")),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(o.parenR),e.body=this.withTopicForbiddingContext((function(){return n.parseStatement("for")})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")}},{key:"parseVar",value:function(e,t,r){var n=e.declarations=[],i=this.hasPlugin("typescript");for(e.kind=r;;){var a=this.startNode();if(this.parseVarId(a,r),this.eat(o.eq)?a.init=this.parseMaybeAssign(t):("const"!==r||this.match(o._in)||this.isContextual("of")?"Identifier"===a.id.type||t&&(this.match(o._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,"Complex binding patterns require an initialization value"):i||this.unexpected(),a.init=null),n.push(this.finishNode(a,"VariableDeclarator")),!this.eat(o.comma))break}return e}},{key:"parseVarId",value:function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"var"===t?5:9,void 0,"variable declaration","var"!==t)}},{key:"parseFunction",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=1&r,a=2&r,s=!(!i||4&r);this.initFunction(e,n),this.match(o.star)&&a&&this.raise(this.state.start,"Generators can only be declared at the top level or inside a block"),e.generator=this.eat(o.star),i&&(e.id=this.parseFunctionId(s));var c=this.state.maybeInArrowParameters,l=this.state.inClassProperty,p=this.state.yieldPos,h=this.state.awaitPos;return this.state.maybeInArrowParameters=!1,this.state.inClassProperty=!1,this.state.yieldPos=-1,this.state.awaitPos=-1,this.scope.enter(u(e.async,e.generator)),i||(e.id=this.parseFunctionId()),this.parseFunctionParams(e),this.withTopicForbiddingContext((function(){t.parseFunctionBodyAndFinish(e,i?"FunctionDeclaration":"FunctionExpression")})),this.scope.exit(),i&&!a&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=c,this.state.inClassProperty=l,this.state.yieldPos=p,this.state.awaitPos=h,e}},{key:"parseFunctionId",value:function(e){return e||this.match(o.name)?this.parseIdentifier():null}},{key:"parseFunctionParams",value:function(e,t){var r=this.state.inParameters;this.state.inParameters=!0,this.expect(o.parenL),e.params=this.parseBindingList(o.parenR,41,!1,t),this.state.inParameters=r,this.checkYieldAwaitInDefaultParams()}},{key:"registerFunctionStatementId",value:function(e){e.id&&this.scope.declareName(e.id.name,this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:9:17,e.id.start)}},{key:"parseClass",value:function(e,t,r){this.next(),this.takeDecorators(e);var n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass),this.state.strict=n,this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}},{key:"isClassProperty",value:function(){return this.match(o.eq)||this.match(o.semi)||this.match(o.braceR)}},{key:"isClassMethod",value:function(){return this.match(o.parenL)}},{key:"isNonstaticConstructor",value:function(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)}},{key:"parseClassBody",value:function(e){var t=this;this.state.classLevel++;var r={hadConstructor:!1},n=[],i=this.startNode();if(i.body=[],this.expect(o.braceL),this.withTopicForbiddingContext((function(){for(;!t.eat(o.braceR);)if(t.eat(o.semi)){if(n.length>0)throw t.raise(t.state.lastTokEnd,"Decorators must not be followed by a semicolon")}else if(t.match(o.at))n.push(t.parseDecorator());else{var a=t.startNode();n.length&&(a.decorators=n,t.resetStartLocationFromNode(a,n[0]),n=[]),t.parseClassMember(i,a,r,e),"constructor"===a.kind&&a.decorators&&a.decorators.length>0&&t.raise(a.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")}})),n.length)throw this.raise(this.state.start,"You have trailing decorators with no method");return this.state.classLevel--,this.finishNode(i,"ClassBody")}},{key:"parseClassMember",value:function(e,t,r,n){var i=!1,a=this.state.containsEsc;if(this.match(o.name)&&"static"===this.state.value){var s=this.parseIdentifier(!0);if(this.isClassMethod()){var u=t;return u.kind="method",u.computed=!1,u.key=s,u.static=!1,void this.pushClassMethod(e,u,!1,!1,!1,!1)}if(this.isClassProperty()){var c=t;return c.computed=!1,c.key=s,c.static=!1,void e.body.push(this.parseClassProperty(c))}if(a)throw this.unexpected();i=!0}this.parseClassMemberWithIsStatic(e,t,r,i,n)}},{key:"parseClassMemberWithIsStatic",value:function(e,t,r,n,i){var a=t,s=t,u=t,c=t,l=a,p=a;if(t.static=n,this.eat(o.star))return l.kind="method",this.parseClassPropertyName(l),"PrivateName"===l.key.type?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't be a generator"),void this.pushClassMethod(e,a,!0,!1,!1,!1));var h=this.state.containsEsc,f=this.parseClassPropertyName(t),d="PrivateName"===f.type,m="Identifier"===f.type,y=this.state.start;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(l.kind="method",d)return void this.pushClassPrivateMethod(e,s,!1,!1);var D=this.isNonstaticConstructor(a),g=!1;D&&(a.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(f.start,"Duplicate constructor in the same class"),r.hadConstructor=!0,g=i),this.pushClassMethod(e,a,!1,!1,D,g)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,c):this.pushClassProperty(e,u);else if(!m||"async"!==f.name||h||this.isLineTerminator())!m||"get"!==f.name&&"set"!==f.name||h||this.match(o.star)&&this.isLineTerminator()?this.isLineTerminator()?d?this.pushClassPrivateProperty(e,c):this.pushClassProperty(e,u):this.unexpected():(l.kind=f.name,this.parseClassPropertyName(a),"PrivateName"===l.key.type?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't have get/set modifier"),this.pushClassMethod(e,a,!1,!1,!1,!1)),this.checkGetterSetterParams(a));else{var v=this.eat(o.star);p.optional&&this.unexpected(y),l.kind="method",this.parseClassPropertyName(l),"PrivateName"===l.key.type?this.pushClassPrivateMethod(e,s,v,!0):(this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't be an async function"),this.pushClassMethod(e,a,v,!0,!1,!1))}}},{key:"parseClassPropertyName",value:function(e){var t=this.parsePropertyName(e);return e.computed||!e.static||"prototype"!==t.name&&"prototype"!==t.value||this.raise(t.start,"Classes may not have static property named prototype"),"PrivateName"===t.type&&"constructor"===t.id.name&&this.raise(t.start,"Classes may not have a private field named '#constructor'"),t}},{key:"pushClassProperty",value:function(e,t){t.computed||"constructor"!==t.key.name&&"constructor"!==t.key.value||this.raise(t.key.start,"Classes may not have a field named 'constructor'"),e.body.push(this.parseClassProperty(t))}},{key:"pushClassPrivateProperty",value:function(e,t){this.expectPlugin("classPrivateProperties",t.key.start),e.body.push(this.parseClassPrivateProperty(t))}},{key:"pushClassMethod",value:function(e,t,r,n,i,a){e.body.push(this.parseMethod(t,r,n,i,a,"ClassMethod",!0))}},{key:"pushClassPrivateMethod",value:function(e,t,r,n){this.expectPlugin("classPrivateMethods",t.key.start),e.body.push(this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0))}},{key:"parsePostMemberNameModifiers",value:function(e){}},{key:"parseAccessModifier",value:function(){}},{key:"parseClassPrivateProperty",value:function(e){return this.state.inClassProperty=!0,this.scope.enter(320),e.value=this.eat(o.eq)?this.parseMaybeAssign():null,this.semicolon(),this.state.inClassProperty=!1,this.scope.exit(),this.finishNode(e,"ClassPrivateProperty")}},{key:"parseClassProperty",value:function(e){return e.typeAnnotation||this.expectPlugin("classProperties"),this.state.inClassProperty=!0,this.scope.enter(320),this.match(o.eq)?(this.expectPlugin("classProperties"),this.next(),e.value=this.parseMaybeAssign()):e.value=null,this.semicolon(),this.state.inClassProperty=!1,this.scope.exit(),this.finishNode(e,"ClassProperty")}},{key:"parseClassId",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:139;this.match(o.name)?(e.id=this.parseIdentifier(),t&&this.checkLVal(e.id,n,void 0,"class name")):r||!t?e.id=null:this.unexpected(null,"A class name is required")}},{key:"parseClassSuper",value:function(e){e.superClass=this.eat(o._extends)?this.parseExprSubscripts():null}},{key:"parseExport",value:function(e){var t=this.maybeParseExportDefaultSpecifier(e),r=!t||this.eat(o.comma),n=r&&this.eatExportStar(e),i=n&&this.maybeParseExportNamespaceSpecifier(e),a=r&&(!i||this.eat(o.comma)),s=t||n;if(n&&!i)return t&&this.unexpected(),this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");var u,c=this.maybeParseExportNamedSpecifiers(e);if(t&&r&&!n&&!c||i&&a&&!c)throw this.unexpected(null,o.braceL);if(s||c?(u=!1,this.parseExportFrom(e,s)):u=this.maybeParseExportDeclaration(e),s||c||u)return this.checkExport(e,!0,!1,!!e.source),this.finishNode(e,"ExportNamedDeclaration");if(this.eat(o._default))return e.declaration=this.parseExportDefaultExpression(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration");throw this.unexpected(null,o.braceL)}},{key:"eatExportStar",value:function(e){return this.eat(o.star)}},{key:"maybeParseExportDefaultSpecifier",value:function(e){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");var t=this.startNode();return t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],!0}return!1}},{key:"maybeParseExportNamespaceSpecifier",value:function(e){if(this.isContextual("as")){e.specifiers||(e.specifiers=[]);var t=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),t.exported=this.parseIdentifier(!0),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}},{key:"maybeParseExportNamedSpecifiers",value:function(e){var t;return!!this.match(o.braceL)&&(e.specifiers||(e.specifiers=[]),(t=e.specifiers).push.apply(t,b(this.parseExportSpecifiers())),e.source=null,e.declaration=null,!0)}},{key:"maybeParseExportDeclaration",value:function(e){if(this.shouldParseExportDeclaration()){if(this.isContextual("async")){var t=this.nextTokenStart();this.isUnparsedContextual(t,"function")||this.unexpected(t,'Unexpected token, expected "function"')}return e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e),!0}return!1}},{key:"isAsyncFunction",value:function(){if(!this.isContextual("async"))return!1;var e=this.nextTokenStart();return!l.test(this.input.slice(this.state.pos,e))&&this.isUnparsedContextual(e,"function")}},{key:"parseExportDefaultExpression",value:function(){var e=this.startNode(),t=this.isAsyncFunction();if(this.match(o._function)||t)return this.next(),t&&this.next(),this.parseFunction(e,5,t);if(this.match(o._class))return this.parseClass(e,!0,!0);if(this.match(o.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax"),this.parseDecorators(!1),this.parseClass(e,!0,!0);if(this.match(o._const)||this.match(o._var)||this.isLet())throw this.raise(this.state.start,"Only expressions, functions or classes are allowed as the `default` export.");var r=this.parseMaybeAssign();return this.semicolon(),r}},{key:"parseExportDeclaration",value:function(e){return this.parseStatement(null)}},{key:"isExportDefaultSpecifier",value:function(){if(this.match(o.name))return"async"!==this.state.value&&"let"!==this.state.value;if(!this.match(o._default))return!1;var e=this.nextTokenStart();return 44===this.input.charCodeAt(e)||this.isUnparsedContextual(e,"from")}},{key:"parseExportFrom",value:function(e,t){this.eatContextual("from")?(e.source=this.parseImportSource(),this.checkExport(e)):t?this.unexpected():e.source=null,this.semicolon()}},{key:"shouldParseExportDeclaration",value:function(){if(this.match(o.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax")}return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isLet()||this.isAsyncFunction()}},{key:"checkExport",value:function(e,t,r,n){if(t)if(r)this.checkDuplicateExports(e,"default");else if(e.specifiers&&e.specifiers.length)for(var i=0,a=e.specifiers;i-1&&this.raise(e.start,"default"===t?"Only one default export allowed per module.":"`".concat(t,"` has already been exported. Exported identifiers must be unique.")),this.state.exportedIdentifiers.push(t)}},{key:"parseExportSpecifiers",value:function(){var e=[],t=!0;for(this.expect(o.braceL);!this.eat(o.braceR);){if(t)t=!1;else if(this.expect(o.comma),this.eat(o.braceR))break;var r=this.startNode();r.local=this.parseIdentifier(!0),r.exported=this.eatContextual("as")?this.parseIdentifier(!0):r.local.__clone(),e.push(this.finishNode(r,"ExportSpecifier"))}return e}},{key:"parseImport",value:function(e){if(e.specifiers=[],!this.match(o.string)){var t=!this.maybeParseDefaultImportSpecifier(e)||this.eat(o.comma),r=t&&this.maybeParseStarImportSpecifier(e);t&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual("from")}return e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}},{key:"parseImportSource",value:function(){return this.match(o.string)||this.unexpected(),this.parseExprAtom()}},{key:"shouldParseDefaultImport",value:function(e){return this.match(o.name)}},{key:"parseImportSpecifierLocal",value:function(e,t,r,n){t.local=this.parseIdentifier(),this.checkLVal(t.local,9,void 0,n),e.specifiers.push(this.finishNode(t,r))}},{key:"maybeParseDefaultImportSpecifier",value:function(e){return!!this.shouldParseDefaultImport(e)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0)}},{key:"maybeParseStarImportSpecifier",value:function(e){if(this.match(o.star)){var t=this.startNode();return this.next(),this.expectContextual("as"),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier","import namespace specifier"),!0}return!1}},{key:"parseNamedImportSpecifiers",value:function(e){var t=!0;for(this.expect(o.braceL);!this.eat(o.braceR);){if(t)t=!1;else{if(this.eat(o.colon))throw this.raise(this.state.start,"ES2015 named imports do not destructure. Use another statement for destructuring after the import.");if(this.expect(o.comma),this.eat(o.braceR))break}this.parseImportSpecifier(e)}}},{key:"parseImportSpecifier",value:function(e){var t=this.startNode();t.imported=this.parseIdentifier(!0),this.eatContextual("as")?t.local=this.parseIdentifier():(this.checkReservedWord(t.imported.name,t.start,!0,!0),t.local=t.imported.__clone()),this.checkLVal(t.local,9,void 0,"import specifier"),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))}}]),t}(function(e){function t(){return h(this,t),g(this,y(t).apply(this,arguments))}return m(t,e),d(t,[{key:"checkDuplicatedProto",value:function(e,t){if(!("SpreadElement"===e.type||e.computed||e.kind||e.shorthand)){var r=e.key;"__proto__"===("Identifier"===r.type?r.name:String(r.value))&&(t.used&&!t.start&&(t.start=r.start),t.used=!0)}}},{key:"getExpression",value:function(){this.scope.enter(1),this.nextToken();var e=this.parseExpression();return this.match(o.eof)||this.unexpected(),e.comments=this.state.comments,e.errors=this.state.errors,e}},{key:"parseExpression",value:function(e,t){var r=this.state.start,n=this.state.startLoc,i=this.parseMaybeAssign(e,t);if(this.match(o.comma)){var a=this.startNodeAt(r,n);for(a.expressions=[i];this.eat(o.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.toReferencedList(a.expressions),this.finishNode(a,"SequenceExpression")}return i}},{key:"parseMaybeAssign",value:function(e,t,r,n){var i,a=this.state.start,s=this.state.startLoc;if(this.isContextual("yield")){if(this.scope.inGenerator){var u=this.parseYield(e);return r&&(u=r.call(this,u,a,s)),u}this.state.exprAllowed=!1}t?i=!1:(t={start:0},i=!0),(this.match(o.parenL)||this.match(o.name))&&(this.state.potentialArrowAt=this.state.start);var c=this.parseMaybeConditional(e,t,n);if(r&&(c=r.call(this,c,a,s)),this.state.type.isAssign){var l=this.startNodeAt(a,s),p=this.state.value;l.operator=p,"??="===p&&(this.expectPlugin("nullishCoalescingOperator"),this.expectPlugin("logicalAssignment")),"||="!==p&&"&&="!==p||this.expectPlugin("logicalAssignment"),l.left=this.match(o.eq)?this.toAssignable(c,void 0,"assignment expression"):c,t.start>=l.left.start&&(t.start=0),this.checkLVal(c,void 0,void 0,"assignment expression");var h,f=function e(t){return"ParenthesizedExpression"===t.type?e(t.expression):t}(c);return"ObjectPattern"===f.type?h="`({a}) = 0` use `({a} = 0)`":"ArrayPattern"===f.type&&(h="`([a]) = 0` use `([a] = 0)`"),h&&(c.extra&&c.extra.parenthesized||"ParenthesizedExpression"===c.type)&&this.raise(f.start,"You're trying to assign to a parenthesized expression, eg. instead of ".concat(h)),this.next(),l.right=this.parseMaybeAssign(e),this.finishNode(l,"AssignmentExpression")}return i&&t.start&&this.unexpected(t.start),c}},{key:"parseMaybeConditional",value:function(e,t,r){var n=this.state.start,i=this.state.startLoc,a=this.state.potentialArrowAt,s=this.parseExprOps(e,t);return"ArrowFunctionExpression"===s.type&&s.start===a?s:t&&t.start?s:this.parseConditional(s,e,n,i,r)}},{key:"parseConditional",value:function(e,t,r,n,i){if(this.eat(o.question)){var a=this.startNodeAt(r,n);return a.test=e,a.consequent=this.parseMaybeAssign(),this.expect(o.colon),a.alternate=this.parseMaybeAssign(t),this.finishNode(a,"ConditionalExpression")}return e}},{key:"parseExprOps",value:function(e,t){var r=this.state.start,n=this.state.startLoc,i=this.state.potentialArrowAt,a=this.parseMaybeUnary(t);return"ArrowFunctionExpression"===a.type&&a.start===i?a:t&&t.start?a:this.parseExprOp(a,r,n,-1,e)}},{key:"parseExprOp",value:function(e,t,r,n,i){var a=this.state.type.binop;if(!(null==a||i&&this.match(o._in))&&a>n){var s=this.state.value;if("|>"===s&&this.state.inFSharpPipelineDirectBody)return e;var u=this.startNodeAt(t,r);u.left=e,u.operator=s,"**"!==s||"UnaryExpression"!==e.type||!this.options.createParenthesizedExpressions&&e.extra&&e.extra.parenthesized||this.raise(e.argument.start,"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.");var c=this.state.type;if(c===o.pipeline?(this.expectPlugin("pipelineOperator"),this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(e,t)):c===o.nullishCoalescing&&this.expectPlugin("nullishCoalescingOperator"),this.next(),c===o.pipeline&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&this.match(o.name)&&"await"===this.state.value&&this.scope.inAsync)throw this.raise(this.state.start,'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal');if(u.right=this.parseExprOpRightExpr(c,a,i),c===o.nullishCoalescing){if(!("LogicalExpression"!==e.type||"??"===e.operator||e.extra&&e.extra.parenthesized))throw this.raise(e.start,"Nullish coalescing operator(??) requires parens when mixing with logical operators");if(!("LogicalExpression"!==u.right.type||"??"===u.right.operator||u.right.extra&&u.right.extra.parenthesized))throw this.raise(u.right.start,"Nullish coalescing operator(??) requires parens when mixing with logical operators")}return this.finishNode(u,c===o.logicalOR||c===o.logicalAND||c===o.nullishCoalescing?"LogicalExpression":"BinaryExpression"),this.parseExprOp(u,t,r,n,i)}return e}},{key:"parseExprOpRightExpr",value:function(e,t,r){var n=this,i=this.state.start,a=this.state.startLoc;switch(e){case o.pipeline:switch(this.getPluginOption("pipelineOperator","proposal")){case"smart":return this.withTopicPermittingContext((function(){return n.parseSmartPipelineBody(n.parseExprOpBaseRightExpr(e,t,r),i,a)}));case"fsharp":return this.withSoloAwaitPermittingContext((function(){return n.parseFSharpPipelineBody(t,r)}))}default:return this.parseExprOpBaseRightExpr(e,t,r)}}},{key:"parseExprOpBaseRightExpr",value:function(e,t,r){var n=this.state.start,i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),n,i,e.rightAssociative?t-1:t,r)}},{key:"parseMaybeUnary",value:function(e){if(this.isContextual("await")&&this.isAwaitAllowed())return this.parseAwait();if(this.state.type.prefix){var t=this.startNode(),r=this.match(o.incDec);if(t.operator=this.state.value,t.prefix=!0,"throw"===t.operator&&this.expectPlugin("throwExpressions"),this.next(),t.argument=this.parseMaybeUnary(),e&&e.start&&this.unexpected(e.start),r)this.checkLVal(t.argument,void 0,void 0,"prefix operation");else if(this.state.strict&&"delete"===t.operator){var n=t.argument;"Identifier"===n.type?this.raise(t.start,"Deleting local variable in strict mode"):"MemberExpression"===n.type&&"PrivateName"===n.property.type&&this.raise(t.start,"Deleting a private field is not allowed")}return this.finishNode(t,r?"UpdateExpression":"UnaryExpression")}var i=this.state.start,a=this.state.startLoc,s=this.parseExprSubscripts(e);if(e&&e.start)return s;for(;this.state.type.postfix&&!this.canInsertSemicolon();){var u=this.startNodeAt(i,a);u.operator=this.state.value,u.prefix=!1,u.argument=s,this.checkLVal(s,void 0,void 0,"postfix operation"),this.next(),s=this.finishNode(u,"UpdateExpression")}return s}},{key:"parseExprSubscripts",value:function(e){var t=this.state.start,r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprAtom(e);return"ArrowFunctionExpression"===i.type&&i.start===n?i:e&&e.start?i:this.parseSubscripts(i,t,r)}},{key:"parseSubscripts",value:function(e,t,r,n){var i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsync(e),stop:!1};do{e=this.parseSubscript(e,t,r,n,i),i.maybeAsyncArrow=!1}while(!i.stop);return e}},{key:"parseSubscript",value:function(e,t,r,n,i){if(!n&&this.eat(o.doubleColon)){var a=this.startNodeAt(t,r);return a.object=e,a.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(a,"BindExpression"),t,r,n)}if(this.match(o.questionDot)){if(this.expectPlugin("optionalChaining"),i.optionalChainMember=!0,n&&40===this.lookaheadCharCode())return i.stop=!0,e;this.next();var s=this.startNodeAt(t,r);return this.eat(o.bracketL)?(s.object=e,s.property=this.parseExpression(),s.computed=!0,s.optional=!0,this.expect(o.bracketR),this.finishNode(s,"OptionalMemberExpression")):this.eat(o.parenL)?(s.callee=e,s.arguments=this.parseCallExpressionArguments(o.parenR,!1),s.optional=!0,this.finishCallExpression(s,!0)):(s.object=e,s.property=this.parseIdentifier(!0),s.computed=!1,s.optional=!0,this.finishNode(s,"OptionalMemberExpression"))}if(this.eat(o.dot)){var u=this.startNodeAt(t,r);return u.object=e,u.property=this.parseMaybePrivateName(),u.computed=!1,"PrivateName"===u.property.type&&"Super"===u.object.type&&this.raise(t,"Private fields can't be accessed on super"),i.optionalChainMember?(u.optional=!1,this.finishNode(u,"OptionalMemberExpression")):this.finishNode(u,"MemberExpression")}if(this.eat(o.bracketL)){var c=this.startNodeAt(t,r);return c.object=e,c.property=this.parseExpression(),c.computed=!0,this.expect(o.bracketR),i.optionalChainMember?(c.optional=!1,this.finishNode(c,"OptionalMemberExpression")):this.finishNode(c,"MemberExpression")}if(!n&&this.match(o.parenL)){var l=this.state.maybeInArrowParameters,p=this.state.yieldPos,h=this.state.awaitPos;this.state.maybeInArrowParameters=!0,this.state.yieldPos=-1,this.state.awaitPos=-1,this.next();var f=this.startNodeAt(t,r);return f.callee=e,f.arguments=this.parseCallExpressionArguments(o.parenR,i.maybeAsyncArrow,"Import"===e.type,"Super"!==e.type,f),this.finishCallExpression(f,i.optionalChainMember),i.maybeAsyncArrow&&this.shouldParseAsyncArrow()?(i.stop=!0,f=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,r),f),this.checkYieldAwaitInDefaultParams(),this.state.yieldPos=p,this.state.awaitPos=h):(this.toReferencedListDeep(f.arguments),-1!==p&&(this.state.yieldPos=p),(this.isAwaitAllowed()||l)&&-1===h||(this.state.awaitPos=h)),this.state.maybeInArrowParameters=l,f}return this.match(o.backQuote)?this.parseTaggedTemplateExpression(t,r,e,i):(i.stop=!0,e)}},{key:"parseTaggedTemplateExpression",value:function(e,t,r,n,i){var a=this.startNodeAt(e,t);return a.tag=r,a.quasi=this.parseTemplate(!0),i&&(a.typeParameters=i),n.optionalChainMember&&this.raise(e,"Tagged Template Literals are not allowed in optionalChain"),this.finishNode(a,"TaggedTemplateExpression")}},{key:"atPossibleAsync",value:function(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEnd===e.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(e.start,e.end)}},{key:"finishCallExpression",value:function(e,t){if("Import"===e.callee.type)if(1!==e.arguments.length)this.raise(e.start,"import() requires exactly one argument");else{var r=e.arguments[0];r&&"SpreadElement"===r.type&&this.raise(r.start,"... is not allowed in import()")}return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}},{key:"parseCallExpressionArguments",value:function(e,t,r,n,i){var a,s=[],u=!0,c=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(u)u=!1;else if(this.expect(o.comma),this.match(e)){r&&this.raise(this.state.lastTokStart,"Trailing comma is disallowed inside import(...) arguments"),i&&this.addExtra(i,"trailingComma",this.state.lastTokStart),this.next();break}this.match(o.parenL)&&!a&&(a=this.state.start),s.push(this.parseExprListItem(!1,t?{start:0}:void 0,t?{start:0}:void 0,n))}return t&&a&&this.shouldParseAsyncArrow()&&this.unexpected(),this.state.inFSharpPipelineDirectBody=c,s}},{key:"shouldParseAsyncArrow",value:function(){return this.match(o.arrow)&&!this.canInsertSemicolon()}},{key:"parseAsyncArrowFromCallExpression",value:function(e,t){var r;return this.expect(o.arrow),this.parseArrowExpression(e,t.arguments,!0,null===(r=t.extra)||void 0===r?void 0:r.trailingComma),e}},{key:"parseNoCallExpr",value:function(){var e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)}},{key:"parseExprAtom",value:function(e){this.state.type===o.slash&&this.readRegexp();var t,r=this.state.potentialArrowAt===this.state.start;switch(this.state.type){case o._super:return t=this.startNode(),this.next(),!this.match(o.parenL)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(t.start,"super is only allowed in object methods and classes"):this.raise(t.start,"super() is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?"),this.match(o.parenL)||this.match(o.bracketL)||this.match(o.dot)||this.raise(t.start,"super can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop])"),this.finishNode(t,"Super");case o._import:return t=this.startNode(),this.next(),this.match(o.dot)?this.parseImportMetaProperty(t):(this.expectPlugin("dynamicImport",t.start),this.match(o.parenL)||this.unexpected(null,o.parenL),this.finishNode(t,"Import"));case o._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case o.name:t=this.startNode();var n=this.state.containsEsc,i=this.parseIdentifier();if(!n&&"async"===i.name&&this.match(o._function)&&!this.canInsertSemicolon())return this.next(),this.parseFunction(t,void 0,!0);if(r&&!n&&"async"===i.name&&this.match(o.name)&&!this.canInsertSemicolon()){var a=[this.parseIdentifier()];return this.expect(o.arrow),this.parseArrowExpression(t,a,!0),t}return r&&this.match(o.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(t,[i],!1),t):i;case o._do:this.expectPlugin("doExpressions");var s=this.startNode();this.next();var u=this.state.labels;return this.state.labels=[],s.body=this.parseBlock(),this.state.labels=u,this.finishNode(s,"DoExpression");case o.regexp:var c=this.state.value;return(t=this.parseLiteral(c.value,"RegExpLiteral")).pattern=c.pattern,t.flags=c.flags,t;case o.num:return this.parseLiteral(this.state.value,"NumericLiteral");case o.bigint:return this.parseLiteral(this.state.value,"BigIntLiteral");case o.string:return this.parseLiteral(this.state.value,"StringLiteral");case o._null:return t=this.startNode(),this.next(),this.finishNode(t,"NullLiteral");case o._true:case o._false:return this.parseBooleanLiteral();case o.parenL:return this.parseParenAndDistinguishExpression(r);case o.bracketL:var l=this.state.inFSharpPipelineDirectBody;return this.state.inFSharpPipelineDirectBody=!1,t=this.startNode(),this.next(),t.elements=this.parseExprList(o.bracketR,!0,e,t),this.state.maybeInArrowParameters||this.toReferencedList(t.elements),this.state.inFSharpPipelineDirectBody=l,this.finishNode(t,"ArrayExpression");case o.braceL:var p=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var h=this.parseObj(!1,e);return this.state.inFSharpPipelineDirectBody=p,h;case o._function:return this.parseFunctionExpression();case o.at:this.parseDecorators();case o._class:return t=this.startNode(),this.takeDecorators(t),this.parseClass(t,!1);case o._new:return this.parseNew();case o.backQuote:return this.parseTemplate(!1);case o.doubleColon:t=this.startNode(),this.next(),t.object=null;var f=t.callee=this.parseNoCallExpr();if("MemberExpression"===f.type)return this.finishNode(t,"BindExpression");throw this.raise(f.start,"Binding should be performed on object property.");case o.hash:if(this.state.inPipeline)return t=this.startNode(),"smart"!==this.getPluginOption("pipelineOperator","proposal")&&this.raise(t.start,"Primary Topic Reference found but pipelineOperator not passed 'smart' for 'proposal' option."),this.next(),this.primaryTopicReferenceIsAllowedInCurrentTopicContext()||this.raise(t.start,"Topic reference was used in a lexical context without topic binding"),this.registerTopicReference(),this.finishNode(t,"PipelinePrimaryTopicReference");default:throw this.unexpected()}}},{key:"parseBooleanLiteral",value:function(){var e=this.startNode();return e.value=this.match(o._true),this.next(),this.finishNode(e,"BooleanLiteral")}},{key:"parseMaybePrivateName",value:function(){if(this.match(o.hash)){this.expectOnePlugin(["classPrivateProperties","classPrivateMethods"]);var e=this.startNode();return this.next(),this.assertNoSpace("Unexpected space between # and identifier"),e.id=this.parseIdentifier(!0),this.finishNode(e,"PrivateName")}return this.parseIdentifier(!0)}},{key:"parseFunctionExpression",value:function(){var e=this.startNode(),t=this.startNode();return this.next(),t=this.createIdentifier(t,"function"),this.scope.inGenerator&&this.eat(o.dot)?this.parseMetaProperty(e,t,"sent"):this.parseFunction(e)}},{key:"parseMetaProperty",value:function(e,t,r){e.meta=t,"function"===t.name&&"sent"===r&&(this.isContextual(r)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());var n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(e.property.start,"The only valid meta property for ".concat(t.name," is ").concat(t.name,".").concat(r)),this.finishNode(e,"MetaProperty")}},{key:"parseImportMetaProperty",value:function(e){var t=this.createIdentifier(this.startNodeAtNode(e),"import");return this.expect(o.dot),this.isContextual("meta")?(this.expectPlugin("importMeta"),this.inModule||this.raise(t.start,"import.meta may appear only with 'sourceType: \"module\"'",{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),this.sawUnambiguousESM=!0):this.hasPlugin("importMeta")||this.raise(t.start,"Dynamic imports require a parameter: import('a.js')"),this.parseMetaProperty(e,t,"meta")}},{key:"parseLiteral",value:function(e,t,r,n){r=r||this.state.start,n=n||this.state.startLoc;var i=this.startNodeAt(r,n);return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(r,this.state.end)),i.value=e,this.next(),this.finishNode(i,t)}},{key:"parseParenAndDistinguishExpression",value:function(e){var t,r=this.state.start,n=this.state.startLoc;this.expect(o.parenL);var i=this.state.maybeInArrowParameters,a=this.state.yieldPos,s=this.state.awaitPos,u=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.yieldPos=-1,this.state.awaitPos=-1,this.state.inFSharpPipelineDirectBody=!1;for(var c,l,p=this.state.start,h=this.state.startLoc,f=[],d={start:0},m={start:0},y=!0;!this.match(o.parenR);){if(y)y=!1;else if(this.expect(o.comma,m.start||null),this.match(o.parenR)){l=this.state.start;break}if(this.match(o.ellipsis)){var D=this.state.start,g=this.state.startLoc;c=this.state.start,f.push(this.parseParenItem(this.parseRestBinding(),D,g)),this.checkCommaAfterRest(41);break}f.push(this.parseMaybeAssign(!1,d,this.parseParenItem,m))}var v=this.state.start,E=this.state.startLoc;this.expect(o.parenR),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=u;var b=this.startNodeAt(r,n);if(e&&this.shouldParseArrow()&&(b=this.parseArrow(b))){this.checkYieldAwaitInDefaultParams(),this.state.yieldPos=a,this.state.awaitPos=s;for(var C=0;C1?((t=this.startNodeAt(p,h)).expressions=f,this.finishNodeAt(t,"SequenceExpression",v,E)):t=f[0],!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",r),t;var A=this.startNodeAt(r,n);return A.expression=t,this.finishNode(A,"ParenthesizedExpression"),A}},{key:"shouldParseArrow",value:function(){return!this.canInsertSemicolon()}},{key:"parseArrow",value:function(e){if(this.eat(o.arrow))return e}},{key:"parseParenItem",value:function(e,t,r){return e}},{key:"parseNew",value:function(){var e=this.startNode(),t=this.startNode();if(this.next(),t=this.createIdentifier(t,"new"),this.eat(o.dot)){var r=this.parseMetaProperty(e,t,"target");if(!this.scope.inNonArrowFunction&&!this.state.inClassProperty){var n="new.target can only be used in functions";this.hasPlugin("classProperties")&&(n+=" or class properties"),this.raise(r.start,n)}return r}return e.callee=this.parseNoCallExpr(),"Import"===e.callee.type?this.raise(e.callee.start,"Cannot use new with import(...)"):"OptionalMemberExpression"===e.callee.type||"OptionalCallExpression"===e.callee.type?this.raise(this.state.lastTokEnd,"constructors in/after an Optional Chain are not allowed"):this.eat(o.questionDot)&&this.raise(this.state.start,"constructors in/after an Optional Chain are not allowed"),this.parseNewArguments(e),this.finishNode(e,"NewExpression")}},{key:"parseNewArguments",value:function(e){if(this.eat(o.parenL)){var t=this.parseExprList(o.parenR);this.toReferencedList(t),e.arguments=t}else e.arguments=[]}},{key:"parseTemplateElement",value:function(e){var t=this.startNode();return null===this.state.value&&(e?this.state.invalidTemplateEscapePosition=null:this.raise(this.state.invalidTemplateEscapePosition||0,"Invalid escape sequence in template")),t.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\r\n?/g,"\n"),cooked:this.state.value},this.next(),t.tail=this.match(o.backQuote),this.finishNode(t,"TemplateElement")}},{key:"parseTemplate",value:function(e){var t=this.startNode();this.next(),t.expressions=[];var r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)this.expect(o.dollarBraceL),t.expressions.push(this.parseExpression()),this.expect(o.braceR),t.quasis.push(r=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")}},{key:"parseObj",value:function(e,t){var r=Object.create(null),n=!0,i=this.startNode();for(i.properties=[],this.next();!this.eat(o.braceR);){if(n)n=!1;else if(this.expect(o.comma),this.match(o.braceR)){this.addExtra(i,"trailingComma",this.state.lastTokStart),this.next();break}var a=this.parseObjectMember(e,t);e||this.checkDuplicatedProto(a,r),a.shorthand&&this.addExtra(a,"shorthand",!0),i.properties.push(a)}return this.match(o.eq)||void 0===r.start||this.raise(r.start,"Redefinition of __proto__ property"),this.finishNode(i,e?"ObjectPattern":"ObjectExpression")}},{key:"isAsyncProp",value:function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.match(o.name)||this.match(o.num)||this.match(o.string)||this.match(o.bracketL)||this.state.type.keyword||this.match(o.star))&&!this.hasPrecedingLineBreak()}},{key:"parseObjectMember",value:function(e,t){var r=[];if(this.match(o.at))for(this.hasPlugin("decorators")&&this.raise(this.state.start,"Stage 2 decorators disallow object literal property decorators");this.match(o.at);)r.push(this.parseDecorator());var n,i,a=this.startNode(),s=!1,u=!1;if(this.match(o.ellipsis))return r.length&&this.unexpected(),e?(this.next(),a.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(a,"RestElement")):this.parseSpread();r.length&&(a.decorators=r,r=[]),a.method=!1,(e||t)&&(n=this.state.start,i=this.state.startLoc),e||(s=this.eat(o.star));var c=this.state.containsEsc;return this.parsePropertyName(a),e||c||s||!this.isAsyncProp(a)?u=!1:(u=!0,s=this.eat(o.star),this.parsePropertyName(a)),this.parseObjPropValue(a,n,i,s,u,e,t,c),a}},{key:"isGetterOrSetterMethod",value:function(e,t){return!t&&!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&(this.match(o.string)||this.match(o.num)||this.match(o.bracketL)||this.match(o.name)||!!this.state.type.keyword)}},{key:"getGetterSetterExpectedParamCount",value:function(e){return"get"===e.kind?0:1}},{key:"checkGetterSetterParams",value:function(e){var t=this.getGetterSetterExpectedParamCount(e),r=e.start;e.params.length!==t&&("get"===e.kind?this.raise(r,"getter must not have any formal parameters"):this.raise(r,"setter must have exactly one formal parameter")),"set"===e.kind&&"RestElement"===e.params[e.params.length-1].type&&this.raise(r,"setter function argument must not be a rest parameter")}},{key:"parseObjectMethod",value:function(e,t,r,n,i){return r||t||this.match(o.parenL)?(n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")):!i&&this.isGetterOrSetterMethod(e,n)?((t||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),this.parseMethod(e,!1,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(e),e):void 0}},{key:"parseObjectProperty",value:function(e,t,r,n,i){return e.shorthand=!1,this.eat(o.colon)?(e.value=n?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssign(!1,i),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!0),n?e.value=this.parseMaybeDefault(t,r,e.key.__clone()):this.match(o.eq)&&i?(i.start||(i.start=this.state.start),e.value=this.parseMaybeDefault(t,r,e.key.__clone())):e.value=e.key.__clone(),e.shorthand=!0,this.finishNode(e,"ObjectProperty"))}},{key:"parseObjPropValue",value:function(e,t,r,n,i,a,s,o){var u=this.parseObjectMethod(e,n,i,a,o)||this.parseObjectProperty(e,t,r,a,s);return u||this.unexpected(),u}},{key:"parsePropertyName",value:function(e){if(this.eat(o.bracketL))e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(o.bracketR);else{var t=this.state.inPropertyName;this.state.inPropertyName=!0,e.key=this.match(o.num)||this.match(o.string)?this.parseExprAtom():this.parseMaybePrivateName(),"PrivateName"!==e.key.type&&(e.computed=!1),this.state.inPropertyName=t}return e.key}},{key:"initFunction",value:function(e,t){e.id=null,e.generator=!1,e.async=!!t}},{key:"parseMethod",value:function(e,t,r,n,i,a){var s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o=this.state.yieldPos,c=this.state.awaitPos;this.state.yieldPos=-1,this.state.awaitPos=-1,this.initFunction(e,r),e.generator=!!t;var l=n;return this.scope.enter(64|u(r,e.generator)|(s?256:0)|(i?128:0)),this.parseFunctionParams(e,l),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBodyAndFinish(e,a,!0),this.scope.exit(),this.state.yieldPos=o,this.state.awaitPos=c,e}},{key:"parseArrowExpression",value:function(e,t,r,n){this.scope.enter(16|u(r,!1)),this.initFunction(e,r);var i=this.state.maybeInArrowParameters,a=this.state.yieldPos,s=this.state.awaitPos;return this.state.maybeInArrowParameters=!1,this.state.yieldPos=-1,this.state.awaitPos=-1,t&&this.setArrowFunctionParameters(e,t,n),this.parseFunctionBody(e,!0),this.scope.exit(),this.state.maybeInArrowParameters=i,this.state.yieldPos=a,this.state.awaitPos=s,this.finishNode(e,"ArrowFunctionExpression")}},{key:"setArrowFunctionParameters",value:function(e,t,r){e.params=this.toAssignableList(t,!0,"arrow function parameters",r)}},{key:"isStrictBody",value:function(e){if("BlockStatement"===e.body.type&&e.body.directives.length)for(var t=0,r=e.body.directives;t2&&void 0!==arguments[2]&&arguments[2];this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}},{key:"parseFunctionBody",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t&&!this.match(o.braceL),i=this.state.strict,a=!1,s=this.state.inParameters;if(this.state.inParameters=!1,n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{var u=!this.isSimpleParamList(e.params);if((!i||u)&&(a=this.strictDirective(this.state.end))&&u){var c="method"!==e.kind&&"constructor"!==e.kind||!e.key?e.start:e.key.end;this.raise(c,"Illegal 'use strict' directive in function with non-simple parameter list")}var l=this.state.labels;this.state.labels=[],a&&(this.state.strict=!0),this.checkParams(e,!(i||a||t||r||u),t,!i&&a),e.body=this.parseBlock(!0,!1),this.state.labels=l}this.state.inParameters=s,this.state.strict&&e.id&&this.checkLVal(e.id,65,void 0,"function name",void 0,!i&&a),this.state.strict=i}},{key:"isSimpleParamList",value:function(e){for(var t=0,r=e.length;t3&&void 0!==arguments[3])||arguments[3],i=Object.create(null),a=0;a" after pipeline body; arrow function in pipeline body must be parenthesized');"PipelineTopicExpression"===t&&"SequenceExpression"===e.type&&this.raise(r,"Pipeline body may not be a comma-separated sequence expression")}},{key:"parseSmartPipelineBodyInStyle",value:function(e,t,r,n){var i=this.startNodeAt(r,n);switch(t){case"PipelineBareFunction":i.callee=e;break;case"PipelineBareConstructor":i.callee=e.callee;break;case"PipelineBareAwaitedFunction":i.callee=e.argument;break;case"PipelineTopicExpression":this.topicReferenceWasUsedInCurrentTopicContext()||this.raise(r,"Pipeline is in topic style but does not use topic reference"),i.expression=e;break;default:throw new Error("Internal @babel/parser error: Unknown pipeline style (".concat(t,")"))}return this.finishNode(i,t)}},{key:"checkSmartPipelineBodyStyle",value:function(e){return e.type,this.isSimpleReference(e)?"PipelineBareFunction":"PipelineTopicExpression"}},{key:"isSimpleReference",value:function(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}},{key:"withTopicPermittingContext",value:function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}},{key:"withTopicForbiddingContext",value:function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}},{key:"withSoloAwaitPermittingContext",value:function(e){var t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}},{key:"registerTopicReference",value:function(){this.state.topicContext.maxTopicIndex=0}},{key:"primaryTopicReferenceIsAllowedInCurrentTopicContext",value:function(){return this.state.topicContext.maxNumOfResolvableTopics>=1}},{key:"topicReferenceWasUsedInCurrentTopicContext",value:function(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}},{key:"parseFSharpPipelineBody",value:function(e,t){var r=this.state.start,n=this.state.startLoc;this.state.potentialArrowAt=this.state.start;var i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;var a=this.parseExprOp(this.parseMaybeUnary(),r,n,e,t);return this.state.inFSharpPipelineDirectBody=i,a}}]),t}(function(e){function t(){return h(this,t),g(this,y(t).apply(this,arguments))}return m(t,e),d(t,[{key:"toAssignable",value:function(e,t,r){var n;if(e)switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(var i=0,a=e.properties.length,s=a-1;i1&&void 0!==arguments[1]?arguments[1]:64,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];switch(e.type){case"Identifier":if(this.state.strict&&(a?B(e.name,this.inModule):P(e.name))&&this.raise(e.start,"".concat(64===t?"Assigning to":"Binding"," '").concat(e.name,"' in strict mode")),r){var s="_".concat(e.name);r[s]?this.raise(e.start,"Argument name clash"):r[s]=!0}i&&"let"===e.name&&this.raise(e.start,"'let' is not allowed to be used as a name in 'let' or 'const' declarations."),64&t||this.scope.declareName(e.name,t,e.start);break;case"MemberExpression":64!==t&&this.raise(e.start,"Binding member expression");break;case"ObjectPattern":for(var o=0,u=e.properties;o1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEnd,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.state.lastTokEndLoc;e.end=t,e.loc.end=r,this.options.ranges&&(e.range[1]=t)}},{key:"resetStartLocationFromNode",value:function(e,t){this.resetStartLocation(e,t.start,t.loc.start)}}]),t}(be)))));function Fe(e,t){var r=we;return e&&e.plugins&&(function(e){if(ie(e,"decorators")){if(ie(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");var t=ae(e,"decorators","decoratorsBeforeExport");if(null==t)throw new Error("The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.");if("boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean.")}if(ie(e,"flow")&&ie(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(ie(e,"placeholders")&&ie(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(ie(e,"pipelineOperator")&&-1===se.indexOf(ae(e,"pipelineOperator","proposal")))throw new Error("'pipelineOperator' requires 'proposal' option whose value should be one of: "+se.map((function(e){return"'".concat(e,"'")})).join(", "))}(e.plugins),r=function(e){var t=ue.filter((function(t){return ie(e,t)})),r=t.join("/"),n=Se[r];if(!n){n=we;for(var i=0;i0&&t.push("\n"),e.formUrlEncode&&t.push(r.formurlencoded),e.jsonpath&&t.push(r.jsonpath))}(e,t),t.join("\n")}return null}},function(e,t,r){var n=r(8);e.exports=function(e){return e.comment.length?n(e.comment.join("\n")):null}},function(e,t,r){var n=r(36),i=r(120),a=r(121),s=r(177);e.exports=function(e){var t=[i(e.declares),s(e),a(e),"sleep(1);"].filter((function(e){return e}));return"export default function() ".concat(n(t))}},function(e,t){function r(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t1,c=i(s).map((function(e,t){return function(e,t,r,n){return t.comment?a.test(t.comment)?""+"".concat(o(e,r,n),":\n").concat(t.comment):"".concat(o(e,r,n),": ").concat(t.comment):null}(r,e,u,t)})).filter((function(e){return e}));return c.length?c.join("\n"):null}function o(e,t,r){return t?"".concat(e,"[").concat(r,"]"):"".concat(e)}e.exports=function(e){var t=e.state;if(t.address.variable||!e.query.size||t.query.variable)return null;var r=i(e.query).map(s).filter((function(e){return e}));return r.length?""+"Query string notes:\n".concat(r.join("\n")):null}},function(e,t,r){var n=r(126),i=r(144),a=r(173);e.exports=function(e){return[i(e.request),n(e.checks),a(e.variables)].filter((function(e){return e})).join("\n")}},function(e,t,r){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],n=!0,i=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t ".concat(function(e){var t=i(e.expression),r="jsonpath.query(response.json(), ".concat(t,")"),a="return !!".concat(r,".length;");return""+"{\n".concat(n(a),"\n}")}(e))}e.exports=function(e,t){var r={name:e,value:a(t)};return t.comment&&(r.comment=t.comment),r}},function(e,t){e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return JSON.stringify(e.join(t))}},function(e,t){e.exports=function(e){return JSON.stringify(e)}},function(e,t,r){var n=r(38),i=r(9),a=r(4);function s(e){var t={subject:o(e),comparison:n(e.condition,u(e)),negated:e.state.negated};return t.body=function(e){var t=e.negated?"!":"!!",r=""+"const values = ".concat(e.subject,";\nreturn ").concat(t,"values.find(value => value").concat(e.comparison,");");return""+"{\n".concat(i(r),"\n}")}(t),"response => ".concat(t.body)}function o(e){return"jsonpath.query(response.json(), ".concat(a(e.expression),")")}function u(e){return a(e.value)}e.exports=function(e,t){var r={name:e,value:s(t)};return t.comment&&(r.comment=t.comment),r}},function(e,t,r){var n=r(9),i=r(4),a=r(39);function s(e){var t={subject:a(e.subject),expression:o(e),flags:u(e)};return t.body=function(e,t){return e.state.plural?function(e){var t=""+"const values = ".concat(e.subject,";\nconst expr = new RegExp(").concat(c(e),");\nreturn !!values.find(value => expr.test(value));");return""+"{\n".concat(n(t),"\n}")}(t):function(e){var t=""+"const expr = new RegExp(".concat(c(e),");\nreturn expr.test(").concat(e.subject,");");return""+"{\n".concat(n(t),"\n}")}(t)}(e,t),"response => ".concat(t.body)}function o(e){return i(e.expression)}function u(e){return e.flags?i(e.flags):null}function c(e){var t=[];return t.push(e.expression),e.flags&&t.push(e.flags),t.join(", ")}e.exports=function(e,t){var r={name:e,value:s(t)};return t.comment&&(r.comment=t.comment),r}},function(e,t,r){var n=r(38),i=r(9),a=r(4),s=r(39);function o(e){var t={subject:s(e.subject),comparison:n(e.condition,u(e)),negated:e.state.negated};return t.body=function(e,t){return e.state.plural?function(e){var t=e.negated?"!":"!!",r=""+"const values = ".concat(e.subject,";\nreturn ").concat(t,"values.find(value => value").concat(e.comparison,");");return""+"{\n".concat(i(r),"\n}")}(t):function(e){return(e.negated?"!":"")+e.subject+e.comparison}(t)}(e,t),"response => ".concat(t.body)}function u(e){return a(e.value)}e.exports=function(e,t){var r={name:e,value:o(t)};return t.comment&&(r.comment=t.comment),r}},function(e,t,r){function n(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t50?a.Top:a.Suffix}(e,r);return(r&&s===a.Top?"".concat(r,"\n"):"")+"".concat(i(e.name),": ").concat(e.value)+(t?"":",")+(r&&s===a.Suffix?" ".concat(r):"")}},function(e,t,r){var n=r(4),i=r(40),a=r(23),s=r(1).StringSpecies,o=r(0).UnrecognizedError;e.exports=function(e){switch(i(e)){case s.Identifier:return e;case s.String:return n(e);case s.Template:return"[".concat(a(e),"]");default:throw new o({name:"UnrecognizedStringSpecies"},"Unrecognized string species: ".concat(e))}}},function(e,t){e.exports=function(e){return r.test(e)};var r=/^(?!(?:do|if|in|for|let|new|try|var|case|else|enum|eval|null|this|true|void|with|await|break|catch|class|const|false|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$)(?:[$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\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\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\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-\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\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\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-\uA7AD\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D])(?:[$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\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\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\u0C81-\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\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\u1369-\u1371\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-\u19DA\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\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\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-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF])*$/},function(e,t,r){var n=r(3).variable;e.exports=function(e){return n.test(e)}},function(e,t,r){var n=r(41);e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return["`",e.map((function(e){return n(e)})).join(t),"`"].join("")}},function(e,t,r){var n=r(4);e.exports=function(e){return"vars[".concat(n(e),"]")}},function(e,t,r){var n=r(41);e.exports=function(e){return"`".concat(n(e),"`")}},function(e,t,r){var n=r(40),i=r(1).StringSpecies,a=r(0).UnrecognizedError;function s(e,t){var r=n(e.key),s=n(t.key);if(r===s)return e.key>t.key?1:e.key=1,n=arguments.length>=2;if(!(this instanceof a))return r?n?new a(e,t):new a(e):new a;if(void 0===e){if(r)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&r)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}a.version="1.19.1";var s=a.prototype,o=Object.prototype.hasOwnProperty;function u(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function c(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function l(e){return"Array"===c(e)}function p(e,t){var r,n,i={};if("RegExp"===c(t))i=null;else if(l(t))for(r=0,n=t.length;r]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,a.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},a.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},a.hostProtocols=["http","https"],a.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,a.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},a.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return a.domAttributes[t]}},a.encode=y,a.decode=decodeURIComponent,a.iso8859=function(){a.encode=escape,a.decode=unescape},a.unicode=function(){a.encode=y,a.decode=decodeURIComponent},a.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},a.encodeQuery=function(e,t){var r=a.encode(e+"");return void 0===t&&(t=a.escapeQuerySpace),t?r.replace(/%20/g,"+"):r},a.decodeQuery=function(e,t){e+="",void 0===t&&(t=a.escapeQuerySpace);try{return a.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var D,g={encode:"encode",decode:"decode"},v=function(e,t){return function(r){try{return a[t](r+"").replace(a.characters[e][t].expression,(function(r){return a.characters[e][t].map[r]}))}catch(e){return r}}};for(D in g)a[D+"PathSegment"]=v("pathname",g[D]),a[D+"UrnPathSegment"]=v("urnpath",g[D]);var E=function(e,t,r){return function(n){var i;i=r?function(e){return a[t](a[r](e))}:a[t];for(var s=(n+"").split(e),o=0,u=s.length;o-1&&(t.fragment=e.substring(r+1)||null,e=e.substring(0,r)),(r=e.indexOf("?"))>-1&&(t.query=e.substring(r+1)||null,e=e.substring(0,r)),"//"===e.substring(0,2)?(t.protocol=null,e=e.substring(2),e=a.parseAuthority(e,t)):(r=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,r)||null,t.protocol&&!t.protocol.match(a.protocol_expression)?t.protocol=void 0:"//"===e.substring(r+1,r+3)?(e=e.substring(r+3),e=a.parseAuthority(e,t)):(e=e.substring(r+1),t.urn=!0)),t.path=e,t},a.parseHost=function(e,t){e||(e="");var r,n,i=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===i&&(i=e.length),"["===e.charAt(0))r=e.indexOf("]"),t.hostname=e.substring(1,r)||null,t.port=e.substring(r+2,i)||null,"/"===t.port&&(t.port=null);else{var s=e.indexOf(":"),o=e.indexOf("/"),u=e.indexOf(":",s+1);-1!==u&&(-1===o||u-1?n:e.length-1);return i>-1&&(-1===n||i-1?f.slice(0,d)+f.slice(d).replace(s,""):f.replace(s,"")).length<=c[0].length||r.ignore&&r.ignore.test(f))){var D=t(f,l,h=l+f.length,e);void 0!==D?(D=String(D),e=e.slice(0,l)+D+e.slice(h),n.lastIndex=l+D.length):n.lastIndex=h}}return n.lastIndex=0,e},a.ensureValidHostname=function(t,r){var n=!!t,i=!1;if(!!r&&(i=h(a.hostProtocols,r)),i&&!n)throw new TypeError("Hostname cannot be empty, if protocol is "+r);if(t&&t.match(a.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(a.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},a.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},a.noConflict=function(e){if(e){var t={URI:this.noConflict()};return n.URITemplate&&"function"==typeof n.URITemplate.noConflict&&(t.URITemplate=n.URITemplate.noConflict()),n.IPv6&&"function"==typeof n.IPv6.noConflict&&(t.IPv6=n.IPv6.noConflict()),n.SecondLevelDomains&&"function"==typeof n.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=n.SecondLevelDomains.noConflict()),t}return n.URI===this&&(n.URI=i),this},s.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=a.build(this._parts),this._deferred_build=!1),this},s.clone=function(){return new a(this)},s.valueOf=s.toString=function(){return this.build(!1)._string},s.protocol=b("protocol"),s.username=b("username"),s.password=b("password"),s.hostname=b("hostname"),s.port=b("port"),s.query=C("query","?"),s.fragment=C("fragment","#"),s.search=function(e,t){var r=this.query(e,t);return"string"==typeof r&&r.length?"?"+r:r},s.hash=function(e,t){var r=this.fragment(e,t);return"string"==typeof r&&r.length?"#"+r:r},s.pathname=function(e,t){if(void 0===e||!0===e){var r=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?a.decodeUrnPath:a.decodePath)(r):r}return this._parts.urn?this._parts.path=e?a.recodeUrnPath(e):"":this._parts.path=e?a.recodePath(e):"/",this.build(!t),this},s.path=s.pathname,s.href=function(e,t){var r;if(void 0===e)return this.toString();this._string="",this._parts=a._parts();var n=e instanceof a,i="object"==typeof e&&(e.hostname||e.path||e.pathname);e.nodeName&&(e=e[a.getDomAttribute(e)]||"",i=!1);if(!n&&i&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=a.parse(String(e),this._parts);else{if(!n&&!i)throw new TypeError("invalid input");var s=n?e._parts:e;for(r in s)"query"!==r&&o.call(this._parts,r)&&(this._parts[r]=s[r]);s.query&&this.query(s.query,!1)}return this.build(!t),this},s.is=function(e){var t=!1,n=!1,i=!1,s=!1,o=!1,u=!1,c=!1,l=!this._parts.urn;switch(this._parts.hostname&&(l=!1,n=a.ip4_expression.test(this._parts.hostname),i=a.ip6_expression.test(this._parts.hostname),o=(s=!(t=n||i))&&r&&r.has(this._parts.hostname),u=s&&a.idn_expression.test(this._parts.hostname),c=s&&a.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return l;case"absolute":return!l;case"domain":case"name":return s;case"sld":return o;case"ip":return t;case"ip4":case"ipv4":case"inet4":return n;case"ip6":case"ipv6":case"inet6":return i;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var x=s.protocol,A=s.port,F=s.hostname;s.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(a.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return x.call(this,e,t)},s.scheme=s.protocol,s.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),a.ensureValidPort(e))),A.call(this,e,t))},s.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var r={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==a.parseHost(e,r))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=r.hostname,this._parts.preventInvalidHostname&&a.ensureValidHostname(e,this._parts.protocol)}return F.call(this,e,t)},s.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=this.protocol();return this.authority()?(r?r+"://":"")+this.authority():""}var n=a(e);return this.protocol(n.protocol()).authority(n.authority()).build(!t),this},s.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?a.buildHost(this._parts):"";if("/"!==a.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?a.buildAuthority(this._parts):"";if("/"!==a.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=a.buildUserinfo(this._parts);return r?r.substring(0,r.length-1):r}return"@"!==e[e.length-1]&&(e+="@"),a.parseUserinfo(e,this._parts),this.build(!t),this},s.resource=function(e,t){var r;return void 0===e?this.path()+this.search()+this.hash():(r=a.parse(e),this._parts.path=r.path,this._parts.query=r.query,this._parts.fragment=r.fragment,this.build(!t),this)},s.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,r)||""}var n=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,n),s=new RegExp("^"+u(i));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&a.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(s,e),this.build(!t),this},s.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.match(/\./g);if(r&&r.length<2)return this._parts.hostname;var n=this._parts.hostname.length-this.tld(t).length-1;return n=this._parts.hostname.lastIndexOf(".",n-1)+1,this._parts.hostname.substring(n)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(a.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var i=new RegExp(u(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},s.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(n+1);return!0!==t&&r&&r.list[i.toLowerCase()]&&r.get(this._parts.hostname)||i}var a;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!r||!r.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');a=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(a,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");a=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(a,e)}return this.build(!t),this},s.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var r=this._parts.path.length-this.filename().length-1,n=this._parts.path.substring(0,r)||(this._parts.hostname?"/":"");return e?a.decodePath(n):n}var i=this._parts.path.length-this.filename().length,s=this._parts.path.substring(0,i),o=new RegExp("^"+u(s));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=a.recodePath(e),this._parts.path=this._parts.path.replace(o,e),this.build(!t),this},s.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var r=this._parts.path.lastIndexOf("/"),n=this._parts.path.substring(r+1);return e?a.decodePathSegment(n):n}var i=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(i=!0);var s=new RegExp(u(this.filename())+"$");return e=a.recodePath(e),this._parts.path=this._parts.path.replace(s,e),i?this.normalizePath(t):this.build(!t),this},s.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var r,n,i=this.filename(),s=i.lastIndexOf(".");return-1===s?"":(r=i.substring(s+1),n=/^[a-z0-9%]+$/i.test(r)?r:"",e?a.decodePathSegment(n):n)}"."===e.charAt(0)&&(e=e.substring(1));var o,c=this.suffix();if(c)o=e?new RegExp(u(c)+"$"):new RegExp(u("."+c)+"$");else{if(!e)return this;this._parts.path+="."+a.recodePath(e)}return o&&(e=a.recodePath(e),this._parts.path=this._parts.path.replace(o,e)),this.build(!t),this},s.segment=function(e,t,r){var n=this._parts.urn?":":"/",i=this.path(),a="/"===i.substring(0,1),s=i.split(n);if(void 0!==e&&"number"!=typeof e&&(r=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(a&&s.shift(),e<0&&(e=Math.max(s.length+e,0)),void 0===t)return void 0===e?s:s[e];if(null===e||void 0===s[e])if(l(t)){s=[];for(var o=0,u=t.length;ofunction(e,{value:t,comment:r}){const n=[];n.push(i(e)),a(t)||n.push(i(t));return{call:`addQuery(${n.join(", ")})`,comment:r}}(e,t))}e.exports=function(e,t){if(e.size){const r=[];for(const[t,n]of e)r.push(...s(t,n));t.pre.push(""+`address\n${n(r)};`)}}},function(e,t,r){const n=r(9),i=r(154);e.exports=function(e){const t=i(e);return t?n(t):null}},function(e,t,r){const n=r(155);e.exports=function(e){return e.length?e.map(e=>n(e)).join("\n"):null}},function(e,t,r){const n=r(8),{lineComment:i,multilineComment:a}=r(3);e.exports=function(e){const t=e.comment?n(e.comment):null;return(t&&a.test(t)?`${t}\n`:"")+`.${e.call}`+(t&&i.test(t)?` ${t}`:"")}},function(e,t,r){const n=r(157),i=r(14);e.exports=function(e){if(e.size){const t=[...e].map(([e,t])=>n(e,t));return i(t)}return null}},function(e,t,r){const n=r(7);function i(e){return n(e.value||"")}function a(e){return e.comment||null}e.exports=function(e,t){return{name:e,value:i(t),comment:a(t)}}},function(e,t,r){const n=r(159),i=r(14);e.exports=function(e){if(e.size){const t=[...e].map(([e,t])=>n(e,t));return i(t)}return null}},function(e,t,r){const n=r(24),i=r(7);function a(e){const t=e.map(e=>e.value||"");return i(t,",")}e.exports=function(e,t){return{name:e,value:a(t=[...t]),comment:n(t)}}},function(e,t,r){const n=r(25),{lineBreak:i}=r(3);function a(e){return e.length?(e.sort(n.value),e.map(e=>`${e.value}: ${e.comment}`).join("\n")):null}function s(e){return e.length?(e.sort(n.value),e.map(e=>`${e.value}:\n${e.comment}`).join("\n")):null}e.exports=function(e){return e.length?[a(e.filter(e=>!i.test(e.comment))),s(e.filter(e=>i.test(e.comment)))].filter(e=>e).join("\n"):null}},function(e,t,r){const{lineBreak:n}=r(3);function i(e){return e.length?e.map(e=>e.comment).join("\n"):null}function a(e){return e.length?e.map(e=>e.comment).join("\n"):null}e.exports=function(e){return e.length?[i(e.filter(e=>!n.test(e.comment))),a(e.filter(e=>n.test(e.comment)))].filter(e=>e).join("\n"):null}},function(e,t,r){const n=r(163),i=r(171),{PostSpecies:a}=r(1),{UnrecognizedError:s}=r(0);e.exports=function(e){switch(e.state.post.species){case a.Empty:return null;case a.Unstructured:return i(e);case a.Structured:return n(e);default:throw new s({name:"UncrecognizedPostSpecies"},`Unrecognized post species: ${e.state.post.species}`)}}},function(e,t,r){const n=r(164),{UnrecognizedError:i}=r(0);e.exports=function(e){switch(e.post.type){case"application/x-www-form-urlencoded":return n(e);default:throw new i({name:"UnrecognizedStructuredPostType"},`Unrecognized structured post data MIME type: ${e.post.type}`)}}},function(e,t,r){const n=r(165),i=r(170);e.exports=function(e){return e.state.params.plural?n(e):i(e.post.params)}},function(e,t,r){const n=r(166),i=r(169);e.exports=function(e){return e.state.params.variable?i(e.post.params):n(e.post.params)}},function(e,t,r){const n=r(8),i=r(167).default,a=r(168),s=r(4);function o(e){const t=function(e){const t={};for(const[r,n]of e)n.size>1?t[r]=[...n].map(e=>e.value):t[r]=[...n][0].value;return t}(e),r=i(t,{sorted:!0});return s(r)}function u(e){const t=a(e);return t?n(t):null}e.exports=function(e){return[u(e),o(e)].filter(e=>e).join("\n")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="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};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Boolean(t.sorted),i=Boolean(t.skipIndex),a=Boolean(t.ignorenull),s=function(e){return String(e).replace(/(?:[\0-\x1F"-&\+-\}\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,encodeURIComponent).replace(/ /g,"+").replace(/[!'()~\*]/g,(function(e){return"%"+e.charCodeAt().toString(16).slice(-2).toUpperCase()}))},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(e);return r?t.sort():t},u=function(e){return e.filter((function(e){return e})).join("&")},c=function(e,t){return u(o(t).map((function(r){return p(e+"["+r+"]",t[r])})))},l=function(e,t){return t.length?u(t.map((function(t,r){return p(i?e+"[]":e+"["+r+"]",t)}))):s(e+"[]")},p=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0===t?"undefined":n(t),i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t===i?i=a?i:s(e)+"="+i:/string|number|boolean/.test(r)?i=s(e)+"="+s(t):Array.isArray(t)?i=l(e,t):"object"===r&&(i=c(e,t)),i};return e&&u(o(e).map((function(t){return p(t,e[t])})))}},function(e,t,r){const n=r(24),i=r(25),{lineBreak:a}=r(3);e.exports=function(e){const t=[...e].map(([e,t])=>[e,n([...t])]).filter(([,e])=>e).sort(i.firstElement);return t.length?function(e){return!!e.find(([,e])=>a.test(e))}(t)?function(e){return e.map(([e,t])=>function(e,t){return a.test(t)?`-${e}-\n${t}`:`-${e}- ${t}`}(e,t)).join("\n\n")}(t):function(e){return e.map(([e,t])=>`-${e}- ${t}`).join("\n")}(t):null}},function(e,t,r){const n=r(24),i=r(14),a=r(7);function s(e,t){const r={name:e};return t.value&&(r.value=a(t.value)),t.comment&&(r.comment=t.comment),r}function o(e,t){const r={name:e},i=t.map(e=>e.value);if(i.length){const e=i.map(e=>a(e)).join(", ");r.value=`[ ${e} ]`}return t.find(e=>e.comment)&&(r.comment=n(t)),r}e.exports=function(e){return`formurlencoded(${function(e){const t=[];for(const[r,n]of e)if(1===n.size){const e=[...n][0];t.push(s(r,e))}else t.push(o(r,[...n]));return i(t)}(e)})`}},function(e,t,r){const n=r(14),i=r(7);function a(e,t){const r={name:e};return t.value&&(r.value=i(t.value)),(t.comment||t.contentType||t.fileName)&&(r.comment=function(e){const t=[];e.comment&&t.push(e.comment);e.contentType&&t.push(`Content type: ${e.contentType}`);e.fileName&&t.push(`File name: ${e.fileName}`);return t.join("\n")}(t)),r}e.exports=function(e){const t=[];for(const[r,n]of e)for(const e of n)t.push(a(r,e));return n(t)}},function(e,t,r){const n=r(7);e.exports=function(e){return n(e.post.value||"")}},function(e,t,r){const n=r(8),i=r(7);function a(e,t){const r=[];t.comment&&r.push(n(t.comment));const a=[];return(t.contentType||t.fileName)&&(a.push(function(e){return e.contentType?i(e.contentType):"null"}(t)),t.fileName&&a.push(function(e){return`{ filename: ${i(e.fileName)} }`}(t))),r.push(""+`body.createChild(${a.join(", ")})\n .setHeader("Content-Disposition", ${function(e){return i(`form-data; name=${e}`)}(e)})\n .setContent(${function(e){return i(e.value||"")}(t)});`),r.join("\n")}e.exports=function(e){const t=[];t.push('body = new MimeBuilder("multipart/form-data");');for(const[r,n]of e)for(const e of n)t.push(a(r,e));return t.join("\n")}},function(e,t,r){const n=r(174);e.exports=function(e){return e.size?[...e].map(([e,t])=>n(e,t)).join("\n"):null}},function(e,t,r){const n=r(8),i=r(4),a=r(7),{VariableType:s}=r(1),{UnrecognizedError:o}=r(0);function u(e){return e.comment?n(e.comment):null}function c(e,{type:t,expression:r}){switch(t){case s.JSONPath:return function(e,t){const r=`jsonpath.query(response.json(), ${i(t)})[0]`;return`vars[${a(e)}] = ${r};`}(e,r);case s.Regex:return function(e,t){return""+`match = new RegExp(${i(t)}).exec(response.body);\nvars[${a(e)}] = match ? match[1] || match[0] : null;`}(e,r);default:throw new o({name:"UnrecognizedVariableType"},`Unrecognized variable type: ${t}`)}}e.exports=function(e,t){return[u(t),c(e,t)].filter(e=>e).join("\n")}},function(e,t,r){const n=r(36),i=r(8),a=r(176),s=r(4);function o(e){return e.comment?i(e.comment):null}e.exports=function(e){if(e.page){const t=e.page.name||e.id,r=[a(e.entries)];return[o(e.page),`group(${s(t)}, function() ${n(r)});`].filter(e=>e).join("\n")}{const t=e.id,r=[a(e.entries)];return`group(${s(t)}, function() ${n(r)});`}}},function(e,t,r){const n=r(37);e.exports=function(e){const t=!!e.find(e=>e.state.expanded)?"\n\n":"\n";if(e.length){return e.map(e=>n(e)).filter(e=>e).join(t)}return null}},function(e,t,r){const{FlowItemType:n}=r(1),{UnrecognizedError:i}=r(0);function a(e){switch(e.type){case n.External:return s(e.entry);case n.Group:return e.entries.find(s);default:throw new i({name:"UnrecognizedFlowItemType"},`Unrecognized flow item type: ${e.type}`)}}function s(e){return e.variables.size}e.exports=function(e){return e.flow.find(a)?"const vars = {};":null}},function(e,t){e.exports=function(e){const t={...e.options};return`export const options = ${JSON.stringify(t)};`}},function(e,t,r){const n=r(5),i=r(181),{InvalidArchiveError:a}=r(0);e.exports=function(e,t){!function(e){if(!n(e))throw new a({name:"MissingRoot"},"Missing root node");if(!("log"in e))throw new a({name:"MissingLog"},"Missing log section");if(!n(e.log))throw new a({name:"InvalidLog"},"Invalid log section: must be object")}(e),i(e.log,t)}},function(e,t,r){"use strict"; + */!function(s,o){"use strict";e.exports?e.exports=o(r(42),r(43),r(44)):(i=[r(42),r(43),r(44)],void 0===(a="function"==typeof(n=o)?n.apply(t,i):n)||(e.exports=a))}(0,(function(e,t,r,n){"use strict";var i=n&&n.URI;function a(e,t){var r=arguments.length>=1,n=arguments.length>=2;if(!(this instanceof a))return r?n?new a(e,t):new a(e):new a;if(void 0===e){if(r)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&r)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}a.version="1.19.1";var s=a.prototype,o=Object.prototype.hasOwnProperty;function u(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function c(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function l(e){return"Array"===c(e)}function p(e,t){var r,n,i={};if("RegExp"===c(t))i=null;else if(l(t))for(r=0,n=t.length;r]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,a.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},a.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},a.hostProtocols=["http","https"],a.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,a.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},a.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return a.domAttributes[t]}},a.encode=y,a.decode=decodeURIComponent,a.iso8859=function(){a.encode=escape,a.decode=unescape},a.unicode=function(){a.encode=y,a.decode=decodeURIComponent},a.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},a.encodeQuery=function(e,t){var r=a.encode(e+"");return void 0===t&&(t=a.escapeQuerySpace),t?r.replace(/%20/g,"+"):r},a.decodeQuery=function(e,t){e+="",void 0===t&&(t=a.escapeQuerySpace);try{return a.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var D,g={encode:"encode",decode:"decode"},v=function(e,t){return function(r){try{return a[t](r+"").replace(a.characters[e][t].expression,(function(r){return a.characters[e][t].map[r]}))}catch(e){return r}}};for(D in g)a[D+"PathSegment"]=v("pathname",g[D]),a[D+"UrnPathSegment"]=v("urnpath",g[D]);var E=function(e,t,r){return function(n){var i;i=r?function(e){return a[t](a[r](e))}:a[t];for(var s=(n+"").split(e),o=0,u=s.length;o-1&&(t.fragment=e.substring(r+1)||null,e=e.substring(0,r)),(r=e.indexOf("?"))>-1&&(t.query=e.substring(r+1)||null,e=e.substring(0,r)),"//"===e.substring(0,2)?(t.protocol=null,e=e.substring(2),e=a.parseAuthority(e,t)):(r=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,r)||null,t.protocol&&!t.protocol.match(a.protocol_expression)?t.protocol=void 0:"//"===e.substring(r+1,r+3)?(e=e.substring(r+3),e=a.parseAuthority(e,t)):(e=e.substring(r+1),t.urn=!0)),t.path=e,t},a.parseHost=function(e,t){e||(e="");var r,n,i=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===i&&(i=e.length),"["===e.charAt(0))r=e.indexOf("]"),t.hostname=e.substring(1,r)||null,t.port=e.substring(r+2,i)||null,"/"===t.port&&(t.port=null);else{var s=e.indexOf(":"),o=e.indexOf("/"),u=e.indexOf(":",s+1);-1!==u&&(-1===o||u-1?n:e.length-1);return i>-1&&(-1===n||i-1?f.slice(0,d)+f.slice(d).replace(s,""):f.replace(s,"")).length<=c[0].length||r.ignore&&r.ignore.test(f))){var D=t(f,l,h=l+f.length,e);void 0!==D?(D=String(D),e=e.slice(0,l)+D+e.slice(h),n.lastIndex=l+D.length):n.lastIndex=h}}return n.lastIndex=0,e},a.ensureValidHostname=function(t,r){var n=!!t,i=!1;if(!!r&&(i=h(a.hostProtocols,r)),i&&!n)throw new TypeError("Hostname cannot be empty, if protocol is "+r);if(t&&t.match(a.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(a.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},a.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},a.noConflict=function(e){if(e){var t={URI:this.noConflict()};return n.URITemplate&&"function"==typeof n.URITemplate.noConflict&&(t.URITemplate=n.URITemplate.noConflict()),n.IPv6&&"function"==typeof n.IPv6.noConflict&&(t.IPv6=n.IPv6.noConflict()),n.SecondLevelDomains&&"function"==typeof n.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=n.SecondLevelDomains.noConflict()),t}return n.URI===this&&(n.URI=i),this},s.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=a.build(this._parts),this._deferred_build=!1),this},s.clone=function(){return new a(this)},s.valueOf=s.toString=function(){return this.build(!1)._string},s.protocol=b("protocol"),s.username=b("username"),s.password=b("password"),s.hostname=b("hostname"),s.port=b("port"),s.query=C("query","?"),s.fragment=C("fragment","#"),s.search=function(e,t){var r=this.query(e,t);return"string"==typeof r&&r.length?"?"+r:r},s.hash=function(e,t){var r=this.fragment(e,t);return"string"==typeof r&&r.length?"#"+r:r},s.pathname=function(e,t){if(void 0===e||!0===e){var r=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?a.decodeUrnPath:a.decodePath)(r):r}return this._parts.urn?this._parts.path=e?a.recodeUrnPath(e):"":this._parts.path=e?a.recodePath(e):"/",this.build(!t),this},s.path=s.pathname,s.href=function(e,t){var r;if(void 0===e)return this.toString();this._string="",this._parts=a._parts();var n=e instanceof a,i="object"==typeof e&&(e.hostname||e.path||e.pathname);e.nodeName&&(e=e[a.getDomAttribute(e)]||"",i=!1);if(!n&&i&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=a.parse(String(e),this._parts);else{if(!n&&!i)throw new TypeError("invalid input");var s=n?e._parts:e;for(r in s)"query"!==r&&o.call(this._parts,r)&&(this._parts[r]=s[r]);s.query&&this.query(s.query,!1)}return this.build(!t),this},s.is=function(e){var t=!1,n=!1,i=!1,s=!1,o=!1,u=!1,c=!1,l=!this._parts.urn;switch(this._parts.hostname&&(l=!1,n=a.ip4_expression.test(this._parts.hostname),i=a.ip6_expression.test(this._parts.hostname),o=(s=!(t=n||i))&&r&&r.has(this._parts.hostname),u=s&&a.idn_expression.test(this._parts.hostname),c=s&&a.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return l;case"absolute":return!l;case"domain":case"name":return s;case"sld":return o;case"ip":return t;case"ip4":case"ipv4":case"inet4":return n;case"ip6":case"ipv6":case"inet6":return i;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var x=s.protocol,A=s.port,w=s.hostname;s.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(a.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return x.call(this,e,t)},s.scheme=s.protocol,s.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),a.ensureValidPort(e))),A.call(this,e,t))},s.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var r={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==a.parseHost(e,r))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=r.hostname,this._parts.preventInvalidHostname&&a.ensureValidHostname(e,this._parts.protocol)}return w.call(this,e,t)},s.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=this.protocol();return this.authority()?(r?r+"://":"")+this.authority():""}var n=a(e);return this.protocol(n.protocol()).authority(n.authority()).build(!t),this},s.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?a.buildHost(this._parts):"";if("/"!==a.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?a.buildAuthority(this._parts):"";if("/"!==a.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=a.buildUserinfo(this._parts);return r?r.substring(0,r.length-1):r}return"@"!==e[e.length-1]&&(e+="@"),a.parseUserinfo(e,this._parts),this.build(!t),this},s.resource=function(e,t){var r;return void 0===e?this.path()+this.search()+this.hash():(r=a.parse(e),this._parts.path=r.path,this._parts.query=r.query,this._parts.fragment=r.fragment,this.build(!t),this)},s.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,r)||""}var n=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,n),s=new RegExp("^"+u(i));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&a.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(s,e),this.build(!t),this},s.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.match(/\./g);if(r&&r.length<2)return this._parts.hostname;var n=this._parts.hostname.length-this.tld(t).length-1;return n=this._parts.hostname.lastIndexOf(".",n-1)+1,this._parts.hostname.substring(n)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(a.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var i=new RegExp(u(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},s.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(n+1);return!0!==t&&r&&r.list[i.toLowerCase()]&&r.get(this._parts.hostname)||i}var a;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!r||!r.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');a=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(a,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");a=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(a,e)}return this.build(!t),this},s.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var r=this._parts.path.length-this.filename().length-1,n=this._parts.path.substring(0,r)||(this._parts.hostname?"/":"");return e?a.decodePath(n):n}var i=this._parts.path.length-this.filename().length,s=this._parts.path.substring(0,i),o=new RegExp("^"+u(s));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=a.recodePath(e),this._parts.path=this._parts.path.replace(o,e),this.build(!t),this},s.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var r=this._parts.path.lastIndexOf("/"),n=this._parts.path.substring(r+1);return e?a.decodePathSegment(n):n}var i=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(i=!0);var s=new RegExp(u(this.filename())+"$");return e=a.recodePath(e),this._parts.path=this._parts.path.replace(s,e),i?this.normalizePath(t):this.build(!t),this},s.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var r,n,i=this.filename(),s=i.lastIndexOf(".");return-1===s?"":(r=i.substring(s+1),n=/^[a-z0-9%]+$/i.test(r)?r:"",e?a.decodePathSegment(n):n)}"."===e.charAt(0)&&(e=e.substring(1));var o,c=this.suffix();if(c)o=e?new RegExp(u(c)+"$"):new RegExp(u("."+c)+"$");else{if(!e)return this;this._parts.path+="."+a.recodePath(e)}return o&&(e=a.recodePath(e),this._parts.path=this._parts.path.replace(o,e)),this.build(!t),this},s.segment=function(e,t,r){var n=this._parts.urn?":":"/",i=this.path(),a="/"===i.substring(0,1),s=i.split(n);if(void 0!==e&&"number"!=typeof e&&(r=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(a&&s.shift(),e<0&&(e=Math.max(s.length+e,0)),void 0===t)return void 0===e?s:s[e];if(null===e||void 0===s[e])if(l(t)){s=[];for(var o=0,u=t.length;o1?t[l]=n(p).map((function(e){return e.value})):t[l]=n(p)[0].value}}catch(e){a=!0,s=e}finally{try{r||null==u.return||u.return()}finally{if(a)throw s}}return t}(e),r=s(t,{sorted:!0});return u(r)}function l(e){var t=o(e);return t?a(t):null}e.exports=function(e){return[l(e),c(e)].filter((function(e){return e})).join("\n")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="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};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Boolean(t.sorted),i=Boolean(t.skipIndex),a=Boolean(t.ignorenull),s=function(e){return String(e).replace(/(?:[\0-\x1F"-&\+-\}\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,encodeURIComponent).replace(/ /g,"+").replace(/[!'()~\*]/g,(function(e){return"%"+e.charCodeAt().toString(16).slice(-2).toUpperCase()}))},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(e);return r?t.sort():t},u=function(e){return e.filter((function(e){return e})).join("&")},c=function(e,t){return u(o(t).map((function(r){return p(e+"["+r+"]",t[r])})))},l=function(e,t){return t.length?u(t.map((function(t,r){return p(i?e+"[]":e+"["+r+"]",t)}))):s(e+"[]")},p=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0===t?"undefined":n(t),i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t===i?i=a?i:s(e)+"="+i:/string|number|boolean/.test(r)?i=s(e)+"="+s(t):Array.isArray(t)?i=l(e,t):"object"===r&&(i=c(e,t)),i};return e&&u(o(e).map((function(t){return p(t,e[t])})))}},function(e,t,r){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],n=!0,i=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},function(e,t,r){const n=r(182),i=r(183),a=r(184),s=r(207),o=r(5),u=r(208),{InvalidArchiveError:c}=r(0);e.exports=function(e,t){!function(e){if(e.options&&!o(e.options))throw new c({name:"InvalidOptions"},"Invalid options: must be object");if(e.version&&"string"!=typeof e.version)throw new c({name:"InvalidVersion"},"Invalid version: must be string");if(e.creator&&!o(e.creator))throw new c({name:"InvalidCreator"},"Invalid creator section: must be object");if(e.browser&&!o(e.browser))throw new c({name:"InvalidBrowser"},"Invalid browser section: must be object");if(e.comment&&"string"!=typeof e.comment)throw new c({name:"InvalidComment"},"Invalid log.comment: must be string");if(e.pages&&!Array.isArray(e.pages))throw new c({name:"InvalidPages"},"Invalid pages section: must be array");if(e.entries&&!Array.isArray(e.entries))throw new c({name:"InvalidEntries"},"Invalid entries section: must be array")}(e),e.options&&s(e.options,t),e.creator&&i(e.creator,t),e.browser&&n(e.browser,t),e.pages&&u(e.pages,t),e.entries&&a(e.entries,t)}},function(e,t,r){const{InvalidArchiveError:n}=r(0);e.exports=function(e,t){!function(e){if(e.name&&"string"!=typeof e.name)throw new n({name:"InvalidBrowserName"},"Invalid browser name: must be string");if(e.version&&"string"!=typeof e.version)throw new n({name:"InvalidBrowserVersion"},"Invalid browser version: must be string");if(e.comment&&"string"!=typeof e.comment)throw new n({name:"InvalidComment"},"Invalid browser.comment: must be string")}(e)}},function(e,t,r){const{InvalidArchiveError:n}=r(0);e.exports=function(e,t){!function(e){if(e.name&&"string"!=typeof e.name)throw new n({name:"InvalidCreatorName"},"Invalid creator name: must be string");if(e.version&&"string"!=typeof e.version)throw new n({name:"InvalidCreatorVersion"},"Invalid creator version: must be string");if(e.comment&&"string"!=typeof e.comment)throw new n({name:"InvalidComment"},"Invalid creator.comment: must be string")}(e)}},function(e,t,r){const n=r(5),i=r(185),{InvalidArchiveError:a}=r(0);e.exports=function(e,t){!function(e){for(let t=0;t1)throw new a({name:"MultipleContentType"},`Multiple Content-Type headers (${t}): max 1 allowed`)}(e,t)}},function(e,t,r){const{empty:n}=r(2),{InvalidArchiveError:i}=r(0);e.exports=function(e,t,r,a){!function(e,t,r){if(n(e.name))throw new i({name:"MissingHeaderName"},`Missing header name (${t}:${r})`);if("string"!=typeof e.name)throw new i({name:"InvalidHeaderName"},`Invalid header name (${t}:${r}): must be string`);if(e.value&&"string"!=typeof e.value)throw new i({name:"InvalidHeaderValue"},`Invalid header value (${t}:${r}): must be string`);if(e.comment&&"string"!=typeof e.comment)throw new i({name:"InvalidComment"},`Invalid header comment (${t}:${r}): must be string`)}(e,t,r)}},function(e,t,r){const n=r(200),{empty:i,emptyObject:a}=r(2),{InvalidArchiveError:s}=r(0);e.exports=function(e,t,r){a(e)||(!function(e,t){if(i(e.mimeType))throw new s({name:"MissingPostDataType"},`Missing post data MIME type (${t})`);if("string"!=typeof e.mimeType)throw new s({name:"InvalidPostDataType"},`Invalid post data MIME type (${t}): must be string`);if(e.params&&!Array.isArray(e.params))throw new s({name:"InvalidPostDataParams"},`Invalid post data params (${t}): must be array`);if(e.text&&"string"!=typeof e.text)throw new s({name:"InvalidPostDataText"},`Invalid post data text (${t}): must be string`);if(e.comment&&"string"!=typeof e.comment)throw new s({name:"InvalidComment"},`Invalid post data comment (${t}): must be string`);if(e.params&&e.params.length&&e.text)throw new s({name:"PostDataConflict"},`Post data conflict (${t}): specify 1 of params or text`);if(e.params&&e.params.length&&!["application/x-www-form-urlencoded","multipart/form-data"].includes(e.mimeType))throw new s({name:"InvalidPostDataType"},`Invalid structured post data MIME type (${t}): ${e.mimeType}`)}(e,t),e.params&&n(e.params,t,r))}},function(e,t,r){const n=r(5),i=r(201),{InvalidArchiveError:a}=r(0);e.exports=function(e,t,r){!function(e,t){for(let r=0;r1)throw new a({name:"MultipleContentType"},"Multiple Content-Type headers (".concat(t,"): max 1 allowed"))}(e,t)}},function(e,t,r){var n=r(2).empty,i=r(0).InvalidArchiveError;e.exports=function(e,t,r,a){!function(e,t,r){if(n(e.name))throw new i({name:"MissingHeaderName"},"Missing header name (".concat(t,":").concat(r,")"));if("string"!=typeof e.name)throw new i({name:"InvalidHeaderName"},"Invalid header name (".concat(t,":").concat(r,"): must be string"));if(e.value&&"string"!=typeof e.value)throw new i({name:"InvalidHeaderValue"},"Invalid header value (".concat(t,":").concat(r,"): must be string"));if(e.comment&&"string"!=typeof e.comment)throw new i({name:"InvalidComment"},"Invalid header comment (".concat(t,":").concat(r,"): must be string"))}(e,t,r)}},function(e,t,r){var n=r(200),i=r(2),a=i.empty,s=i.emptyObject,o=r(0).InvalidArchiveError;e.exports=function(e,t,r){s(e)||(!function(e,t){if(a(e.mimeType))throw new o({name:"MissingPostDataType"},"Missing post data MIME type (".concat(t,")"));if("string"!=typeof e.mimeType)throw new o({name:"InvalidPostDataType"},"Invalid post data MIME type (".concat(t,"): must be string"));if(e.params&&!Array.isArray(e.params))throw new o({name:"InvalidPostDataParams"},"Invalid post data params (".concat(t,"): must be array"));if(e.text&&"string"!=typeof e.text)throw new o({name:"InvalidPostDataText"},"Invalid post data text (".concat(t,"): must be string"));if(e.comment&&"string"!=typeof e.comment)throw new o({name:"InvalidComment"},"Invalid post data comment (".concat(t,"): must be string"));if(e.params&&e.params.length&&e.text)throw new o({name:"PostDataConflict"},"Post data conflict (".concat(t,"): specify 1 of params or text"));if(e.params&&e.params.length&&!["application/x-www-form-urlencoded","multipart/form-data"].includes(e.mimeType))throw new o({name:"InvalidPostDataType"},"Invalid structured post data MIME type (".concat(t,"): ").concat(e.mimeType))}(e,t),e.params&&n(e.params,t,r))}},function(e,t,r){var n=r(5),i=r(201),a=r(0).InvalidArchiveError;e.exports=function(e,t,r){!function(e,t){for(var r=0;r=1}},function(e,t){e.exports=function(e){}},function(e,t,r){const n=r(5),i=r(209),{InvalidArchiveError:a}=r(0);e.exports=function(e,t){!function(e){for(let t=0;te[1]):[])if(!n.has(u)){throw new a({name:"UndefinedVariable"},`${s} referenced undefined variable (${`${t}${null!==r?`:${r}`:""}`}): ${u}`)}var o}function u(e,t){if(e.variables)for(const r of e.variables)t.add(r.name)}function c(e){const t=new Map;for(const r of e)t.has(r.pageref)||t.set(r.pageref,[]),t.get(r.pageref).push(r);for(const e of t.values())e.sort(n.index);return t}function l(e){const t=[];for(const r of e)t.push(...r);return t}e.exports=function(e){const t=function(e){const t=function(e){return e?new Map(e.map(e=>[e.id,e.index])):new Map}(e.log.pages),r=e.log.entries||[],i=r.filter(e=>!e.pageref).sort(n.index),a=function(e,t){return l(function(e,t){return[...e].map(e=>[t.get(e[0]),e[1]]).sort(n.firstElement).map(e=>e[1])}(c(e.filter(e=>t.has(e.pageref))),t))}(r,t),s=function(e,t){return l(function(e){return[...e].sort(n.firstElement).map(e=>e[1])}(c(e.filter(e=>e.pageref&&!t.has(e.pageref)))))}(r,t);return[...i,...a,...s]}(e),r=new Set;for(let e=0;e=1}},function(e,t){e.exports=function(e){}},function(e,t,r){var n=r(5),i=r(209),a=r(0).InvalidArchiveError;e.exports=function(e,t){!function(e){for(var t=0;t=2.2.7 <3" -abbrev@1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" - integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== - acorn-jsx@^5.0.0: version "5.1.0" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.1.0.tgz#294adb71b57398b0680015f0a38c563ee1db5384" @@ -575,9 +987,9 @@ acorn-node@^1.5.2: xtend "^4.0.2" acorn-walk@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.0.0.tgz#c8ba6f0f1aac4b0a9e32d1f0af12be769528f36b" - integrity sha512-7Bv1We7ZGuU79zZbb6rRqcpxo3OY+zrdtloZWoyD8fmGX+FeXRjE+iuGkZjSXLVovLzrsvMGMy0EkwA0E0umxg== + version "7.1.1" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.1.1.tgz#345f0dffad5c735e7373d2fec9a1023e6a44b83e" + integrity sha512-wdlPY2tm/9XBr7QkKlq0WQVgiuGTX6YWPyRyBviSoScBuLfTVQhvwg6wJ369GJ/1nPfTLMfnrFIfjqVg6d+jQQ== acorn@^5.0.0: version "5.7.3" @@ -676,7 +1088,7 @@ anymatch@^2.0.0: micromatch "^3.1.4" normalize-path "^2.1.1" -aproba@^1.0.3, aproba@^1.1.1: +aproba@^1.1.1: version "1.2.0" resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw== @@ -900,6 +1312,16 @@ babel-code-frame@^6.26.0: esutils "^2.0.2" js-tokens "^3.0.2" +babel-loader@^8.0.6: + version "8.0.6" + resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.0.6.tgz#e33bdb6f362b03f4bb141a0c21ab87c501b70dfb" + integrity sha512-4BmWKtBOBm13uoUwd08UwjZlaw3O9GWf456R9j+5YykFZ6LUIjIKLc0zEZf+hauxPOJs96C8k6FvYD09vWzhYw== + dependencies: + find-cache-dir "^2.0.0" + loader-utils "^1.0.2" + mkdirp "^0.5.1" + pify "^4.0.1" + babel-plugin-dynamic-import-node@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.0.tgz#f00f507bdaa3c3e3ff6e7e5e98d90a7acab96f7f" @@ -1091,6 +1513,15 @@ browserify-zlib@^0.2.0: dependencies: pako "~1.0.5" +browserslist@^4.8.3, browserslist@^4.8.5: + version "4.8.7" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.8.7.tgz#ec8301ff415e6a42c949d0e66b405eb539c532d0" + integrity sha512-gFOnZNYBHrEyUML0xr5NJ6edFaaKbTFX9S9kQHlYfCP0Rit/boRIz4G+Avq6/4haEKJXdGGUnoolx+5MWW2BoA== + dependencies: + caniuse-lite "^1.0.30001027" + electron-to-chromium "^1.3.349" + node-releases "^1.1.49" + buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" @@ -1228,6 +1659,11 @@ camelcase@^5.0.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== +caniuse-lite@^1.0.30001027: + version "1.0.30001027" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001027.tgz#283e2ef17d94889cc216a22c6f85303d78ca852d" + integrity sha512-7xvKeErvXZFtUItTHgNtLgS9RJpVnwBlWX8jSo/BO8VsF6deszemZSkJJJA1KOKrXuzZH4WALpAJdq5EyfgMLg== + caporal@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/caporal/-/caporal-1.0.0.tgz#33d6128699c23418315287e31d03176cc7526b42" @@ -1295,9 +1731,9 @@ chokidar@^2.0.2, chokidar@^2.1.5: fsevents "^1.2.7" chownr@^1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.3.tgz#42d837d5239688d55f303003a508230fa6727142" - integrity sha512-i70fVHhmV3DtTl6nqvZOnIjbY0Pe4kAUjwHj8z0zAdgBtYrJyYwLKCCuRBQ5ppkyL0AkN7HKRnETdmdp1zqNXw== + version "1.1.4" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b" + integrity sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg== chrome-trace-event@^1.0.2: version "1.0.2" @@ -1556,11 +1992,6 @@ console-browserify@^1.1.0: resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.2.0.tgz#67063cef57ceb6cf4993a2ab3a55840ae8c49336" integrity sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA== -console-control-strings@^1.0.0, console-control-strings@~1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" - integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4= - constants-browserify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" @@ -1605,6 +2036,14 @@ copy-descriptor@^0.1.0: resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= +core-js-compat@^3.6.2: + version "3.6.4" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.6.4.tgz#938476569ebb6cda80d339bcf199fae4f16fff17" + integrity sha512-zAa3IZPvsJ0slViBQ2z+vgyyTuhd3MFn1rBQjZSKVEgB0UMYhUkCj9jJUVPgGTGqWvsBVmfnruXgTcNyTlEiSA== + dependencies: + browserslist "^4.8.3" + semver "7.0.0" + core-js@^2.0.0: version "2.6.11" resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.11.tgz#38831469f9922bded8ee21c9dc46985e0399308c" @@ -1748,7 +2187,7 @@ debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: dependencies: ms "2.0.0" -debug@^3.1.0, debug@^3.2.6: +debug@^3.1.0: version "3.2.6" resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b" integrity sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ== @@ -1886,11 +2325,6 @@ detect-file@^1.0.0: resolved "https://registry.yarnpkg.com/detect-file/-/detect-file-1.0.0.tgz#f0d66d03672a825cb1b73bdb3fe62310c8e552b7" integrity sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc= -detect-libc@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" - integrity sha1-+hN8S9aY7fVc1c0CrFWfkaTEups= - diff@^3.5.0: version "3.5.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" @@ -1954,6 +2388,11 @@ duplexify@^3.4.2, duplexify@^3.6.0: readable-stream "^2.0.0" stream-shift "^1.0.0" +electron-to-chromium@^1.3.349: + version "1.3.353" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.353.tgz#c6f13f27d5212643979867a400c1a5e8a4ef042a" + integrity sha512-CkG24biyy9qQTQs8U2vGQaiyWSFDxAXP/UGHBveXZ1TGoWOAw+eYZXryrX0UeIMKnQjcaHx33hzYuydv98kqGQ== + elliptic@^6.0.0: version "6.5.2" resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.2.tgz#05c5678d7173c049d8ca433552224a495d0e3762" @@ -2106,9 +2545,9 @@ escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.4, escape-string-regexp@^ integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= escodegen@^1.8.1: - version "1.13.0" - resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.13.0.tgz#c7adf9bd3f3cc675bb752f202f79a720189cab29" - integrity sha512-eYk2dCkxR07DsHA/X2hRBj0CFAZeri/LyDMc0C8JT1Hqi6JnVpMhJ7XFITbb0+yZS3lVkaPL2oCkZ3AVmeVbMw== + version "1.14.1" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.1.tgz#ba01d0c8278b5e95a9a45350142026659027a457" + integrity sha512-Bmt7NcRySdIfNPfU2ZoXDrrXsG9ZjvDxcAlMfDUgRBjLOWTuIACXPBFJH7Z+cLb40JeQco5toikyc9t9P8E9SQ== dependencies: esprima "^4.0.1" estraverse "^4.2.0" @@ -2306,9 +2745,9 @@ espurify@^1.6.0: core-js "^2.0.0" esquery@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.0.1.tgz#406c51658b1f5991a5f9b62b1dc25b00e3e5c708" - integrity sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA== + version "1.1.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.1.0.tgz#c5c0b66f383e7656404f86b31334d72524eddb48" + integrity sha512-MxYW9xKmROWF672KqjO75sszsA8Mxhw06YFeS5VHlB98KDHbOSurm3ArsjO60Eaf3QmGMCP1yn+0JQkNLo/97Q== dependencies: estraverse "^4.0.0" @@ -2528,7 +2967,7 @@ fill-range@^4.0.0: repeat-string "^1.6.1" to-regex-range "^2.1.0" -find-cache-dir@^2.1.0: +find-cache-dir@^2.0.0, find-cache-dir@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-2.1.0.tgz#8d0f94cd13fe43c6c7c261a0d86115ca918c05f7" integrity sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ== @@ -2631,13 +3070,6 @@ fs-extra@^7.0.1: jsonfile "^4.0.0" universalify "^0.1.0" -fs-minipass@^1.2.5: - version "1.2.7" - resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.7.tgz#ccff8570841e7fe4265693da88936c55aed7f7c7" - integrity sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA== - dependencies: - minipass "^2.6.0" - fs-write-stream-atomic@^1.0.8: version "1.0.10" resolved "https://registry.yarnpkg.com/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz#b47df53493ef911df75731e70a9ded0189db40c9" @@ -2682,20 +3114,6 @@ gauge@~1.2.5: lodash.padend "^4.1.0" lodash.padstart "^4.1.0" -gauge@~2.7.3: - version "2.7.4" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" - integrity sha1-LANAXHU4w51+s3sxcCLjJfsBi/c= - dependencies: - aproba "^1.0.3" - console-control-strings "^1.0.0" - has-unicode "^2.0.0" - object-assign "^4.1.0" - signal-exit "^3.0.0" - string-width "^1.0.1" - strip-ansi "^3.0.1" - wide-align "^1.1.0" - gensync@^1.0.0-beta.1: version "1.0.0-beta.1" resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.1.tgz#58f4361ff987e5ff6e1e7a210827aa371eaac269" @@ -2982,7 +3400,7 @@ husky@^3.0.0: run-node "^1.0.0" slash "^3.0.0" -iconv-lite@^0.4.17, iconv-lite@^0.4.4: +iconv-lite@^0.4.17: version "0.4.24" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== @@ -3004,13 +3422,6 @@ ignore-by-default@^1.0.0: resolved "https://registry.yarnpkg.com/ignore-by-default/-/ignore-by-default-1.0.1.tgz#48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09" integrity sha1-SMptcvbGo68Aqa1K5odr44ieKwk= -ignore-walk@^3.0.1: - version "3.0.3" - resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.3.tgz#017e2447184bfeade7c238e4aefdd1e8f95b1e37" - integrity sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw== - dependencies: - minimatch "^3.0.4" - ignore@^3.0.9, ignore@^3.3.5: version "3.3.10" resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.10.tgz#0a97fb876986e8081c631160f8f9f389157f0043" @@ -3136,6 +3547,13 @@ interpret@1.2.0: resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.2.0.tgz#d5061a6224be58e8083985f5014d844359576296" integrity sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw== +invariant@^2.2.2, invariant@^2.2.4: + version "2.2.4" + resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" + integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== + dependencies: + loose-envify "^1.0.0" + invert-kv@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-2.0.0.tgz#7393f5afa59ec9ff5f67a27620d11c226e3eec02" @@ -3608,6 +4026,18 @@ lcid@^2.0.0: dependencies: invert-kv "^2.0.0" +leven@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" + integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== + +levenary@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/levenary/-/levenary-1.1.1.tgz#842a9ee98d2075aa7faeedbe32679e9205f46f77" + integrity sha512-mkAdOIt79FD6irqjYSs4rdbnlT5vRonMEvBVPVb3XmevfS8kgRXwfes0dhPdEtzTWD/1eNE/Bm/G1iRt6DcnQQ== + dependencies: + leven "^3.1.0" + levn@^0.3.0, levn@~0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" @@ -3657,7 +4087,7 @@ loader-runner@^2.4.0: resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.4.0.tgz#ed47066bfe534d7e84c4c7b9998c2a75607d9357" integrity sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw== -loader-utils@1.2.3, loader-utils@^1.2.3: +loader-utils@1.2.3, loader-utils@^1.0.2, loader-utils@^1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.2.3.tgz#1ff5dc6911c9f0a062531a4c04b609406108c2c7" integrity sha512-fkpz8ejdnEMG3s37wGL07iSBDg99O9D5yflE9RGNH3hRdx9SOwYfnGYdZOUIZitN8E+E2vkq3MUMYMvPYl5ZZA== @@ -3793,7 +4223,7 @@ lolex@^5.0.1: dependencies: "@sinonjs/commons" "^1.7.0" -loose-envify@^1.4.0: +loose-envify@^1.0.0, loose-envify@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== @@ -4029,21 +4459,6 @@ minimist@^1.1.0, minimist@^1.1.1, minimist@^1.2.0: resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ= -minipass@^2.6.0, minipass@^2.8.6, minipass@^2.9.0: - version "2.9.0" - resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.9.0.tgz#e713762e7d3e32fed803115cf93e04bca9fcc9a6" - integrity sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg== - dependencies: - safe-buffer "^5.1.2" - yallist "^3.0.0" - -minizlib@^1.2.1: - version "1.3.3" - resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.3.3.tgz#2290de96818a34c29551c8a8d301216bd65a861d" - integrity sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q== - dependencies: - minipass "^2.9.0" - mississippi@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/mississippi/-/mississippi-3.0.0.tgz#ea0a3291f97e0b5e8776b363d5f0a12d94c67022" @@ -4068,7 +4483,7 @@ mixin-deep@^1.2.0: for-in "^1.0.2" is-extendable "^1.0.1" -mkdirp@^0.5.0, mkdirp@^0.5.1: +mkdirp@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= @@ -4157,15 +4572,6 @@ natural-compare@^1.4.0: resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= -needle@^2.2.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/needle/-/needle-2.3.2.tgz#3342dea100b7160960a450dc8c22160ac712a528" - integrity sha512-DUzITvPVDUy6vczKKYTnWc/pBZ0EnjMJnQ3y+Jo5zfKFimJs7S3HFCxCRZYB9FUZcrzUQr3WsmvZgddMEIZv6w== - dependencies: - debug "^3.2.6" - iconv-lite "^0.4.4" - sax "^1.2.4" - neo-async@^2.5.0, neo-async@^2.6.1: version "2.6.1" resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.1.tgz#ac27ada66167fa8849a6addd837f6b189ad2081c" @@ -4216,29 +4622,12 @@ node-libs-browser@^2.2.1: util "^0.11.0" vm-browserify "^1.0.1" -node-pre-gyp@*: - version "0.14.0" - resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.14.0.tgz#9a0596533b877289bcad4e143982ca3d904ddc83" - integrity sha512-+CvDC7ZttU/sSt9rFjix/P05iS43qHCOOGzcr3Ry99bXG7VX953+vFyEuph/tfqoYu8dttBkE86JSKBO2OzcxA== +node-releases@^1.1.49: + version "1.1.49" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.49.tgz#67ba5a3fac2319262675ef864ed56798bb33b93e" + integrity sha512-xH8t0LS0disN0mtRCh+eByxFPie+msJUBL/lJDBuap53QGiYPa9joh83K4pCZgWJ+2L4b9h88vCVdXQ60NO2bg== dependencies: - detect-libc "^1.0.2" - mkdirp "^0.5.1" - needle "^2.2.1" - nopt "^4.0.1" - npm-packlist "^1.1.6" - npmlog "^4.0.2" - rc "^1.2.7" - rimraf "^2.6.1" - semver "^5.3.0" - tar "^4.4.2" - -nopt@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" - integrity sha1-0NRoWv1UFRk8jHUFYC0NF81kR00= - dependencies: - abbrev "1" - osenv "^0.1.4" + semver "^6.3.0" normalize-package-data@^2.3.2, normalize-package-data@^2.3.4, normalize-package-data@^2.5.0: version "2.5.0" @@ -4262,27 +4651,6 @@ normalize-path@^3.0.0: resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== -npm-bundled@^1.0.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.1.1.tgz#1edd570865a94cdb1bc8220775e29466c9fb234b" - integrity sha512-gqkfgGePhTpAEgUsGEgcq1rqPXA+tv/aVBlgEzfXwA1yiUJF7xtEt3CtVwOjNYQOVknDk0F20w58Fnm3EtG0fA== - dependencies: - npm-normalize-package-bin "^1.0.1" - -npm-normalize-package-bin@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz#6e79a41f23fd235c0623218228da7d9c23b8f6e2" - integrity sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA== - -npm-packlist@^1.1.6: - version "1.4.8" - resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.4.8.tgz#56ee6cc135b9f98ad3d51c1c95da22bbb9b2ef3e" - integrity sha512-5+AZgwru5IevF5ZdnFglB5wNlHG1AOOuw28WhUq8/8emhBmLv6jX5by4WJCh7lW0uSYZYS6DXqIsyZVIXRZU9A== - dependencies: - ignore-walk "^3.0.1" - npm-bundled "^1.0.1" - npm-normalize-package-bin "^1.0.1" - npm-run-all@^4.1.5: version "4.1.5" resolved "https://registry.yarnpkg.com/npm-run-all/-/npm-run-all-4.1.5.tgz#04476202a15ee0e2e214080861bff12a51d98fba" @@ -4314,16 +4682,6 @@ npmlog@^2.0.3: are-we-there-yet "~1.1.2" gauge "~1.2.5" -npmlog@^4.0.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" - integrity sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg== - dependencies: - are-we-there-yet "~1.1.2" - console-control-strings "~1.1.0" - gauge "~2.7.3" - set-blocking "~2.0.0" - number-is-nan@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" @@ -4443,11 +4801,6 @@ os-browserify@^0.3.0: resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27" integrity sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc= -os-homedir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" - integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M= - os-locale@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-3.1.0.tgz#a802a6ee17f24c10483ab9935719cef4ed16bf1a" @@ -4462,19 +4815,11 @@ os-shim@^0.1.2: resolved "https://registry.yarnpkg.com/os-shim/-/os-shim-0.1.3.tgz#6b62c3791cf7909ea35ed46e17658bb417cb3917" integrity sha1-a2LDeRz3kJ6jXtRuF2WLtBfLORc= -os-tmpdir@^1.0.0, os-tmpdir@^1.0.1, os-tmpdir@~1.0.1, os-tmpdir@~1.0.2: +os-tmpdir@^1.0.1, os-tmpdir@~1.0.1, os-tmpdir@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= -osenv@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" - integrity sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g== - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.0" - p-defer@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-1.0.0.tgz#9f6eb182f6c9aa8cd743004a7d4f96b196b0fb0c" @@ -4835,6 +5180,11 @@ prettyjson@^1.2.1: colors "^1.1.2" minimist "^1.2.0" +private@^0.1.6: + version "0.1.8" + resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" + integrity sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg== + process-nextick-args@~2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" @@ -4966,7 +5316,7 @@ randomfill@^1.0.3: randombytes "^2.0.5" safe-buffer "^5.1.0" -rc@^1.0.1, rc@^1.1.6, rc@^1.2.7: +rc@^1.0.1, rc@^1.1.6: version "1.2.8" resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== @@ -5049,9 +5399,9 @@ read-pkg@^5.2.0: string_decoder "~0.10.x" readable-stream@^3.0.2: - version "3.5.0" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.5.0.tgz#465d70e6d1087f6162d079cd0b5db7fbebfd1606" - integrity sha512-gSz026xs2LfxBPudDuI41V1lka8cxg64E66SGe78zJlsUofOg/yqwezdIcdfwik6B4h8LFmWPA9ef9X3FiNFLA== + version "3.6.0" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" + integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== dependencies: inherits "^2.0.3" string_decoder "^1.1.1" @@ -5086,6 +5436,13 @@ regenerate@^1.4.0: resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11" integrity sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg== +regenerator-transform@^0.14.0: + version "0.14.1" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.14.1.tgz#3b2fce4e1ab7732c08f665dfdb314749c7ddd2fb" + integrity sha512-flVuee02C3FKRISbxhXl9mGzdbWUVHubl1SMaknjxkFB1/iqpJhArQUvRxOOPEc/9tAiX0BaQ28FJH10E4isSQ== + dependencies: + private "^0.1.6" + regex-not@^1.0.0, regex-not@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" @@ -5140,9 +5497,9 @@ regjsgen@^0.5.0: integrity sha512-5qxzGZjDs9w4tzT3TPhCJqWdCc3RLYwy9J2NB0nm5Lz+S273lvWcpjaTGHsT1dc6Hhfq41uSEOw8wBmxrKOuyg== regjsparser@^0.6.0: - version "0.6.2" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.6.2.tgz#fd62c753991467d9d1ffe0a9f67f27a529024b96" - integrity sha512-E9ghzUtoLwDekPT0DYCp+c4h+bvuUpe6rRHCTYn6eGoqj1LgKXxT6I0Il4WbjhQkOghzi/V+y03bPKvbllL93Q== + version "0.6.3" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.6.3.tgz#74192c5805d35e9f5ebe3c1fb5b40d40a8a38460" + integrity sha512-8uZvYbnfAtEm9Ab8NTb3hdLwL4g/LQzEYP7Xs27T96abJCCE2d6r3cPZPQEsLKy0vRSGVNG+/zVGtLr86HQduA== dependencies: jsesc "~0.5.0" @@ -5222,9 +5579,9 @@ resolve-url@^0.2.1: integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= resolve@^1.10.0, resolve@^1.13.1, resolve@^1.3.2, resolve@^1.6.0, resolve@^1.8.1: - version "1.15.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.15.0.tgz#1b7ca96073ebb52e741ffd799f6b39ea462c67f5" - integrity sha512-+hTmAldEGE80U2wJJDC1lebb5jWqvTYAfm3YZ1ckk1gBr0MnCqUKlwK1e+anaFljIl+F5tR5IoZcm4ZDA1zMQw== + version "1.15.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.15.1.tgz#27bdcdeffeaf2d6244b95bb0f9f4b4653451f3e8" + integrity sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w== dependencies: path-parse "^1.0.6" @@ -5249,7 +5606,7 @@ ret@~0.1.10: resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== -rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.3: +rimraf@^2.5.4, rimraf@^2.6.3: version "2.7.1" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== @@ -5329,11 +5686,6 @@ safe-regex@^1.1.0: resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -sax@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" - integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== - schema-utils@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-1.0.0.tgz#0b79a93204d7b600d4b2850d1f66c2a34951c770" @@ -5355,11 +5707,21 @@ semver-diff@^2.0.0: dependencies: semver "^5.0.3" -"semver@2 || 3 || 4 || 5", semver@^5.0.3, semver@^5.1.0, semver@^5.3.0, semver@^5.4.1, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0: +"semver@2 || 3 || 4 || 5", semver@^5.0.3, semver@^5.1.0, semver@^5.4.1, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0: version "5.7.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== +semver@7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.0.0.tgz#5f3ca35761e47e05b206c6daff2cf814f0316b8e" + integrity sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A== + +semver@^6.3.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" + integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== + serialize-error@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/serialize-error/-/serialize-error-2.1.0.tgz#50b679d5635cdf84667bdc8e59af4e5b81d5f60a" @@ -5370,7 +5732,7 @@ serialize-javascript@^2.1.2: resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-2.1.2.tgz#ecec53b0e0317bdc95ef76ab7074b7384785fa61" integrity sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ== -set-blocking@^2.0.0, set-blocking@~2.0.0: +set-blocking@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= @@ -5700,7 +6062,7 @@ string-width@^1.0.1: is-fullwidth-code-point "^1.0.0" strip-ansi "^3.0.0" -"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1: +string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== @@ -5760,7 +6122,7 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -strip-ansi@^3.0.0, strip-ansi@^3.0.1: +strip-ansi@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" integrity sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8= @@ -5884,19 +6246,6 @@ tapable@^1.0.0, tapable@^1.1.3: resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2" integrity sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA== -tar@^4.4.2: - version "4.4.13" - resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.13.tgz#43b364bc52888d555298637b10d60790254ab525" - integrity sha512-w2VwSrBoHa5BsSyH+KxEqeQBAllHhccyMFVHtGtdMpF4W7IRWfZjFiQceJPChOeTsSDVUpER2T8FA93pr0L+QA== - dependencies: - chownr "^1.1.1" - fs-minipass "^1.2.5" - minipass "^2.8.6" - minizlib "^1.2.1" - mkdirp "^0.5.0" - safe-buffer "^5.1.2" - yallist "^3.0.3" - term-size@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/term-size/-/term-size-1.2.0.tgz#458b83887f288fc56d6fffbfad262e26638efa69" @@ -6306,9 +6655,9 @@ wcwidth@^1.0.1: defaults "^1.0.3" webpack-cli@^3.3.4: - version "3.3.10" - resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-3.3.10.tgz#17b279267e9b4fb549023fae170da8e6e766da13" - integrity sha512-u1dgND9+MXaEt74sJR4PR7qkPxXUSQ0RXYq8x1L6Jg1MYVEmGPrH6Ah6C4arD4r0J1P5HKjRqpab36k0eIzPqg== + version "3.3.11" + resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-3.3.11.tgz#3bf21889bf597b5d82c38f215135a411edfdc631" + integrity sha512-dXlfuml7xvAFwYUPsrtQAA9e4DOe58gnzSxhgrO/ZM/gyXTBowrsYeubyN4mqGhYdpXMFNyQ6emjJS9M7OBd4g== dependencies: chalk "2.4.2" cross-spawn "6.0.5" @@ -6331,9 +6680,9 @@ webpack-sources@^1.4.0, webpack-sources@^1.4.1: source-map "~0.6.1" webpack@^4.34.0: - version "4.41.5" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.41.5.tgz#3210f1886bce5310e62bb97204d18c263341b77c" - integrity sha512-wp0Co4vpyumnp3KlkmpM5LWuzvZYayDwM2n17EHFr4qxBBbRokC7DJawPJC7TfSFZ9HZ6GsdH40EBj4UV0nmpw== + version "4.41.6" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.41.6.tgz#12f2f804bf6542ef166755050d4afbc8f66ba7e1" + integrity sha512-yxXfV0Zv9WMGRD+QexkZzmGIh54bsvEs+9aRWxnN8erLWEOehAKUTeNBoUbA6HPEZPlRo7KDi2ZcNveoZgK9MA== dependencies: "@webassemblyjs/ast" "1.8.5" "@webassemblyjs/helper-module-context" "1.8.5" @@ -6376,13 +6725,6 @@ which@^1.2.14, which@^1.2.9, which@^1.3.1: dependencies: isexe "^2.0.0" -wide-align@^1.1.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" - integrity sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA== - dependencies: - string-width "^1.0.2 || 2" - widest-line@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-2.0.1.tgz#7438764730ec7ef4381ce4df82fb98a53142a3fc" @@ -6464,7 +6806,7 @@ yallist@^2.1.2: resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" integrity sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI= -yallist@^3.0.0, yallist@^3.0.2, yallist@^3.0.3: +yallist@^3.0.2: version "3.1.1" resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==