UNPKG

@knapsack/app

Version:

Build Design Systems on top of knapsack, by Basalt

2 lines • 474 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([["vendors~custom-page-KXWAf~pattern-view-page-WE7TE~96c62b4f"],{"../node_modules/prettier/standalone.js":function(e,t,r){(function(t){var r;r=function(){var e="Prettier is an opinionated code formatter",r={prettier:"./bin/prettier.js"},n={node:">=8"},a={"@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"},u={"@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"},i={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:a,devDependencies:u,scripts:i},s=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:a,devDependencies:u,scripts:i,default:o});function _typeof(e){return(_typeof="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 _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _inherits(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&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _construct(e,t,r){return(_construct=function isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function _construct(e,t,r){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return r&&_setPrototypeOf(a,r.prototype),a}).apply(null,arguments)}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(e){if(null===e||!function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,Wrapper)}function Wrapper(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(e.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,e)})(e)}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _get(e,t,r){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(e,t,r){var n=function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(r):a.value}})(e,t,r||e)}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,a=!1,u=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,u=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw u}}return r}}(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Diff(){}function buildValues(e,t,r,n,a){for(var u=0,i=t.length,o=0,s=0;u<i;u++){var l=t[u];if(l.removed){if(l.value=e.join(n.slice(s,s+l.count)),s+=l.count,u&&t[u-1].added){var c=t[u-1];t[u-1]=t[u],t[u]=c}}else{if(!l.added&&a){var p=r.slice(o,o+l.count);p=p.map((function(e,t){var r=n[s+t];return r.length>e.length?r:e})),l.value=e.join(p)}else l.value=e.join(r.slice(o,o+l.count));o+=l.count,l.added||(s+=l.count)}}var f=t[i-1];return i>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[i-2].value+=f.value,t.pop()),t}function clonePath(e){return{newPos:e.newPos,components:e.components.slice(0)}}Diff.prototype={diff:function diff(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 a=this;function done(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 u=(t=this.removeEmpty(this.tokenize(t))).length,i=e.length,o=1,s=u+i,l=[{newPos:-1,components:[]}],c=this.extractCommon(l[0],t,e,0);if(l[0].newPos+1>=u&&c+1>=i)return done([{value:this.join(t),count:t.length}]);function execEditLength(){for(var r=-1*o;r<=o;r+=2){var n=void 0,s=l[r-1],c=l[r+1],p=(c?c.newPos:0)-r;s&&(l[r-1]=void 0);var f=s&&s.newPos+1<u,d=c&&0<=p&&p<i;if(f||d){if(!f||d&&s.newPos<c.newPos?(n=clonePath(c),a.pushComponent(n.components,void 0,!0)):((n=s).newPos++,a.pushComponent(n.components,!0,void 0)),p=a.extractCommon(n,t,e,r),n.newPos+1>=u&&p+1>=i)return done(buildValues(a,n.components,t,e,a.useLongestToken));l[r]=n}else l[r]=void 0}o++}if(n)!function exec(){setTimeout((function(){if(o>s)return n();execEditLength()||exec()}),0)}();else for(;o<=s;){var p=execEditLength();if(p)return p}},pushComponent:function pushComponent(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 extractCommon(e,t,r,n){for(var a=t.length,u=r.length,i=e.newPos,o=i-n,s=0;i+1<a&&o+1<u&&this.equals(t[i+1],r[o+1]);)i++,o++,s++;return s&&e.components.push({count:s}),e.newPos=i,o},equals:function equals(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function removeEmpty(e){for(var t=[],r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t},castInput:function castInput(e){return e},tokenize:function tokenize(e){return e.split("")},join:function join(e){return e.join("")}};var l=new Diff;function generateOptions(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}var c=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,p=/\S/,f=new Diff;f.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!p.test(e)&&!p.test(t)},f.tokenize=function(e){for(var t=e.split(/(\s+|[()[\]{}'"]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&c.test(t[r])&&c.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};var d=new Diff;function diffLines(e,t,r){return d.diff(e,t,r)}d.tokenize=function(e){var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var n=0;n<r.length;n++){var a=r[n];n%2&&!this.options.newlineIsToken?t[t.length-1]+=a:(this.options.ignoreWhitespace&&(a=a.trim()),t.push(a))}return t};var m=new Diff;m.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var h=new Diff;function _typeof$1(e){return(_typeof$1="function"==typeof Symbol&&"symbol"===_typeof(Symbol.iterator)?function _typeof$1(e){return _typeof(e)}:function _typeof$1(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof(e)})(e)}function _toConsumableArray$1(e){return function _arrayWithoutHoles$1(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function _iterableToArray$1(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function _nonIterableSpread$1(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}h.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var g=Object.prototype.toString,D=new Diff;function canonicalize(e,t,r,n,a){var u,i;for(t=t||[],r=r||[],n&&(e=n(a,e)),u=0;u<t.length;u+=1)if(t[u]===e)return r[u];if("[object Array]"===g.call(e)){for(t.push(e),i=new Array(e.length),r.push(i),u=0;u<e.length;u+=1)i[u]=canonicalize(e[u],t,r,n,a);return t.pop(),r.pop(),i}if(e&&e.toJSON&&(e=e.toJSON()),"object"===_typeof$1(e)&&null!==e){t.push(e),i={},r.push(i);var o,s=[];for(o in e)e.hasOwnProperty(o)&&s.push(o);for(s.sort(),u=0;u<s.length;u+=1)i[o=s[u]]=canonicalize(e[o],t,r,n,o);t.pop(),r.pop()}else i=e;return i}D.useLongestToken=!0,D.tokenize=d.tokenize,D.castInput=function(e){var t=this.options,r=t.undefinedReplacement,n=t.stringifyReplacer,a=void 0===n?function(e,t){return void 0===t?r:t}:n;return"string"==typeof e?e:JSON.stringify(canonicalize(e,null,null,a),a,"  ")},D.equals=function(e,t){return Diff.prototype.equals.call(D,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var y=new Diff;function parsePatch(e){var t=arguments.length>1&&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)||[],a=[],u=0;function parseIndex(){var e={};for(a.push(e);u<r.length;){var n=r[u];if(/^(\-\-\-|\+\+\+|@@)\s/.test(n))break;var i=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(n);i&&(e.index=i[1]),u++}for(parseFileHeader(e),parseFileHeader(e),e.hunks=[];u<r.length;){var o=r[u];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(o))break;if(/^@@/.test(o))e.hunks.push(parseHunk());else{if(o&&t.strict)throw new Error("Unknown line "+(u+1)+" "+JSON.stringify(o));u++}}}function parseFileHeader(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(r[u]);if(t){var n="---"===t[1]?"old":"new",a=t[2].split("\t",2),i=a[0].replace(/\\\\/g,"\\");/^".*"$/.test(i)&&(i=i.substr(1,i.length-2)),e[n+"FileName"]=i,e[n+"Header"]=(a[1]||"").trim(),u++}}function parseHunk(){for(var e=u,a=r[u++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),i={oldStart:+a[1],oldLines:+a[2]||1,newStart:+a[3],newLines:+a[4]||1,lines:[],linedelimiters:[]},o=0,s=0;u<r.length&&!(0===r[u].indexOf("--- ")&&u+2<r.length&&0===r[u+1].indexOf("+++ ")&&0===r[u+2].indexOf("@@"));u++){var l=0==r[u].length&&u!=r.length-1?" ":r[u][0];if("+"!==l&&"-"!==l&&" "!==l&&"\\"!==l)break;i.lines.push(r[u]),i.linedelimiters.push(n[u]||"\n"),"+"===l?o++:"-"===l?s++:" "===l&&(o++,s++)}if(o||1!==i.newLines||(i.newLines=0),s||1!==i.oldLines||(i.oldLines=0),t.strict){if(o!==i.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(s!==i.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return i}for(;u<r.length;)parseIndex();return a}function distanceIterator(e,t,r){var n=!0,a=!1,u=!1,i=1;return function iterator(){if(n&&!u){if(a?i++:n=!1,e+i<=r)return i;u=!0}if(!a)return u||(n=!0),t<=e-i?-i++:(a=!0,iterator())}}function applyPatch(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=parsePatch(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var n,a,u=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=t.hunks,s=r.compareLine||function(e,t,r,n){return t===n},l=0,c=r.fuzzFactor||0,p=0,f=0;function hunkFits(e,t){for(var r=0;r<e.lines.length;r++){var n=e.lines[r],a=n.length>0?n[0]:" ",i=n.length>0?n.substr(1):n;if(" "===a||"-"===a){if(!s(t+1,u[t],a,i)&&++l>c)return!1;t++}}return!0}for(var d=0;d<o.length;d++){for(var m=o[d],h=u.length-m.oldLines,g=0,D=f+m.oldStart-1,y=distanceIterator(D,p,h);void 0!==g;g=y())if(hunkFits(m,D+g)){m.offset=f+=g;break}if(void 0===g)return!1;p=m.offset+m.oldStart+m.oldLines}for(var C=0,v=0;v<o.length;v++){var E=o[v],A=E.oldStart+E.offset+C-1;C+=E.newLines-E.oldLines,A<0&&(A=0);for(var F=0;F<E.lines.length;F++){var b=E.lines[F],S=b.length>0?b[0]:" ",x=b.length>0?b.substr(1):b,w=E.linedelimiters[F];if(" "===S)A++;else if("-"===S)u.splice(A,1),i.splice(A,1);else if("+"===S)u.splice(A,0,x),i.splice(A,0,w),A++;else if("\\"===S){var T=E.lines[F-1]?E.lines[F-1][0]:null;"+"===T?n=!0:"-"===T&&(a=!0)}}}if(n)for(;!u[u.length-1];)u.pop(),i.pop();else a&&(u.push(""),i.push("\n"));for(var B=0;B<u.length-1;B++)u[B]=u[B]+i[B];return u.join("")}function structuredPatch(e,t,r,n,a,u,i){i||(i={}),void 0===i.context&&(i.context=4);var o=diffLines(r,n,i);function contextLines(e){return e.map((function(e){return" "+e}))}o.push({value:"",lines:[]});for(var s=[],l=0,c=0,p=[],f=1,d=1,m=function _loop(e){var t=o[e],a=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=a,t.added||t.removed){var u;if(!l){var m=o[e-1];l=f,c=d,m&&(p=i.context>0?contextLines(m.lines.slice(-i.context)):[],l-=p.length,c-=p.length)}(u=p).push.apply(u,_toConsumableArray$1(a.map((function(e){return(t.added?"+":"-")+e})))),t.added?d+=a.length:f+=a.length}else{if(l)if(a.length<=2*i.context&&e<o.length-2){var h;(h=p).push.apply(h,_toConsumableArray$1(contextLines(a)))}else{var g,D=Math.min(a.length,i.context);(g=p).push.apply(g,_toConsumableArray$1(contextLines(a.slice(0,D))));var y={oldStart:l,oldLines:f-l+D,newStart:c,newLines:d-c+D,lines:p};if(e>=o.length-2&&a.length<=i.context){var C=/\n$/.test(r),v=/\n$/.test(n),E=0==a.length&&p.length>y.oldLines;!C&&E&&p.splice(y.oldLines,0,"\\ No newline at end of file"),(C||E)&&v||p.push("\\ No newline at end of file")}s.push(y),l=0,c=0,p=[]}f+=a.length,d+=a.length}},h=0;h<o.length;h++)m(h);return{oldFileName:e,newFileName:t,oldHeader:a,newHeader:u,hunks:s}}function createTwoFilesPatch(e,t,r,n,a,u,i){var o=structuredPatch(e,t,r,n,a,u,i),s=[];e==t&&s.push("Index: "+e),s.push("==================================================================="),s.push("--- "+o.oldFileName+(void 0===o.oldHeader?"":"\t"+o.oldHeader)),s.push("+++ "+o.newFileName+(void 0===o.newHeader?"":"\t"+o.newHeader));for(var l=0;l<o.hunks.length;l++){var c=o.hunks[l];s.push("@@ -"+c.oldStart+","+c.oldLines+" +"+c.newStart+","+c.newLines+" @@"),s.push.apply(s,c.lines)}return s.join("\n")+"\n"}function arrayStartsWith(e,t){if(t.length>e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function calcLineCount(e){var t=function calcOldNewLineCount(e){var t=0,r=0;return e.forEach((function(e){if("string"!=typeof e){var n=calcOldNewLineCount(e.mine),a=calcOldNewLineCount(e.theirs);void 0!==t&&(n.oldLines===a.oldLines?t+=n.oldLines:t=void 0),void 0!==r&&(n.newLines===a.newLines?r+=n.newLines:r=void 0)}else void 0===r||"+"!==e[0]&&" "!==e[0]||r++,void 0===t||"-"!==e[0]&&" "!==e[0]||t++})),{oldLines:t,newLines:r}}(e.lines),r=t.oldLines,n=t.newLines;void 0!==r?e.oldLines=r:delete e.oldLines,void 0!==n?e.newLines=n:delete e.newLines}function loadPatch(e,t){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return parsePatch(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return structuredPatch(void 0,void 0,t,e)}return e}function fileNameChanged(e){return e.newFileName&&e.newFileName!==e.oldFileName}function selectField(e,t,r){return t===r?t:(e.conflict=!0,{mine:t,theirs:r})}function hunkBefore(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function cloneHunk(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function mergeLines(e,t,r,n,a){var u={offset:t,lines:r,index:0},i={offset:n,lines:a,index:0};for(insertLeading(e,u,i),insertLeading(e,i,u);u.index<u.lines.length&&i.index<i.lines.length;){var o=u.lines[u.index],s=i.lines[i.index];if("-"!==o[0]&&"+"!==o[0]||"-"!==s[0]&&"+"!==s[0])if("+"===o[0]&&" "===s[0]){var l;(l=e.lines).push.apply(l,_toConsumableArray$1(collectChange(u)))}else if("+"===s[0]&&" "===o[0]){var c;(c=e.lines).push.apply(c,_toConsumableArray$1(collectChange(i)))}else"-"===o[0]&&" "===s[0]?removal(e,u,i):"-"===s[0]&&" "===o[0]?removal(e,i,u,!0):o===s?(e.lines.push(o),u.index++,i.index++):conflict(e,collectChange(u),collectChange(i));else mutualChange(e,u,i)}insertTrailing(e,u),insertTrailing(e,i),calcLineCount(e)}function mutualChange(e,t,r){var n=collectChange(t),a=collectChange(r);if(allRemoves(n)&&allRemoves(a)){var u,i;if(arrayStartsWith(n,a)&&skipRemoveSuperset(r,n,n.length-a.length))return void(u=e.lines).push.apply(u,_toConsumableArray$1(n));if(arrayStartsWith(a,n)&&skipRemoveSuperset(t,a,a.length-n.length))return void(i=e.lines).push.apply(i,_toConsumableArray$1(a))}else if(function arrayEqual(e,t){return e.length===t.length&&arrayStartsWith(e,t)}(n,a)){var o;return void(o=e.lines).push.apply(o,_toConsumableArray$1(n))}conflict(e,n,a)}function removal(e,t,r,n){var a,u=collectChange(t),i=function collectContext(e,t){for(var r=[],n=[],a=0,u=!1,i=!1;a<t.length&&e.index<e.lines.length;){var o=e.lines[e.index],s=t[a];if("+"===s[0])break;if(u=u||" "!==o[0],n.push(s),a++,"+"===o[0])for(i=!0;"+"===o[0];)r.push(o),o=e.lines[++e.index];s.substr(1)===o.substr(1)?(r.push(o),e.index++):i=!0}if("+"===(t[a]||"")[0]&&u&&(i=!0),i)return r;for(;a<t.length;)n.push(t[a++]);return{merged:n,changes:r}}(r,u);i.merged?(a=e.lines).push.apply(a,_toConsumableArray$1(i.merged)):conflict(e,n?i:u,n?u:i)}function conflict(e,t,r){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:r})}function insertLeading(e,t,r){for(;t.offset<r.offset&&t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n),t.offset++}}function insertTrailing(e,t){for(;t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r)}}function collectChange(e){for(var t=[],r=e.lines[e.index][0];e.index<e.lines.length;){var n=e.lines[e.index];if("-"===r&&"+"===n[0]&&(r="+"),r!==n[0])break;t.push(n),e.index++}return t}function allRemoves(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function skipRemoveSuperset(e,t,r){for(var n=0;n<r;n++){var a=t[t.length-r+n].substr(1);if(e.lines[e.index+n]!==" "+a)return!1}return e.index+=r,!0}y.tokenize=function(e){return e.slice()},y.join=y.removeEmpty=function(e){return e};var C=Object.freeze({__proto__:null,Diff:Diff,diffChars:function diffChars(e,t,r){return l.diff(e,t,r)},diffWords:function diffWords(e,t,r){return r=generateOptions(r,{ignoreWhitespace:!0}),f.diff(e,t,r)},diffWordsWithSpace:function diffWordsWithSpace(e,t,r){return f.diff(e,t,r)},diffLines:diffLines,diffTrimmedLines:function diffTrimmedLines(e,t,r){var n=generateOptions(r,{ignoreWhitespace:!0});return d.diff(e,t,n)},diffSentences:function diffSentences(e,t,r){return m.diff(e,t,r)},diffCss:function diffCss(e,t,r){return h.diff(e,t,r)},diffJson:function diffJson(e,t,r){return D.diff(e,t,r)},diffArrays:function diffArrays(e,t,r){return y.diff(e,t,r)},structuredPatch:structuredPatch,createTwoFilesPatch:createTwoFilesPatch,createPatch:function createPatch(e,t,r,n,a,u){return createTwoFilesPatch(e,e,t,r,n,a,u)},applyPatch:applyPatch,applyPatches:function applyPatches(e,t){"string"==typeof e&&(e=parsePatch(e));var r=0;!function processIndex(){var n=e[r++];if(!n)return t.complete();t.loadFile(n,(function(e,r){if(e)return t.complete(e);var a=applyPatch(r,n,t);t.patched(n,a,(function(e){if(e)return t.complete(e);processIndex()}))}))}()},parsePatch:parsePatch,merge:function merge(e,t,r){e=loadPatch(e,r),t=loadPatch(t,r);var n={};(e.index||t.index)&&(n.index=e.index||t.index),(e.newFileName||t.newFileName)&&(fileNameChanged(e)?fileNameChanged(t)?(n.oldFileName=selectField(n,e.oldFileName,t.oldFileName),n.newFileName=selectField(n,e.newFileName,t.newFileName),n.oldHeader=selectField(n,e.oldHeader,t.oldHeader),n.newHeader=selectField(n,e.newHeader,t.newHeader)):(n.oldFileName=e.oldFileName,n.newFileName=e.newFileName,n.oldHeader=e.oldHeader,n.newHeader=e.newHeader):(n.oldFileName=t.oldFileName||e.oldFileName,n.newFileName=t.newFileName||e.newFileName,n.oldHeader=t.oldHeader||e.oldHeader,n.newHeader=t.newHeader||e.newHeader)),n.hunks=[];for(var a=0,u=0,i=0,o=0;a<e.hunks.length||u<t.hunks.length;){var s=e.hunks[a]||{oldStart:1/0},l=t.hunks[u]||{oldStart:1/0};if(hunkBefore(s,l))n.hunks.push(cloneHunk(s,i)),a++,o+=s.newLines-s.oldLines;else if(hunkBefore(l,s))n.hunks.push(cloneHunk(l,o)),u++,i+=l.newLines-l.oldLines;else{var c={oldStart:Math.min(s.oldStart,l.oldStart),oldLines:0,newStart:Math.min(s.newStart+i,l.oldStart+o),newLines:0,lines:[]};mergeLines(c,s.oldStart,s.lines,l.oldStart,l.lines),u++,a++,n.hunks.push(c)}}return n},convertChangesToDMP:function convertChangesToDMP(e){for(var t,r,n=[],a=0;a<e.length;a++)r=(t=e[a]).added?1:t.removed?-1:0,n.push([r,t.value]);return n},convertChangesToXML:function convertChangesToXML(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];n.added?t.push("<ins>"):n.removed&&t.push("<del>"),t.push((a=n.value,void 0,a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))),n.added?t.push("</ins>"):n.removed&&t.push("</del>")}var a;return t.join("")},canonicalize:canonicalize}),v=Object.freeze({__proto__:null,default:{}}),E=function normalizePath(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 a=e[2];"?"!==a&&"."!==a||"\\\\"!==e.slice(0,2)||(e=e.slice(2),n="//")}var u=e.split(/[/\\]+/);return!1!==t&&""===u[u.length-1]&&u.pop(),n+u.join("/")},A=void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},F=[],b=[],S="undefined"!=typeof Uint8Array?Uint8Array:Array,x=!1;function init(){x=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)F[t]=e[t],b[e.charCodeAt(t)]=t;b["-".charCodeAt(0)]=62,b["_".charCodeAt(0)]=63}function encodeChunk(e,t,r){for(var n,a,u=[],i=t;i<r;i+=3)n=(e[i]<<16)+(e[i+1]<<8)+e[i+2],u.push(F[(a=n)>>18&63]+F[a>>12&63]+F[a>>6&63]+F[63&a]);return u.join("")}function fromByteArray(e){var t;x||init();for(var r=e.length,n=r%3,a="",u=[],i=0,o=r-n;i<o;i+=16383)u.push(encodeChunk(e,i,i+16383>o?o:i+16383));return 1===n?(t=e[r-1],a+=F[t>>2],a+=F[t<<4&63],a+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],a+=F[t>>10],a+=F[t>>4&63],a+=F[t<<2&63],a+="="),u.push(a),u.join("")}function read(e,t,r,n,a){var u,i,o=8*a-n-1,s=(1<<o)-1,l=s>>1,c=-7,p=r?a-1:0,f=r?-1:1,d=e[t+p];for(p+=f,u=d&(1<<-c)-1,d>>=-c,c+=o;c>0;u=256*u+e[t+p],p+=f,c-=8);for(i=u&(1<<-c)-1,u>>=-c,c+=n;c>0;i=256*i+e[t+p],p+=f,c-=8);if(0===u)u=1-l;else{if(u===s)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,n),u-=l}return(d?-1:1)*i*Math.pow(2,u-n)}function write(e,t,r,n,a,u){var i,o,s,l=8*u-a-1,c=(1<<l)-1,p=c>>1,f=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:u-1,m=n?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-i))<1&&(i--,s*=2),(t+=i+p>=1?f/s:f*Math.pow(2,1-p))*s>=2&&(i++,s/=2),i+p>=c?(o=0,i=c):i+p>=1?(o=(t*s-1)*Math.pow(2,a),i+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,a),i=0));a>=8;e[r+d]=255&o,d+=m,o/=256,a-=8);for(i=i<<a|o,l+=a;l>0;e[r+d]=255&i,d+=m,i/=256,l-=8);e[r+d-m]|=128*h}var w={}.toString,T=Array.isArray||function(e){return"[object Array]"==w.call(e)};function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(e,t){if(kMaxLength()<t)throw new RangeError("Invalid typed array length");return Buffer.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Buffer.prototype:(null===e&&(e=new Buffer(t)),e.length=t),e}function Buffer(e,t,r){if(!(Buffer.TYPED_ARRAY_SUPPORT||this instanceof Buffer))return new Buffer(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return allocUnsafe(this,e)}return from(this,e,t,r)}function from(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function fromArrayBuffer(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),Buffer.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Buffer.prototype:e=fromArrayLike(e,t),e}(e,t,r,n):"string"==typeof t?function fromString(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!Buffer.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|byteLength(t,r),a=(e=createBuffer(e,n)).write(t,r);return a!==n&&(e=e.slice(0,a)),e}(e,t,r):function fromObject(e,t){if(internalIsBuffer(t)){var r=0|checked(t.length);return 0===(e=createBuffer(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function isnan(e){return e!=e}(t.length)?createBuffer(e,0):fromArrayLike(e,t);if("Buffer"===t.type&&T(t.data))return fromArrayLike(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function assertSize(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function allocUnsafe(e,t){if(assertSize(t),e=createBuffer(e,t<0?0:0|checked(t)),!Buffer.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function fromArrayLike(e,t){var r=t.length<0?0:0|checked(t.length);e=createBuffer(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function checked(e){if(e>=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|e}function internalIsBuffer(e){return!(null==e||!e._isBuffer)}function byteLength(e,t){if(internalIsBuffer(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 utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return base64ToBytes(e).length;default:if(n)return utf8ToBytes(e).length;t=(""+t).toLowerCase(),n=!0}}function slowToString(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 hexSlice(this,t,r);case"utf8":case"utf-8":return utf8Slice(this,t,r);case"ascii":return asciiSlice(this,t,r);case"latin1":case"binary":return latin1Slice(this,t,r);case"base64":return base64Slice(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function swap(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function bidirectionalIndexOf(e,t,r,n,a){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=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"==typeof t&&(t=Buffer.from(t,n)),internalIsBuffer(t))return 0===t.length?-1:arrayIndexOf(e,t,r,n,a);if("number"==typeof t)return t&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):arrayIndexOf(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,t,r,n,a){var u,i=1,o=e.length,s=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;i=2,o/=2,s/=2,r/=2}function read(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){var l=-1;for(u=r;u<o;u++)if(read(e,u)===read(t,-1===l?0:u-l)){if(-1===l&&(l=u),u-l+1===s)return l*i}else-1!==l&&(u-=u-l),l=-1}else for(r+s>o&&(r=o-s),u=r;u>=0;u--){for(var c=!0,p=0;p<s;p++)if(read(e,u+p)!==read(t,p)){c=!1;break}if(c)return u}return-1}function hexWrite(e,t,r,n){r=Number(r)||0;var a=e.length-r;n?(n=Number(n))>a&&(n=a):n=a;var u=t.length;if(u%2!=0)throw new TypeError("Invalid hex string");n>u/2&&(n=u/2);for(var i=0;i<n;++i){var o=parseInt(t.substr(2*i,2),16);if(isNaN(o))return i;e[r+i]=o}return i}function utf8Write(e,t,r,n){return blitBuffer(utf8ToBytes(t,e.length-r),e,r,n)}function asciiWrite(e,t,r,n){return blitBuffer(function asciiToBytes(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function latin1Write(e,t,r,n){return asciiWrite(e,t,r,n)}function base64Write(e,t,r,n){return blitBuffer(base64ToBytes(t),e,r,n)}function ucs2Write(e,t,r,n){return blitBuffer(function utf16leToBytes(e,t){for(var r,n,a,u=[],i=0;i<e.length&&!((t-=2)<0);++i)r=e.charCodeAt(i),n=r>>8,a=r%256,u.push(a),u.push(n);return u}(t,e.length-r),e,r,n)}function base64Slice(e,t,r){return 0===t&&r===e.length?fromByteArray(e):fromByteArray(e.slice(t,r))}function utf8Slice(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a<r;){var u,i,o,s,l=e[a],c=null,p=l>239?4:l>223?3:l>191?2:1;if(a+p<=r)switch(p){case 1:l<128&&(c=l);break;case 2:128==(192&(u=e[a+1]))&&(s=(31&l)<<6|63&u)>127&&(c=s);break;case 3:u=e[a+1],i=e[a+2],128==(192&u)&&128==(192&i)&&(s=(15&l)<<12|(63&u)<<6|63&i)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:u=e[a+1],i=e[a+2],o=e[a+3],128==(192&u)&&128==(192&i)&&128==(192&o)&&(s=(15&l)<<18|(63&u)<<12|(63&i)<<6|63&o)>65535&&s<1114112&&(c=s)}null===c?(c=65533,p=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),a+=p}return function decodeCodePointsArray(e){var t=e.length;if(t<=B)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=B));return r}(n)}Buffer.TYPED_ARRAY_SUPPORT=void 0===A.TYPED_ARRAY_SUPPORT||A.TYPED_ARRAY_SUPPORT,Buffer.poolSize=8192,Buffer._augment=function(e){return e.__proto__=Buffer.prototype,e},Buffer.from=function(e,t,r){return from(null,e,t,r)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array),Buffer.alloc=function(e,t,r){return function alloc(e,t,r,n){return assertSize(t),t<=0?createBuffer(e,t):void 0!==r?"string"==typeof n?createBuffer(e,t).fill(r,n):createBuffer(e,t).fill(r):createBuffer(e,t)}(null,e,t,r)},Buffer.allocUnsafe=function(e){return allocUnsafe(null,e)},Buffer.allocUnsafeSlow=function(e){return allocUnsafe(null,e)},Buffer.isBuffer=function isBuffer(e){return null!=e&&(!!e._isBuffer||isFastBuffer(e)||function isSlowBuffer(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&isFastBuffer(e.slice(0,0))}(e))},Buffer.compare=function compare(e,t){if(!internalIsBuffer(e)||!internalIsBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,a=0,u=Math.min(r,n);a<u;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:n<r?1:0},Buffer.isEncoding=function isEncoding(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function concat(e,t){if(!T(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Buffer.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=Buffer.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var u=e[r];if(!internalIsBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(n,a),a+=u.length}return n},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function swap16(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)swap(this,t,t+1);return this},Buffer.prototype.swap32=function swap32(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)swap(this,t,t+3),swap(this,t+1,t+2);return this},Buffer.prototype.swap64=function swap64(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)swap(this,t,t+7),swap(this,t+1,t+6),swap(this,t+2,t+5),swap(this,t+3,t+4);return this},Buffer.prototype.toString=function toString(){var e=0|this.length;return 0===e?"":0===arguments.length?utf8Slice(this,0,e):slowToString.apply(this,arguments)},Buffer.prototype.equals=function equals(e){if(!internalIsBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Buffer.compare(this,e)},Buffer.prototype.inspect=function inspect(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Buffer.prototype.compare=function compare(e,t,r,n,a){if(!internalIsBuffer(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===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(this===e)return 0;for(var u=(a>>>=0)-(n>>>=0),i=(r>>>=0)-(t>>>=0),o=Math.min(u,i),s=this.slice(n,a),l=e.slice(t,r),c=0;c<o;++c)if(s[c]!==l[c]){u=s[c],i=l[c];break}return u<i?-1:i<u?1:0},Buffer.prototype.includes=function includes(e,t,r){return-1!==this.indexOf(e,t,r)},Buffer.prototype.indexOf=function indexOf(e,t,r){return bidirectionalIndexOf(this,e,t,r,!0)},Buffer.prototype.lastIndexOf=function lastIndexOf(e,t,r){return bidirectionalIndexOf(this,e,t,r,!1)},Buffer.prototype.write=function write(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var a=this.length-t;if((void 0===r||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return hexWrite(this,e,t,r);case"utf8":case"utf-8":return utf8Write(this,e,t,r);case"ascii":return asciiWrite(this,e,t,r);case"latin1":case"binary":return latin1Write(this,e,t,r);case"base64":return base64Write(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e,t,r);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function asciiSlice(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(127&e[a]);return n}function latin1Slice(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(e[a]);return n}function hexSlice(e,t,r){var n,a=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>a)&&(r=a);for(var u="",i=t;i<r;++i)u+=(n=e[i])<16?"0"+n.toString(16):n.toString(16);return u}function utf16leSlice(e,t,r){for(var n=e.slice(t,r),a="",u=0;u<n.length;u+=2)a+=String.fromCharCode(n[u]+256*n[u+1]);return a}function checkOffset(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function checkInt(e,t,r,n,a,u){if(!internalIsBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<u)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function objectWriteUInt16(e,t,r,n){t<0&&(t=65535+t+1);for(var a=0,u=Math.min(e.length-r,2);a<u;++a)e[r+a]=(t&255<<8*(n?a:1-a))>>>8*(n?a:1-a)}function objectWriteUInt32(e,t,r,n){t<0&&(t=4294967295+t+1);for(var a=0,u=Math.min(e.length-r,4);a<u;++a)e[r+a]=t>>>8*(n?a:3-a)&255}function checkIEEE754(e,t,r,n,a,u){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function writeFloat(e,t,r,n,a){return a||checkIEEE754(e,0,r,4),write(e,t,r,n,23,4),r+4}function writeDouble(e,t,r,n,a){return a||checkIEEE754(e,0,r,8),write(e,t,r,n,52,8),r+8}Buffer.prototype.slice=function slice(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),t<e&&(t=e),Buffer.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=Buffer.prototype;else{var a=t-e;r=new Buffer(a,void 0);for(var u=0;u<a;++u)r[u]=this[u+e]}return r},Buffer.prototype.readUIntLE=function readUIntLE(e,t,r){e|=0,t|=0,r||checkOffset(e,t,this.length);for(var n=this[e],a=1,u=0;++u<t&&(a*=256);)n+=this[e+u]*a;return n},Buffer.prototype.readUIntBE=function readUIntBE(e,t,r){e|=0,t|=0,r||checkOffset(e,t,this.length);for(var n=this[e+--t],a=1;t>0&&(a*=256);)n+=this[e+--t]*a;return n},Buffer.prototype.readUInt8=function readUInt8(e,t){return t||checkOffset(e,1,this.length),this[e]},Buffer.prototype.readUInt16LE=function readUInt16LE(e,t){return t||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(e,t){return t||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(e,t){return t||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(e,t){return t||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readIntLE=function readIntLE(e,t,r){e|=0,t|=0,r||checkOffset(e,t,this.length);for(var n=this[e],a=1,u=0;++u<t&&(a*=256);)n+=this[e+u]*a;return n>=(a*=128)&&(n-=Math.pow(2,8*t)),n},Buffer.prototype.readIntBE=function readIntBE(e,t,r){e|=0,t|=0,r||checkOffset(e,t,this.length);for(var n=t,a=1,u=this[e+--n];n>0&&(a*=256);)u+=this[e+--n]*a;return u>=(a*=128)&&(u-=Math.pow(2,8*t)),u},Buffer.prototype.readInt8=function readInt8(e,t){return t||checkOffset(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Buffer.prototype.readInt16LE=function readInt16LE(e,t){t||checkOffset(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt16BE=function readInt16BE(e,t){t||checkOffset(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt32LE=function readInt32LE(e,t){return t||checkOffset(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(e,t){return t||checkOffset(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer.prototype.readFloatLE=function readFloatLE(e,t){return t||checkOffset(e,4,this.length),read(this,e,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(e,t){return t||checkOffset(e,4,this.length),read(this,e,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(e,t){return t||checkOffset(e,8,this.length),read(this,e,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(e,t){return t||checkOffset(e,8,this.length),read(this,e,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(e,t,r,n){e=+e,t|=0,r|=0,n||checkInt(this,e,t,r,Math.pow(2,8*r)-1,0);var a=1,u=0;for(this[t]=255&e;++u<r&&(a*=256);)this[t+u]=e/a&255;return t+r},Buffer.prototype.writeUIntBE=function writeUIntBE(e,t,r,n){e=+e,t|=0,r|=0,n||checkInt(this,e,t,r,Math.pow(2,8*r)-1,0);var a=r-1,u=1;for(this[t+a]=255&e;--a>=0&&(u*=256);)this[t+a]=e/u&255;return t+r},Buffer.prototype.writeUInt8=function writeUInt8(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):objectWriteUInt16(this,e,t,!0),t+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):objectWriteUInt16(this,e,t,!1),t+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):objectWriteUInt32(this,e,t,!0),t+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):objectWriteUInt32(this,e,t,!1),t+4},Buffer.prototype.writeIntLE=function writeIntLE(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);checkInt(this,e,t,r,a-1,-a)}var u=0,i=1,o=0;for(this[t]=255&e;++u<r&&(i*=256);)e<0&&0===o&&0!==this[t+u-1]&&(o=1),this[t+u]=(e/i>>0)-o&255;return t+r},Buffer.prototype.writeIntBE=function writeIntBE(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);checkInt(this,e,t,r,a-1,-a)}var u=r-1,i=1,o=0;for(this[t+u]=255&e;--u>=0&&(i*=256);)e<0&&0===o&&0!==this[t+u+1]&&(o=1),this[t+u]=(e/i>>0)-o&255;return t+r},Buffer.prototype.writeInt8=function writeInt8(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Buffer.prototype.writeInt16LE=function writeInt16LE(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):objectWriteUInt16(this,e,t,!0),t+2},Buffer.prototype.writeInt16BE=function writeInt16BE(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):objectWriteUInt16(this,e,t,!1),t+2},Buffer.prototype.writeInt32LE=function writeInt32LE(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):objectWriteUInt32(this,e,t,!0),t+4},Buffer.prototype.writeInt32BE=function writeInt32BE(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):objectWriteUInt32(this,e,t,!1),t+4},Buffer.prototype.writeFloatLE=function writeFloatLE(e,t,r){return writeFloat(this,e,t,!0,r)},Buffer.prototype.writeFloatBE=function writeFloatBE(e,t,r){return writeFloat(this,e,t,!1,r)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(e,t,r){return writeDouble(this,e,t,!0,r)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(e,t,r){return writeDouble(this,e,t,!1,r)},Buffer.prototype.copy=function copy(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<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var a,u=n-r;if(this===e&&r<t&&t<n)for(a=u-1;a>=0;--a)e[a+t]=this[a+r];else if(u<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(a=0;a<u;++a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+u),t);return u},Buffer.prototype.fill=function fill(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Buffer.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var u;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(u=t;u<r;++u)this[u]=e;else{var i=internalIsBuffer(e)?e:utf8ToBytes(new Buffer(e,n).toString()),o=i.length;for(u=0;u<r-t;++u)this[u+t]=i[u%o]}return this};var k=/[^+\/0-9A-Za-z-_]/g;function utf8ToBytes(e,t){var r;t=t||1/0;for(var n=e.length,a=null,u=[],i=0;i<n;++i){if((r=e.charCodeAt(i))>55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&u.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&u.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&u.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&u.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;u.push(r)}else if(r<2048){if((t-=2)<0)break;u.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;u.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;u.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return u}function base64ToBytes(e){return function toByteArray(e){var t,r,n,a,u,i;x||init();var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");u="="===e[o-2]?2:"="===e[o-1]?1:0,i=new S(3*o/4-u),n=u>0?o-4:o;var s=0;for(t=0,r=0;t<n;t+=4,r+=3)a=b[e.charCodeAt(t)]<<18|b[e.charCodeAt(t+1)]<<12|b[e.charCodeAt(t+2)]<<6|b[e.charCodeAt(t+3)],i[s++]=a>>16&255,i[s++]=a>>8&255,i[s++]=255&a;return 2===u?(a=b[e.charCodeAt(t)]<<2|b[e.charCodeAt(t+1)]>>4,i[s++]=255&a):1===u&&(a=b[e.charCodeAt(t)]<<10|b[e.charCodeAt(t+1)]<<4|b[e.charCodeAt(t+2)]>>2,i[s++]=a>>8&255,i[s++]=255&a),i}(function base64clean(e){if((e=function stringtrim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function blitBuffer(e,t,r,n){for(var a=0;a<n&&!(a+r>=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function isFastBuffer(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}function getCjsExportFromNamespace(e){return e&&e.default||e}var O=getCjsExportFromNamespace(v),P=function(){function LineByLine(e,t){_classCallCheck(this,LineByLine),(t=t||{}).readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd="number"==typeof e?e:O.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}return _createClass(LineByLine,[{key:"_searchInBuffer",value:function _searchInBuffer(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 reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}},{key:"close",value:function close(){O.closeSync(this.fd),this.fd=null}},{key:"_extractLines",value:function _extractLines(e){for(var t,r=[],n=0,a=0;;){var u=e[n++];if(u===this.newLineCharacter)t=e.slice(a,n),r.push(t),a=n;else if(!u)break}var i=e.slice(a,n);return i.length&&r.push(i),r}},{key:"_readChunk",value:function _readChunk(e){var t,r=0,n=[];do{var a=new Buffer(this.options.readChunk);r+=t=O.readSync(this.fd,a,0,this.options.readChunk,this.fdPosition),this.fdPosition=this.fdPosition+t,n.push(a)}while(t&&-1===this._searchInBuffer(n[n.length-1],this.options.newLineCharacter));var u=Buffer.concat(n);return t<this.options.readChunk&&(this.eofReached=!0,u=u.slice(0,r)),r&&(this.linesCache=this._extractLines(u),e&&(this.linesCache[0]=Buffer.concat([e,this.linesCache[0]]))),r}},{key:"next",value:function next(){if(!this.fd)return!1;var e=!1;return this.eofReached&&0===this.linesCache.length?e:(this.linesCache.length||this._readChunk(),this.linesCache.length&&10!==(e=this.linesCache.shift())[e.length-1]&&this._readChunk(e)&&(e=this.linesCache.shift()),this.eofReached&&0===this.linesCache.length&&this.close(),e&&e[e.length-1]===this.newLineCharacter&&(e=e.slice(0,e.length-1)),e)}}]),LineByLine}(),I={ConfigError:function(e){function ConfigError(){return _classCallCheck(this,ConfigError),_possibleConstructorReturn(this,_getPrototypeOf(ConfigError).apply(this,arguments))}return _inherits(ConfigError,e),ConfigError}(_wrapNativeSuper(Error)),DebugError:function(e){function DebugError(){return _classCallCheck(this,DebugError),_possibleConstructorReturn(this,_getPrototypeOf(DebugError).apply(this,arguments))}return _inherits(DebugError,e),DebugError}(_wrapNativeSuper(Error)),UndefinedParserError:function(e){function UndefinedParserError(){return _classCallCheck(this,UndefinedParserError),_possibleConstructorReturn(this,_getPrototypeOf(UndefinedParserError).apply(this,arguments))}return _inherits(UndefinedParserError,e),UndefinedParserError}(_wrapNativeSuper(Error))};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}var L=defaultSetTimout,_=defaultClearTimeout;function runTimeout(e){if(L===setTimeout)return setTimeout(e,0);if((L===defaultSetTimout||!L)&&setTimeout)return L=setTimeout,setTimeout(e,0);try{return L(e,0)}catch(t){try{return L.call(null,e,0)}catch(t){return L.call(this,e,0)}}}"function"==typeof A.setTimeout&&(L=setTimeout),"function"==typeof A.clearTimeout&&(_=clearTimeout);var j,M=[],R=!1,$=-1;function cleanUpNextTick(){R&&j&&(R=!1,j.length?M=j.concat(M):$=-1,M.length&&drainQueue())}function drainQueue(){if(!R){var e=runTimeout(cleanUpNextTick);R=!0;for(var t=M.length;t;){for(j=M,M=[];++$<t;)j&&j[$].run();$=-1,t=M.length}j=null,R=!1,function runClearTimeout(e){if(_===clearTimeout)return clearTimeout(e);if((_===defaultClearTimeout||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(e);try{return _(e)}catch(t){try{return _.call(null,e)}catch(t){return _.call(this,e)}}}(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}Item.prototype.run=function(){this.fun.apply(null,this.array)};var W=noop,V=noop,q=noop,U=noop,z=noop,H=noop,J=noop,X=A.performance||{},G=X.now||X.mozNow||X.msNow||X.oNow||X.webkitNow||function(){return(new Date).getTime()},K=new Date,Y={nextTick:function nextTick(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];M.push(new Item(e,t)),1!==M.length||R||runTimeout(drainQueue)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:W,addListener:V,once:q,off:U,removeListener:z,removeAllListeners:H,emit:J,binding:function binding(e){throw new Error("process.binding is not supported")},cwd:function cwd(){return"/"},chdir:function chdir(e){throw new Error("process.chdir is not supported")},umask:function umask(){return 0},hrtime:function hrtime(e){var t=.001*G.call(X),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function uptime(){return(new Date-K)/1e3}},Q=createCommonjsModule((function(e,t){var r;t=e.exports=SemVer,r="object"===_typeof(Y)&&Y.env&&Y.env.NODE_DEBUG&&/\bsemver\b/i.test(Y.env.NODE_DEBUG)?function debug(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function debug(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=256,a=Number.MAX_SAFE_INTEGER||9007199254740991,u=t.re=[],i=t.src=[],o=t.tokens={},s=0;function tok(e){o[e]=s++}tok("NUMERICIDENTIFIER"),i[o.NUMERICIDENTIFIER]="0|[1-9]\\d*",tok("NUMERICIDENTIFIERLOOSE"),i[o.NUMERICIDENTIFIERLOOSE]="[0-9]+",tok("NONNUMERICIDENTIFIER"),i[o.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",tok("MAINVERSION"),i[o.MAINVERSION]="("+i[o.NUMERICIDENTIFIER]+")\\.("+i[o.NUMERICIDENTIFIER]+")\\.("+i[o.NUMERICIDENTIFIER]+")",tok("MAINVERSIONLOOSE"),i[o.MAINVERSIONLOOSE]="("+i[o.NUMERICIDENTIFIERLOOSE]+")\\.("+i[o.NUMERICIDENTIFIERLOOSE]+")\\.("+i[o.NUMERICIDENTIFIERLOOSE]+")",tok("PRERELEASEIDENTIFIER"),i[o.PRERELEASEIDENTIFIER]="(?:"+i[o.NUMERICIDENTIFIER]+"|"+i[o.NONNUMERICIDENTIFIER]+")",tok("PRERELEASEIDENTIFIERLOOSE"),i[o.PRERELEASEIDENTIFIERLOOSE]="(?:"+i[o.NUMERICIDENTIFIERLOOSE]+"|"+i[o.NONNUMERICIDENTIFIER]+")",tok("PRERELEASE"),i[o.PRERELEASE]="(?:-("+i[o.PRERELEASEIDENTIFIER]+"(?:\\."+i[o.PRERELEASEIDENTIFIER]+")*))",tok("PRERELEASELOOSE"),i[o.PRERELEASELOOSE]="(?:-?("+i[o.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+i[o.PRERELEASEIDENTIFIERLOOSE]+")*))",tok("BUILDIDENTIFIER"),i[o.BUILDIDENTIFIER]="[0-9A-Za-z-]+",tok("BUILD"),i[o.BUILD]="(?:\\+("+i[o.BUILDIDENTIFIER]+"(?:\\."+i[o.BUILDIDENTIFIER]+")*))",tok("FULL"),tok("FULLPLAIN"),i[o.FULLPLAIN]="v?"+i[o.MAINVERSION]+i[o.PRERELEASE]+"?"+i[o.BUILD]+"?",i[o.FULL]="^"+i[o.FULLPLAIN]+"$",tok("LOOSEPLAIN"),i[o.LOOSEPLAIN]="[v=\\s]*"+i[o.MAINVERSIONLOOSE]+i[o.PRERELEASELOOSE]+"?"+i[o.BUILD]+"?",tok("LOOSE"),i[o.LOOSE]="^"+i[o.LOOSEPLAIN]+"$",tok("GTLT"),i[o.GTLT]="((?:<|>)?=?)",tok("XRANGEIDENTIFIERLOOSE"),i[o.XRANGEIDENTIFIERLOOSE]=i[o.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",tok("XRANGEIDENTIFIER"),i[o.XRANGEIDENTIFIER]=i[o.NUMERICIDENTIFIER]+"|x|X|\\*",tok("XRANGEPLAIN"),i[o.XRANGEPLAIN]="[v=\\s]*("+i[o.XRANGEIDENTIFIER]+")(?:\\.("+i[o.XRANGEIDENTIFIER]+")(?:\\.("+i[o.XRANGEIDENTIFIER]+")(?:"+i[o.PRERELEASE]+")?"+i[o.BUILD]+"?)?)?",tok("XRANGEPLAINLOOSE"),i[o.XRANGEPLAINLOOSE]="[v=\\s]*("+i[o.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[o.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[o.XRANGEIDENTIFIERLOOSE]+")(?:"+i[o.PRERELEASELOOSE]+")?"+i[o.BUILD]+"?)?)?",tok("XRANGE"),i[o.XRANGE]="^"+i[o.GTLT]+"\\s*"+i[o.XRANGEPLAIN]+"$",tok("XRANGELOOSE"),i[o.XRANGELOOSE]="^"+i[o.GTLT]+"\\s*"+i[o.XRANGEPLAINLOOSE]+"$",tok("COERCE"),i[o.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",tok("COERCERTL"),u[o.COERCERTL]=new RegExp(i[o.COERCE],"g"),tok("LONETILDE"),i[o.LONETILDE]="(?:~>?)",tok("TILDETRIM"),i[o.TILDETRIM]="(\\s*)"+i[o.LONETILDE]+"\\s+",u[o.TILDETRIM]=new RegExp(i[o.TILDETRIM],"g"),tok("TILDE"),i[o.TILDE]="^"+i[o.LONETILDE]+i[o.XRANGEPLAIN]+"$",tok("TILDELOOSE"),i[o.TILDELOOSE]="^"+i[o.LONETILDE]+i[o.XRANGEPLAINLOOSE]+"$",tok("LONECARET"),i[o.LONECARET]="(?:\\^)",tok("CARETTRIM"),i[o.CARETTRIM]="(\\s*)"+i[o.LONECARET]+"\\s+",u[o.CARETTRIM]=new RegExp(i[o.CARETTRIM],"g"),tok("CARET"),i[o.CARET]="^"+i[o.LONECARET]+i[o.XRANGEPLAIN]+"$",tok("CARETLOOSE"),i[o.CARETLOOSE]="^"+i[o.LONECARET]+i[o.XRANGEPLAINLOOSE]+"$",tok("COMPARATORLOOSE"),i[o.COMPARATORLOOSE]="^"+i[o.GTLT]+"\\s*("+i[o.LOOSEPLAIN]+")$|^$",tok("COMPARATOR"),i[o.COMPARATOR]="^"+i[o.GTLT]+"\\s*("+i[o.FULLPLAIN]+")$|^$",tok("COMPARATORTRIM"),i[o.COMPARATORTRIM]="(\\s*)"+i[o.GTLT]+"\\s*("+i[o.LOOSEPLAIN]+"|"+i[o.XRANGEPLAIN]+")",u[o.COMPARATORTRIM]=new RegExp(i[o.COMPARATORTRIM],"g"),tok("HYPHENRANGE"),i[o.HYPHENRANGE]="^\\s*("+i[o.XRANGEPLAIN]+")\\s+-\\s+("+i[o.XRANGEPLAIN]+")\\s*$",tok("HYPHENRANGELOOSE"),i[o.HYPHENRANGELOOSE]="^\\s*("+i[o.XRANGEPLAINLOOSE]+")\\s+-\\s+("+i[o.XRANGEPLAINLOOSE]+")\\s*$",tok("STAR"),i[o.STAR]="(<|>)?=?\\s*\\*";for(var l=0;l<s;l++)r(l,i[l]),u[l]||(u[l]=new RegExp(i[l]));function parse(e,t){if(t&&"object"===_typeof(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof SemVer)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?u[o.LOOSE]:u[o.FULL]).test(e))return null;try{return new SemVer(e,t)}catch(e){return null}}function SemVer(e,t){if(t&&"object"===_typeof(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof SemVer){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof SemVer))return new SemVer(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?u[o.LOOSE]:u[o.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<a)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=parse,t.valid=function valid(e,t){var r=parse(e,t);return r?r.version:null},t.clean=function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=SemVer,SemVer.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},SemVer.prototype.toString=function(){return this.version},SemVer.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof SemVer||(e=new SemVer(e,this.options)),this.compareMain(e)||this.comparePre(e)},SemVer.prototype.compareMain=function(e){return e instanceof SemVer||(e=new SemVer(e,this.options)),compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)},SemVer.prototype.comparePre=function(e){if(e instanceof SemVer||(e=new SemVer(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],a=e.prerelease[t];if(r("prerelease compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return compareIdentifiers(n,a)}while(++t)},SemVer.prototype.compareBuild=function(e){e instanceof SemVer||(e=new SemVer(e,this.options));var t=0;do{var n=this.build[t],a=e.build[t];if(r("prerelease compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return compareIdentifiers(n,a)}while(++t)},SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=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 inc(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}},t.diff=function diff(e,t){if(eq(e,t))return null;var r=parse(e),n=parse(t),a="";if(r.prerelease.length||n.prerelease.length){a="pre";var u="prerelease"}for(var i in r)if(("major"===i||"minor"===i||"patch"===i)&&r[i]!==n[i])return a+i;return u},t.compareIdentifiers=compareIdentifiers;var c=/^[0-9]+$/;function compareIdentifiers(e,t){var r=c.test(e),n=c.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}function compare(e,t,r){return new SemVer(e,r).compare(new SemVer(t,r))}function gt(e,t,r){return compare(e,t,r)>0}function lt(e,t,r){return compare(e,t,r)<0}function eq(e,t,r){return 0===compare(e,t,r)}function neq(e,t,r){return 0!==compare(e,t,r)}function gte(e,t,r){return compare(e,t,r)>=0}function lte(e,t,r){return compare(e,t,r)<=0}function cmp(e,t,r,n){switch(t){case"===":return"object"===_typeof(e)&&(e=e.version),"object"===_typeof(r)&&(r=r.version),e===r;case"!==":return"object"===_typeof(e)&&(e=e.version),"object"===_typeof(r)&&(r=r.version),e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}function Comparator(e,t){if(t&&"object"===_typeof(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof Comparator){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof Comparator))return new Comparator(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===p?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function rcompareIdentifiers(e,t){return compareIdentifiers(t,e)},t.major=function major(e,t){return new SemVer(e,t).major},t.minor=function minor(e,t){return new SemVer(e,t).minor},t.patch=function patch(e,t){return new SemVer(e,t).patch},t.compare=compare,t.compareLoose=function compareLoose(e,t){return compare(e,t,!0)},t.compareBuild=function compareBuild(e,t,r){var n=new SemVer(e,r),a=new SemVer(t,r);return n.compare(a)||n.compareBuild(a)},t.rcompare=function rcompare(e,t,r){return compare(t,e,r)},t.sort=function sort(e,r){return e.sort((function(e,n){return t.compareBuild(e,n,r)}))},t.rsort=function rsort(e,r){return e.sort((function(e,n){return t.compareBuild(n,e,r)}))},t.gt=gt,t.lt=lt,t.eq=eq,t.neq=neq,t.gte=gte,t.lte=lte,t.cmp=cmp,t.Comparator=Comparator;var p={};function Range(e,t){if(t&&"object"===_typeof(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof Range)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Range(e.raw,t);if(e instanceof Comparator)return new Range(e.value,t);if(!(this instanceof Range))return new Range(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 isSatisfiable(e,t){for(var r=!0,n=e.slice(),a=n.pop();r&&n.length;)r=n.every((function(e){return a.intersects(e,t)})),a=n.pop();return r}function isX(e){return!e||"x"===e.toLowerCase()||"*"===e}function hyphenReplace(e,t,r,n,a,u,i,o,s,l,c,p,f){return((t=isX(r)?"":isX(n)?">="+r+".0.0":isX(a)?">="+r+"."+n+".0":">="+t)+" "+(o=isX(s)?"":isX(l)?"<"+(+s+1)+".0.0":isX(c)?"<"+s+"."+(+l+1)+".0":p?"<="+s+"."+l+"."+c+"-"+p:"<="+o)).trim()}function testSet(e,t,n){for(var a=0;a<e.length;a++)if(!e[a].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(a=0;a<e.length;a++)if(r(e[a].semver),e[a].semver!==p&&e[a].semver.prerelease.length>0){var u=e[a].semver;if(u.major===t.major&&u.minor===t.minor&&u.patch===t.patch)return!0}return!1}return!0}function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return!1}return t.test(e)}function outside(e,t,r,n){var a,u,i,o,s;switch(e=new SemVer(e,n),t=new Range(t,n),r){case">":a=gt,u=lte,i=lt,o=">",s=">=";break;case"<":a=lt,u=gte,i=gt,o="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n))return!1;for(var l=0;l<t.set.length;++l){var c=t.set[l],f=null,d=null;if(c.forEach((function(e){e.semver===p&&(e=new Comparator(">=0.0.0")),f=f||e,d=d||e,a(e.semver,f.semver,n)?f=e:i(e.semver,d.semver,n)&&(d=e)})),f.operator===o||f.operator===s)return!1;if((!d.operator||d.operator===o)&&u(e,d.semver))return!1;if(d.operator===s&&i(e,d.semver))return!1}return!0}Comparator.prototype.parse=function(e){var t=this.options.loose?u[o.COMPARATORLOOSE]:u[o.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 SemVer(r[2],this.options.loose):this.semver=p},Comparator.prototype.toString=function(){return this.value},Comparator.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===p||e===p)return!0;if("string"==typeof e)try{e=new SemVer(e,this.options)}catch(e){return!1}return cmp(e,this.operator,this.semver,this.options)},Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator))throw new TypeError("a Comparator is required");var r;if(t&&"object"===_typeof(t)||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new Range(e.value,t),satisfies(this.value,r,t));if(""===e.operator)return""===e.value||(r=new Range(this.value,t),satisfies(e.semver,r,t));var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),a=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),u=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=cmp(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=cmp(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||a||u&&i||o||s},t.Range=Range,Range.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},Range.prototype.toString=function(){return this.range},Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?u[o.HYPHENRANGELOOSE]:u[o.HYPHENRANGE];e=e.replace(n,hyphenReplace),r("hyphen replace",e),e=e.replace(u[o.COMPARATORTRIM],"$1$2$3"),r("comparator trim",e,u[o.COMPARATORTRIM]),e=(e=(e=e.replace(u[o.TILDETRIM],"$1~")).replace(u[o.CARETTRIM],"$1^")).split(/\s+/).join(" ");var a=t?u[o.COMPARATORLOOSE]:u[o.COMPARATOR],i=e.split(" ").map((function(e){return function parseComparator(e,t){return r("comp",e,t),e=function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return function replaceCaret(e,t){r("caret",e,t);var n=t.loose?u[o.CARETLOOSE]:u[o.CARET];return e.replace(n,(function(t,n,a,u,i){var o;return r("caret",e,t,n,a,u,i),isX(n)?o="":isX(a)?o=">="+n+".0.0 <"+(+n+1)+".0.0":isX(u)?o="0"===n?">="+n+"."+a+".0 <"+n+"."+(+a+1)+".0":">="+n+"."+a+".0 <"+(+n+1)+".0.0":i?(r("replaceCaret pr",i),o="0"===n?"0"===a?">="+n+"."+a+"."+u+"-"+i+" <"+n+"."+a+"."+(+u+1):">="+n+"."+a+"."+u+"-"+i+" <"+n+"."+(+a+1)+".0":">="+n+"."+a+"."+u+"-"+i+" <"+(+n+1)+".0.0"):(r("no pr"),o="0"===n?"0"===a?">="+n+"."+a+"."+u+" <"+n+"."+a+"."+(+u+1):">="+n+"."+a+"."+u+" <"+n+"."+(+a+1)+".0":">="+n+"."+a+"."+u+" <"+(+n+1)+".0.0"),r("caret return",o),o}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return function replaceTilde(e,t){var n=t.loose?u[o.TILDELOOSE]:u[o.TILDE];return e.replace(n,(function(t,n,a,u,i){var o;return r("tilde",e,t,n,a,u,i),isX(n)?o="":isX(a)?o=">="+n+".0.0 <"+(+n+1)+".0.0":isX(u)?o=">="+n+"."+a+".0 <"+n+"."+(+a+1)+".0":i?(r("replaceTilde pr",i),o=">="+n+"."+a+"."+u+"-"+i+" <"+n+"."+(+a+1)+".0"):o=">="+n+"."+a+"."+u+" <"+n+"."+(+a+1)+".0",r("tilde return",o),o}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function replaceXRanges(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function replaceXRange(e,t){e=e.trim();var n=t.loose?u[o.XRANGELOOSE]:u[o.XRANGE];return e.replace(n,(function(n,a,u,i,o,s){r("xRange",e,n,a,u,i,o,s);var l=isX(u),c=l||isX(i),p=c||isX(o),f=p;return"="===a&&f&&(a=""),s=t.includePrerelease?"-0":"",l?n=">"===a||"<"===a?"<0.0.0-0":"*":a&&f?(c&&(i=0),o=0,">"===a?(a=">=",c?(u=+u+1,i=0,o=0):(i=+i+1,o=0)):"<="===a&&(a="<",c?u=+u+1:i=+i+1),n=a+u+"."+i+"."+o+s):c?n=">="+u+".0.0"+s+" <"+(+u+1)+".0.0"+s:p&&(n=">="+u+"."+i+".0"+s+" <"+u+"."+(+i+1)+".0"+s),r("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function replaceStars(e,t){return r("replaceStars",e,t),e.trim().replace(u[o.STAR],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter((function(e){return!!e.match(a)}))),i=i.map((function(e){return new Comparator(e,this.options)}),this)},Range.prototype.intersects=function(e,t){if(!(e instanceof Range))throw new TypeError("a Range is required");return this.set.some((function(r){return isSatisfiable(r,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},Range.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new SemVer(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(testSet(this.set[t],e,this.options))return!0;return!1},t.satisfies=satisfies,t.maxSatisfying=function maxSatisfying(e,t,r){var n=null,a=null;try{var u=new Range(t,r)}catch(e){return null}return e.forEach((function(e){u.test(e)&&(n&&-1!==a.compare(e)||(a=new SemVer(n=e,r)))})),n},t.minSatisfying=function minSatisfying(e,t,r){var n=null,a=null;try{var u=new Range(t,r)}catch(e){return null}return e.forEach((function(e){u.test(e)&&(n&&1!==a.compare(e)||(a=new SemVer(n=e,r)))})),n},t.minVersion=function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r))return r;if(r=new SemVer("0.0.0-0"),e.test(r))return r;r=null;for(var n=0;n<e.set.length;++n)e.set[n].forEach((function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!gt(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 validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}},t.ltr=function ltr(e,t,r){return outside(e,t,"<",r)},t.gtr=function gtr(e,t,r){return outside(e,t,">",r)},t.outside=outside,t.prerelease=function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function intersects(e,t,r){return e=new Range(e,r),t=new Range(t,r),e.intersects(t)},t.coerce=function coerce(e,t){if(e instanceof SemVer)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=u[o.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),u[o.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;u[o.COERCERTL].lastIndex=-1}else r=e.match(u[o.COERCE]);return null===r?null:parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}})),Z=(Q.SEMVER_SPEC_VERSION,Q.re,Q.src,Q.tokens,Q.parse,Q.valid,Q.clean,Q.SemVer,Q.inc,Q.diff,Q.compareIdentifiers,Q.rcompareIdentifiers,Q.major,Q.minor,Q.patch,Q.compare,Q.compareLoose,Q.compareBuild,Q.rcompare,Q.sort,Q.rsort,Q.gt,Q.lt,Q.eq,Q.neq,Q.gte,Q.lte,Q.cmp,Q.Comparator,Q.Range,Q.toComparators,Q.satisfies,Q.maxSatisfying,Q.minSatisfying,Q.minVersion,Q.validRange,Q.ltr,Q.gtr,Q.outside,Q.prerelease,Q.intersects,Q.coerce,function arrayify(e,t){return Object.keys(e).reduce((function(r,n){return r.concat(Object.assign(_defineProperty({},t,n),e[n]))}),[])}),ee=createCommonjsModule((function(e){e.exports=function dedent(e){var t=void 0;t="string"==typeof e?[e]:e.raw;for(var r="",n=0;n<t.length;n++)r+=t[n].replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`"),n<(arguments.length<=1?0:arguments.length-1)&&(r+=arguments.length<=n+1?void 0:arguments[n+1]);var a=r.split("\n"),u=null;return a.forEach((function(e){var t=e.match(/^(\s+)\S+/);if(t){var r=t[1].length;u=u?Math.min(u,r):r}})),null!==u&&(r=a.map((function(e){return" "===e[0]?e.slice(u):e})).join("\n")),(r=r.trim()).replace(/\\n/g,"\n")}}));function _templateObject6(){var e=_taggedTemplateLiteral(["\n      Require either '@prettier' or '@format' to be present in the file's first docblock comment\n      in order for it to be formatted.\n    "]);return _templateObject6=function _templateObject6(){return e},e}function _templateObject5(){var e=_taggedTemplateLiteral(["\n      Format code starting at a given character offset.\n      The range will extend backwards to the start of the first line containing the selected statement.\n      This option cannot be used with --cursor-offset.\n    "]);return _templateObject5=function _templateObject5(){return e},e}function _templateObject4(){var e=_taggedTemplateLiteral(["\n      Format code ending at a given character offset (exclusive).\n      The range will extend forwards to the end of the selected statement.\n      This option cannot be used with --cursor-offset.\n    "]);return _templateObject4=function _templateObject4(){return e},e}function _templateObject3(){var e=_taggedTemplateLiteral(["\n      Custom directory that contains prettier plugins in node_modules subdirectory.\n      Overrides default behavior when plugins are searched relatively to the location of Prettier.\n      Multiple values are accepted.\n    "]);return _templateObject3=function _templateObject3(){return e},e}function _templateObject2(){var e=_taggedTemplateLiteral(["\n          Maintain existing\n          (mixed values within one file are normalised by looking at what's used after the first line)\n        "]);return _templateObject2=function _templateObject2(){return e},e}function _templateObject(){var e=_taggedTemplateLiteral(["\n      Print (to stderr) where a cursor at the given position would move to after formatting.\n      This option cannot be used with --range-start and --range-end.\n    "]);return _templateObject=function _templateObject(){return e},e}var te={CATEGORY_CONFIG:"Config",CATEGORY_EDITOR:"Editor",CATEGORY_FORMAT:"Format",CATEGORY_OTHER:"Other",CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:"Global",CATEGORY_SPECIAL:"Special",options:{cursorOffset:{since:"1.4.0",category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:ee(_templateObject()),cliCategory:"Editor"},endOfLine:{since:"1.15.0",category:"Global",type:"choice",default:"auto",description:"Which end of line characters to apply.",choices:[{value:"auto",description:ee(_templateObject2())},{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"}]},filepath:{since:"1.4.0",category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{since:"0.0.10",category:"Global",type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:function exception(e){return"string"==typeof e||"function"==typeof e},choices:[{value:"flow",description:"Flow"},{value:"babylon",description:"JavaScript",deprecated:"1.16.0",redirect:"babel"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"postcss",since:"1.4.0",description:"CSS/Less/SCSS",deprecated:"1.7.1",redirect:"css"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:null,description:"Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:function exception(e){return"string"==typeof e||"object"===_typeof(e)},cliName:"plugin",cliCategory:"Config"},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:ee(_templateObject3()),exception:function exception(e){return"string"==typeof e||"object"===_typeof(e)},cliName:"plugin-search-dir",cliCategory:"Config"},printWidth:{since:"0.0.0",category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{since:"1.4.0",category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:ee(_templateObject4()),cliCategory:"Editor"},rangeStart:{since:"1.4.0",category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:ee(_templateObject5()),cliCategory:"Editor"},requirePragma:{since:"1.7.0",category:"Special",type:"boolean",default:!1,description:ee(_templateObject6()),cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useFlowParser:{since:"0.0.0",category:"Global",type:"boolean",default:[{since:"0.0.0",value:!1},{since:"1.15.0",value:void 0}],deprecated:"0.0.10",description:"Use flow parser.",redirect:{option:"parser",value:"flow"},cliName:"flow-parser"},useTabs:{since:"1.0.0",category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."}}},re=getCjsExportFromNamespace(s),ne=re.version,ae=te.options,ue={getSupportInfo:function getSupportInfo(e,t){t=Object.assign({plugins:[],showUnreleased:!1,showDeprecated:!1,showInternal:!1},t),e||(e=ne.split("-",1)[0]);var r=t.plugins,n=Z(Object.assign(r.reduce((function(e,t){return Object.assign(e,t.options)}),{}),ae),"name").sort((function(e,t){return e.name===t.name?0:e.name<t.name?-1:1})).filter(filterSince).filter(filterDeprecated).map(mapDeprecated).map((function mapInternal(e){if(t.showInternal)return e;var r=Object.assign({},e);return delete r.cliName,delete r.cliCategory,delete r.cliDescription,r})).map((function(e){var t=Object.assign({},e);return Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(filterSince).sort((function(e,t){return Q.compare(t.since,e.since)}))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter(filterSince).filter(filterDeprecated).map(mapDeprecated)),t})).map((function(e){var t=r.filter((function(t){return t.defaultOptions&&void 0!==t.defaultOptions[e.name]})).reduce((function(t,r){return t[r.name]=r.defaultOptions[e.name],t}),{});return Object.assign(e,{pluginDefaults:t})})),a=Q.lt(e,"1.7.1"),u=Q.lt(e,"1.16.0");return{languages:r.reduce((function(e,t){return e.concat(t.languages||[])}),[]).filter(filterSince).map((function(e){return"Markdown"===e.name?Object.assign({},e,{parsers:["markdown"]}):"TypeScript"===e.name?Object.assign({},e,{parsers:["typescript"]}):u&&-1!==e.parsers.indexOf("babel")?Object.assign({},e,{parsers:e.parsers.map((function(e){return"babel"===e?"babylon":e}))}):!a||"CSS"!==e.name&&"CSS"!==e.group?e:Object.assign({},e,{parsers:["postcss"]})})),options:n};function filterSince(r){return t.showUnreleased||!("since"in r)||r.since&&Q.gte(e,r.since)}function filterDeprecated(r){return t.showDeprecated||!("deprecated"in r)||r.deprecated&&Q.lt(e,r.deprecated)}function mapDeprecated(e){if(!e.deprecated||t.showDeprecated)return e;var r=Object.assign({},e);return delete r.deprecated,delete r.redirect,r}}},ie=function extendStatics(e,t){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},oe=function __assign(){return(oe=Object.assign||function __assign(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function __values(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function next(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function __read(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,u=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=u.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=u.return)&&r.call(u)}finally{if(a)throw a.error}}return i}function __await(e){return this instanceof __await?(this.v=e,this):new __await(e)}var se=Object.freeze({__proto__:null,__extends:function __extends(e,t){function __(){this.constructor=e}ie(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},get __assign(){return oe},__rest:function __rest(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 a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r},__decorate:function __decorate(e,t,r,n){var a,u=arguments.length,i=u<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(u<3?a(i):u>3?a(t,r,i):a(t,r))||i);return u>3&&i&&Object.defineProperty(t,r,i),i},__param:function __param(e,t){return function(r,n){t(r,n,e)}},__metadata:function __metadata(e,t){if("object"===("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function __awaiter(e,t,r,n){return new(r||(r=Promise))((function(a,u){function fulfilled(e){try{step(n.next(e))}catch(e){u(e)}}function rejected(e){try{step(n.throw(e))}catch(e){u(e)}}function step(e){e.done?a(e.value):new r((function(t){t(e.value)})).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))},__generator:function __generator(e,t){var r,n,a,u,i={label:0,sent:function sent(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(o){return function step(u){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,o])}}},__exportStar:function __exportStar(e,t){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])},__values:__values,__read:__read,__spread:function __spread(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read(arguments[t]));return e},__spreadArrays:function __spreadArrays(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),a=0;for(t=0;t<r;t++)for(var u=arguments[t],i=0,o=u.length;i<o;i++,a++)n[a]=u[i];return n},__await:__await,__asyncGenerator:function __asyncGenerator(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,a=r.apply(e,t||[]),u=[];return n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n;function verb(e){a[e]&&(n[e]=function(t){return new Promise((function(r,n){u.push([e,t,r,n])>1||resume(e,t)}))})}function resume(e,t){try{!function step(e){e.value instanceof __await?Promise.resolve(e.value.v).then(fulfill,reject):settle(u[0][2],e)}(a[e](t))}catch(e){settle(u[0][3],e)}}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){e(t),u.shift(),u.length&&resume(u[0][0],u[0][1])}},__asyncDelegator:function __asyncDelegator(e){var t,r;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(n,a){t[n]=e[n]?function(t){return(r=!r)?{value:__await(e[n](t)),done:"return"===n}:a?a(t):t}:a}},__asyncValues:function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=__values(e),t={},verb("next"),verb("throw"),verb("return"),t[Symbol.asyncIterator]=function(){return this},t);function verb(r){t[r]=e[r]&&function(t){return new Promise((function(n,a){!function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,a,(t=e[r](t)).done,t.value)}))}}},__makeTemplateObject:function __makeTemplateObject(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function __importStar(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 __importDefault(e){return e&&e.__esModule?e:{default:e}}}),le=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:function key(e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e)},value:function value(e){if(null===e||"object"!==_typeof(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 pair(e){var r=e.key,n=e.value;return t.apiDescriptor.value(_defineProperty({},r,n))}}}));unwrapExports(le),le.apiDescriptor;var ce=getCjsExportFromNamespace(se),pe=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ce.__exportStar(le,t)}));unwrapExports(pe);var fe=/[|\\{}()[\]^$+*?.]/g,de=function escapeStringRegexp(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(fe,"\\$&")},me={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]},he=createCommonjsModule((function(e){var t={};for(var r in me)me.hasOwnProperty(r)&&(t[me[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 a in n)if(n.hasOwnProperty(a)){if(!("channels"in n[a]))throw new Error("missing channels property: "+a);if(!("labels"in n[a]))throw new Error("missing channel labels property: "+a);if(n[a].labels.length!==n[a].channels)throw new Error("channel and label counts mismatch: "+a);var u=n[a].channels,i=n[a].labels;delete n[a].channels,delete n[a].labels,Object.defineProperty(n[a],"channels",{value:u}),Object.defineProperty(n[a],"labels",{value:i})}n.rgb.hsl=function(e){var t,r,n=e[0]/255,a=e[1]/255,u=e[2]/255,i=Math.min(n,a,u),o=Math.max(n,a,u),s=o-i;return o===i?t=0:n===o?t=(a-u)/s:a===o?t=2+(u-n)/s:u===o&&(t=4+(n-a)/s),(t=Math.min(60*t,360))<0&&(t+=360),r=(i+o)/2,[t,100*(o===i?0:r<=.5?s/(o+i):s/(2-o-i)),100*r]},n.rgb.hsv=function(e){var t,r,n=e[0],a=e[1],u=e[2],i=Math.min(n,a,u),o=Math.max(n,a,u),s=o-i;return r=0===o?0:s/o*1e3/10,o===i?t=0:n===o?t=(a-u)/s:a===o?t=2+(u-n)/s:u===o&&(t=4+(n-a)/s),(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],a=e[2];return[n.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,a))*100,100*(a=1-1/255*Math.max(t,Math.max(r,a)))]},n.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,a=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-a)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},n.rgb.keyword=function(e){var r=t[e];if(r)return r;var n,a,u,i=1/0;for(var o in me)if(me.hasOwnProperty(o)){var s=me[o],l=(a=e,u=s,Math.pow(a[0]-u[0],2)+Math.pow(a[1]-u[1],2)+Math.pow(a[2]-u[2],2));l<i&&(i=l,n=o)}return n},n.keyword.rgb=function(e){return me[e]},n.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*(.4124*(t=t>.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],a=t[1],u=t[2];return a/=100,u/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(r-a),200*(a-(u=u>.008856?Math.pow(u,1/3):7.787*u+16/116))]},n.hsl.rgb=function(e){var t,r,n,a,u,i=e[0]/360,o=e[1]/100,s=e[2]/100;if(0===o)return[u=255*s,u,u];t=2*s-(r=s<.5?s*(1+o):s+o-s*o),a=[0,0,0];for(var l=0;l<3;l++)(n=i+1/3*-(l-1))<0&&n++,n>1&&n--,u=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,a[l]=255*u;return a},n.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,a=r,u=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,a*=u<=1?u:2-u,[t,100*(0===n?2*a/(u+a):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,a=Math.floor(t)%6,u=t-Math.floor(t),i=255*n*(1-r),o=255*n*(1-r*u),s=255*n*(1-r*(1-u));switch(n*=255,a){case 0:return[n,s,i];case 1:return[o,n,i];case 2:return[i,n,s];case 3:return[i,o,n];case 4:return[s,i,n];case 5:return[n,i,o]}},n.hsv.hsl=function(e){var t,r,n,a=e[0],u=e[1]/100,i=e[2]/100,o=Math.max(i,.01);return n=(2-u)*i,r=u*o,[a,100*(r=(r/=(t=(2-u)*o)<=1?t:2-t)||0),100*(n/=2)]},n.hwb.rgb=function(e){var t,r,n,a,u,i,o,s=e[0]/360,l=e[1]/100,c=e[2]/100,p=l+c;switch(p>1&&(l/=p,c/=p),n=6*s-(t=Math.floor(6*s)),0!=(1&t)&&(n=1-n),a=l+n*((r=1-c)-l),t){default:case 6:case 0:u=r,i=a,o=l;break;case 1:u=a,i=r,o=l;break;case 2:u=l,i=r,o=a;break;case 3:u=l,i=a,o=r;break;case 4:u=a,i=l,o=r;break;case 5:u=r,i=l,o=a}return[255*u,255*i,255*o]},n.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},n.xyz.rgb=function(e){var t,r,n,a=e[0]/100,u=e[1]/100,i=e[2]/100;return r=-.9689*a+1.8758*u+.0415*i,n=.0557*a+-.204*u+1.057*i,t=(t=3.2406*a+-1.5372*u+-.4986*i)>.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,a=e[0];t=e[1]/500+(r=(a+16)/116),n=r-e[2]/200;var u=Math.pow(r,3),i=Math.pow(t,3),o=Math.pow(n,3);return r=u>.008856?u:(r-16/116)/7.787,t=i>.008856?i:(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],a=e[2];return(t=360*Math.atan2(a,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+a*a),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],a=e[2],u=1 in arguments?arguments[1]:n.rgb.hsv(e)[2];if(0===(u=Math.round(u/50)))return 30;var i=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===u&&(i+=60),i},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,a=e[2]/255,u=Math.max(Math.max(r,n),a),i=Math.min(Math.min(r,n),a),o=u-i;return t=o<=0?0:u===r?(n-a)/o%6:u===n?2+(a-r)/o:4+(r-n)/o+4,t/=6,[360*(t%=1),100*o,100*(o<1?i/(1-o):0)]},n.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,a=0;return(n=r<.5?2*t*r:2*t*(1-r))<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},n.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},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 a,u=[0,0,0],i=t%1*6,o=i%1,s=1-o;switch(Math.floor(i)){case 0:u[0]=1,u[1]=o,u[2]=0;break;case 1:u[0]=s,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=o;break;case 3:u[0]=0,u[1]=s,u[2]=1;break;case 4:u[0]=o,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=s}return a=(1-r)*n,[255*(r*u[0]+a),255*(r*u[1]+a),255*(r*u[2]+a)]},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,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},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]}})),ge=(he.rgb,he.hsl,he.hsv,he.hwb,he.cmyk,he.xyz,he.lab,he.lch,he.hex,he.keyword,he.ansi16,he.ansi256,he.hcg,he.apple,he.gray,Object.keys(he));function deriveBFS(e){var t=function buildGraph(){for(var e={},t=ge.length,r=0;r<t;r++)e[ge[r]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),a=Object.keys(he[n]),u=a.length,i=0;i<u;i++){var o=a[i],s=t[o];-1===s.distance&&(s.distance=t[n].distance+1,s.parent=n,r.unshift(o))}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){for(var r=[t[e].parent,e],n=he[t[e].parent][e],a=t[e].parent;t[a].parent;)r.unshift(t[a].parent),n=link(he[t[a].parent][a],n),a=t[a].parent;return n.conversion=r,n}var De={};Object.keys(he).forEach((function(e){De[e]={},Object.defineProperty(De[e],"channels",{value:he[e].channels}),Object.defineProperty(De[e],"labels",{value:he[e].labels});var t=function route(e){for(var t=deriveBFS(e),r={},n=Object.keys(t),a=n.length,u=0;u<a;u++){var i=n[u];null!==t[i].parent&&(r[i]=wrapConversion(i,t))}return r}(e);Object.keys(t).forEach((function(r){var n=t[r];De[e][r]=function wrapRounded(e){var t=function wrappedFn(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"===_typeof(r))for(var n=r.length,a=0;a<n;a++)r[a]=Math.round(r[a]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(n),De[e][r].raw=function wrapRaw(e){var t=function wrappedFn(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))}));var ye,Ce=De,ve=createCommonjsModule((function(e){var t=function wrapAnsi16(e,t){return function(){var r=e.apply(Ce,arguments);return"[".concat(r+t,"m")}},r=function wrapAnsi256(e,t){return function(){var r=e.apply(Ce,arguments);return"[".concat(38+t,";5;").concat(r,"m")}},n=function wrapAnsi16m(e,t){return function(){var r=e.apply(Ce,arguments);return"[".concat(38+t,";2;").concat(r[0],";").concat(r[1],";").concat(r[2],"m")}};Object.defineProperty(e,"exports",{enumerable:!0,get:function assembleStyles(){var e=new Map,a={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]}};a.color.grey=a.color.gray;for(var u=0,i=Object.keys(a);u<i.length;u++){for(var o=i[u],s=a[o],l=0,c=Object.keys(s);l<c.length;l++){var p=c[l],f=s[p];a[p]={open:"[".concat(f[0],"m"),close:"[".concat(f[1],"m")},s[p]=a[p],e.set(f[0],f[1])}Object.defineProperty(a,o,{value:s,enumerable:!1}),Object.defineProperty(a,"codes",{value:e,enumerable:!1})}var d=function ansi2ansi(e){return e},m=function rgb2rgb(e,t,r){return[e,t,r]};a.color.close="",a.bgColor.close="",a.color.ansi={ansi:t(d,0)},a.color.ansi256={ansi256:r(d,0)},a.color.ansi16m={rgb:n(m,0)},a.bgColor.ansi={ansi:t(d,10)},a.bgColor.ansi256={ansi256:r(d,10)},a.bgColor.ansi16m={rgb:n(m,10)};for(var h=0,g=Object.keys(Ce);h<g.length;h++){var D=g[h];if("object"===_typeof(Ce[D])){var y=Ce[D];"ansi16"===D&&(D="ansi"),"ansi16"in y&&(a.color.ansi[D]=t(y.ansi16,0),a.bgColor.ansi[D]=t(y.ansi16,10)),"ansi256"in y&&(a.color.ansi256[D]=r(y.ansi256,0),a.bgColor.ansi256[D]=r(y.ansi256,10)),"rgb"in y&&(a.color.ansi16m[D]=n(y.rgb,0),a.bgColor.ansi16m[D]=n(y.rgb,10))}}return a}})})),Ee={EOL:"\n"},Ae=function hasFlag(e,t){t=t||Y.argv;var r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),a=t.indexOf("--");return-1!==n&&(-1===a||n<a)},Fe=Y.env;function getSupportLevel(e){return function translateLevel(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function supportsColor(e){if(!1===ye)return 0;if(Ae("color=16m")||Ae("color=full")||Ae("color=truecolor"))return 3;if(Ae("color=256"))return 2;if(e&&!e.isTTY&&!0!==ye)return 0;var t=ye?1:0;if("win32"===Y.platform){var r=Ee.release().split(".");return Number(Y.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in Fe)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in Fe}))||"codeship"===Fe.CI_NAME?1:t;if("TEAMCITY_VERSION"in Fe)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Fe.TEAMCITY_VERSION)?1:0;if("truecolor"===Fe.COLORTERM)return 3;if("TERM_PROGRAM"in Fe){var n=parseInt((Fe.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Fe.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Fe.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Fe.TERM)?1:"COLORTERM"in Fe?1:(Fe.TERM,t)}(e))}Ae("no-color")||Ae("no-colors")||Ae("color=false")?ye=!1:(Ae("color")||Ae("colors")||Ae("color=true")||Ae("color=always"))&&(ye=!0),"FORCE_COLOR"in Fe&&(ye=0===Fe.FORCE_COLOR.length||0!==parseInt(Fe.FORCE_COLOR,10));var be={supportsColor:getSupportLevel,stdout:getSupportLevel(Y.stdout),stderr:getSupportLevel(Y.stderr)},Se=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,xe=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,we=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Te=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Be=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Be.get(e)||e}function parseArguments(e,t){var r,n=[],a=t.trim().split(/\s*,\s*/g),u=!0,i=!1,o=void 0;try{for(var s,l=a[Symbol.iterator]();!(u=(s=l.next()).done);u=!0){var c=s.value;if(isNaN(c)){if(!(r=c.match(we)))throw new Error("Invalid Chalk template style argument: ".concat(c," (in style '").concat(e,"')"));n.push(r[2].replace(Te,(function(e,t,r){return t?unescape(t):r})))}else n.push(Number(c))}}catch(e){i=!0,o=e}finally{try{u||null==l.return||l.return()}finally{if(i)throw o}}return n}function parseStyle(e){xe.lastIndex=0;for(var t,r=[];null!==(t=xe.exec(e));){var n=t[1];if(t[2]){var a=parseArguments(n,t[2]);r.push([n].concat(a))}else r.push([n])}return r}function buildStyle(e,t){var r={},n=!0,a=!1,u=void 0;try{for(var i,o=t[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value,l=!0,c=!1,p=void 0;try{for(var f,d=s.styles[Symbol.iterator]();!(l=(f=d.next()).done);l=!0){var m=f.value;r[m[0]]=s.inverse?null:m.slice(1)}}catch(e){c=!0,p=e}finally{try{l||null==d.return||d.return()}finally{if(c)throw p}}}}catch(e){a=!0,u=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw u}}for(var h=e,g=0,D=Object.keys(r);g<D.length;g++){var y=D[g];if(Array.isArray(r[y])){if(!(y in h))throw new Error("Unknown Chalk style: ".concat(y));h=r[y].length>0?h[y].apply(h,r[y]):h[y]}}return h}var ke=function templates(e,t){var r=[],n=[],a=[];if(t.replace(Se,(function(t,u,i,o,s,l){if(u)a.push(unescape(u));else if(o){var c=a.join("");a=[],n.push(0===r.length?c:buildStyle(e,r)(c)),r.push({inverse:i,styles:parseStyle(o)})}else if(s){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");n.push(buildStyle(e,r)(a.join(""))),a=[],r.pop()}else a.push(l)})),n.push(a.join("")),r.length>0){var u="Chalk template literal is missing ".concat(r.length," closing bracket").concat(1===r.length?"":"s"," (`}`)");throw new Error(u)}return n.join("")},Ne=createCommonjsModule((function(e){var t=be.stdout,r="win32"===Y.platform&&!(Y.env.TERM||"").toLowerCase().startsWith("xterm"),n=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),u=Object.create(null);function applyOptions(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 Chalk(e){if(!this||!(this instanceof Chalk)||this.template){var t={};return applyOptions(t,e),t.template=function(){var e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,Chalk.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=Chalk,t.template}applyOptions(this,e)}r&&(ve.blue.open="");for(var i=function _loop(){var e=s[o];ve[e].closeRe=new RegExp(de(ve[e].close),"g"),u[e]={get:function get(){var t=ve[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}},o=0,s=Object.keys(ve);o<s.length;o++)i();u.visible={get:function get(){return build.call(this,this._styles||[],!0,"visible")}},ve.color.closeRe=new RegExp(de(ve.color.close),"g");for(var l=function _loop2(){var e=p[c];if(a.has(e))return"continue";u[e]={get:function get(){var t=this.level;return function(){var r=ve.color[n[t]][e].apply(null,arguments),a={open:r,close:ve.color.close,closeRe:ve.color.closeRe};return build.call(this,this._styles?this._styles.concat(a):[a],this._empty,e)}}}},c=0,p=Object.keys(ve.color.ansi);c<p.length;c++)l();ve.bgColor.closeRe=new RegExp(de(ve.bgColor.close),"g");for(var f=function _loop3(){var e=m[d];if(a.has(e))return"continue";var t="bg"+e[0].toUpperCase()+e.slice(1);u[t]={get:function get(){var t=this.level;return function(){var r=ve.bgColor[n[t]][e].apply(null,arguments),a={open:r,close:ve.bgColor.close,closeRe:ve.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(a):[a],this._empty,e)}}}},d=0,m=Object.keys(ve.bgColor.ansi);d<m.length;d++)f();var h=Object.defineProperties((function(){}),u);function build(e,t,r){var n=function builder(){return applyStyle.apply(builder,arguments)};n._styles=e,n._empty=t;var a=this;return Object.defineProperty(n,"level",{enumerable:!0,get:function get(){return a.level},set:function set(e){a.level=e}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:function get(){return a.enabled},set:function set(e){a.enabled=e}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=h,n}function applyStyle(){var e=arguments,t=e.length,n=String(arguments[0]);if(0===t)return"";if(t>1)for(var a=1;a<t;a++)n+=" "+e[a];if(!this.enabled||this.level<=0||!n)return this._empty?"":n;var u=ve.dim.open;r&&this.hasGrey&&(ve.dim.open="");var i=!0,o=!1,s=void 0;try{for(var l,c=this._styles.slice().reverse()[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var p=l.value;n=(n=p.open+n.replace(p.closeRe,p.open)+p.close).replace(/\r?\n/g,"".concat(p.close,"$&").concat(p.open))}}catch(e){o=!0,s=e}finally{try{i||null==c.return||c.return()}finally{if(o)throw s}}return ve.dim.open=u,n}function chalkTag(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");for(var r=[].slice.call(arguments,2),n=[t.raw[0]],a=1;a<t.length;a++)n.push(String(r[a-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[a]));return ke(e,n.join(""))}Object.defineProperties(Chalk.prototype,u),e.exports=Chalk(),e.exports.supportsColor=t,e.exports.default=e.exports})),Oe=(Ne.supportsColor,createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonDeprecatedHandler=function(e,t,r){var n=r.descriptor,a=["".concat(Ne.default.yellow("string"==typeof e?n.key(e):n.pair(e))," is deprecated")];return t&&a.push("we now treat it as ".concat(Ne.default.blue("string"==typeof t?n.key(t):n.pair(t)))),a.join("; ")+"."}})));unwrapExports(Oe),Oe.commonDeprecatedHandler;var Pe=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ce.__exportStar(Oe,t)}));unwrapExports(Pe);var Ie=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonInvalidHandler=function(e,t,r){return["Invalid ".concat(Ne.default.red(r.descriptor.key(e))," value."),"Expected ".concat(Ne.default.blue(r.schemas[e].expected(r)),","),"but received ".concat(Ne.default.red(r.descriptor.value(t)),".")].join(" ")}}));unwrapExports(Ie),Ie.commonInvalidHandler;var Le=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ce.__exportStar(Ie,t)}));unwrapExports(Le);var _e=[],je=[],Me=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.levenUnknownHandler=function(e,t,r){var n=r.descriptor,a=r.logger,u=r.schemas,i=["Ignored unknown option ".concat(Ne.default.yellow(n.pair({key:e,value:t})),".")],o=Object.keys(u).sort().find((function(t){return function leven(e,t){if(e===t)return 0;var r=e;e.length>t.length&&(e=t,t=r);var n=e.length,a=t.length;if(0===n)return a;if(0===a)return n;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-a);)n--,a--;if(0===n)return a;for(var u,i,o,s,l=0;l<n&&e.charCodeAt(l)===t.charCodeAt(l);)l++;if(a-=l,0==(n-=l))return a;for(var c=0,p=0;c<n;)je[l+c]=e.charCodeAt(l+c),_e[c]=++c;for(;p<a;)for(u=t.charCodeAt(l+p),o=p++,i=p,c=0;c<n;c++)s=u===je[l+c]?o:o+1,o=_e[c],i=_e[c]=o>i?s>i?i+1:s:s>o?o+1:s;return i}(e,t)<3}));o&&i.push("Did you mean ".concat(Ne.default.blue(n.key(o)),"?")),a.warn(i.join(" "))}}));unwrapExports(Me),Me.levenUnknownHandler;var Re=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ce.__exportStar(Me,t)}));unwrapExports(Re);var $e=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ce.__exportStar(Pe,t),ce.__exportStar(Le,t),ce.__exportStar(Re,t)}));unwrapExports($e);var We=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function createSchema(e,t){var a=new e(t),u=Object.create(a),i=!0,o=!1,s=void 0;try{for(var l,c=r[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var p=l.value;p in t&&(u[p]=normalizeHandler(t[p],a,n.prototype[p].length))}}catch(e){o=!0,s=e}finally{try{i||null==c.return||c.return()}finally{if(o)throw s}}return u}t.createSchema=createSchema;var n=function(){function Schema(e){_classCallCheck(this,Schema),this.name=e.name}return _createClass(Schema,[{key:"default",value:function _default(e){}},{key:"expected",value:function expected(e){return"nothing"}},{key:"validate",value:function validate(e,t){return!1}},{key:"deprecated",value:function deprecated(e,t){return!1}},{key:"forward",value:function forward(e,t){}},{key:"redirect",value:function redirect(e,t){}},{key:"overlap",value:function overlap(e,t,r){return e}},{key:"preprocess",value:function preprocess(e,t){return e}},{key:"postprocess",value:function postprocess(e,t){return e}}],[{key:"create",value:function create(e){return createSchema(this,e)}}]),Schema}();function normalizeHandler(e,t,r){return"function"==typeof e?function(){for(var n=arguments.length,a=new Array(n),u=0;u<n;u++)a[u]=arguments[u];return e.apply(void 0,_toConsumableArray(a.slice(0,r-1)).concat([t],_toConsumableArray(a.slice(r-1))))}:function(){return e}}t.Schema=n}));unwrapExports(We),We.createSchema,We.Schema;var Ve=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function AliasSchema(e){var t;return _classCallCheck(this,AliasSchema),(t=_possibleConstructorReturn(this,_getPrototypeOf(AliasSchema).call(this,e)))._sourceName=e.sourceName,t}return _inherits(AliasSchema,e),_createClass(AliasSchema,[{key:"expected",value:function expected(e){return e.schemas[this._sourceName].expected(e)}},{key:"validate",value:function validate(e,t){return t.schemas[this._sourceName].validate(e,t)}},{key:"redirect",value:function redirect(e,t){return this._sourceName}}]),AliasSchema}(We.Schema);t.AliasSchema=r}));unwrapExports(Ve),Ve.AliasSchema;var qe=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function AnySchema(){return _classCallCheck(this,AnySchema),_possibleConstructorReturn(this,_getPrototypeOf(AnySchema).apply(this,arguments))}return _inherits(AnySchema,e),_createClass(AnySchema,[{key:"expected",value:function expected(){return"anything"}},{key:"validate",value:function validate(){return!0}}]),AnySchema}(We.Schema);t.AnySchema=r}));unwrapExports(qe),qe.AnySchema;var Ue=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function ArraySchema(e){var t;_classCallCheck(this,ArraySchema);var r=e.valueSchema,n=e.name,a=void 0===n?r.name:n,u=ce.__rest(e,["valueSchema","name"]);return(t=_possibleConstructorReturn(this,_getPrototypeOf(ArraySchema).call(this,Object.assign({},u,{name:a}))))._valueSchema=r,t}return _inherits(ArraySchema,e),_createClass(ArraySchema,[{key:"expected",value:function expected(e){return"an array of ".concat(this._valueSchema.expected(e))}},{key:"validate",value:function validate(e,t){if(!Array.isArray(e))return!1;var r=[],n=!0,a=!1,u=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value,l=t.normalizeValidateResult(this._valueSchema.validate(s,t),s);!0!==l&&r.push(l.value)}}catch(e){a=!0,u=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw u}}return 0===r.length||{value:r}}},{key:"deprecated",value:function deprecated(e,t){var r=[],n=!0,a=!1,u=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value,l=t.normalizeDeprecatedResult(this._valueSchema.deprecated(s,t),s);!1!==l&&r.push.apply(r,_toConsumableArray(l.map((function(e){return{value:[e.value]}}))))}}catch(e){a=!0,u=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw u}}return r}},{key:"forward",value:function forward(e,t){var r=[],n=!0,a=!1,u=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value,l=t.normalizeForwardResult(this._valueSchema.forward(s,t),s);r.push.apply(r,_toConsumableArray(l.map(wrapTransferResult)))}}catch(e){a=!0,u=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw u}}return r}},{key:"redirect",value:function redirect(e,t){var r=[],redirect=[],n=!0,a=!1,u=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value,l=t.normalizeRedirectResult(this._valueSchema.redirect(s,t),s);"remain"in l&&r.push(l.remain),redirect.push.apply(redirect,_toConsumableArray(l.redirect.map(wrapTransferResult)))}}catch(e){a=!0,u=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw u}}return 0===r.length?{redirect:redirect}:{redirect:redirect,remain:r}}},{key:"overlap",value:function overlap(e,t){return e.concat(t)}}]),ArraySchema}(We.Schema);function wrapTransferResult(e){return{from:[e.from],to:e.to}}t.ArraySchema=r}));unwrapExports(Ue),Ue.ArraySchema;var ze=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function BooleanSchema(){return _classCallCheck(this,BooleanSchema),_possibleConstructorReturn(this,_getPrototypeOf(BooleanSchema).apply(this,arguments))}return _inherits(BooleanSchema,e),_createClass(BooleanSchema,[{key:"expected",value:function expected(){return"true or false"}},{key:"validate",value:function validate(e){return"boolean"==typeof e}}]),BooleanSchema}(We.Schema);t.BooleanSchema=r}));unwrapExports(ze),ze.BooleanSchema;var He=createCommonjsModule((function(e,t){function normalizeTransferResult(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function normalizeForwardResult(e,t){return void 0===e?[]:Array.isArray(e)?e.map((function(e){return normalizeTransferResult(e,t)})):[normalizeTransferResult(e,t)]}Object.defineProperty(t,"__esModule",{value:!0}),t.recordFromArray=function recordFromArray(e,t){var r=Object.create(null),n=!0,a=!1,u=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value,l=s[t];if(r[l])throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(l)));r[l]=s}}catch(e){a=!0,u=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw u}}return r},t.mapFromArray=function mapFromArray(e,t){var r=new Map,n=!0,a=!1,u=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value,l=s[t];if(r.has(l))throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(l)));r.set(l,s)}}catch(e){a=!0,u=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw u}}return r},t.createAutoChecklist=function createAutoChecklist(){var e=Object.create(null);return function(t){var r=JSON.stringify(t);return!!e[r]||(e[r]=!0,!1)}},t.partition=function partition(e,t){var r=[],n=[],a=!0,u=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done);a=!0){var l=o.value;t(l)?r.push(l):n.push(l)}}catch(e){u=!0,i=e}finally{try{a||null==s.return||s.return()}finally{if(u)throw i}}return[r,n]},t.isInt=function isInt(e){return e===Math.floor(e)},t.comparePrimitive=function comparePrimitive(e,t){if(e===t)return 0;var r=_typeof(e),n=_typeof(t),a=["undefined","object","boolean","number","string"];return r!==n?a.indexOf(r)-a.indexOf(n):"string"!==r?Number(e)-Number(t):e.localeCompare(t)},t.normalizeDefaultResult=function normalizeDefaultResult(e){return void 0===e?{}:e},t.normalizeValidateResult=function normalizeValidateResult(e,t){return!0===e||(!1===e?{value:t}:e)},t.normalizeDeprecatedResult=function normalizeDeprecatedResult(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!1!==e&&(!0===e?!!r||[{value:t}]:"value"in e?[e]:0!==e.length&&e)},t.normalizeTransferResult=normalizeTransferResult,t.normalizeForwardResult=normalizeForwardResult,t.normalizeRedirectResult=function normalizeRedirectResult(e,t){var r=normalizeForwardResult("object"===_typeof(e)&&"redirect"in e?e.redirect:e,t);return 0===r.length?{remain:t,redirect:r}:"object"===_typeof(e)&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}}));unwrapExports(He),He.recordFromArray,He.mapFromArray,He.createAutoChecklist,He.partition,He.isInt,He.comparePrimitive,He.normalizeDefaultResult,He.normalizeValidateResult,He.normalizeDeprecatedResult,He.normalizeTransferResult,He.normalizeForwardResult,He.normalizeRedirectResult;var Je=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function ChoiceSchema(e){var t;return _classCallCheck(this,ChoiceSchema),(t=_possibleConstructorReturn(this,_getPrototypeOf(ChoiceSchema).call(this,e)))._choices=He.mapFromArray(e.choices.map((function(e){return e&&"object"===_typeof(e)?e:{value:e}})),"value"),t}return _inherits(ChoiceSchema,e),_createClass(ChoiceSchema,[{key:"expected",value:function expected(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(He.comparePrimitive).map(r.value),a=n.slice(0,-2),u=n.slice(-2);return a.concat(u.join(" or ")).join(", ")}},{key:"validate",value:function validate(e){return this._choices.has(e)}},{key:"deprecated",value:function deprecated(e){var t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}},{key:"forward",value:function forward(e){var t=this._choices.get(e);return t?t.forward:void 0}},{key:"redirect",value:function redirect(e){var t=this._choices.get(e);return t?t.redirect:void 0}}]),ChoiceSchema}(We.Schema);t.ChoiceSchema=r}));unwrapExports(Je),Je.ChoiceSchema;var Xe=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function NumberSchema(){return _classCallCheck(this,NumberSchema),_possibleConstructorReturn(this,_getPrototypeOf(NumberSchema).apply(this,arguments))}return _inherits(NumberSchema,e),_createClass(NumberSchema,[{key:"expected",value:function expected(){return"a number"}},{key:"validate",value:function validate(e,t){return"number"==typeof e}}]),NumberSchema}(We.Schema);t.NumberSchema=r}));unwrapExports(Xe),Xe.NumberSchema;var Ge=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function IntegerSchema(){return _classCallCheck(this,IntegerSchema),_possibleConstructorReturn(this,_getPrototypeOf(IntegerSchema).apply(this,arguments))}return _inherits(IntegerSchema,e),_createClass(IntegerSchema,[{key:"expected",value:function expected(){return"an integer"}},{key:"validate",value:function validate(e,t){return!0===t.normalizeValidateResult(_get(_getPrototypeOf(IntegerSchema.prototype),"validate",this).call(this,e,t),e)&&He.isInt(e)}}]),IntegerSchema}(Xe.NumberSchema);t.IntegerSchema=r}));unwrapExports(Ge),Ge.IntegerSchema;var Ke=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function StringSchema(){return _classCallCheck(this,StringSchema),_possibleConstructorReturn(this,_getPrototypeOf(StringSchema).apply(this,arguments))}return _inherits(StringSchema,e),_createClass(StringSchema,[{key:"expected",value:function expected(){return"a string"}},{key:"validate",value:function validate(e){return"string"==typeof e}}]),StringSchema}(We.Schema);t.StringSchema=r}));unwrapExports(Ke),Ke.StringSchema;var Ye=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ce.__exportStar(Ve,t),ce.__exportStar(qe,t),ce.__exportStar(Ue,t),ce.__exportStar(ze,t),ce.__exportStar(Je,t),ce.__exportStar(Ge,t),ce.__exportStar(Xe,t),ce.__exportStar(Ke,t)}));unwrapExports(Ye);var Qe=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDescriptor=le.apiDescriptor,t.defaultUnknownHandler=Me.levenUnknownHandler,t.defaultInvalidHandler=Le.commonInvalidHandler,t.defaultDeprecatedHandler=Oe.commonDeprecatedHandler}));unwrapExports(Qe),Qe.defaultDescriptor,Qe.defaultUnknownHandler,Qe.defaultInvalidHandler,Qe.defaultDeprecatedHandler;var Ze=createCommonjsModule((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 Normalizer(e,t){_classCallCheck(this,Normalizer);var r=t||{},n=r.logger,a=void 0===n?console:n,u=r.descriptor,i=void 0===u?Qe.defaultDescriptor:u,o=r.unknown,s=void 0===o?Qe.defaultUnknownHandler:o,l=r.invalid,c=void 0===l?Qe.defaultInvalidHandler:l,p=r.deprecated,f=void 0===p?Qe.defaultDeprecatedHandler:p;this._utils={descriptor:i,logger:a||{warn:function warn(){}},schemas:He.recordFromArray(e,"name"),normalizeDefaultResult:He.normalizeDefaultResult,normalizeDeprecatedResult:He.normalizeDeprecatedResult,normalizeForwardResult:He.normalizeForwardResult,normalizeRedirectResult:He.normalizeRedirectResult,normalizeValidateResult:He.normalizeValidateResult},this._unknownHandler=s,this._invalidHandler=c,this._deprecatedHandler=f,this.cleanHistory()}return _createClass(Normalizer,[{key:"cleanHistory",value:function cleanHistory(){this._hasDeprecationWarned=He.createAutoChecklist()}},{key:"normalize",value:function normalize(e){var t=this,r={},n=[e],a=function applyNormalization(){for(;0!==n.length;){var e=n.shift(),a=t._applyNormalization(e,r);n.push.apply(n,_toConsumableArray(a))}};a();for(var u=0,i=Object.keys(this._utils.schemas);u<i.length;u++){var o=i[u],s=this._utils.schemas[o];if(!(o in r)){var l=He.normalizeDefaultResult(s.default(this._utils));"value"in l&&n.push(_defineProperty({},o,l.value))}}a();for(var c=0,p=Object.keys(this._utils.schemas);c<p.length;c++){var f=p[c],d=this._utils.schemas[f];f in r&&(r[f]=d.postprocess(r[f],this._utils))}return r}},{key:"_applyNormalization",value:function _applyNormalization(e,t){var r=this,n=[],a=_slicedToArray(He.partition(Object.keys(e),(function(e){return e in r._utils.schemas})),2),u=a[0],i=a[1],o=!0,s=!1,l=void 0;try{for(var c,p=function _loop(){var a=c.value,u=r._utils.schemas[a],i=u.preprocess(e[a],r._utils),o=He.normalizeValidateResult(u.validate(i,r._utils),i);if(!0!==o){var s=o.value,l=r._invalidHandler(a,s,r._utils);throw"string"==typeof l?new Error(l):l}var p=function appendTransferredOptions(e){var t=e.from,r=e.to;n.push("string"==typeof r?_defineProperty({},r,t):_defineProperty({},r.key,r.value))},f=function warnDeprecated(e){var t=e.value,n=e.redirectTo,o=He.normalizeDeprecatedResult(u.deprecated(t,r._utils),i,!0);if(!1!==o)if(!0===o)r._hasDeprecationWarned(a)||r._utils.logger.warn(r._deprecatedHandler(a,n,r._utils));else{var s=!0,l=!1,c=void 0;try{for(var p,f=o[Symbol.iterator]();!(s=(p=f.next()).done);s=!0){var d=p.value.value,m={key:a,value:d};if(!r._hasDeprecationWarned(m)){var h="string"==typeof n?{key:n,value:d}:n;r._utils.logger.warn(r._deprecatedHandler(m,h,r._utils))}}}catch(e){l=!0,c=e}finally{try{s||null==f.return||f.return()}finally{if(l)throw c}}}};He.normalizeForwardResult(u.forward(i,r._utils),i).forEach(p);var d=He.normalizeRedirectResult(u.redirect(i,r._utils),i);if(d.redirect.forEach(p),"remain"in d){var m=d.remain;t[a]=a in t?u.overlap(t[a],m,r._utils):m,f({value:m})}var h=!0,g=!1,D=void 0;try{for(var y,C=d.redirect[Symbol.iterator]();!(h=(y=C.next()).done);h=!0){var v=y.value;f({value:v.from,redirectTo:v.to})}}catch(e){g=!0,D=e}finally{try{h||null==C.return||C.return()}finally{if(g)throw D}}},f=u[Symbol.iterator]();!(o=(c=f.next()).done);o=!0)p()}catch(e){s=!0,l=e}finally{try{o||null==f.return||f.return()}finally{if(s)throw l}}var d=!0,m=!1,h=void 0;try{for(var g,D=i[Symbol.iterator]();!(d=(g=D.next()).done);d=!0){var y=g.value,C=e[y],v=this._unknownHandler(y,C,this._utils);if(v)for(var E=0,A=Object.keys(v);E<A.length;E++){var F=A[E],b=_defineProperty({},F,v[F]);F in this._utils.schemas?n.push(b):Object.assign(t,b)}}}catch(e){m=!0,h=e}finally{try{d||null==D.return||D.return()}finally{if(m)throw h}}return n}}]),Normalizer}();t.Normalizer=r}));unwrapExports(Ze),Ze.normalize,Ze.Normalizer;var et=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ce.__exportStar(pe,t),ce.__exportStar($e,t),ce.__exportStar(Ye,t),ce.__exportStar(Ze,t),ce.__exportStar(We,t)}));unwrapExports(et);var tt=[],rt=[],nt=function leven(e,t){if(e===t)return 0;var r=e;e.length>t.length&&(e=t,t=r);for(var n=e.length,a=t.length;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-a);)n--,a--;for(var u,i,o,s,l=0;l<n&&e.charCodeAt(l)===t.charCodeAt(l);)l++;if(a-=l,0==(n-=l))return a;for(var c=0,p=0;c<n;)rt[c]=e.charCodeAt(l+c),tt[c]=++c;for(;p<a;)for(u=t.charCodeAt(l+p),o=p++,i=p,c=0;c<n;c++)s=u===rt[c]?o:o+1,o=tt[c],i=tt[c]=o>i?s>i?i+1:s:s>o?o+1:s;return i},at=nt,ut=nt;at.default=ut;var it,ot={key:function key(e){return 1===e.length?"-".concat(e):"--".concat(e)},value:function value(e){return et.apiDescriptor.value(e)},pair:function pair(e){var t=e.key,r=e.value;return!1===r?"--no-".concat(t):!0===r?ot.key(t):""===r?"".concat(ot.key(t)," without an argument"):"".concat(ot.key(t),"=").concat(r)}},st=function(e){function FlagSchema(e){var t,r=e.name,n=e.flags;return _classCallCheck(this,FlagSchema),(t=_possibleConstructorReturn(this,_getPrototypeOf(FlagSchema).call(this,{name:r,choices:n})))._flags=n.slice().sort(),t}return _inherits(FlagSchema,e),_createClass(FlagSchema,[{key:"preprocess",value:function preprocess(e,t){if("string"==typeof e&&0!==e.length&&-1===this._flags.indexOf(e)){var r=this._flags.find((function(t){return at(t,e)<3}));if(r)return t.logger.warn(["Unknown flag ".concat(Ne.yellow(t.descriptor.value(e)),","),"did you mean ".concat(Ne.blue(t.descriptor.value(r)),"?")].join(" ")),r}return e}},{key:"expected",value:function expected(){return"a flag"}}]),FlagSchema}(et.ChoiceSchema);function normalizeOptions(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.logger,a=r.isCLI,u=void 0!==a&&a,i=r.passThrough,o=void 0!==i&&i,s=o?Array.isArray(o)?function(e,t){return-1===o.indexOf(e)?void 0:_defineProperty({},e,t)}:function(e,t){return _defineProperty({},e,t)}:et.levenUnknownHandler,l=u?ot:et.apiDescriptor,c=function optionInfosToSchemas(e,t){var r=t.isCLI,n=[];r&&n.push(et.AnySchema.create({name:"_"}));var a=!0,u=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done);a=!0){var l=o.value;n.push(optionInfoToSchema(l,{isCLI:r,optionInfos:e})),l.alias&&r&&n.push(et.AliasSchema.create({name:l.alias,sourceName:l.name}))}}catch(e){u=!0,i=e}finally{try{a||null==s.return||s.return()}finally{if(u)throw i}}return n}(t,{isCLI:u}),p=new et.Normalizer(c,{logger:n,unknown:s,descriptor:l}),f=!1!==n;f&&it&&(p._hasDeprecationWarned=it);var d=p.normalize(e);return f&&(it=p._hasDeprecationWarned),d}function optionInfoToSchema(e,t){var r,n=t.isCLI,a=t.optionInfos,u={name:e.name},i={};switch(e.type){case"int":r=et.IntegerSchema,n&&(u.preprocess=function(e){return Number(e)});break;case"string":r=et.StringSchema;break;case"choice":r=et.ChoiceSchema,u.choices=e.choices.map((function(t){return"object"===_typeof(t)&&t.redirect?Object.assign({},t,{redirect:{to:{key:e.name,value:t.redirect}}}):t}));break;case"boolean":r=et.BooleanSchema;break;case"flag":r=st,u.flags=a.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=et.StringSchema;break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?u.validate=function(t,r,n){return e.exception(t)||r.validate(t,n)}:u.validate=function(e,t,r){return void 0===e||t.validate(e,r)},e.redirect&&(i.redirect=function(t){return t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0}),e.deprecated&&(i.deprecated=!0),n&&!e.array){var o=u.preprocess||function(e){return e};u.preprocess=function(e,t,r){return t.preprocess(o(Array.isArray(e)?e[e.length-1]:e),r)}}return e.array?et.ArraySchema.create(Object.assign(n?{preprocess:function preprocess(e){return[].concat(e)}}:{},i,{valueSchema:r.create(u)})):r.create(Object.assign({},u,i))}var ct={normalizeApiOptions:function normalizeApiOptions(e,t,r){return normalizeOptions(e,t,r)},normalizeCliOptions:function normalizeCliOptions(e,t,r){return normalizeOptions(e,t,Object.assign({isCLI:!0},r))}},pt=function getLast(e){return e.length>0?e[e.length-1]:null},ft=function locStart(e,t){return!(t=t||{}).ignoreDecorators&&e.declaration&&e.declaration.decorators&&e.declaration.decorators.length>0?locStart(e.declaration.decorators[0]):!t.ignoreDecorators&&e.decorators&&e.decorators.length>0?locStart(e.decorators[0]):e.__location?e.__location.startOffset:e.range?e.range[0]:"number"==typeof e.start?e.start:e.loc?e.loc.start:null},dt=function locEnd(e){var t=e.nodes&&pt(e.nodes);if(t&&e.source&&!e.source.end&&(e=t),e.__location)return e.__location.endOffset;var r=e.range?e.range[1]:"number"==typeof e.end?e.end:null;return e.typeAnnotation?Math.max(r,locEnd(e.typeAnnotation)):e.loc&&!r?e.loc.end:r},mt=createCommonjsModule((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}}));unwrapExports(mt),mt.matchToToken;var ht=createCommonjsModule((function(e){!function(){function isStatement(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 trailingStatement(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 isExpression(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:isStatement,isIterationStatement:function isIterationStatement(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function isSourceElement(e){return isStatement(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function isProblematicIfStatement(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=trailingStatement(t)}while(t);return!1},trailingStatement:trailingStatement}}()})),Dt=(ht.isExpression,ht.isStatement,ht.isIterationStatement,ht.isSourceElement,ht.isProblematicIfStatement,ht.trailingStatement,createCommonjsModule((function(e){!function(){var t,r,n,a,u,i;function fromCodePoint(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],a=new Array(128),i=0;i<128;++i)a[i]=i>=97&&i<=122||i>=65&&i<=90||36===i||95===i;for(u=new Array(128),i=0;i<128;++i)u[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||36===i||95===i;e.exports={isDecimalDigit:function isDecimalDigit(e){return 48<=e&&e<=57},isHexDigit:function isHexDigit(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function isOctalDigit(e){return e>=48&&e<=55},isWhiteSpace:function isWhiteSpace(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&n.indexOf(e)>=0},isLineTerminator:function isLineTerminator(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function isIdentifierStartES5(e){return e<128?a[e]:r.NonAsciiIdentifierStart.test(fromCodePoint(e))},isIdentifierPartES5:function isIdentifierPartES5(e){return e<128?u[e]:r.NonAsciiIdentifierPart.test(fromCodePoint(e))},isIdentifierStartES6:function isIdentifierStartES6(e){return e<128?a[e]:t.NonAsciiIdentifierStart.test(fromCodePoint(e))},isIdentifierPartES6:function isIdentifierPartES6(e){return e<128?u[e]:t.NonAsciiIdentifierPart.test(fromCodePoint(e))}}}()}))),yt=(Dt.isDecimalDigit,Dt.isHexDigit,Dt.isOctalDigit,Dt.isWhiteSpace,Dt.isLineTerminator,Dt.isIdentifierStartES5,Dt.isIdentifierPartES5,Dt.isIdentifierStartES6,Dt.isIdentifierPartES6,createCommonjsModule((function(e){!function(){var t=Dt;function isKeywordES5(e,t){return!(!t&&"yield"===e)&&isKeywordES6(e,t)}function isKeywordES6(e,t){if(t&&function isStrictModeReservedWordES6(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 isReservedWordES5(e,t){return"null"===e||"true"===e||"false"===e||isKeywordES5(e,t)}function isReservedWordES6(e,t){return"null"===e||"true"===e||"false"===e||isKeywordES6(e,t)}function isIdentifierNameES5(e){var r,n,a;if(0===e.length)return!1;if(a=e.charCodeAt(0),!t.isIdentifierStartES5(a))return!1;for(r=1,n=e.length;r<n;++r)if(a=e.charCodeAt(r),!t.isIdentifierPartES5(a))return!1;return!0}function isIdentifierNameES6(e){var r,n,a,u,i;if(0===e.length)return!1;for(i=t.isIdentifierStartES6,r=0,n=e.length;r<n;++r){if(55296<=(a=e.charCodeAt(r))&&a<=56319){if(++r>=n)return!1;if(!(56320<=(u=e.charCodeAt(r))&&u<=57343))return!1;a=1024*(a-55296)+(u-56320)+65536}if(!i(a))return!1;i=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:isKeywordES5,isKeywordES6:isKeywordES6,isReservedWordES5:isReservedWordES5,isReservedWordES6:isReservedWordES6,isRestrictedWord:function isRestrictedWord(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:isIdentifierNameES5,isIdentifierNameES6:isIdentifierNameES6,isIdentifierES5:function isIdentifierES5(e,t){return isIdentifierNameES5(e)&&!isReservedWordES5(e,t)},isIdentifierES6:function isIdentifierES6(e,t){return isIdentifierNameES6(e)&&!isReservedWordES6(e,t)}}}()}))),Ct=(yt.isKeywordES5,yt.isKeywordES6,yt.isReservedWordES5,yt.isReservedWordES6,yt.isRestrictedWord,yt.isIdentifierNameES5,yt.isIdentifierNameES6,yt.isIdentifierES5,yt.isIdentifierES6,createCommonjsModule((function(e,t){t.ast=ht,t.code=Dt,t.keyword=yt}))),vt=(Ct.ast,Ct.code,Ct.keyword,createCommonjsModule((function(e,t){function _jsTokens(){var e=function _interopRequireWildcard(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}(mt);return _jsTokens=function _jsTokens(){return e},e}function _esutils(){var e=_interopRequireDefault(Ct);return _esutils=function _esutils(){return e},e}function _chalk(){var e=_interopRequireDefault(Ne);return _chalk=function _chalk(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldHighlight=shouldHighlight,t.getChalk=getChalk,t.default=function highlight(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return shouldHighlight(t)?function highlightTokens(e,t){return t.replace(_jsTokens().default,(function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];var u=getTokenType(n),i=e[u];return i?n[0].split(r).map((function(e){return i(e)})).join("\n"):n[0]}))}(function getDefs(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}}(getChalk(t)),e):e};var r=/\r\n|[\n\r\u2028\u2029]/,n=/^[a-z][\w-]*$/i,a=/^[()[\]{}]$/;function getTokenType(e){var t=_slicedToArray(e.slice(-2),2),r=t[0],u=t[1],i=(0,_jsTokens().matchToToken)(e);if("name"===i.type){if(_esutils().default.keyword.isReservedWordES6(i.value))return"keyword";if(n.test(i.value)&&("<"===u[r-1]||"</"==u.substr(r-2,2)))return"jsx_tag";if(i.value[0]!==i.value[0].toLowerCase())return"capitalized"}return"punctuator"===i.type&&a.test(i.value)?"bracket":"invalid"!==i.type||"@"!==i.value&&"#"!==i.value?i.type:"punctuator"}function shouldHighlight(e){return _chalk().default.supportsColor||e.forceColor}function getChalk(e){var t=_chalk().default;return e.forceColor&&(t=new(_chalk().default.constructor)({enabled:!0,level:1})),t}})));unwrapExports(vt),vt.shouldHighlight,vt.getChalk;var Et=createCommonjsModule((function(e,t){function _highlight(){var e=function _interopRequireWildcard(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}(vt);return _highlight=function _highlight(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=codeFrameColumns,t.default=function _default(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!r){r=!0;var u="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";Y.emitWarning?Y.emitWarning(u,"DeprecationWarning"):(new Error(u).name="DeprecationWarning",console.warn(new Error(u)))}return n=Math.max(n,0),codeFrameColumns(e,{start:{column:n,line:t}},a)};var r=!1,n=/\r\n|[\n\r\u2028\u2029]/;function codeFrameColumns(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(r.highlightCode||r.forceColor)&&(0,_highlight().shouldHighlight)(r),u=(0,_highlight().getChalk)(r),i=function getDefs(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(u),o=function maybeHighlight(e,t){return a?e(t):t},s=function getMarkerLines(e,t,r){var n=Object.assign({column:0,line:-1},e.start),a=Object.assign({},n,e.end),u=r||{},i=u.linesAbove,o=void 0===i?2:i,s=u.linesBelow,l=void 0===s?3:s,c=n.line,p=n.column,f=a.line,d=a.column,m=Math.max(c-(o+1),0),h=Math.min(t.length,f+l);-1===c&&(m=0),-1===f&&(h=t.length);var g=f-c,D={};if(g)for(var y=0;y<=g;y++){var C=y+c;if(p)if(0===y){var v=t[C-1].length;D[C]=[p,v-p+1]}else if(y===g)D[C]=[0,d];else{var E=t[C-y].length;D[C]=[0,E]}else D[C]=!0}else D[c]=p===d?!p||[p,0]:[p,d-p];return{start:m,end:h,markerLines:D}}(t,e.split(n),r),l=s.start,c=s.end,p=s.markerLines,f=t.start&&"number"==typeof t.start.column,d=String(c).length,m=(a?(0,_highlight().default)(e,r):e).split(n).slice(l,c).map((function(e,t){var n=l+1+t,a=" ".concat(n).slice(-d),u=" ".concat(a," | "),s=p[n],c=!p[n+1];if(s){var f="";if(Array.isArray(s)){var m=e.slice(0,Math.max(s[0]-1,0)).replace(/[^\t]/g," "),h=s[1]||1;f=["\n ",o(i.gutter,u.replace(/\d/g," ")),m,o(i.marker,"^").repeat(h)].join(""),c&&r.message&&(f+=" "+o(i.message,r.message))}return[o(i.marker,">"),o(i.gutter,u),e,f].join("")}return" ".concat(o(i.gutter,u)).concat(e)})).join("\n");return r.message&&!f&&(m="".concat(" ".repeat(d+1)).concat(r.message,"\n").concat(m)),a?u.reset(m):m}}));unwrapExports(Et),Et.codeFrameColumns;var At=I.ConfigError,Ft=ft,bt=dt,St=Object.getOwnPropertyNames,xt=Object.getOwnPropertyDescriptor;function getParsers(e){var t={},r=!0,n=!1,a=void 0;try{for(var u,i=e.plugins[Symbol.iterator]();!(r=(u=i.next()).done);r=!0){var o=u.value;if(o.parsers){var s=!0,l=!1,c=void 0;try{for(var p,f=St(o.parsers)[Symbol.iterator]();!(s=(p=f.next()).done);s=!0){var d=p.value;Object.defineProperty(t,d,xt(o.parsers,d))}}catch(e){l=!0,c=e}finally{try{s||null==f.return||f.return()}finally{if(l)throw c}}}}}catch(e){n=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw a}}return t}function resolveParser(e,t){if(t=t||getParsers(e),"function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:Ft,locEnd:bt};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new At("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var wt={parse:function parse(e,t){var r=getParsers(t),n=Object.keys(r).reduce((function(e,t){return Object.defineProperty(e,t,{enumerable:!0,get:function get(){return r[t].parse}})}),{}),a=resolveParser(t,r);try{return a.preprocess&&(e=a.preprocess(e,t)),{text:e,ast:a.parse(e,n,t)}}catch(t){var u=t.loc;if(u){var i=Et;throw t.codeFrame=i.codeFrameColumns(e,u,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t.stack}},resolveParser:resolveParser},Tt=I.UndefinedParserError,Bt=ue.getSupportInfo,kt=wt.resolveParser,Nt={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function inferParser(e,t){var r=E(e).split("/"),n=r[r.length-1].toLowerCase(),a=Bt(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 getInterpreter(e){if("string"!=typeof e)return"";var t;try{t=O.openSync(e,"r")}catch(e){return""}try{var r=new P(t).next().toString("utf8"),n=r.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(n)return n[1];var a=r.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return a?a[1]:""}catch(e){return""}finally{try{O.closeSync(t)}catch(e){}}}(e)))}));return a&&a.parsers[0]}var Ot=function normalize$1(e,t){t=t||{};var r=Object.assign({},e),n=Bt(null,{plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,a=n.reduce((function(e,t){return void 0!==t.default?Object.assign(e,_defineProperty({},t.name,t.default)):e}),Object.assign({},Nt));if(!r.parser)if(r.filepath){if(r.parser=inferParser(r.filepath,r.plugins),!r.parser)throw new Tt("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 u=kt(ct.normalizeApiOptions(r,[n.find((function(e){return"parser"===e.name}))],{passThrough:!0,logger:!1}));r.astFormat=u.astFormat,r.locEnd=u.locEnd,r.locStart=u.locStart;var i=function getPlugin(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=i.printers[r.astFormat];var o=n.filter((function(e){return e.pluginDefaults&&void 0!==e.pluginDefaults[i.name]})).reduce((function(e,t){return Object.assign(e,_defineProperty({},t.name,t.pluginDefaults[i.name]))}),{}),s=Object.assign({},a,o);return Object.keys(s).forEach((function(e){null==r[e]&&(r[e]=s[e])})),"json"===r.parser&&(r.trailingComma="none"),ct.normalizeApiOptions(r,n,Object.assign({passThrough:Object.keys(Nt)},t))},Pt=function massageAST(e,t,r){if(Array.isArray(e))return e.map((function(e){return massageAST(e,t,r)})).filter((function(e){return e}));if(!e||"object"!==_typeof(e))return e;for(var n={},a=0,u=Object.keys(e);a<u.length;a++){var i=u[a];"function"!=typeof e[i]&&(n[i]=massageAST(e[i],t,e))}if(t.printer.massageAstNode){var o=t.printer.massageAstNode(e,n,r);if(null===o)return;if(o)return o}return n};function assert(){}function concat(e){return{type:"concat",parts:e}}function indent(e){return{type:"indent",contents:e}}function align(e,t){return{type:"align",contents:t,n:e}}function group(e,t){return{type:"group",id:(t=t||{}).id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}assert.ok=function(){},assert.strictEqual=function(){};var It={type:"break-parent"},Lt=concat([{type:"line",hard:!0},It]),_t=concat([{type:"line",hard:!0,literal:!0},It]),jt={concat:concat,join:function join(e,t){for(var r=[],n=0;n<t.length;n++)0!==n&&r.push(e),r.push(t[n]);return concat(r)},line:{type:"line"},softline:{type:"line",soft:!0},hardline:Lt,literalline:_t,group:group,conditionalGroup:function conditionalGroup(e,t){return group(e[0],Object.assign(t||{},{expandedStates:e}))},fill:function fill(e){return{type:"fill",parts:e}},lineSuffix:function lineSuffix(e){return{type:"line-suffix",contents:e}},lineSuffixBoundary:{type:"line-suffix-boundary"},cursor:{type:"cursor",placeholder:Symbol("cursor")},breakParent:It,ifBreak:function ifBreak(e,t,r){return{type:"if-break",breakContents:e,flatContents:t,groupId:(r=r||{}).groupId}},trim:{type:"trim"},indent:indent,align:align,addAlignmentToDoc:function addAlignmentToDoc(e,t,r){var n=e;if(t>0){for(var a=0;a<Math.floor(t/r);++a)n=indent(n);n=align(t%r,n),n=align(-1/0,n)}return n},markAsRoot:function markAsRoot(e){return align({type:"root"},e)},dedentToRoot:function dedentToRoot(e){return align(-1/0,e)},dedent:function dedent(e){return align(-1,e)}},Mt=function stripAnsi(e){return"string"==typeof e?e.replace(function ansiRegex(e){e=Object.assign({onlyFirst:!1},e);var t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e.onlyFirst?void 0:"g")}(),""):e},Rt=Mt,$t=Mt;Rt.default=$t;var Wt=function isFullwidthCodePoint(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)},Vt=Wt,qt=Wt;Vt.default=qt;var Ut=function stringWidth(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=Rt(e);for(var t=0,r=0;r<e.length;r++){var n=e.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=Vt(n)?2:1)}return t},zt=Ut,Ht=Ut;zt.default=Ht;var Jt=/[^\x20-\x7F]/;function isExportDeclaration(e){if(e)switch(e.type){case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}function skip(e){return function(t,r,n){var a=n&&n.backwards;if(!1===r)return!1;for(var u=t.length,i=r;i>=0&&i<u;){var o=t.charAt(i);if(e instanceof RegExp){if(!e.test(o))return i}else if(-1===e.indexOf(o))return i;a?i--:i++}return(-1===i||i===u)&&i}}var Xt=skip(/\s/),Gt=skip(" \t"),Kt=skip(",; \t"),Yt=skip(/[^\r\n]/);function skipInlineComment(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(var r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2;return t}function skipTrailingComment(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?Yt(e,t):t)}function skipNewline(e,t,r){var n=r&&r.backwards;if(!1===t)return!1;var a=e.charAt(t);if(n){if("\r"===e.charAt(t-1)&&"\n"===a)return t-2;if("\n"===a||"\r"===a||"\u2028"===a||"\u2029"===a)return t-1}else{if("\r"===a&&"\n"===e.charAt(t+1))return t+2;if("\n"===a||"\r"===a||"\u2028"===a||"\u2029"===a)return t+1}return t}function hasNewline(e,t,r){var n=Gt(e,(r=r||{}).backwards?t-1:t,r);return n!==skipNewline(e,n,r)}function isNextLineEmptyAfterIndex(e,t){for(var r=null,n=t;n!==r;)r=n,n=skipInlineComment(e,n=Kt(e,n)),n=Gt(e,n);return!1!==(n=skipNewline(e,n=skipTrailingComment(e,n)))&&hasNewline(e,n)}function getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,t){for(var r=null,n=t;n!==r;)r=n,n=skipNewline(e,n=skipTrailingComment(e,n=skipInlineComment(e,n=Gt(e,n))));return n}function getNextNonSpaceNonCommentCharacterIndex(e,t,r){return getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,r(t))}var Qt={};function getPrecedence(e){return Qt[e]}[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((function(e,t){e.forEach((function(e){Qt[e]=t}))}));var Zt={"==":!0,"!=":!0,"===":!0,"!==":!0},er={"*":!0,"/":!0,"%":!0},tr={">>":!0,">>>":!0,"<<":!0};function getAlignmentSize(e,t,r){for(var n=0,a=r=r||0;a<e.length;++a)"\t"===e[a]?n=n+t-n%t:n++;return n}function getPreferredQuote(e,t){var r=e.slice(1,-1),n={quote:'"',regex:/"/g},a={quote:"'",regex:/'/g},u="'"===t?a:n,i=u===a?n:a,o=u.quote;return(r.includes(u.quote)||r.includes(i.quote))&&(o=(r.match(u.regex)||[]).length>(r.match(i.regex)||[]).length?i.quote:u.quote),o}function makeString(e,t,r){var n='"'===t?"'":'"',a=e.replace(/\\([\s\S])|(['"])/g,(function(e,a,u){return a===n?a:u===t?"\\"+u:u||(r&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(a)?a:"\\"+a)}));return t+a+t}function hasNodeIgnoreComment(e){return e&&e.comments&&e.comments.length>0&&e.comments.some((function(e){return"prettier-ignore"===e.value.trim()}))}function addCommentHelper(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var rr,nr={replaceEndOfLineWith:function replaceEndOfLineWith(e,t){var r=[],n=!0,a=!1,u=void 0;try{for(var i,o=e.split("\n")[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;0!==r.length&&r.push(t),r.push(s)}}catch(e){a=!0,u=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw u}}return r},getStringWidth:function getStringWidth(e){return e?Jt.test(e)?zt(e):e.length:0},getMaxContinuousCount:function getMaxContinuousCount(e,t){var r=e.match(new RegExp("(".concat(de(t),")+"),"g"));return null===r?0:r.reduce((function(e,r){return Math.max(e,r.length/t.length)}),0)},getMinNotPresentContinuousCount:function getMinNotPresentContinuousCount(e,t){var r=e.match(new RegExp("(".concat(de(t),")+"),"g"));if(null===r)return 0;var n=new Map,a=0,u=!0,i=!1,o=void 0;try{for(var s,l=r[Symbol.iterator]();!(u=(s=l.next()).done);u=!0){var c=s.value.length/t.length;n.set(c,!0),c>a&&(a=c)}}catch(e){i=!0,o=e}finally{try{u||null==l.return||l.return()}finally{if(i)throw o}}for(var p=1;p<a;p++)if(!n.get(p))return p;return a+1},getPrecedence:getPrecedence,shouldFlatten:function shouldFlatten(e,t){return!(getPrecedence(t)!==getPrecedence(e)||"**"===e||Zt[e]&&Zt[t]||"%"===t&&er[e]||"%"===e&&er[t]||t!==e&&er[t]&&er[e]||tr[e]&&tr[t])},isBitwiseOperator:function isBitwiseOperator(e){return!!tr[e]||"|"===e||"^"===e||"&"===e},isExportDeclaration:isExportDeclaration,getParentExportDeclaration:function getParentExportDeclaration(e){var t=e.getParentNode();return"declaration"===e.getName()&&isExportDeclaration(t)?t:null},getPenultimate:function getPenultimate(e){return e.length>1?e[e.length-2]:null},getLast:pt,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:getNextNonSpaceNonCommentCharacterIndexWithStartIndex,getNextNonSpaceNonCommentCharacterIndex:getNextNonSpaceNonCommentCharacterIndex,getNextNonSpaceNonCommentCharacter:function getNextNonSpaceNonCommentCharacter(e,t,r){return e.charAt(getNextNonSpaceNonCommentCharacterIndex(e,t,r))},skip:skip,skipWhitespace:Xt,skipSpaces:Gt,skipToLineEnd:Kt,skipEverythingButNewLine:Yt,skipInlineComment:skipInlineComment,skipTrailingComment:skipTrailingComment,skipNewline:skipNewline,isNextLineEmptyAfterIndex:isNextLineEmptyAfterIndex,isNextLineEmpty:function isNextLineEmpty(e,t,r){return isNextLineEmptyAfterIndex(e,r(t))},isPreviousLineEmpty:function isPreviousLineEmpty(e,t,r){var n=r(t)-1;return n=skipNewline(e,n=Gt(e,n,{backwards:!0}),{backwards:!0}),(n=Gt(e,n,{backwards:!0}))!==skipNewline(e,n,{backwards:!0})},hasNewline:hasNewline,hasNewlineInRange:function hasNewlineInRange(e,t,r){for(var n=t;n<r;++n)if("\n"===e.charAt(n))return!0;return!1},hasSpaces:function hasSpaces(e,t,r){return Gt(e,(r=r||{}).backwards?t-1:t,r)!==t},setLocStart:function setLocStart(e,t){e.range?e.range[0]=t:e.start=t},setLocEnd:function setLocEnd(e,t){e.range?e.range[1]=t:e.end=t},startsWithNoLookaheadToken:function startsWithNoLookaheadToken(e,t){switch((e=function getLeftMost(e){return e.left?getLeftMost(e.left):e}(e)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return t;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return startsWithNoLookaheadToken(e.object,t);case"TaggedTemplateExpression":return"FunctionExpression"!==e.tag.type&&startsWithNoLookaheadToken(e.tag,t);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==e.callee.type&&startsWithNoLookaheadToken(e.callee,t);case"ConditionalExpression":return startsWithNoLookaheadToken(e.test,t);case"UpdateExpression":return!e.prefix&&startsWithNoLookaheadToken(e.argument,t);case"BindExpression":return e.object&&startsWithNoLookaheadToken(e.object,t);case"SequenceExpression":return startsWithNoLookaheadToken(e.expressions[0],t);case"TSAsExpression":return startsWithNoLookaheadToken(e.expression,t);default:return!1}},getAlignmentSize:getAlignmentSize,getIndentSize:function getIndentSize(e,t){var r=e.lastIndexOf("\n");return-1===r?0:getAlignmentSize(e.slice(r+1).match(/^[ \t]*/)[0],t)},getPreferredQuote:getPreferredQuote,printString:function printString(e,t,r){var n=e.slice(1,-1),a=!n.includes('"')&&!n.includes("'"),u="json"===t.parser?'"':t.__isInHtmlAttribute?"'":getPreferredQuote(e,t.singleQuote?"'":'"');return r?a?u+n+u:e:makeString(n,u,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.embeddedInHtml))},printNumber:function printNumber(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},hasIgnoreComment:function hasIgnoreComment(e){return hasNodeIgnoreComment(e.getValue())},hasNodeIgnoreComment:hasNodeIgnoreComment,makeString:makeString,matchAncestorTypes:function matchAncestorTypes(e,t,r){for(r=r||0,t=t.slice();t.length;){var n=e.getParentNode(r),a=t.shift();if(!n||n.type!==a)return!1;r++}return!0},addLeadingComment:function addLeadingComment(e,t){t.leading=!0,t.trailing=!1,addCommentHelper(e,t)},addDanglingComment:function addDanglingComment(e,t){t.leading=!1,t.trailing=!1,addCommentHelper(e,t)},addTrailingComment:function addTrailingComment(e,t){t.leading=!1,t.trailing=!0,addCommentHelper(e,t)},isWithinParentArrayProperty:function isWithinParentArrayProperty(e,t){var r=e.getValue(),n=e.getParentNode();if(null==n)return!1;if(!Array.isArray(n[t]))return!1;var a=e.getName();return n[t][a]===r}},ar=function guessEndOfLine(e){var t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},ur=function convertEndOfLineToChars(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},ir=nr.getStringWidth,or=ur,sr=jt.concat,lr=jt.fill,cr=jt.cursor,pr=1,fr=2;function makeIndent(e,t){return generateInd(e,{type:"indent"},t)}function makeAlign(e,t,r){return t===-1/0?e.root||{value:"",length:0,queue:[]}:t<0?generateInd(e,{type:"dedent"},r):t?"root"===t.type?Object.assign({},e,{root:e}):generateInd(e,"string"==typeof t?{type:"stringAlign",n:t}:{type:"numberAlign",n:t},r):e}function generateInd(e,t,r){var n="dedent"===t.type?e.queue.slice(0,-1):e.queue.concat(t),a="",u=0,i=0,o=0,s=!0,l=!1,c=void 0;try{for(var p,f=n[Symbol.iterator]();!(s=(p=f.next()).done);s=!0){var d=p.value;switch(d.type){case"indent":flush(),r.useTabs?addTabs(1):addSpaces(r.tabWidth);break;case"stringAlign":flush(),a+=d.n,u+=d.n.length;break;case"numberAlign":i+=1,o+=d.n;break;default:throw new Error("Unexpected type '".concat(d.type,"'"))}}}catch(e){l=!0,c=e}finally{try{s||null==f.return||f.return()}finally{if(l)throw c}}return flushSpaces(),Object.assign({},e,{value:a,length:u,queue:n});function addTabs(e){a+="\t".repeat(e),u+=r.tabWidth*e}function addSpaces(e){a+=" ".repeat(e),u+=e}function flush(){r.useTabs?function flushTabs(){i>0&&addTabs(i),resetLast()}():flushSpaces()}function flushSpaces(){o>0&&addSpaces(o),resetLast()}function resetLast(){i=0,o=0}}function trim$1(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 fits(e,t,r,n,a){for(var u=t.length,i=[e],o=[];r>=0;)if(0!==i.length){var s=i.pop(),l=s[0],c=s[1],p=s[2];if("string"==typeof p)o.push(p),r-=ir(p);else switch(p.type){case"concat":for(var f=p.parts.length-1;f>=0;f--)i.push([l,c,p.parts[f]]);break;case"indent":i.push([makeIndent(l,n),c,p.contents]);break;case"align":i.push([makeAlign(l,p.n,n),c,p.contents]);break;case"trim":r+=trim$1(o);break;case"group":if(a&&p.break)return!1;i.push([l,p.break?pr:c,p.contents]),p.id&&(rr[p.id]=i[i.length-1][1]);break;case"fill":for(var d=p.parts.length-1;d>=0;d--)i.push([l,c,p.parts[d]]);break;case"if-break":var m=p.groupId?rr[p.groupId]:c;m===pr&&p.breakContents&&i.push([l,c,p.breakContents]),m===fr&&p.flatContents&&i.push([l,c,p.flatContents]);break;case"line":switch(c){case fr:if(!p.hard){p.soft||(o.push(" "),r-=1);break}return!0;case pr:return!0}}}else{if(0===u)return!0;i.push(t[u-1]),u--}return!1}var dr={};function traverseDoc(e,t,r,n){for(var a=[e];0!==a.length;){var u=a.pop();if(u!==dr){var i=!0;if(t&&!1===t(u)&&(i=!1),r&&(a.push(u),a.push(dr)),i)if("concat"===u.type||"fill"===u.type)for(var o=u.parts.length-1;o>=0;--o)a.push(u.parts[o]);else if("if-break"===u.type)u.flatContents&&a.push(u.flatContents),u.breakContents&&a.push(u.breakContents);else if("group"===u.type&&u.expandedStates)if(n)for(var s=u.expandedStates.length-1;s>=0;--s)a.push(u.expandedStates[s]);else a.push(u.contents);else u.contents&&a.push(u.contents)}else r(a.pop())}}function mapDoc(e,t){if("concat"===e.type||"fill"===e.type){var r=e.parts.map((function(e){return mapDoc(e,t)}));return t(Object.assign({},e,{parts:r}))}if("if-break"===e.type){var n=e.breakContents&&mapDoc(e.breakContents,t),a=e.flatContents&&mapDoc(e.flatContents,t);return t(Object.assign({},e,{breakContents:n,flatContents:a}))}if(e.contents){var u=mapDoc(e.contents,t);return t(Object.assign({},e,{contents:u}))}return t(e)}function findInDoc(e,t,r){var n=r,a=!1;return traverseDoc(e,(function findInDocOnEnterFn(e){var r=t(e);if(void 0!==r&&(a=!0,n=r),a)return!1})),n}function isLineNextFn(e){return"string"!=typeof e&&("line"===e.type||void 0)}function willBreakFn(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function breakParentGroup(e){if(e.length>0){var t=e[e.length-1];t.expandedStates||(t.break=!0)}return null}function removeLinesFn(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}function flattenDoc(e){if("concat"===e.type){for(var t=[],r=0;r<e.parts.length;++r){var n=e.parts[r];if("string"!=typeof n&&"concat"===n.type)[].push.apply(t,flattenDoc(n).parts);else{var a=flattenDoc(n);""!==a&&t.push(a)}}return Object.assign({},e,{parts:t})}return"if-break"===e.type?Object.assign({},e,{breakContents:null!=e.breakContents?flattenDoc(e.breakContents):null,flatContents:null!=e.flatContents?flattenDoc(e.flatContents):null}):"group"===e.type?Object.assign({},e,{contents:flattenDoc(e.contents),expandedStates:e.expandedStates?e.expandedStates.map(flattenDoc):e.expandedStates}):e.contents?Object.assign({},e,{contents:flattenDoc(e.contents)}):e}function printDoc(e){if("string"==typeof e)return JSON.stringify(e);if("line"===e.type)return e.literal?"literalline":e.hard?"hardline":e.soft?"softline":"line";if("break-parent"===e.type)return"breakParent";if("trim"===e.type)return"trim";if("concat"===e.type)return"["+e.parts.map(printDoc).join(", ")+"]";if("indent"===e.type)return"indent("+printDoc(e.contents)+")";if("align"===e.type)return e.n===-1/0?"dedentToRoot("+printDoc(e.contents)+")":e.n<0?"dedent("+printDoc(e.contents)+")":"root"===e.n.type?"markAsRoot("+printDoc(e.contents)+")":"align("+JSON.stringify(e.n)+", "+printDoc(e.contents)+")";if("if-break"===e.type)return"ifBreak("+printDoc(e.breakContents)+(e.flatContents?", "+printDoc(e.flatContents):"")+")";if("group"===e.type)return e.expandedStates?"conditionalGroup(["+e.expandedStates.map(printDoc).join(",")+"])":(e.break?"wrappedGroup":"group")+"("+printDoc(e.contents)+")";if("fill"===e.type)return"fill("+e.parts.map(printDoc).join(", ")+")";if("line-suffix"===e.type)return"lineSuffix("+printDoc(e.contents)+")";if("line-suffix-boundary"===e.type)return"lineSuffixBoundary";throw new Error("Unknown doc type "+e.type)}var mr={builders:jt,printer:{printDocToString:function printDocToString(e,t){rr={};for(var r=t.printWidth,n=or(t.endOfLine),a=0,u=[[{value:"",length:0,queue:[]},pr,e]],i=[],o=!1,s=[];0!==u.length;){var l=u.pop(),c=l[0],p=l[1],f=l[2];if("string"==typeof f)i.push(f),a+=ir(f);else switch(f.type){case"cursor":i.push(cr.placeholder);break;case"concat":for(var d=f.parts.length-1;d>=0;d--)u.push([c,p,f.parts[d]]);break;case"indent":u.push([makeIndent(c,t),p,f.contents]);break;case"align":u.push([makeAlign(c,f.n,t),p,f.contents]);break;case"trim":a-=trim$1(i);break;case"group":switch(p){case fr:if(!o){u.push([c,f.break?pr:fr,f.contents]);break}case pr:o=!1;var m=[c,fr,f.contents],h=r-a;if(!f.break&&fits(m,u,h,t))u.push(m);else if(f.expandedStates){var g=f.expandedStates[f.expandedStates.length-1];if(f.break){u.push([c,pr,g]);break}for(var D=1;D<f.expandedStates.length+1;D++){if(D>=f.expandedStates.length){u.push([c,pr,g]);break}var y=f.expandedStates[D],C=[c,fr,y];if(fits(C,u,h,t)){u.push(C);break}}}else u.push([c,pr,f.contents])}f.id&&(rr[f.id]=u[u.length-1][1]);break;case"fill":var v=r-a,E=f.parts;if(0===E.length)break;var A=E[0],F=[c,fr,A],b=[c,pr,A],S=fits(F,[],v,t,!0);if(1===E.length){S?u.push(F):u.push(b);break}var x=E[1],w=[c,fr,x],T=[c,pr,x];if(2===E.length){S?(u.push(w),u.push(F)):(u.push(T),u.push(b));break}E.splice(0,2);var B=[c,p,lr(E)],k=E[0];fits([c,fr,sr([A,x,k])],[],v,t,!0)?(u.push(B),u.push(w),u.push(F)):S?(u.push(B),u.push(T),u.push(F)):(u.push(B),u.push(T),u.push(b));break;case"if-break":var N=f.groupId?rr[f.groupId]:p;N===pr&&f.breakContents&&u.push([c,p,f.breakContents]),N===fr&&f.flatContents&&u.push([c,p,f.flatContents]);break;case"line-suffix":s.push([c,p,f.contents]);break;case"line-suffix-boundary":s.length>0&&u.push([c,p,{type:"line",hard:!0}]);break;case"line":switch(p){case fr:if(!f.hard){f.soft||(i.push(" "),a+=1);break}o=!0;case pr:if(s.length){u.push([c,p,f]),[].push.apply(u,s.reverse()),s=[];break}f.literal?c.root?(i.push(n,c.root.value),a=c.root.length):(i.push(n),a=0):(a-=trim$1(i),i.push(n+c.value),a=c.length)}}}var O=i.indexOf(cr.placeholder);if(-1!==O){var P=i.indexOf(cr.placeholder,O+1),I=i.slice(0,O).join(""),L=i.slice(O+1,P).join("");return{formatted:I+L+i.slice(P+1).join(""),cursorNodeStart:I.length,cursorNodeText:L}}return{formatted:i.join("")}}},utils:{isEmpty:function isEmpty(e){return"string"==typeof e&&0===e.length},willBreak:function willBreak(e){return findInDoc(e,willBreakFn,!1)},isLineNext:function isLineNext(e){return findInDoc(e,isLineNextFn,!1)},traverseDoc:traverseDoc,findInDoc:findInDoc,mapDoc:mapDoc,propagateBreaks:function propagateBreaks(e){var t=new Set,r=[];traverseDoc(e,(function propagateBreaksOnEnterFn(e){if("break-parent"===e.type&&breakParentGroup(r),"group"===e.type){if(r.push(e),t.has(e))return!1;t.add(e)}}),(function propagateBreaksOnExitFn(e){"group"===e.type&&r.pop().break&&breakParentGroup(r)}),!0)},removeLines:function removeLines(e){return mapDoc(e,removeLinesFn)},stripTrailingHardline:function stripTrailingHardline(e){if("concat"===e.type&&0!==e.parts.length){var t=e.parts[e.parts.length-1];if("concat"===t.type)return 2===t.parts.length&&t.parts[0].hard&&"break-parent"===t.parts[1].type?{type:"concat",parts:e.parts.slice(0,-1)}:{type:"concat",parts:e.parts.slice(0,-1).concat(stripTrailingHardline(t))}}return e}},debug:{printDocToDebug:function printDocToDebug(e){return printDoc(flattenDoc(e))}}},hr=mr.utils.mapDoc,gr={getMaxContinuousCount:nr.getMaxContinuousCount,getStringWidth:nr.getStringWidth,getAlignmentSize:nr.getAlignmentSize,getIndentSize:nr.getIndentSize,skip:nr.skip,skipWhitespace:nr.skipWhitespace,skipSpaces:nr.skipSpaces,skipNewline:nr.skipNewline,skipToLineEnd:nr.skipToLineEnd,skipEverythingButNewLine:nr.skipEverythingButNewLine,skipInlineComment:nr.skipInlineComment,skipTrailingComment:nr.skipTrailingComment,hasNewline:nr.hasNewline,hasNewlineInRange:nr.hasNewlineInRange,hasSpaces:nr.hasSpaces,isNextLineEmpty:function isNextLineEmpty$1(e,t,r){return nr.isNextLineEmpty(e,t,r.locEnd)},isNextLineEmptyAfterIndex:nr.isNextLineEmptyAfterIndex,isPreviousLineEmpty:function isPreviousLineEmpty$1(e,t,r){return nr.isPreviousLineEmpty(e,t,r.locStart)},getNextNonSpaceNonCommentCharacterIndex:function getNextNonSpaceNonCommentCharacterIndex$1(e,t,r){return nr.getNextNonSpaceNonCommentCharacterIndex(e,t,r.locEnd)},mapDoc:hr,makeString:nr.makeString,addLeadingComment:nr.addLeadingComment,addDanglingComment:nr.addDanglingComment,addTrailingComment:nr.addTrailingComment},Dr=mr.builders,yr=Dr.concat,Cr=Dr.hardline,vr=Dr.breakParent,Er=Dr.indent,Ar=Dr.lineSuffix,Fr=Dr.join,br=Dr.cursor,Sr=nr.hasNewline,xr=nr.skipNewline,wr=nr.isPreviousLineEmpty,Tr=gr.addLeadingComment,Br=gr.addDanglingComment,kr=gr.addTrailingComment,Nr=Symbol("child-nodes");function getSortedChildNodes(e,t,r){if(e){var n,a=t.printer,u=t.locStart,i=t.locEnd;if(r){if(e&&a.canAttachComment&&a.canAttachComment(e)){var o;for(o=r.length-1;o>=0&&!(u(r[o])<=u(e)&&i(r[o])<=i(e));--o);return void r.splice(o+1,0,e)}}else if(e[Nr])return e[Nr];if(a.getCommentChildNodes?n=a.getCommentChildNodes(e):e&&"object"===_typeof(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,Nr,{value:r=[],enumerable:!1}),n.forEach((function(e){getSortedChildNodes(e,t,r)})),r}}function breakTies(e,t,r){var n=e.length;if(0!==n){var a,u=e[0],i=u.precedingNode,o=u.followingNode,s=r.locStart(o);for(a=n;a>0;--a){var l=e[a-1];assert.strictEqual(l.precedingNode,i),assert.strictEqual(l.followingNode,o);var c=t.slice(r.locEnd(l),s);if(!/^[\s(]*$/.test(c))break;s=r.locStart(l)}e.forEach((function(e,t){t<a?kr(i,e):Tr(o,e)})),e.length=0}}function printComment(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function findExpressionIndexForComment(e,t,r){for(var n=r.locStart(t)-1,a=1;a<e.length;++a)if(n<(u=e[a],void 0!==u.start?{start:u.start,end:u.end}:{start:u.range[0],end:u.range[1]}).start)return a-1;var u;return 0}function prependCursorPlaceholder(e,t,r){return e.getNode()===t.cursorNode&&e.getValue()?yr([br,r,br]):r}var Or={attach:function attach(e,t,r,n){if(Array.isArray(e)){var a=[],u=n.locStart,i=n.locEnd;e.forEach((function(o,s){if("json"===n.parser||"json5"===n.parser||"__js_expression"===n.parser||"__vue_expression"===n.parser){if(u(o)-u(t)<=0)return void Tr(t,o);if(i(o)-i(t)>=0)return void kr(t,o)}!function decorateComment(e,t,r){for(var n,a,u=r.locStart,i=r.locEnd,o=getSortedChildNodes(e,r),s=0,l=o.length;s<l;){var c=s+l>>1,p=o[c];if(u(p)-u(t)<=0&&i(t)-i(p)<=0)return t.enclosingNode=p,void decorateComment(p,t,r);if(i(p)-u(t)<=0)n=p,s=c+1;else{if(!(i(t)-u(p)<=0))throw new Error("Comment location overlaps with node location");a=p,l=c}}if(t.enclosingNode&&"TemplateLiteral"===t.enclosingNode.type){var f=t.enclosingNode.quasis,d=findExpressionIndexForComment(f,t,r);n&&findExpressionIndexForComment(f,n,r)!==d&&(n=null),a&&findExpressionIndexForComment(f,a,r)!==d&&(a=null)}n&&(t.precedingNode=n),a&&(t.followingNode=a)}(t,o,n);var l=o.precedingNode,c=o.enclosingNode,p=o.followingNode,f=n.printer.handleComments&&n.printer.handleComments.ownLine?n.printer.handleComments.ownLine:function(){return!1},d=n.printer.handleComments&&n.printer.handleComments.endOfLine?n.printer.handleComments.endOfLine:function(){return!1},m=n.printer.handleComments&&n.printer.handleComments.remaining?n.printer.handleComments.remaining:function(){return!1},h=e.length-1===s;if(Sr(r,u(o),{backwards:!0}))f(o,r,n,t,h)||(p?Tr(p,o):l?kr(l,o):Br(c||t,o));else if(Sr(r,i(o)))d(o,r,n,t,h)||(l?kr(l,o):p?Tr(p,o):Br(c||t,o));else if(m(o,r,n,t,h));else if(l&&p){var g=a.length;g>0&&a[g-1].followingNode!==o.followingNode&&breakTies(a,r,n),a.push(o)}else l?kr(l,o):p?Tr(p,o):Br(c||t,o)})),breakTies(a,r,n),e.forEach((function(e){delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}))}},printComments:function printComments(e,t,r,n){var a=e.getValue(),u=t(e),i=a&&a.comments;if(!i||0===i.length)return prependCursorPlaceholder(e,r,u);var o=[],s=[n?";":"",u];return e.each((function(e){var t=e.getValue(),n=t.leading,a=t.trailing;if(n){var u=function printLeadingComment(e,t,r){var n=e.getValue(),a=printComment(e,r);if(!a)return"";var u=r.printer.isBlockComment&&r.printer.isBlockComment(n);return yr(u?[a,Sr(r.originalText,r.locEnd(n))?Cr:" "]:[a,Cr])}(e,0,r);if(!u)return;o.push(u);var i=r.originalText,l=xr(i,r.locEnd(t));!1!==l&&Sr(i,l)&&o.push(Cr)}else a&&s.push(function printTrailingComment(e,t,r){var n=e.getValue(),a=printComment(e,r);if(!a)return"";var u=r.printer.isBlockComment&&r.printer.isBlockComment(n),i=e.getNode(1),o=e.getNode(2),s=o&&("ClassDeclaration"===o.type||"ClassExpression"===o.type)&&o.superClass===i;if(Sr(r.originalText,r.locStart(n),{backwards:!0})){var l=wr(r.originalText,n,r.locStart);return Ar(yr([Cr,l?Cr:"",a]))}return yr(u||s?[" ",a]:[Ar(yr([" ",a])),u?"":vr])}(e,0,r))}),"comments"),prependCursorPlaceholder(e,r,yr(o.concat(s)))},printDanglingComments:function printDanglingComments(e,t,r,n){var a=[],u=e.getValue();return u&&u.comments?(e.each((function(e){var r=e.getValue();!r||r.leading||r.trailing||n&&!n(r)||a.push(printComment(e,t))}),"comments"),0===a.length?"":r?Fr(Cr,a):Er(yr([Cr,Fr(Cr,a)]))):""},getSortedChildNodes:getSortedChildNodes};function FastPath(e){assert.ok(this instanceof FastPath),this.stack=[e]}function getNodeHelper(e,t){var r=getNodeStackIndexHelper(e.stack,t);return-1===r?null:e.stack[r]}function getNodeStackIndexHelper(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}FastPath.prototype.getName=function getName(){var e=this.stack,t=e.length;return t>1?e[t-2]:null},FastPath.prototype.getValue=function getValue(){var e=this.stack;return e[e.length-1]},FastPath.prototype.getNode=function getNode(e){return getNodeHelper(this,~~e)},FastPath.prototype.getParentNode=function getParentNode(e){return getNodeHelper(this,1+~~e)},FastPath.prototype.call=function call(e){for(var t=this.stack,r=t.length,n=t[r-1],a=arguments.length,u=1;u<a;++u){var i=arguments[u];n=n[i],t.push(i,n)}var o=e(this);return t.length=r,o},FastPath.prototype.callParent=function callParent(e,t){var r=getNodeStackIndexHelper(this.stack,1+~~t),n=this.stack.splice(r+1),a=e(this);return Array.prototype.push.apply(this.stack,n),a},FastPath.prototype.each=function each(e){for(var t=this.stack,r=t.length,n=t[r-1],a=arguments.length,u=1;u<a;++u){var i=arguments[u];n=n[i],t.push(i,n)}for(var o=0;o<n.length;++o)o in n&&(t.push(o,n[o]),e(this),t.length-=2);t.length=r},FastPath.prototype.map=function map(e){for(var t=this.stack,r=t.length,n=t[r-1],a=arguments.length,u=1;u<a;++u){var i=arguments[u];n=n[i],t.push(i,n)}for(var o=new Array(n.length),s=0;s<n.length;++s)s in n&&(t.push(s,n[s]),o[s]=e(this,s),t.length-=2);return t.length=r,o};var Pr=FastPath,Ir=Ot,Lr={printSubtree:function printSubtree(e,t,r,n){if(r.printer.embed)return r.printer.embed(e,t,(function(e,t){return function textToDoc(e,t,r,n){var a=Ir(Object.assign({},r,t,{parentParser:r.parser,embeddedInHtml:!(!r.embeddedInHtml&&"html"!==r.parser&&"vue"!==r.parser&&"angular"!==r.parser&&"lwc"!==r.parser),originalText:e}),{passThrough:!0}),u=wt.parse(e,a),i=u.ast;e=u.text;var o=i.comments;return delete i.comments,Or.attach(o,i,e,a),n(i,a)}(e,t,r,n)}),r)}},_r=mr,jr=_r.builders,Mr=jr.concat,Rr=jr.hardline,$r=jr.addAlignmentToDoc,Wr=_r.utils;function printAstToDoc(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=t.printer;n.preprocess&&(e=n.preprocess(e,t));var a=new Map,u=function printGenerically(e,r){var u,i=e.getValue(),o=i&&"object"===_typeof(i)&&void 0===r;return o&&a.has(i)?a.get(i):(u=n.willPrintOwnComments&&n.willPrintOwnComments(e,t)?callPluginPrintFunction(e,t,printGenerically,r):Or.printComments(e,(function(e){return callPluginPrintFunction(e,t,printGenerically,r)}),t,r&&r.needsSemi),o&&a.set(i,u),u)}(new Pr(e));return r>0&&(u=$r(Mr([Rr,u]),r,t.tabWidth)),Wr.propagateBreaks(u),u}function callPluginPrintFunction(e,t,r,n){assert.ok(e instanceof Pr);var a=e.getValue(),u=t.printer;if(u.hasPrettierIgnore&&u.hasPrettierIgnore(e))return t.originalText.slice(t.locStart(a),t.locEnd(a));if(a)try{var i=Lr.printSubtree(e,r,t,printAstToDoc);if(i)return i}catch(e){if(N.PRETTIER_DEBUG)throw e}return u.print(e,t,r,n)}var Vr=printAstToDoc;function findNodeAtOffset(e,t,r,n,a){n=n||function(){return!0},a=a||[];var u=r.locStart(e,r.locStart),i=r.locEnd(e,r.locEnd);if(u<=t&&t<=i){var o=!0,s=!1,l=void 0;try{for(var c,p=Or.getSortedChildNodes(e,r)[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var f=findNodeAtOffset(c.value,t,r,n,[e].concat(a));if(f)return f}}catch(e){s=!0,l=e}finally{try{o||null==p.return||p.return()}finally{if(s)throw l}}if(n(e))return{node:e,parentNodes:a}}}function isSourceElement(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 qr={calculateRange:function calculateRange(e,t,r){var n,a=e.slice(t.rangeStart,t.rangeEnd),u=Math.max(t.rangeStart+a.search(/\S/),t.rangeStart);for(n=t.rangeEnd;n>t.rangeStart&&!e[n-1].match(/\S/);--n);var i=findNodeAtOffset(r,u,t,(function(e){return isSourceElement(t,e)})),o=findNodeAtOffset(r,n,t,(function(e){return isSourceElement(t,e)}));if(!i||!o)return{rangeStart:0,rangeEnd:0};var s=function findSiblingAncestors(e,t,r){var n=e.node,a=t.node;if(n===a)return{startNode:n,endNode:a};var u=!0,i=!1,o=void 0;try{for(var s,l=t.parentNodes[Symbol.iterator]();!(u=(s=l.next()).done);u=!0){var c=s.value;if(!("Program"!==c.type&&"File"!==c.type&&r.locStart(c)>=r.locStart(e.node)))break;a=c}}catch(e){i=!0,o=e}finally{try{u||null==l.return||l.return()}finally{if(i)throw o}}var p=!0,f=!1,d=void 0;try{for(var m,h=e.parentNodes[Symbol.iterator]();!(p=(m=h.next()).done);p=!0){var g=m.value;if(!("Program"!==g.type&&"File"!==g.type&&r.locEnd(g)<=r.locEnd(t.node)))break;n=g}}catch(e){f=!0,d=e}finally{try{p||null==h.return||h.return()}finally{if(f)throw d}}return{startNode:n,endNode:a}}(i,o,t),l=s.startNode,c=s.endNode;return{rangeStart:Math.min(t.locStart(l,t.locStart),t.locStart(c,t.locStart)),rangeEnd:Math.max(t.locEnd(l,t.locEnd),t.locEnd(c,t.locEnd))}},findNodeAtOffset:findNodeAtOffset},Ur=getCjsExportFromNamespace(C),zr=Ot,Hr=ar,Jr=ur,Xr=mr.utils.mapDoc,Gr=mr.printer.printDocToString,Kr=mr.debug.printDocToDebug,Yr=65279,Qr=Symbol("cursor"),Zr={cursorOffset:"<<<PRETTIER_CURSOR>>>",rangeStart:"<<<PRETTIER_RANGE_START>>>",rangeEnd:"<<<PRETTIER_RANGE_END>>>"};function attachComments(e,t,r){var n=t.comments;return n&&(delete t.comments,Or.attach(n,t,e,r)),t.tokens=[],r.originalText="yaml"===r.parser?e:e.trimRight(),n}function coreFormat(e,t,r){if(!e||!e.trim().length)return{formatted:"",cursorOffset:0};r=r||0;var n=wt.parse(e,t),a=n.ast;if(e=n.text,t.cursorOffset>=0){var u=qr.findNodeAtOffset(a,t.cursorOffset,t);u&&u.node&&(t.cursorNode=u.node)}var i=attachComments(e,a,t),o=Vr(a,t,r),s=Jr(t.endOfLine),l=Gr("lf"===t.endOfLine?o:Xr(o,(function(e){return"string"==typeof e&&-1!==e.indexOf("\n")?e.replace(/\n/g,s):e})),t);if(function ensureAllCommentsPrinted(e){if(e){for(var t=0;t<e.length;++t)if("prettier-ignore"===e[t].value.trim())return;e.forEach((function(e){if(!e.printed)throw new Error('Comment "'+e.value.trim()+'" was not printed. Please report this error!');delete e.printed}))}}(i),r>0){var c=l.formatted.trim();void 0!==l.cursorNodeStart&&(l.cursorNodeStart-=l.formatted.indexOf(c)),l.formatted=c+Jr(t.endOfLine)}if(t.cursorOffset>=0){var p,f,d,m,h;if(t.cursorNode&&l.cursorNodeText?(p=t.locStart(t.cursorNode),f=e.slice(p,t.locEnd(t.cursorNode)),d=t.cursorOffset-p,m=l.cursorNodeStart,h=l.cursorNodeText):(p=0,f=e,d=t.cursorOffset,m=0,h=l.formatted),f===h)return{formatted:l.formatted,cursorOffset:m+d};var g=f.split("");g.splice(d,0,Qr);var D=h.split(""),y=Ur.diffArrays(g,D),C=m,v=!0,E=!1,A=void 0;try{for(var F,b=y[Symbol.iterator]();!(v=(F=b.next()).done);v=!0){var S=F.value;if(S.removed){if(S.value.indexOf(Qr)>-1)break}else C+=S.count}}catch(e){E=!0,A=e}finally{try{v||null==b.return||b.return()}finally{if(E)throw A}}return{formatted:l.formatted,cursorOffset:C}}return{formatted:l.formatted}}function format(e,t){var r=wt.resolveParser(t),n=!r.hasPragma||r.hasPragma(e);if(t.requirePragma&&!n)return{formatted:e};"auto"===t.endOfLine&&(t.endOfLine=Hr(e));var a=t.cursorOffset>=0,u=t.rangeStart>0,i=t.rangeEnd<e.length;if(-1!==e.indexOf("\r")){for(var o=[a&&"cursorOffset",u&&"rangeStart",i&&"rangeEnd"].filter(Boolean).sort((function(e,r){return t[e]-t[r]})),s=o.length-1;s>=0;s--){var l=o[s];e=e.slice(0,t[l])+Zr[l]+e.slice(t[l])}e=e.replace(/\r\n?/g,"\n");for(var c=function _loop(r){var n=o[r];e=e.replace(Zr[n],(function(e,r){return t[n]=r,""}))},p=0;p<o.length;p++)c(p)}var f=e.charCodeAt(0)===Yr;f&&(e=e.substring(1),a&&t.cursorOffset++,u&&t.rangeStart++,i&&t.rangeEnd++),a||(t.cursorOffset=-1),t.rangeStart<0&&(t.rangeStart=0),t.rangeEnd>e.length&&(t.rangeEnd=e.length);var d=u||i?function formatRange(e,t){var r=wt.parse(e,t),n=r.ast;e=r.text;var a,u=qr.calculateRange(e,t,n),i=u.rangeStart,o=u.rangeEnd,s=e.slice(i,o),l=Math.min(i,e.lastIndexOf("\n",i)+1),c=e.slice(l,i),p=nr.getAlignmentSize(c,t.tabWidth),f=coreFormat(s,Object.assign({},t,{rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>=i&&t.cursorOffset<o?t.cursorOffset-i:-1}),p),d=f.formatted.trimRight(),m=e.slice(0,i),h=e.slice(o),g=t.cursorOffset;if(t.cursorOffset>=o?g=t.cursorOffset-o+(i+d.length):void 0!==f.cursorOffset&&(g=f.cursorOffset+i),"lf"===t.endOfLine)a=m+d+h;else{var D=Jr(t.endOfLine);if(g>=0){for(var y=[m,d,h],C=0,v=g;C<y.length;){var E=y[C];if(v<E.length){y[C]=y[C].slice(0,v)+Zr.cursorOffset+y[C].slice(v);break}C++,v-=E.length}var A=y[0],F=y[1],b=y[2];a=(A.replace(/\n/g,D)+F+b.replace(/\n/g,D)).replace(Zr.cursorOffset,(function(e,t){return g=t,""}))}else a=m.replace(/\n/g,D)+d+h.replace(/\n/g,D)}return{formatted:a,cursorOffset:g}}(e,t):coreFormat(t.insertPragma&&t.printer.insertPragma&&!n?t.printer.insertPragma(e):e,t);return f&&(d.formatted=String.fromCharCode(Yr)+d.formatted,a&&d.cursorOffset++),d}var en=function formatWithCursor(e,t){return format(e,t=zr(t))},tn=function parse(e,t,r){t=zr(t),-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,"\n"));var n=wt.parse(e,t);return r&&(n.ast=Pt(n.ast,t)),n},rn=function formatAST(e,t){t=zr(t);var r=Vr(e,t);return Gr(r,t)},nn=function formatDoc(e,t){return format(Kr(e),t=zr(Object.assign({},t,{parser:"babel"}))).formatted},an=function printToDoc(e,t){t=zr(t);var r=wt.parse(e,t),n=r.ast;return attachComments(e=r.text,n,t),Vr(n,t)},un=function printDocToString(e,t){return Gr(e,zr(t))},on=getCjsExportFromNamespace(Object.freeze({__proto__:null,default:["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]})),sn=function clean(e,t,r){if(["raw","raws","sourceIndex","source","before","after","trailingComma"].forEach((function(e){delete t[e]})),"yaml"===e.type&&delete t.value,"css-comment"===e.type&&"css-root"===r.type&&0!==r.nodes.length&&(r.nodes[0]===e||("yaml"===r.nodes[0].type||"toml"===r.nodes[0].type)&&r.nodes[1]===e)&&(delete t.text,/^\*\s*@(format|prettier)\s*$/.test(e.text)))return null;if("media-query"!==e.type&&"media-query-list"!==e.type&&"media-feature-expression"!==e.type||delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||-1!==["initial","inherit","unset","revert"].indexOf(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),"css-atrule"!==e.type&&"css-import"!==e.type||(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),"media-feature"!==e.type&&"media-keyword"!==e.type&&"media-type"!==e.type&&"media-unknown"!==e.type&&"media-url"!==e.type&&"media-value"!==e.type&&"selector-attribute"!==e.type&&"selector-string"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"value-string"!==e.type||!t.value||(t.value=function cleanCSSStrings(e){return e.replace(/'/g,'"').replace(/\\([^a-fA-F\d])/g,"$1")}(t.value)),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"==typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^['"]|['"]$/g,""),delete t.quoted)),"media-value"!==e.type&&"media-type"!==e.type&&"value-number"!==e.type&&"selector-root-invalid"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"selector-tag"!==e.type||!t.value||(t.value=t.value.replace(/([\d.eE+-]+)([a-zA-Z]*)/g,(function(e,t,r){var n=Number(t);return isNaN(n)?e:n+r.toLowerCase()}))),"selector-tag"===e.type){var n=e.value.toLowerCase();-1!==on.indexOf(n)&&(t.value=n),-1!==["from","to"].indexOf(n)&&(t.value=n)}"css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value},ln=mr.builders,cn=ln.hardline,pn=ln.literalline,fn=ln.concat,dn=ln.markAsRoot,mn=mr.utils.mapDoc,hn=function embed(e,t,r){var n=e.getValue();return"yaml"===n.type?dn(fn(["---",cn,n.value.trim()?function replaceNewlinesWithLiterallines(e){return mn(e,(function(e){return"string"==typeof e&&e.includes("\n")?fn(e.split(/(\n)/g).map((function(e,t){return t%2==0?e:pn}))):e}))}(r(n.value,{parser:"yaml"})):"","---",cn])):null},gn=createCommonjsModule((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"}})),Dn=(gn.graceful,createCommonjsModule((function(e,t){function _os(){var e=Ee;return _os=function _os(){return e},e}function _detectNewline(){var e=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(gn);return _detectNewline=function _detectNewline(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function extract(e){var t=e.match(a);return t?t[0].trimLeft():""},t.strip=function strip(e){var t=e.match(a);return t&&t[0]?e.substring(t[0].length):e},t.parse=function parse(e){return parseWithComments(e).pragmas},t.parseWithComments=parseWithComments,t.print=function print(e){var t=e.comments,r=void 0===t?"":t,n=e.pragmas,a=void 0===n?{}:n,u=(0,_detectNewline().default)(r)||_os().EOL,i=Object.keys(a),o=i.map((function(e){return printKeyValues(e,a[e])})).reduce((function(e,t){return e.concat(t)}),[]).map((function(e){return" * "+e+u})).join("");if(!r){if(0===i.length)return"";if(1===i.length&&!Array.isArray(a[i[0]])){var s=a[i[0]];return"".concat("/**"," ").concat(printKeyValues(i[0],s)[0]).concat(" */")}}var l=r.split(u).map((function(e){return"".concat(" *"," ").concat(e)})).join(u)+u;return"/**"+u+(r?l:"")+(r&&i.length?" *"+u:"")+o+" */"};var r=/\*\/$/,n=/^\/\*\*/,a=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,u=/(^|\s+)\/\/([^\r\n]*)/g,i=/^(\r?\n)+/,o=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,s=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,l=/(\r?\n|^) *\* ?/g;function parseWithComments(e){var t=(0,_detectNewline().default)(e)||_os().EOL;e=e.replace(n,"").replace(r,"").replace(l,"$1");for(var a="";a!==e;)a=e,e=e.replace(o,"".concat(t,"$1 $2").concat(t));e=e.replace(i,"").trimRight();for(var c,p=Object.create(null),f=e.replace(s,"").replace(i,"").trimRight();c=s.exec(e);){var d=c[2].replace(u,"");"string"==typeof p[c[1]]||Array.isArray(p[c[1]])?p[c[1]]=[].concat(p[c[1]],d):p[c[1]]=d}return{comments:f,pragmas:p}}function printKeyValues(e,t){return[].concat(t).map((function(t){return"@".concat(e," ").concat(t).trim()}))}})));unwrapExports(Dn),Dn.extract,Dn.strip,Dn.parse,Dn.parseWithComments,Dn.print;var yn={hasPragma:function hasPragma(e){var t=Object.keys(Dn.parse(Dn.extract(e)));return-1!==t.indexOf("prettier")||-1!==t.indexOf("format")},insertPragma:function insertPragma(e){var t=Dn.parseWithComments(Dn.extract(e)),r=Object.assign({format:""},t.pragmas),n=Dn.print({pragmas:r,comments:t.comments.replace(/^(\s+?\r?\n)+/,"")}).replace(/(\r\n|\r)/g,"\n"),a=Dn.strip(e);return n+(a.startsWith("\n")?"\n":"\n\n")+a}},Cn={"---":"yaml","+++":"toml"},vn=function parse$1(e){var t=Object.keys(Cn).map(de).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$/,""),a=r[1],u=r[2];return{frontMatter:{type:Cn[a],value:u,raw:n},content:r[0].replace(/[^\n]/g," ")+e.slice(r[0].length)}},En=["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 getAncestorCounter(e,t){for(var r,n=[].concat(t),a=-1;r=e.getParentNode(++a);)if(-1!==n.indexOf(r.type))return a;return-1}function getAncestorNode(e,t){var r=getAncestorCounter(e,t);return-1===r?null:e.getParentNode(r)}function isMultiplicationNode(e){return"value-operator"===e.type&&"*"===e.value}function isDivisionNode(e){return"value-operator"===e.type&&"/"===e.value}function isAdditionNode(e){return"value-operator"===e.type&&"+"===e.value}function isSubtractionNode(e){return"value-operator"===e.type&&"-"===e.value}function isModuloNode(e){return"value-operator"===e.type&&"%"===e.value}function isKeyValuePairNode(e){return"value-comma_group"===e.type&&e.groups&&e.groups[1]&&"value-colon"===e.groups[1].type}function isKeyValuePairInParenGroupNode(e){return"value-paren_group"===e.type&&e.groups&&e.groups[0]&&isKeyValuePairNode(e.groups[0])}var An=getAncestorNode,Fn=function getPropOfDeclNode(e){var t=getAncestorNode(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()},bn=function maybeToLowerCase(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()},Sn=function insideValueFunctionNode(e,t){var r=getAncestorNode(e,"value-func");return r&&r.value&&r.value.toLowerCase()===t},xn=function insideICSSRuleNode(e){var t=getAncestorNode(e,"css-rule");return t&&t.raws&&t.raws.selector&&(t.raws.selector.startsWith(":import")||t.raws.selector.startsWith(":export"))},wn=function insideAtRuleNode(e,t){var r=[].concat(t),n=getAncestorNode(e,"css-atrule");return n&&-1!==r.indexOf(n.name.toLowerCase())},Tn=function insideURLFunctionInImportAtRuleNode(e){var t=e.getValue(),r=getAncestorNode(e,"css-atrule");return r&&"import"===r.name&&"url"===t.groups[0].value&&2===t.groups.length},Bn=function isKeyframeAtRuleKeywords(e,t){var r=getAncestorNode(e,"css-atrule");return r&&r.name&&r.name.toLowerCase().endsWith("keyframes")&&-1!==["from","to"].indexOf(t.toLowerCase())},kn=function isHTMLTag(e){return-1!==on.indexOf(e.toLowerCase())},Nn=function isWideKeywords(e){return-1!==["initial","inherit","unset","revert"].indexOf(e.toLowerCase())},On=function isSCSS(e,t){return"less"===e||"scss"===e?"scss"===e:/(\w\s*: [^}:]+|#){|@import[^\n]+(url|,)/.test(t)},Pn=function isLastNode(e,t){var r=e.getParentNode();if(!r)return!1;var n=r.nodes;return n&&n.indexOf(t)===n.length-1},In=function isSCSSControlDirectiveNode(e){return"css-atrule"===e.type&&-1!==["if","else","for","each","while"].indexOf(e.name)},Ln=function isDetachedRulesetDeclarationNode(e){return!!e.selector&&("string"==typeof e.selector&&/^@.+:.*$/.test(e.selector)||e.selector.value&&/^@.+:.*$/.test(e.selector.value))},_n=function isRelationalOperatorNode(e){return"value-word"===e.type&&-1!==["<",">","<=",">="].indexOf(e.value)},jn=function isEqualityOperatorNode(e){return"value-word"===e.type&&-1!==["==","!="].indexOf(e.value)},Mn=isMultiplicationNode,Rn=isDivisionNode,$n=isAdditionNode,Wn=isSubtractionNode,Vn=function isMathOperatorNode(e){return isMultiplicationNode(e)||isDivisionNode(e)||isAdditionNode(e)||isSubtractionNode(e)||isModuloNode(e)},qn=function isEachKeywordNode(e){return"value-word"===e.type&&"in"===e.value},Un=function isForKeywordNode(e){return"value-word"===e.type&&-1!==["from","through","end"].indexOf(e.value)},zn=function isURLFunctionNode(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},Hn=function isIfElseKeywordNode(e){return"value-word"===e.type&&-1!==["and","or","not"].indexOf(e.value)},Jn=function hasComposesNode(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},Xn=function hasParensAroundNode(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},Gn=function hasEmptyRawBefore(e){return e.raws&&""===e.raws.before},Kn=function isDetachedRulesetCallNode(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},Yn=function isTemplatePlaceholderNode(e){return e.name.startsWith("prettier-placeholder")},Qn=function isTemplatePropNode(e){return e.prop.startsWith("@prettier-placeholder")},Zn=function isPostcssSimpleVarNode(e,t){return"$$"===e.value&&"value-func"===e.type&&t&&"value-word"===t.type&&!t.raws.before},ea=isKeyValuePairNode,ta=function isSCSSMapItemNode(e){var t=e.getValue();if(0===t.groups.length)return!1;var r=e.getParentNode(1);if(!(isKeyValuePairInParenGroupNode(t)||r&&isKeyValuePairInParenGroupNode(r)))return!1;var n=getAncestorNode(e,"css-decl");return!!(n&&n.prop&&n.prop.startsWith("$"))||!!isKeyValuePairInParenGroupNode(r)||"value-func"===r.type},ra=function isInlineValueCommentNode(e){return"value-comment"===e.type&&e.inline},na=function isHashNode(e){return"value-word"===e.type&&"#"===e.value},aa=function isLeftCurlyBraceNode(e){return"value-word"===e.type&&"{"===e.value},ua=function isRightCurlyBraceNode(e){return"value-word"===e.type&&"}"===e.value},ia=function isWordNode(e){return-1!==["value-word","value-atword"].indexOf(e.type)},oa=function isColonNode(e){return"value-colon"===e.type},sa=function isMediaAndSupportsKeywords(e){return e.value&&-1!==["not","and","or"].indexOf(e.value.toLowerCase())},la=function isColorAdjusterFuncNode(e){return"value-func"===e.type&&-1!==En.indexOf(e.value.toLowerCase())},ca=function insertPragma$1(e){var t=vn(e),r=t.frontMatter,n=t.content;return(r?r.raw+"\n\n":"")+yn.insertPragma(n)},pa=nr.printNumber,fa=nr.printString,da=nr.hasIgnoreComment,ma=nr.hasNewline,ha=gr.isNextLineEmpty,ga=mr.builders,Da=ga.concat,ya=ga.join,Ca=ga.line,va=ga.hardline,Ea=ga.softline,Aa=ga.group,Fa=ga.fill,ba=ga.indent,Sa=ga.dedent,xa=ga.ifBreak,wa=mr.utils.removeLines,Ta=An,Ba=Fn,ka=bn,Na=Sn,Oa=xn,Pa=wn,Ia=Tn,La=Bn,_a=kn,ja=Nn,Ma=On,Ra=Pn,$a=In,Wa=Ln,Va=_n,qa=jn,Ua=Mn,za=Rn,Ha=$n,Ja=Wn,Xa=Vn,Ga=qn,Ka=Un,Ya=zn,Qa=Hn,Za=Jn,eu=Xn,tu=Gn,ru=ea,nu=Kn,au=Yn,uu=Qn,iu=Zn,ou=ta,su=ra,lu=na,cu=aa,pu=ua,fu=ia,du=oa,mu=sa,hu=la;function shouldPrintComma(e){switch(e.trailingComma){case"all":case"es5":return!0;case"none":default:return!1}}function printNodeSequence(e,t,r){var n=e.getValue(),a=[],u=0;return e.map((function(e){var i=n.nodes[u-1];if(i&&"css-comment"===i.type&&"prettier-ignore"===i.text.trim()){var o=e.getValue();a.push(t.originalText.slice(t.locStart(o),t.locEnd(o)))}else a.push(e.call(r));u!==n.nodes.length-1&&("css-comment"===n.nodes[u+1].type&&!ma(t.originalText,t.locStart(n.nodes[u+1]),{backwards:!0})&&"yaml"!==n.nodes[u].type&&"toml"!==n.nodes[u].type||"css-atrule"===n.nodes[u+1].type&&"else"===n.nodes[u+1].name&&"css-comment"!==n.nodes[u].type?a.push(" "):(a.push(va),ha(t.originalText,e.getValue(),t)&&"yaml"!==n.nodes[u].type&&"toml"!==n.nodes[u].type&&a.push(va))),u++}),"nodes"),Da(a)}var gu=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g,Du=RegExp(gu.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 adjustStrings(e,t){return e.replace(gu,(function(e){return fa(e,t)}))}function quoteAttributeValue(e,t){var r=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:r+e+r}function adjustNumbers(e){return e.replace(Du,(function(e,t,r,n,a){return!r&&n?(r||"")+printCssNumber(n)+ka(a||""):e}))}function printCssNumber(e){return pa(e).replace(/\.0(?=$|e)/,"")}var yu={print:function genericPrint(e,t,r){var n=e.getValue();if(!n)return"";if("string"==typeof n)return n;switch(n.type){case"yaml":case"toml":return Da([n.raw,va]);case"css-root":var a=printNodeSequence(e,t,r);return a.parts.length?Da([a,va]):a;case"css-comment":if(n.raws.content)return n.raws.content;var u=t.originalText.slice(t.locStart(n),t.locEnd(n)),i=n.raws.text||n.text;return-1===u.indexOf(i)?n.raws.inline?Da(["// ",i]):Da(["/* ",i," */"]):u;case"css-rule":return Da([e.call(r,"selector"),n.important?" !important":"",n.nodes?Da([" {",n.nodes.length>0?ba(Da([va,printNodeSequence(e,t,r)])):"",va,"}",Wa(n)?";":""]):";"]);case"css-decl":var o=e.getParentNode();return Da([n.raws.before.replace(/[\s;]/g,""),Oa(e)?n.prop:ka(n.prop),":"===n.raws.between.trim()?":":n.raws.between.trim(),n.extend?"":" ",Za(n)?wa(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?Da([" {",ba(Da([Ea,printNodeSequence(e,t,r)])),Ea,"}"]):uu(n)&&!o.raws.semicolon&&";"!==t.originalText[t.locEnd(n)-1]?"":";"]);case"css-atrule":var s=e.getParentNode();return Da(["@",nu(n)||n.name.endsWith(":")?n.name:ka(n.name),n.params?Da([nu(n)?"":au(n)&&/^\s*\n/.test(n.raws.afterName)?/^\s*\n\s*\n/.test(n.raws.afterName)?Da([va,va]):va:" ",e.call(r,"params")]):"",n.selector?ba(Da([" ",e.call(r,"selector")])):"",n.value?Aa(Da([" ",e.call(r,"value"),$a(n)?eu(n)?" ":Ca:""])):"else"===n.name?" ":"",n.nodes?Da([$a(n)?"":" ","{",ba(Da([n.nodes.length>0?Ea:"",printNodeSequence(e,t,r)])),Ea,"}"]):au(n)&&!s.raws.semicolon&&";"!==t.originalText[t.locEnd(n)-1]?"":";"]);case"media-query-list":var l=[];return e.each((function(e){var t=e.getValue();"media-query"===t.type&&""===t.value||l.push(e.call(r))}),"nodes"),Aa(ba(ya(Ca,l)));case"media-query":return Da([ya(" ",e.map(r,"nodes")),Ra(e,n)?"":","]);case"media-type":return adjustNumbers(adjustStrings(n.value,t));case"media-feature-expression":return n.nodes?Da(["(",Da(e.map(r,"nodes")),")"]):n.value;case"media-feature":return ka(adjustStrings(n.value.replace(/ +/g," "),t));case"media-colon":return Da([n.value," "]);case"media-value":return adjustNumbers(adjustStrings(n.value,t));case"media-keyword":return adjustStrings(n.value,t);case"media-url":return adjustStrings(n.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":return n.value;case"selector-root":return Aa(Da([Pa(e,"custom-selector")?Da([Ta(e,"css-atrule").customSelector,Ca]):"",ya(Da([",",Pa(e,["extend","custom-selector","nest"])?Ca:va]),e.map(r,"nodes"))]));case"selector-selector":return Aa(ba(Da(e.map(r,"nodes"))));case"selector-comment":return n.value;case"selector-string":return adjustStrings(n.value,t);case"selector-tag":var c=e.getParentNode(),p=c&&c.nodes.indexOf(n),f=p&&c.nodes[p-1];return Da([n.namespace?Da([!0===n.namespace?"":n.namespace.trim(),"|"]):"","selector-nesting"===f.type?n.value:adjustNumbers(_a(n.value)||La(e,n.value)?n.value.toLowerCase():n.value)]);case"selector-id":return Da(["#",n.value]);case"selector-class":return Da([".",adjustNumbers(adjustStrings(n.value,t))]);case"selector-attribute":return Da(["[",n.namespace?Da([!0===n.namespace?"":n.namespace.trim(),"|"]):"",n.attribute.trim(),n.operator?n.operator:"",n.value?quoteAttributeValue(adjustStrings(n.value.trim(),t),t):"",n.insensitive?" i":"","]"]);case"selector-combinator":if("+"===n.value||">"===n.value||"~"===n.value||">>>"===n.value){var d=e.getParentNode(),m="selector-selector"===d.type&&d.nodes[0]===n?"":Ca;return Da([m,n.value,Ra(e,n)?"":" "])}var h=n.value.trim().startsWith("(")?Ca:"",g=adjustNumbers(adjustStrings(n.value.trim(),t))||Ca;return Da([h,g]);case"selector-universal":return Da([n.namespace?Da([!0===n.namespace?"":n.namespace.trim(),"|"]):"",n.value]);case"selector-pseudo":return Da([ka(n.value),n.nodes&&n.nodes.length>0?Da(["(",ya(", ",e.map(r,"nodes")),")"]):""]);case"selector-nesting":return n.value;case"selector-unknown":var D=Ta(e,"css-rule");return D&&D.isSCSSNesterProperty?adjustNumbers(adjustStrings(ka(n.value),t)):n.value;case"value-value":case"value-root":return e.call(r,"group");case"value-comment":return Da([n.inline?"//":"/*",n.value,n.inline?"":"*/"]);case"value-comma_group":for(var y=e.getParentNode(),C=e.getParentNode(1),v=Ba(e),E=v&&"value-value"===y.type&&("grid"===v||v.startsWith("grid-template")),A=Ta(e,"css-atrule"),F=A&&$a(A),b=e.map(r,"groups"),S=[],x=Na(e,"url"),w=!1,T=!1,B=0;B<n.groups.length;++B)if(S.push(b[B]),!x){var k=n.groups[B-1],N=n.groups[B],O=n.groups[B+1],P=n.groups[B+2];if(O){var I="value-string"===N.type&&N.value.startsWith("#{"),L=w&&"value-string"===O.type&&O.value.endsWith("}");if(I||L)w=!w;else if(!w&&!(du(N)||du(O)||"value-atword"===N.type&&""===N.value||"~"===N.value||N.value&&-1!==N.value.indexOf("\\")&&O&&"value-comment"!==O.type||k&&k.value&&k.value.indexOf("\\")===k.value.length-1&&"value-operator"===N.type&&"/"===N.value||"\\"===N.value||iu(N,O)||lu(N)||cu(N)||pu(O)||cu(O)&&tu(O)||pu(N)&&tu(O)||"--"===N.value&&lu(O))){var _=Xa(N),j=Xa(O);if(!((_&&lu(O)||j&&pu(N))&&tu(O)||Na(e,"calc")&&(Ha(N)||Ha(O)||Ja(N)||Ja(O))&&tu(O))){var M=(Ha(N)||Ja(N))&&0===B&&("value-number"===O.type||O.isHex)&&C&&hu(C)&&!tu(O),R=P&&"value-func"===P.type||P&&fu(P)||"value-func"===N.type||fu(N),$="value-func"===O.type||fu(O)||k&&"value-func"===k.type||k&&fu(k);(Ua(O)||Ua(N)||Na(e,"calc")||M||!(za(O)&&!R||za(N)&&!$||Ha(O)&&!R||Ha(N)&&!$||Ja(O)||Ja(N))||!(tu(O)||_&&(!k||k&&Xa(k))))&&(su(N)?S.push(va):F&&(qa(O)||Va(O)||Qa(O)||Ga(N)||Ka(N))?S.push(" "):A&&"namespace"===A.name.toLowerCase()?S.push(" "):E?N.source&&O.source&&N.source.start.line!==O.source.start.line?(S.push(va),T=!0):S.push(" "):j?S.push(" "):S.push(Ca))}}}}return T&&S.unshift(va),F?Aa(ba(Da(S))):Ia(e)?Aa(Fa(S)):Aa(ba(Fa(S)));case"value-paren_group":var W=e.getParentNode();if(W&&Ya(W)&&(1===n.groups.length||n.groups.length>0&&"value-comma_group"===n.groups[0].type&&n.groups[0].groups.length>0&&"value-word"===n.groups[0].groups[0].type&&n.groups[0].groups[0].value.startsWith("data:")))return Da([n.open?e.call(r,"open"):"",ya(",",e.map(r,"groups")),n.close?e.call(r,"close"):""]);if(!n.open){for(var V=e.map(r,"groups"),q=[],U=0;U<V.length;U++)0!==U&&q.push(Da([",",Ca])),q.push(V[U]);return Aa(ba(Fa(q)))}var z=ou(e);return Aa(Da([n.open?e.call(r,"open"):"",ba(Da([Ea,ya(Da([",",Ca]),e.map((function(e){var t=e.getValue(),n=r(e);return ru(t)&&"value-comma_group"===t.type&&t.groups&&t.groups[2]&&"value-paren_group"===t.groups[2].type?(n.contents.contents.parts[1]=Aa(n.contents.contents.parts[1]),Aa(Sa(n))):n}),"groups"))])),xa(Ma(t.parser,t.originalText)&&z&&shouldPrintComma(t)?",":""),Ea,n.close?e.call(r,"close"):""]),{shouldBreak:z});case"value-func":return Da([n.value,Pa(e,"supports")&&mu(n)?" ":"",e.call(r,"group")]);case"value-paren":return n.value;case"value-number":return Da([printCssNumber(n.value),ka(n.unit)]);case"value-operator":return n.value;case"value-word":return n.isColor&&n.isHex||ja(n.value)?n.value.toLowerCase():n.value;case"value-colon":return Da([n.value,Na(e,"url")?"":Ca]);case"value-comma":return Da([n.value," "]);case"value-string":return fa(n.raws.quote+n.value+n.raws.quote,t);case"value-atword":return Da(["@",n.value]);case"value-unicode-range":case"value-unknown":return n.value;default:throw new Error("Unknown postcss type ".concat(JSON.stringify(n.type)))}},embed:hn,insertPragma:ca,hasPrettierIgnore:da,massageAstNode:sn},Cu={bracketSpacing:{since:"0.0.0",category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:"Common",type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."},{value:!1,deprecated:"1.9.0",redirect:"never"},{value:!0,deprecated:"1.9.0",redirect:"always"}]}},vu={singleQuote:Cu.singleQuote},Eu=function createLanguage(e,t){var r={};for(var n in e)r["languageId"===n?"linguistLanguageId":n]=e[n];return t(r)},Au=[".css"],Fu={name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:Au,languageId:50},bu=Object.freeze({__proto__:null,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:Au,languageId:50,default:Fu}),Su=[".pcss"],xu={name:"PostCSS",type:"markup",tmScope:"source.postcss",group:"CSS",extensions:Su,aceMode:"text",languageId:262764437},wu=Object.freeze({__proto__:null,name:"PostCSS",type:"markup",tmScope:"source.postcss",group:"CSS",extensions:Su,aceMode:"text",languageId:262764437,default:xu}),Tu=[".less"],Bu={name:"Less",type:"markup",group:"CSS",extensions:Tu,tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198},ku=Object.freeze({__proto__:null,name:"Less",type:"markup",group:"CSS",extensions:Tu,tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198,default:Bu}),Nu=[".scss"],Ou={name:"SCSS",type:"markup",tmScope:"source.css.scss",group:"CSS",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:Nu,languageId:329},Pu=Object.freeze({__proto__:null,name:"SCSS",type:"markup",tmScope:"source.css.scss",group:"CSS",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:Nu,languageId:329,default:Ou}),Iu=getCjsExportFromNamespace(bu),Lu=getCjsExportFromNamespace(wu),_u=getCjsExportFromNamespace(ku),ju=getCjsExportFromNamespace(Pu),Mu={languages:[Eu(Iu,(function(e){return Object.assign(e,{since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"]})})),Eu(Lu,(function(e){return Object.assign(e,{since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"],extensions:e.extensions.concat(".postcss")})})),Eu(_u,(function(e){return Object.assign(e,{since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]})})),Eu(ju,(function(e){return Object.assign(e,{since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]})}))],options:vu,printers:{postcss:yu}},Ru=function insertPragma$3(e){return"# @format\n\n"+e},$u=mr.builders,Wu=$u.concat,Vu=$u.join,qu=$u.hardline,Uu=$u.line,zu=$u.softline,Hu=$u.group,Ju=$u.indent,Xu=$u.ifBreak,Gu=nr.hasIgnoreComment,Ku=gr.isNextLineEmpty;function printDirectives(e,t,r){return 0===r.directives.length?"":Wu([" ",Hu(Ju(Wu([zu,Vu(Wu([Xu(""," "),zu]),e.map(t,"directives"))])))])}function printSequence(e,t,r){var n=e.getValue().length;return e.map((function(e,a){var u=r(e);return Ku(t.originalText,e.getValue(),t)&&a<n-1?Wu([u,qu]):u}))}function determineInterfaceSeparator(e){var t=e.indexOf("implements");if(-1===t)throw new Error("Must implement interfaces: "+e);var r=e.indexOf("{");return-1===r&&(r=e.length),e.substr(t,r).includes("&")?" & ":", "}var Yu={print:function genericPrint$1(e,t,r){var n=e.getValue();if(!n)return"";if("string"==typeof n)return n;switch(n.kind){case"Document":var a=[];return e.map((function(e,u){a.push(Wu([e.call(r)])),u!==n.definitions.length-1&&(a.push(qu),Ku(t.originalText,e.getValue(),t)&&a.push(qu))}),"definitions"),Wu([Wu(a),qu]);case"OperationDefinition":var u="{"!==t.originalText[t.locStart(n)],i=!!n.name;return Wu([u?n.operation:"",u&&i?Wu([" ",e.call(r,"name")]):"",n.variableDefinitions&&n.variableDefinitions.length?Hu(Wu(["(",Ju(Wu([zu,Vu(Wu([Xu("",", "),zu]),e.map(r,"variableDefinitions"))])),zu,")"])):"",printDirectives(e,r,n),n.selectionSet&&(u||i)?" ":"",e.call(r,"selectionSet")]);case"FragmentDefinition":return Wu(["fragment ",e.call(r,"name"),n.variableDefinitions&&n.variableDefinitions.length?Hu(Wu(["(",Ju(Wu([zu,Vu(Wu([Xu("",", "),zu]),e.map(r,"variableDefinitions"))])),zu,")"])):""," on ",e.call(r,"typeCondition"),printDirectives(e,r,n)," ",e.call(r,"selectionSet")]);case"SelectionSet":return Wu(["{",Ju(Wu([qu,Vu(qu,e.call((function(e){return printSequence(e,t,r)}),"selections"))])),qu,"}"]);case"Field":return Hu(Wu([n.alias?Wu([e.call(r,"alias"),": "]):"",e.call(r,"name"),n.arguments.length>0?Hu(Wu(["(",Ju(Wu([zu,Vu(Wu([Xu("",", "),zu]),e.call((function(e){return printSequence(e,t,r)}),"arguments"))])),zu,")"])):"",printDirectives(e,r,n),n.selectionSet?" ":"",e.call(r,"selectionSet")]));case"Name":return n.value;case"StringValue":return n.block?Wu(['"""',qu,Vu(qu,n.value.replace(/"""/g,"\\$&").split("\n")),qu,'"""']):Wu(['"',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 Wu(["$",e.call(r,"name")]);case"ListValue":return Hu(Wu(["[",Ju(Wu([zu,Vu(Wu([Xu("",", "),zu]),e.map(r,"values"))])),zu,"]"]));case"ObjectValue":return Hu(Wu(["{",t.bracketSpacing&&n.fields.length>0?" ":"",Ju(Wu([zu,Vu(Wu([Xu("",", "),zu]),e.map(r,"fields"))])),zu,Xu("",t.bracketSpacing&&n.fields.length>0?" ":""),"}"]));case"ObjectField":case"Argument":return Wu([e.call(r,"name"),": ",e.call(r,"value")]);case"Directive":return Wu(["@",e.call(r,"name"),n.arguments.length>0?Hu(Wu(["(",Ju(Wu([zu,Vu(Wu([Xu("",", "),zu]),e.call((function(e){return printSequence(e,t,r)}),"arguments"))])),zu,")"])):""]);case"NamedType":return e.call(r,"name");case"VariableDefinition":return Wu([e.call(r,"variable"),": ",e.call(r,"type"),n.defaultValue?Wu([" = ",e.call(r,"defaultValue")]):"",printDirectives(e,r,n)]);case"TypeExtensionDefinition":return Wu(["extend ",e.call(r,"definition")]);case"ObjectTypeExtension":case"ObjectTypeDefinition":return Wu([e.call(r,"description"),n.description?qu:"","ObjectTypeExtension"===n.kind?"extend ":"","type ",e.call(r,"name"),n.interfaces.length>0?Wu([" implements ",Vu(determineInterfaceSeparator(t.originalText.substr(t.locStart(n),t.locEnd(n))),e.map(r,"interfaces"))]):"",printDirectives(e,r,n),n.fields.length>0?Wu([" {",Ju(Wu([qu,Vu(qu,e.call((function(e){return printSequence(e,t,r)}),"fields"))])),qu,"}"]):""]);case"FieldDefinition":return Wu([e.call(r,"description"),n.description?qu:"",e.call(r,"name"),n.arguments.length>0?Hu(Wu(["(",Ju(Wu([zu,Vu(Wu([Xu("",", "),zu]),e.call((function(e){return printSequence(e,t,r)}),"arguments"))])),zu,")"])):"",": ",e.call(r,"type"),printDirectives(e,r,n)]);case"DirectiveDefinition":return Wu([e.call(r,"description"),n.description?qu:"","directive ","@",e.call(r,"name"),n.arguments.length>0?Hu(Wu(["(",Ju(Wu([zu,Vu(Wu([Xu("",", "),zu]),e.call((function(e){return printSequence(e,t,r)}),"arguments"))])),zu,")"])):"",Wu([" on ",Vu(" | ",e.map(r,"locations"))])]);case"EnumTypeExtension":case"EnumTypeDefinition":return Wu([e.call(r,"description"),n.description?qu:"","EnumTypeExtension"===n.kind?"extend ":"","enum ",e.call(r,"name"),printDirectives(e,r,n),n.values.length>0?Wu([" {",Ju(Wu([qu,Vu(qu,e.call((function(e){return printSequence(e,t,r)}),"values"))])),qu,"}"]):""]);case"EnumValueDefinition":return Wu([e.call(r,"description"),n.description?qu:"",e.call(r,"name"),printDirectives(e,r,n)]);case"InputValueDefinition":return Wu([e.call(r,"description"),n.description?n.description.block?qu:Uu:"",e.call(r,"name"),": ",e.call(r,"type"),n.defaultValue?Wu([" = ",e.call(r,"defaultValue")]):"",printDirectives(e,r,n)]);case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return Wu([e.call(r,"description"),n.description?qu:"","InputObjectTypeExtension"===n.kind?"extend ":"","input ",e.call(r,"name"),printDirectives(e,r,n),n.fields.length>0?Wu([" {",Ju(Wu([qu,Vu(qu,e.call((function(e){return printSequence(e,t,r)}),"fields"))])),qu,"}"]):""]);case"SchemaDefinition":return Wu(["schema",printDirectives(e,r,n)," {",n.operationTypes.length>0?Ju(Wu([qu,Vu(qu,e.call((function(e){return printSequence(e,t,r)}),"operationTypes"))])):"",qu,"}"]);case"OperationTypeDefinition":return Wu([e.call(r,"operation"),": ",e.call(r,"type")]);case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return Wu([e.call(r,"description"),n.description?qu:"","InterfaceTypeExtension"===n.kind?"extend ":"","interface ",e.call(r,"name"),printDirectives(e,r,n),n.fields.length>0?Wu([" {",Ju(Wu([qu,Vu(qu,e.call((function(e){return printSequence(e,t,r)}),"fields"))])),qu,"}"]):""]);case"FragmentSpread":return Wu(["...",e.call(r,"name"),printDirectives(e,r,n)]);case"InlineFragment":return Wu(["...",n.typeCondition?Wu([" on ",e.call(r,"typeCondition")]):"",printDirectives(e,r,n)," ",e.call(r,"selectionSet")]);case"UnionTypeExtension":case"UnionTypeDefinition":return Hu(Wu([e.call(r,"description"),n.description?qu:"",Hu(Wu(["UnionTypeExtension"===n.kind?"extend ":"","union ",e.call(r,"name"),printDirectives(e,r,n),n.types.length>0?Wu([" =",Xu(""," "),Ju(Wu([Xu(Wu([Uu,"  "])),Vu(Wu([Uu,"| "]),e.map(r,"types"))]))]):""]))]));case"ScalarTypeExtension":case"ScalarTypeDefinition":return Wu([e.call(r,"description"),n.description?qu:"","ScalarTypeExtension"===n.kind?"extend ":"","scalar ",e.call(r,"name"),printDirectives(e,r,n)]);case"NonNullType":return Wu([e.call(r,"type"),"!"]);case"ListType":return Wu(["[",e.call(r,"type"),"]"]);default:throw new Error("unknown graphql type: "+JSON.stringify(n.kind))}},massageAstNode:function clean$1(e,t){delete t.loc,delete t.comments},hasPrettierIgnore:Gu,insertPragma:Ru,printComment:function printComment$1(e){var t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimRight();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function canAttachComment(e){return e.kind&&"Comment"!==e.kind}},Qu={bracketSpacing:Cu.bracketSpacing},Zu=[".graphql",".gql",".graphqls"],ei={name:"GraphQL",type:"data",extensions:Zu,tmScope:"source.graphql",aceMode:"text",languageId:139},ti={languages:[Eu(getCjsExportFromNamespace(Object.freeze({__proto__:null,name:"GraphQL",type:"data",extensions:Zu,tmScope:"source.graphql",aceMode:"text",languageId:139,default:ei})),(function(e){return Object.assign(e,{since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]})}))],options:Qu,printers:{graphql:Yu}},ri=mr.builders,ni=ri.concat,ai=ri.join,ui=ri.softline,ii=ri.hardline,oi=ri.line,si=ri.group,li=ri.indent,ci=ri.ifBreak,pi=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function printChildren(e,t,r){return ni(e.map((function(n,a){var u=e.getValue(),i=0===a,o=a==e.getParentNode(0).children.length-1&&!i;return isWhitespaceNode(u)&&o?r(n,t,r):i?ni([ui,r(n,t,r)]):r(n,t,r)}),"children"))}function printStringLiteral(e,t){var r={quote:'"',regex:/"/g},n={quote:"'",regex:/'/g},a=t.singleQuote?n:r,u=a===n?r:n,i=!1;(e.includes(a.quote)||e.includes(u.quote))&&(i=(e.match(a.regex)||[]).length>(e.match(u.regex)||[]).length);var o=i?u:a,s=e.replace(o.regex,"\\".concat(o.quote));return"".concat(o.quote).concat(s).concat(o.quote)}function printPath(e,t){return e.call(t,"path")}function getParams(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 printPathParams(e,t,r){var n=[];return r=Object.assign({group:!0},r||{}),n.push(printPath(e,t)),n=n.concat(getParams(e,t)),r.group?li(si(ai(oi,n))):li(ai(oi,n))}function printBlockParams(e){var t=e.getValue();return t.program&&t.program.blockParams.length?ni([" as |",t.program.blockParams.join(" "),"|"]):""}function printOpenBlock(e,t){return si(ni(["{{#",printPathParams(e,t),printBlockParams(e),ui,"}}"]))}function printCloseBlock(e,t){return ni(["{{/",e.call(t,"path"),"}}"])}function isWhitespaceNode(e){return"TextNode"===e.type&&!/\S/.test(e.chars)}function getPreviousNode(e){var t=e.getValue(),r=e.getParentNode(0),n=r.children||r.body;if(n){var a=n.indexOf(t);if(a>0)return n[a-1]}}function getNextNode(e){var t=e.getValue(),r=e.getParentNode(0),n=r.children||r.body;if(n){var a=n.indexOf(t);if(a<n.length)return n[a+1]}}function isPreviousNodeOfSomeType(e,t){var r=getPreviousNode(e);return!!r&&t.some((function(e){return r.type===e}))}function isNextNodeOfType(e,t){var r=getNextNode(e);return r&&r.type===t}function countNewLines(e){return(e="string"==typeof e?e:"").split("\n").length-1}function generateHardlines(){var e=arguments.length>0&&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(ii)}var fi={print:function print(e,t,r){var n=e.getValue();if(!n)return"";switch(n.type){case"Block":case"Program":case"Template":return si(ni(e.map(r,"body").filter((function(e){return""!==e}))));case"ElementNode":var a=n.tag[0],u=-1!==n.tag.indexOf("."),i=a.toUpperCase()===a||u,o=n.children.length>0,s=n.children.some((function(e){return!isWhitespaceNode(e)})),l=i&&(!o||!s)||-1!==pi.indexOf(n.tag),c=l?ni([" />",ui]):">",p=l?"/>":">",f=getNextNode(e);return ni([si(ni(["<",n.tag,function _getParams(e,t){return li(ni([n.attributes.length?oi:"",ai(oi,e.map(t,"attributes")),n.modifiers.length?oi:"",ai(oi,e.map(t,"modifiers")),n.comments.length?oi:"",ai(oi,e.map(t,"comments"))]))}(e,r),n.blockParams.length?" as |".concat(n.blockParams.join(" "),"|"):"",ci(ui,""),ci(p,c)])),l?"":si(ni([s?li(printChildren(e,t,r)):"",ci(o?ii:"",""),ni(["</",n.tag,">"])])),f&&"ElementNode"===f.type?ii:""]);case"BlockStatement":var d=e.getParentNode(1),m=d&&d.inverse&&1===d.inverse.body.length&&d.inverse.body[0]===n&&"if"===d.inverse.body[0].path.parts[0],h=n.inverse&&1===n.inverse.body.length&&"BlockStatement"===n.inverse.body[0].type&&"if"===n.inverse.body[0].path.parts[0],g=h?function(e){return e}:li;if(n.inverse)return ni([m?ni(["{{else ",printPathParams(e,r),"}}"]):printOpenBlock(e,r),li(ni([ii,e.call(r,"program")])),n.inverse&&!h?ni([ii,"{{else}}"]):"",n.inverse?g(ni([ii,e.call(r,"inverse")])):"",m?"":ni([ii,printCloseBlock(e,r)])]);if(m)return ni([ni(["{{else ",printPathParams(e,r),"}}"]),li(ni([ii,e.call(r,"program")]))]);var D=n.program.body.some((function(e){return!isWhitespaceNode(e)}));return ni([printOpenBlock(e,r),si(ni([li(ni([ui,e.call(r,"program")])),D?ii:ui,printCloseBlock(e,r)]))]);case"ElementModifierStatement":case"MustacheStatement":var y=e.getParentNode(1),C=y&&"ConcatStatement"===y.type;return si(ni([!1===n.escaped?"{{{":"{{",printPathParams(e,r,{group:!1}),C?"":ui,!1===n.escaped?"}}}":"}}"]));case"SubExpression":var v=getParams(e,r),E=v.length>0?li(ni([oi,si(ai(oi,v))])):"";return si(ni(["(",printPath(e,r),E,ui,")"]));case"AttrNode":var A="TextNode"===n.value.type;if(A&&n.value.loc.start.column===n.value.loc.end.column)return ni([n.name]);var F=e.call(r,"value"),b=A?printStringLiteral(F.parts.join(),t):F;return ni([n.name,"=",b]);case"ConcatStatement":return ni(['"',si(li(ai(ui,e.map((function(e){return r(e)}),"parts").filter((function(e){return""!==e}))))),'"']);case"Hash":return ni([ai(oi,e.map(r,"pairs"))]);case"HashPair":return ni([n.key,"=",e.call(r,"value")]);case"TextNode":var S=!getPreviousNode(e),x=!getNextNode(e),w=!/\S/.test(n.chars),T=countNewLines(n.chars),B="Block"===e.getParentNode(0).type,k="ElementNode"===e.getParentNode(0).type,N="Template"===e.getParentNode(0).type,O=function countLeadingNewLines(e){return countNewLines(((e="string"==typeof e?e:"").match(/^([^\S\r\n]*[\r\n])+/g)||[])[0]||"")}(n.chars),P=function countTrailingNewLines(e){return countNewLines(((e="string"==typeof e?e:"").match(/([\r\n][^\S\r\n]*)+$/g)||[])[0]||"")}(n.chars);if((S||x)&&w&&(B||k||N))return"";w&&T?(O=Math.min(T,2),P=0):((isNextNodeOfType(e,"ElementNode")||isNextNodeOfType(e,"BlockStatement"))&&(P=Math.max(P,1)),(isPreviousNodeOfSomeType(e,["ElementNode"])||isPreviousNodeOfSomeType(e,["BlockStatement"]))&&(O=Math.max(O,1)));var I="",L="";if(e.stack.indexOf("attributes")>=0){var _=e.getParentNode(0);if("ConcatStatement"===_.type){var j=_.parts,M=j.indexOf(n);M>0&&"MustacheStatement"===j[M-1].type&&(I=" "),M<j.length-1&&"MustacheStatement"===j[M+1].type&&(L=" ")}}else 0===P&&isNextNodeOfType(e,"MustacheStatement")&&(L=" "),0===O&&isPreviousNodeOfSomeType(e,["MustacheStatement"])&&(I=" "),S&&(O=0,I=""),x&&(P=0,L="");return ni([].concat(_toConsumableArray(generateHardlines(O,2)),[n.chars.replace(/^[\s ]+/g,I).replace(/[\s ]+$/,L)],_toConsumableArray(generateHardlines(P,2))).filter(Boolean));case"MustacheCommentStatement":var R=n.value.indexOf("}}")>-1?"--":"";return ni(["{{!",R,n.value,R,"}}"]);case"PathExpression":return n.original;case"BooleanLiteral":return String(n.value);case"CommentStatement":return ni(["\x3c!--",n.value,"--\x3e"]);case"StringLiteral":return printStringLiteral(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 clean$2(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+$/,"")}}},di=["hbs","htmlbars"],mi=[".handlebars",".hbs"],hi={name:"Handlebars",type:"markup",group:"HTML",aliases:di,extensions:mi,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155},gi={languages:[Eu(getCjsExportFromNamespace(Object.freeze({__proto__:null,name:"Handlebars",type:"markup",group:"HTML",aliases:di,extensions:mi,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155,default:hi})),(function(e){return Object.assign(e,{since:null,parsers:["glimmer"],vscodeLanguageIds:["handlebars"]})}))],printers:{glimmer:fi}},Di={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"},yi="inline",Ci={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},vi="normal",Ei=["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],Ai=["title"],Fi=["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],bi=["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],Si=["autoplay","controls","crossorigin","loop","muted","preload","src"],xi=["href","target"],wi=["color","face","size"],Ti=["dir"],Bi=["cite"],ki=["alink","background","bgcolor","link","text","vlink"],Ni=["clear"],Oi=["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],Pi=["height","width"],Ii=["align"],Li=["align","char","charoff","span","valign","width"],_i=["align","char","charoff","span","valign","width"],ji=["value"],Mi=["cite","datetime"],Ri=["open"],$i=["title"],Wi=["open"],Vi=["compact"],qi=["align"],Ui=["compact"],zi=["height","src","type","width"],Hi=["disabled","form","name"],Ji=["color","face","size"],Xi=["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],Gi=["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],Ki=["cols","rows"],Yi=["align"],Qi=["align"],Zi=["align"],eo=["align"],to=["align"],ro=["align"],no=["profile"],ao=["align","noshade","size","width"],uo=["manifest","version"],io=["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],oo=["align","alt","border","crossorigin","decoding","height","hspace","ismap","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],so=["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"],lo=["cite","datetime"],co=["prompt"],po=["accesskey","for","form"],fo=["accesskey","align"],mo=["type","value"],ho=["as","charset","color","crossorigin","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],go=["name"],Do=["compact"],yo=["charset","content","http-equiv","name","scheme"],Co=["high","low","max","min","optimum","value"],vo=["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],Eo=["compact","reversed","start","type"],Ao=["disabled","label"],Fo=["disabled","label","selected","value"],bo=["for","form","name"],So=["align"],xo=["name","type","value","valuetype"],wo=["width"],To=["max","value"],Bo=["cite"],ko=["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],No=["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],Oo=["name"],Po=["media","sizes","src","srcset","type"],Io=["media","nonce","title","type"],Lo=["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],_o=["align","char","charoff","valign"],jo=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],Mo=["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],Ro=["align","char","charoff","valign"],$o=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],Wo=["align","char","charoff","valign"],Vo=["datetime"],qo=["align","bgcolor","char","charoff","valign"],Uo=["default","kind","label","src","srclang"],zo=["compact","type"],Ho=["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"],Jo={"*":["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:Ei,abbr:Ai,applet:Fi,area:bi,audio:Si,base:xi,basefont:wi,bdo:Ti,blockquote:Bi,body:ki,br:Ni,button:Oi,canvas:Pi,caption:Ii,col:Li,colgroup:_i,data:ji,del:Mi,details:Ri,dfn:$i,dialog:Wi,dir:Vi,div:qi,dl:Ui,embed:zi,fieldset:Hi,font:Ji,form:Xi,frame:Gi,frameset:Ki,h1:Yi,h2:Qi,h3:Zi,h4:eo,h5:to,h6:ro,head:no,hr:ao,html:uo,iframe:io,img:oo,input:so,ins:lo,isindex:co,label:po,legend:fo,li:mo,link:ho,map:go,menu:Do,meta:yo,meter:Co,object:vo,ol:Eo,optgroup:Ao,option:Fo,output:bo,p:So,param:xo,pre:wo,progress:To,q:Bo,script:ko,select:No,slot:Oo,source:Po,style:Io,table:Lo,tbody:_o,td:jo,textarea:Mo,tfoot:Ro,th:$o,thead:Wo,time:Vo,tr:qo,track:Uo,ul:zo,video:Ho},Xo=getCjsExportFromNamespace(Object.freeze({__proto__:null,a:Ei,abbr:Ai,applet:Fi,area:bi,audio:Si,base:xi,basefont:wi,bdo:Ti,blockquote:Bi,body:ki,br:Ni,button:Oi,canvas:Pi,caption:Ii,col:Li,colgroup:_i,data:ji,del:Mi,details:Ri,dfn:$i,dialog:Wi,dir:Vi,div:qi,dl:Ui,embed:zi,fieldset:Hi,font:Ji,form:Xi,frame:Gi,frameset:Ki,h1:Yi,h2:Qi,h3:Zi,h4:eo,h5:to,h6:ro,head:no,hr:ao,html:uo,iframe:io,img:oo,input:so,ins:lo,isindex:co,label:po,legend:fo,li:mo,link:ho,map:go,menu:Do,meta:yo,meter:Co,object:vo,ol:Eo,optgroup:Ao,option:Fo,output:bo,p:So,param:xo,pre:wo,progress:To,q:Bo,script:ko,select:No,slot:Oo,source:Po,style:Io,table:Lo,tbody:_o,td:jo,textarea:Mo,tfoot:Ro,th:$o,thead:Wo,time:Vo,tr:qo,track:Uo,ul:zo,video:Ho,default:Jo})),Go=Di,Ko=yi,Yo=Ci,Qo=vi;function arrayToMap(e){var t=Object.create(null),r=!0,n=!1,a=void 0;try{for(var u,i=e[Symbol.iterator]();!(r=(u=i.next()).done);r=!0)t[u.value]=!0}catch(e){n=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw a}}return t}function shouldPreserveContent(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)||!(!isPreLikeNode(e)||!e.children.some((function(e){return"text"!==e.type&&"interpolation"!==e.type})))}function hasPrettierIgnore(e){return"attribute"!==e.type&&!isTextLikeNode(e)&&!!e.parent&&"number"==typeof e.index&&0!==e.index&&function isPrettierIgnore(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])}function isTextLikeNode(e){return"text"===e.type||"comment"===e.type}function isScriptLikeTag(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName)}function isFrontMatterNode(e){return"yaml"===e.type||"toml"===e.type}function isIndentationSensitiveNode(e){return getNodeCssStyleWhiteSpace(e).startsWith("pre")}function forceBreakChildren(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 preferHardlineAsTrailingSpaces(e){return preferHardlineAsSurroundingSpaces(e)||"element"===e.type&&"br"===e.fullName||hasSurroundingLineBreak(e)}function hasSurroundingLineBreak(e){return hasLeadingLineBreak(e)&&hasTrailingLineBreak(e)}function hasLeadingLineBreak(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:"root"===e.parent.type||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function hasTrailingLineBreak(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function preferHardlineAsSurroundingSpaces(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return-1!==["script","select"].indexOf(e.name)}return!1}function isBlockLikeCssDisplay(e){return"block"===e||"list-item"===e||e.startsWith("table")}function isPreLikeNode(e){return getNodeCssStyleWhiteSpace(e).startsWith("pre")}function getNodeCssStyleWhiteSpace(e){return"element"===e.type&&!e.namespace&&Yo[e.name]||Qo}arrayToMap(on),function mapObject(e,t){for(var r=Object.create(null),n=0,a=Object.keys(e);n<a.length;n++){var u=a[n];r[u]=t(e[u],u)}return r}(Xo,arrayToMap);var Zo=function canHaveInterpolation(e){return e.children&&!isScriptLikeTag(e)},es=function countChars(e,t){for(var r=0,n=0;n<e.length;n++)e[n]===t&&r++;return r},ts=function countParents(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},r=0,n=e.stack.length-1;n>=0;n--){var a=e.stack[n];a&&"object"===_typeof(a)&&!Array.isArray(a)&&t(a)&&r++}return r},rs=function dedentString(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function getMinIndentation(e){var t=1/0,r=!0,n=!1,a=void 0;try{for(var u,i=e.split("\n")[Symbol.iterator]();!(r=(u=i.next()).done);r=!0){var o=u.value;if(0!==o.length){if(/\S/.test(o[0]))return 0;var s=o.match(/^\s*/)[0].length;o.length!==s&&s<t&&(t=s)}}}catch(e){n=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw a}}return t===1/0?0:t}(e);return 0===t?e:e.split("\n").map((function(e){return e.slice(t)})).join("\n")},ns=forceBreakChildren,as=function forceBreakContent(e){return forceBreakChildren(e)||"element"===e.type&&0!==e.children.length&&(-1!==["body","script","style"].indexOf(e.name)||e.children.some((function(e){return function hasNonTextChild(e){return e.children&&e.children.some((function(e){return"text"!==e.type}))}(e)})))||e.firstChild&&e.firstChild===e.lastChild&&hasLeadingLineBreak(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||hasTrailingLineBreak(e.lastChild))},us=function forceNextEmptyLine(e){return isFrontMatterNode(e)||e.next&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line},is=function getLastDescendant(e){return e.lastChild?getLastDescendant(e.lastChild):e},os=function getPrettierIgnoreAttributeCommentData(e){var t=e.trim().match(/^prettier-ignore-attribute(?:\s+([^]+))?$/);return!!t&&(!t[1]||t[1].split(/\s+/))},ss=hasPrettierIgnore,ls=function inferScriptParser(e){if("script"===e.name&&!e.attrMap.src){if(!e.attrMap.lang&&!e.attrMap.type||"module"===e.attrMap.type||"text/javascript"===e.attrMap.type||"text/babel"===e.attrMap.type||"application/javascript"===e.attrMap.type)return"babel";if("application/x-typescript"===e.attrMap.type||"ts"===e.attrMap.lang||"tsx"===e.attrMap.lang)return"typescript";if("text/markdown"===e.attrMap.type)return"markdown";if(e.attrMap.type.endsWith("json")||e.attrMap.type.endsWith("importmap"))return"json"}if("style"===e.name){if(!e.attrMap.lang||"postcss"===e.attrMap.lang||"css"===e.attrMap.lang)return"css";if("scss"===e.attrMap.lang)return"scss";if("less"===e.attrMap.lang)return"less"}return null},cs=function isDanglingSpaceSensitiveNode(e){return function isDanglingSpaceSensitiveCssDisplay(e){return!isBlockLikeCssDisplay(e)&&"inline-block"!==e}(e.cssDisplay)&&!isScriptLikeTag(e)},ps=function isLeadingSpaceSensitiveNode(e){var t=function _isLeadingSpaceSensitiveNode(){return!isFrontMatterNode(e)&&(!("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!isPreLikeNode(e.parent)||!!(e.prev||"root"!==e.parent.type&&!isScriptLikeTag(e.parent)&&function isFirstChildLeadingSpaceSensitiveCssDisplay(e){return!isBlockLikeCssDisplay(e)&&"inline-block"!==e}(e.parent.cssDisplay))&&!(e.prev&&!function isNextLeadingSpaceSensitiveCssDisplay(e){return!isBlockLikeCssDisplay(e)}(e.prev.cssDisplay))))}();return t&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:t},fs=isScriptLikeTag,ds=isTextLikeNode,ms=function normalizeParts(e){for(var t=[],r=e.slice();0!==r.length;){var n=r.shift();n&&("concat"!==n.type?0===t.length||"string"!=typeof t[t.length-1]||"string"!=typeof n?t.push(n):t.push(t.pop()+n):Array.prototype.unshift.apply(r,n.parts))}return t},hs=function preferHardlineAsLeadingSpaces(e){return preferHardlineAsSurroundingSpaces(e)||e.prev&&preferHardlineAsTrailingSpaces(e.prev)||hasSurroundingLineBreak(e)},gs=function shouldNotPrintClosingTag(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(hasPrettierIgnore(e)||shouldPreserveContent(e.parent,t))},Ds=shouldPreserveContent,ys=function unescapeQuoteEntities(e){return e.replace(/&apos;/g,"'").replace(/&quot;/g,'"')},Cs=Zo,vs=function getNodeCssStyleDisplay(e,t){if(e.prev&&"comment"===e.prev.type){var r=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(r)return r[1]}var n=!1;if("element"===e.type&&"svg"===e.namespace){if(!function hasParent(e,t){for(var r=e;r;){if(t(r))return!0;r=r.parent}return!1}(e,(function(e){return"svg:foreignObject"===e.fullName})))return"svg"===e.name?"inline-block":"block";n=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"element"===e.type&&(!e.namespace||n)&&Go[e.name]||Ko}},Es=cs,As=isIndentationSensitiveNode,Fs=ps,bs=function isTrailingSpaceSensitiveNode(e){return!(isFrontMatterNode(e)||("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)&&(!e.parent||"none"===e.parent.cssDisplay||!isPreLikeNode(e.parent)&&(!(e.next||"root"!==e.parent.type&&!isScriptLikeTag(e.parent)&&function isLastChildTrailingSpaceSensitiveCssDisplay(e){return!isBlockLikeCssDisplay(e)&&"inline-block"!==e}(e.parent.cssDisplay))||e.next&&!function isPrevTrailingSpaceSensitiveCssDisplay(e){return!isBlockLikeCssDisplay(e)}(e.next.cssDisplay))))},Ss=function isWhitespaceSensitiveNode(e){return isScriptLikeTag(e)||"interpolation"===e.type||isIndentationSensitiveNode(e)},xs=[function removeIgnorableFirstLf(e){return e.map((function(e){if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&0!==e.children.length&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){var t=e.children[0];return e.clone({children:1===t.value.length?e.children.slice(1):[].concat(t.clone({value:t.value.slice(1)}),e.children.slice(1))})}return e}))},function mergeIeConditonalStartEndCommentIntoElementOpeningTag(e){var t=function isTarget(e){return"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset};return e.map((function(e){if(e.children){var r=e.children.map(t);if(r.some(Boolean)){for(var n=[],a=0;a<e.children.length;a++){var u=e.children[a];if(!r[a+1])if(r[a]){var i=u.prev,o=u.firstChild,s=u.sourceSpan.constructor,l=new s(i.sourceSpan.start,o.sourceSpan.end),c=new s(l.start,u.sourceSpan.end);n.push(u.clone({condition:i.condition,sourceSpan:c,startSourceSpan:l,children:u.children.slice(1)}))}else n.push(u)}return e.clone({children:n})}}return e}))},function mergeCdataIntoText(e){return function mergeNodeIntoText(e,t,r){return e.map((function(e){if(e.children){var n=e.children.map(t);if(n.some(Boolean)){for(var a=[],u=0;u<e.children.length;u++){var i=e.children[u];if("text"===i.type||n[u]){var o="text"===i.type?i:i.clone({type:"text",value:r(i)});if(0!==a.length&&"text"===a[a.length-1].type){var s=a.pop(),l=s.sourceSpan.constructor;a.push(s.clone({value:s.value+o.value,sourceSpan:new l(s.sourceSpan.start,o.sourceSpan.end)}))}else a.push(o)}else a.push(i)}return e.clone({children:a})}}return e}))}(e,(function(e){return"cdata"===e.type}),(function(e){return"<![CDATA[".concat(e.value,"]]>")}))},function extractInterpolation(e,t){if("html"===t.parser)return e;var r=/\{\{([\s\S]+?)\}\}/g;return e.map((function(e){if(!Cs(e))return e;var t=[],n=!0,a=!1,u=void 0;try{for(var i,o=e.children[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;if("text"===s.type)for(var l=s.sourceSpan.constructor,c=s.sourceSpan.start,p=null,f=s.value.split(r),d=0;d<f.length;d++,c=p){var m=f[d];d%2!=0?(p=c.moveBy(m.length+4),t.push({type:"interpolation",sourceSpan:new l(c,p),children:0===m.length?[]:[{type:"text",value:m,sourceSpan:new l(c.moveBy(2),p.moveBy(-2))}]})):(p=c.moveBy(m.length),0!==m.length&&t.push({type:"text",value:m,sourceSpan:new l(c,p)}))}else t.push(s)}}catch(e){a=!0,u=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw u}}return e.clone({children:t})}))},function extractWhitespaces(e){return e.map((function(e){if(!e.children)return e;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===e.children[0].value.trim().length)return e.clone({children:[],hasDanglingSpaces:0!==e.children.length});var t=Ss(e),r=As(e);return e.clone({isWhitespaceSensitive:t,isIndentationSensitive:r,children:e.children.reduce((function(e,r){if("text"!==r.type||t)return e.concat(r);var n=[],a=_slicedToArray(r.value.match(/^(\s*)([\s\S]*?)(\s*)$/),4),u=a[1],i=a[2],o=a[3];u&&n.push({type:"whitespace"});var s=r.sourceSpan.constructor;return i&&n.push({type:"text",value:i,sourceSpan:new s(r.sourceSpan.start.moveBy(u.length),r.sourceSpan.end.moveBy(-o.length))}),o&&n.push({type:"whitespace"}),e.concat(n)}),[]).reduce((function(e,t,r,n){if("whitespace"===t.type)return e;var a=0!==r&&"whitespace"===n[r-1].type,u=r!==n.length-1&&"whitespace"===n[r+1].type;return e.concat(Object.assign({},t,{hasLeadingSpaces:a,hasTrailingSpaces:u}))}),[])})}))},function addCssDisplay(e,t){return e.map((function(e){return Object.assign(e,{cssDisplay:vs(e,t)})}))},function addIsSelfClosing(e){return e.map((function(e){return Object.assign(e,{isSelfClosing:!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)})}))},function addHasHtmComponentClosingTag(e,t){return e.map((function(e){return"element"!==e.type?e:Object.assign(e,{hasHtmComponentClosingTag:e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))})}))},function addIsSpaceSensitive(e){return e.map((function(e){return e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:Es(e)}):e.clone({children:e.children.map((function(e){return Object.assign({},e,{isLeadingSpaceSensitive:Fs(e),isTrailingSpaceSensitive:bs(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 mergeSimpleElementIntoText(e){var t=function isSimpleElement(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=[],a=0;a<e.children.length;a++){var u=e.children[a];if(r[a]){var i=n.pop(),o=e.children[++a],s=e.sourceSpan.constructor,l=o.isTrailingSpaceSensitive,c=o.hasTrailingSpaces;n.push(i.clone({value:i.value+"<".concat(u.rawName,">")+u.firstChild.value+"</".concat(u.rawName,">")+o.value,sourceSpan:new s(i.sourceSpan.start,o.sourceSpan.end),isTrailingSpaceSensitive:l,hasTrailingSpaces:c}))}else n.push(u)}return e.clone({children:n})}}return e}))}],ws=function preprocess(e,t){var r=!0,n=!1,a=void 0;try{for(var u,i=xs[Symbol.iterator]();!(r=(u=i.next()).done);r=!0)e=(0,u.value)(e,t)}catch(e){n=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw a}}return e},Ts=function insertPragma$5(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")},Bs=mr.builders,ks=Bs.concat,Ns=Bs.group,Os=function isVueEventBindingExpression(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)},Ps=function printVueFor(e,t){var r=function parseVueFor(e){var t=/,([^,}\]]*)(?:,([^,}\]]*))?$/,r=e.match(/([^]*?)\s+(in|of)\s+([^]*)/);if(r){var n={};n.for=r[3].trim();var a=r[1].trim().replace(/^\(|\)$/g,""),u=a.match(t);return u?(n.alias=a.replace(t,""),n.iterator1=u[1].trim(),u[2]&&(n.iterator2=u[2].trim())):n.alias=a,{left:"".concat([n.alias,n.iterator1,n.iterator2].filter(Boolean).join(",")),operator:r[2],right:n.for}}}(e),n=r.left,a=r.operator,u=r.right;return ks([Ns(t("function _(".concat(n,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",a," ",t(u,{parser:"__js_expression"})])},Is=function printVueSlotScope(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueSlotScope:!0})},Ls=createCommonjsModule((function(e){var t,r;t=N,r=function(){return function(e,t){var r=t&&t.logger||console;function isSpace(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function collectCharacters(t){var r,n=t.exec(e.substring(h));if(n)return r=n[0],h+=r.length,r}for(var n,a,u,i,o,s=e.length,l=/^[ \t\n\r\u000c]+/,c=/^[, \t\n\r\u000c]+/,p=/^[^ \t\n\r\u000c]+/,f=/[,]+$/,d=/^\d+$/,m=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,h=0,g=[];;){if(collectCharacters(c),h>=s)return g;n=collectCharacters(p),a=[],","===n.slice(-1)?(n=n.replace(f,""),parseDescriptors()):tokenize()}function tokenize(){for(collectCharacters(l),u="",i="in descriptor";;){if(o=e.charAt(h),"in descriptor"===i)if(isSpace(o))u&&(a.push(u),u="",i="after descriptor");else{if(","===o)return h+=1,u&&a.push(u),void parseDescriptors();if("("===o)u+=o,i="in parens";else{if(""===o)return u&&a.push(u),void parseDescriptors();u+=o}}else if("in parens"===i)if(")"===o)u+=o,i="in descriptor";else{if(""===o)return a.push(u),void parseDescriptors();u+=o}else if("after descriptor"===i)if(isSpace(o));else{if(""===o)return void parseDescriptors();i="in descriptor",h-=1}h+=1}}function parseDescriptors(){var t,u,i,o,s,l,c,p,f,h=!1,D={};for(o=0;o<a.length;o++)l=(s=a[o])[s.length-1],c=s.substring(0,s.length-1),p=parseInt(c,10),f=parseFloat(c),d.test(c)&&"w"===l?((t||u)&&(h=!0),0===p?h=!0:t=p):m.test(c)&&"x"===l?((t||u||i)&&(h=!0),f<0?h=!0:u=f):d.test(c)&&"h"===l?((i||u)&&(h=!0),0===p?h=!0:i=p):h=!0;h?r&&r.error&&r.error("Invalid srcset descriptor found in '"+e+"' at '"+s+"'."):(D.url=n,t&&(D.w=t),u&&(D.d=u),i&&(D.h=i),g.push(D))}}},e.exports?e.exports=r():t.parseSrcset=r()})),_s=mr.builders,js=_s.concat,Ms=_s.ifBreak,Rs=_s.join,$s=_s.line,Ws=function printImgSrcset(e){var t=Ls(e,{logger:{error:function error(e){throw new Error(e)}}}),r=t.some((function(e){return e.w})),n=t.some((function(e){return e.h}));if(r+n+t.some((function(e){return e.d}))!==1)throw new Error("Mixed descriptor in srcset is not supported");var a=r?"w":n?"h":"d",u=r?"w":n?"h":"x",i=function getMax(e){return Math.max.apply(Math,e)},o=t.map((function(e){return e.url})),s=i(o.map((function(e){return e.length}))),l=t.map((function(e){return e[a]})).map((function(e){return e?e.toString():""})),c=l.map((function(e){var t=e.indexOf(".");return-1===t?e.length:t})),p=i(c);return Rs(js([",",$s]),o.map((function(e,t){var r=[e],n=l[t];if(n){var a=s-e.length+1,i=p-c[t],o=" ".repeat(a+i);r.push(Ms(o," "),n+u)}return js(r)})))},Vs=mr.builders,qs=mr.utils,Us=qs.stripTrailingHardline,zs=qs.mapDoc,Hs=Vs.breakParent,Js=Vs.dedentToRoot,Xs=Vs.fill,Gs=Vs.group,Ks=Vs.hardline,Ys=Vs.ifBreak,Qs=Vs.indent,Zs=Vs.join,el=Vs.line,tl=Vs.literalline,rl=Vs.markAsRoot,nl=Vs.softline,al=es,ul=ts,il=rs,ol=ns,sl=as,ll=us,cl=is,pl=os,fl=ss,dl=ls,ml=fs,hl=ds,gl=ms,Dl=hs,yl=gs,Cl=Ds,vl=ys,El=nr.replaceEndOfLineWith,Al=Ps,Fl=Is,bl=Os,Sl=Ws;function concat$a(e){var t=gl(e);return 0===t.length?"":1===t.length?t[0]:Vs.concat(t)}function printChildren$1(e,t,r){var n=e.getValue();if(ol(n))return concat$a([Hs,concat$a(e.map((function(e){var t=e.getValue(),r=t.prev?printBetweenLine(t.prev,t):"";return concat$a([r?concat$a([r,ll(t.prev)?Ks:""]):"",printChild(e)])}),"children"))]);var a=n.children.map((function(){return Symbol("")}));return concat$a(e.map((function(e,t){var r=e.getValue();if(hl(r)){if(r.prev&&hl(r.prev)){var n=printBetweenLine(r.prev,r);if(n)return ll(r.prev)?concat$a([Ks,Ks,printChild(e)]):concat$a([n,printChild(e)])}return printChild(e)}var u=[],i=[],o=[],s=[],l=r.prev?printBetweenLine(r.prev,r):"",c=r.next?printBetweenLine(r,r.next):"";return l&&(ll(r.prev)?u.push(Ks,Ks):l===Ks?u.push(Ks):hl(r.prev)?i.push(l):i.push(Ys("",nl,{groupId:a[t-1]}))),c&&(ll(r)?hl(r.next)&&s.push(Ks,Ks):c===Ks?hl(r.next)&&s.push(Ks):o.push(c)),concat$a([].concat(u,Gs(concat$a([concat$a(i),Gs(concat$a([printChild(e),concat$a(o)]),{id:a[t]})])),s))}),"children"));function printChild(e){var n=e.getValue();return fl(n)?concat$a([].concat(printOpeningTagPrefix(n,t),El(t.originalText.slice(t.locStart(n)+(n.prev&&needsToBorrowNextOpeningTagStartMarker(n.prev)?printOpeningTagStartMarker(n).length:0),t.locEnd(n)-(n.next&&needsToBorrowPrevClosingTagEndMarker(n.next)?printClosingTagEndMarker(n,t).length:0)),tl),printClosingTagSuffix(n,t))):Cl(n,t)?concat$a([].concat(printOpeningTagPrefix(n,t),Gs(printOpeningTag(e,t,r)),El(t.originalText.slice(n.startSourceSpan.end.offset+(n.firstChild&&needsToBorrowParentOpeningTagEndMarker(n.firstChild)?-printOpeningTagEndMarker(n).length:0),n.endSourceSpan.start.offset+(n.lastChild&&needsToBorrowParentClosingTagStartMarker(n.lastChild)?printClosingTagStartMarker(n,t).length:needsToBorrowLastChildClosingTagEndMarker(n)?-printClosingTagEndMarker(n.lastChild,t).length:0)),tl),printClosingTag(n,t),printClosingTagSuffix(n,t))):r(e)}function printBetweenLine(e,t){return hl(e)&&hl(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?Dl(t)?Ks:el:"":Dl(t)?Ks:nl:needsToBorrowNextOpeningTagStartMarker(e)&&(t.firstChild||t.isSelfClosing||"element"===t.type&&0!==t.attrs.length)||"element"===e.type&&e.isSelfClosing&&needsToBorrowPrevClosingTagEndMarker(t)?"":!t.isLeadingSpaceSensitive||Dl(t)||needsToBorrowPrevClosingTagEndMarker(t)&&e.lastChild&&needsToBorrowParentClosingTagStartMarker(e.lastChild)&&e.lastChild.lastChild&&needsToBorrowParentClosingTagStartMarker(e.lastChild.lastChild)?Ks:t.hasLeadingSpaces?el:nl}}function printOpeningTag(e,t,r){var n,a,u=e.getValue(),i="element"===u.type&&"script"===u.fullName&&1===u.attrs.length&&"src"===u.attrs[0].fullName&&0===u.children.length;return concat$a([printOpeningTagStart(u,t),u.attrs&&0!==u.attrs.length?concat$a([Qs(concat$a([i?" ":el,Zs(el,(n=u.prev&&"comment"===u.prev.type&&pl(u.prev.value),a="boolean"==typeof n?function(){return n}:Array.isArray(n)?function(e){return-1!==n.indexOf(e.rawName)}:function(){return!1},e.map((function(e){var n=e.getValue();return a(n)?concat$a(El(t.originalText.slice(t.locStart(n),t.locEnd(n)),tl)):r(e)}),"attrs")))])),u.firstChild&&needsToBorrowParentOpeningTagEndMarker(u.firstChild)||u.isSelfClosing&&needsToBorrowLastChildClosingTagEndMarker(u.parent)?"":u.isSelfClosing?i?" ":el:i?"":nl]):u.isSelfClosing?" ":"",u.isSelfClosing?"":printOpeningTagEnd(u)])}function printOpeningTagStart(e,t){return e.prev&&needsToBorrowNextOpeningTagStartMarker(e.prev)?"":concat$a([printOpeningTagPrefix(e,t),printOpeningTagStartMarker(e)])}function printOpeningTagEnd(e){return e.firstChild&&needsToBorrowParentOpeningTagEndMarker(e.firstChild)?"":printOpeningTagEndMarker(e)}function printClosingTag(e,t){return concat$a([e.isSelfClosing?"":printClosingTagStart(e,t),printClosingTagEnd(e,t)])}function printClosingTagStart(e,t){return e.lastChild&&needsToBorrowParentClosingTagStartMarker(e.lastChild)?"":concat$a([printClosingTagPrefix(e,t),printClosingTagStartMarker(e,t)])}function printClosingTagEnd(e,t){return(e.next?needsToBorrowPrevClosingTagEndMarker(e.next):needsToBorrowLastChildClosingTagEndMarker(e.parent))?"":concat$a([printClosingTagEndMarker(e,t),printClosingTagSuffix(e,t)])}function needsToBorrowNextOpeningTagStartMarker(e){return e.next&&!hl(e.next)&&hl(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function needsToBorrowParentOpeningTagEndMarker(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function needsToBorrowPrevClosingTagEndMarker(e){return e.prev&&!hl(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function needsToBorrowLastChildClosingTagEndMarker(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!hl(cl(e.lastChild))}function needsToBorrowParentClosingTagStartMarker(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&hl(cl(e))}function printOpeningTagPrefix(e,t){return needsToBorrowParentOpeningTagEndMarker(e)?printOpeningTagEndMarker(e.parent):needsToBorrowPrevClosingTagEndMarker(e)?printClosingTagEndMarker(e.prev,t):""}function printClosingTagPrefix(e,t){return needsToBorrowLastChildClosingTagEndMarker(e)?printClosingTagEndMarker(e.lastChild,t):""}function printClosingTagSuffix(e,t){return needsToBorrowParentClosingTagStartMarker(e)?printClosingTagStartMarker(e.parent,t):needsToBorrowNextOpeningTagStartMarker(e)?printOpeningTagStartMarker(e.next):""}function printOpeningTagStartMarker(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"\x3c!--[if ".concat(e.condition);case"ieConditionalEndComment":return"\x3c!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(e.condition)return"\x3c!--[if ".concat(e.condition,"]>\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function printOpeningTagEndMarker(e){switch(e.isSelfClosing,e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--<![endif]--\x3e";default:return">"}}function printClosingTagStartMarker(e,t){if(e.isSelfClosing,yl(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return"</".concat(e.rawName)}}function printClosingTagEndMarker(e,t){if(yl(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]--\x3e";case"ieConditionalStartComment":return"]>\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function getTextValueParts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?El(t,tl):El(il(t.replace(/^\s*?\n|\n\s*?$/g,"")),Ks):Zs(el,t.split(/[\t\n\f\r ]+/)).parts}var xl={preprocess:ws,print:function genericPrint$2(e,t,r){var n,a=e.getValue();switch(a.type){case"root":return Vs.concat([Gs(printChildren$1(e,t,r)),Ks]);case"element":case"ieConditionalComment":var u=1===a.children.length&&"interpolation"===a.firstChild.type&&a.firstChild.isLeadingSpaceSensitive&&!a.firstChild.hasLeadingSpaces&&a.lastChild.isTrailingSpaceSensitive&&!a.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id");return concat$a([Gs(concat$a([Gs(printOpeningTag(e,t,r),{id:i}),0===a.children.length?a.hasDanglingSpaces&&a.isDanglingSpaceSensitive?el:"":concat$a([sl(a)?Hs:"",(n=concat$a([u?Ys(nl,"",{groupId:i}):a.firstChild.hasLeadingSpaces&&a.firstChild.isLeadingSpaceSensitive?el:"text"===a.firstChild.type&&a.isWhitespaceSensitive&&a.isIndentationSensitive?Js(nl):nl,printChildren$1(e,t,r)]),u?Ys(Qs(n),n,{groupId:i}):ml(a)&&"root"===a.parent.type&&"vue"===t.parser&&!t.vueIndentScriptAndStyle?n:Qs(n)),(a.next?needsToBorrowPrevClosingTagEndMarker(a.next):needsToBorrowLastChildClosingTagEndMarker(a.parent))?a.lastChild.hasTrailingSpaces&&a.lastChild.isTrailingSpaceSensitive?" ":"":u?Ys(nl,"",{groupId:i}):a.lastChild.hasTrailingSpaces&&a.lastChild.isTrailingSpaceSensitive?el:("comment"===a.lastChild.type||"text"===a.lastChild.type&&a.isWhitespaceSensitive&&a.isIndentationSensitive)&&new RegExp("\\n\\s{".concat(t.tabWidth*ul(e,(function(e){return e.parent&&"root"!==e.parent.type})),"}$")).test(a.lastChild.value)?"":nl])])),printClosingTag(a,t)]);case"ieConditionalStartComment":case"ieConditionalEndComment":return concat$a([printOpeningTagStart(a),printClosingTagEnd(a)]);case"interpolation":return concat$a([printOpeningTagStart(a,t),concat$a(e.map(r,"children")),printClosingTagEnd(a,t)]);case"text":if("interpolation"===a.parent.type){var o=/\n[^\S\n]*?$/,s=o.test(a.value),l=s?a.value.replace(o,""):a.value;return concat$a([concat$a(El(l,tl)),s?Ks:""])}return Xs(gl([].concat(printOpeningTagPrefix(a,t),getTextValueParts(a),printClosingTagSuffix(a,t))));case"docType":return concat$a([Gs(concat$a([printOpeningTagStart(a,t)," ",a.value.replace(/^html\b/i,"html").replace(/\s+/g," ")])),printClosingTagEnd(a,t)]);case"comment":return concat$a([printOpeningTagPrefix(a,t),concat$a(El(t.originalText.slice(t.locStart(a),t.locEnd(a)),tl)),printClosingTagSuffix(a,t)]);case"attribute":if(null===a.value)return a.rawName;var c=vl(a.value),p=al(c,"'")<al(c,'"')?"'":'"';return concat$a([a.rawName,concat$a(["=",p,concat$a(El('"'===p?c.replace(/"/g,"&quot;"):c.replace(/'/g,"&apos;"),tl)),p])]);case"yaml":case"toml":return concat$a(El(a.raw,tl));default:throw new Error("Unexpected node type ".concat(a.type))}},insertPragma:Ts,massageAstNode:function clean(e,t){return delete t.sourceSpan,delete t.startSourceSpan,delete t.endSourceSpan,delete t.nameSpan,delete t.valueSpan,"text"===e.type||"comment"===e.type?null:"yaml"===e.type||"toml"===e.type?null:("attribute"===e.type&&delete t.value,void("docType"===e.type&&delete t.value))},embed:function embed$2(e,t,r,n){var a=e.getValue();switch(a.type){case"text":if(ml(a.parent)){var u=dl(a.parent);if(u){var i="markdown"===u?il(a.value.replace(/^[^\S\n]*?\n/,"")):a.value;return Vs.concat([concat$a([Hs,printOpeningTagPrefix(a,n),Us(r(i,{parser:u})),printClosingTagSuffix(a,n)])])}}else if("interpolation"===a.parent.type)return concat$a([Qs(concat$a([el,r(a.value,Object.assign({__isInHtmlInterpolation:!0},"angular"===n.parser?{parser:"__ng_interpolation",trailingComma:"none"}:"vue"===n.parser?{parser:"__vue_expression"}:{parser:"__js_expression"}))])),a.parent.next&&needsToBorrowPrevClosingTagEndMarker(a.parent.next)?" ":el]);break;case"attribute":if(!a.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(n.originalText.slice(a.valueSpan.start.offset,a.valueSpan.end.offset)))return concat$a([a.rawName,"=",a.value]);if("lwc"===n.parser&&/^\{[\s\S]*\}$/.test(n.originalText.slice(a.valueSpan.start.offset,a.valueSpan.end.offset)))return concat$a([a.rawName,"=",a.value]);var o=function printEmbeddedAttributeValue(e,t,r){var n=function isKeyMatched(t){return new RegExp(t.join("|")).test(e.fullName)},a=function getValue(){return vl(e.value)},u=!1,i=function __onHtmlBindingRoot(e){var t="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;!t||"ObjectExpression"!==t.type&&"ArrayExpression"!==t.type||(u=!0)},o=function printExpand(e){return Gs(concat$a([Qs(concat$a([nl,e])),nl]))},s=function printMaybeHug(e){return u?function printHug(e){return Gs(e)}(e):o(e)},l=function textToDoc(e,r){return t(e,Object.assign({__onHtmlBindingRoot:i},r))};if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return o(Sl(a()));if("vue"===r.parser){if("v-for"===e.fullName)return Al(a(),l);if("slot-scope"===e.fullName)return Fl(a(),l);if(n(["^@","^v-on:"])){var c=a();return s(bl(c)?l(c,{parser:"__js_expression"}):Us(l(c,{parser:"__vue_event_binding"})))}if(n(["^:","^v-bind:"]))return s(l(a(),{parser:"__vue_expression"}));if(n(["^v-"]))return s(l(a(),{parser:"__js_expression"}))}if("angular"===r.parser){var p=function ngTextToDoc(e,t){return l(e,Object.assign({trailingComma:"none"},t))};if(n(["^\\(.+\\)$","^on-"]))return s(p(a(),{parser:"__ng_action"}));if(n(["^\\[.+\\]$","^bind(on)?-"]))return s(p(a(),{parser:"__ng_binding"}));if(n(["^i18n(-.+)?$"]))return o(Xs(getTextValueParts(e,a())));if(n(["^\\*"]))return s(p(a(),{parser:"__ng_directive"}));var f=/\{\{([\s\S]+?)\}\}/g,d=a();if(f.test(d)){var m=[];return d.split(f).forEach((function(e,t){if(t%2==0)m.push(concat$a(El(e,tl)));else try{m.push(Gs(concat$a(["{{",Qs(concat$a([el,p(e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})])),el,"}}"])))}catch(t){m.push("{{",concat$a(El(e,tl)),"}}")}})),Gs(concat$a(m))}}return null}(a,(function(e,t){return r(e,Object.assign({__isInHtmlAttribute:!0},t))}),n);if(o)return concat$a([a.rawName,'="',Gs(zs(o,(function(e){return"string"==typeof e?e.replace(/"/g,"&quot;"):e}))),'"']);break;case"yaml":return rl(concat$a(["---",Ks,0===a.value.trim().length?"":r(a.value,{parser:"yaml"}),"---"]))}}},wl={htmlWhitespaceSensitivity:{since:"1.15.0",category:"HTML",type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:"HTML",type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Tl=["xhtml"],Bl=[".html",".htm",".html.hl",".inc",".st",".xht",".xhtml"],kl={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:Tl,extensions:Bl,languageId:146},Nl=Object.freeze({__proto__:null,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:Tl,extensions:Bl,languageId:146,default:kl}),Ol=[".vue"],Pl={name:"Vue",type:"markup",color:"#2c3e50",extensions:Ol,tmScope:"text.html.vue",aceMode:"html",languageId:391},Il=Object.freeze({__proto__:null,name:"Vue",type:"markup",color:"#2c3e50",extensions:Ol,tmScope:"text.html.vue",aceMode:"html",languageId:391,default:Pl}),Ll=getCjsExportFromNamespace(Nl),_l=getCjsExportFromNamespace(Il),jl={languages:[Eu(Ll,(function(e){return Object.assign(e,{name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})})),Eu(Ll,(function(e){return Object.assign(e,{since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:e.extensions.concat([".mjml"])})})),Eu(Ll,(function(e){return Object.assign(e,{name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})})),Eu(_l,(function(e){return Object.assign(e,{since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]})}))],printers:{html:xl},options:wl},Ml=gr.addLeadingComment,Rl=gr.addTrailingComment,$l=gr.addDanglingComment;function addBlockStatementFirstComment(e,t){var r=e.body.filter((function(e){return"EmptyStatement"!==e.type}));0===r.length?$l(e,t):Ml(r[0],t)}function addBlockOrNotComment(e,t){"BlockStatement"===e.type?addBlockStatementFirstComment(e,t):Ml(e,t)}function handleIfStatementComments(e,t,r,n,a,u){return!(!r||"IfStatement"!==r.type||!n||(")"===nr.getNextNonSpaceNonCommentCharacter(e,a,u.locEnd)?(Rl(t,a),0):t===r.consequent&&n===r.alternate?("BlockStatement"===t.type?Rl(t,a):$l(r,a),0):"BlockStatement"===n.type?(addBlockStatementFirstComment(n,a),0):"IfStatement"===n.type?(addBlockOrNotComment(n.consequent,a),0):r.consequent!==n||(Ml(n,a),0)))}function handleWhileComments(e,t,r,n,a,u){return!(!r||"WhileStatement"!==r.type||!n||(")"===nr.getNextNonSpaceNonCommentCharacter(e,a,u.locEnd)?(Rl(t,a),0):"BlockStatement"!==n.type||(addBlockStatementFirstComment(n,a),0)))}function handleTryStatementComments(e,t,r,n){return!(!e||"TryStatement"!==e.type&&"CatchClause"!==e.type||!r||("CatchClause"===e.type&&t?(Rl(t,n),0):"BlockStatement"===r.type?(addBlockStatementFirstComment(r,n),0):"TryStatement"===r.type?(addBlockOrNotComment(r.finalizer,n),0):"CatchClause"!==r.type||(addBlockOrNotComment(r.body,n),0)))}function handleClassComments(e,t,r,n){return!(!(e&&("ClassDeclaration"===e.type||"ClassExpression"===e.type)&&e.decorators&&e.decorators.length>0)||r&&"Decorator"===r.type||(e.decorators&&0!==e.decorators.length?Rl(e.decorators[e.decorators.length-1],n):Ml(e,n),0))}function handleMethodNameComments(e,t,r,n,a){return t&&r&&("Property"===t.type||"MethodDefinition"===t.type)&&"Identifier"===r.type&&t.key===r&&":"!==nr.getNextNonSpaceNonCommentCharacter(e,r,a.locEnd)?(Rl(r,n),!0):!(!r||!t||"Decorator"!==r.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"MethodDefinition"!==t.type||(Rl(r,n),0))}function handleLastFunctionArgComments(e,t,r,n,a,u){if(t&&"FunctionTypeParam"===t.type&&r&&"FunctionTypeAnnotation"===r.type&&n&&"FunctionTypeParam"!==n.type)return Rl(t,a),!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)&&")"===nr.getNextNonSpaceNonCommentCharacter(e,a,u.locEnd))return Rl(t,a),!0;if(r&&"FunctionDeclaration"===r.type&&n&&"BlockStatement"===n.type){var i=function(){if(0!==r.params.length)return nr.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,u.locEnd(nr.getLast(r.params)));var t=nr.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,u.locEnd(r.id));return nr.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,t+1)}();if(u.locStart(a)>i)return addBlockStatementFirstComment(n,a),!0}return!1}function handleImportSpecifierComments(e,t){return!(!e||"ImportSpecifier"!==e.type||(Ml(e,t),0))}function handleOnlyComments(e,t,r,n){return t&&t.body&&0===t.body.length?(n?$l(t,r):Ml(t,r),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length||(n?$l(e,r):Ml(e,r),0))}var Wl={handleOwnLineComment:function handleOwnLineComment(e,t,r,n,a){var u=e.precedingNode,i=e.enclosingNode,o=e.followingNode;return!!(handleLastFunctionArgComments(t,u,i,o,e,r)||function handleMemberExpressionComments(e,t,r){return!(!e||"MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type||!t||"Identifier"!==t.type)&&(Ml(e,r),!0)}(i,o,e)||handleIfStatementComments(t,u,i,o,e,r)||handleWhileComments(t,u,i,o,e,r)||handleTryStatementComments(i,u,o,e)||handleClassComments(i,0,o,e)||handleImportSpecifierComments(i,e)||function handleForComments(e,t,r){return!(!e||"ForInStatement"!==e.type&&"ForOfStatement"!==e.type)&&(Ml(e,r),!0)}(i,0,e)||function handleUnionTypeComments(e,t,r,n){return!(!t||"UnionTypeAnnotation"!==t.type&&"TSUnionType"!==t.type)&&(Rl(e,n),!0)}(u,i,0,e)||handleOnlyComments(i,n,e,a)||function handleImportDeclarationComments(e,t,r,n,a){return!!(r&&"ImportSpecifier"===r.type&&t&&"ImportDeclaration"===t.type&&nr.hasNewline(e,a.locEnd(n)))&&(Rl(r,n),!0)}(t,i,u,e,r)||function handleAssignmentPatternComments(e,t){return!(!e||"AssignmentPattern"!==e.type)&&(Ml(e,t),!0)}(i,e)||handleMethodNameComments(t,i,u,e,r))},handleEndOfLineComment:function handleEndOfLineComment(e,t,r,n,a){var u=e.precedingNode,i=e.enclosingNode,o=e.followingNode;return!!(handleLastFunctionArgComments(t,u,i,o,e,r)||function handleConditionalExpressionComments(e,t,r,n,a,u){var i=t&&!nr.hasNewlineInRange(a,u.locEnd(t),u.locStart(n));return!(t&&i||!e||"ConditionalExpression"!==e.type||!r)&&(Ml(r,n),!0)}(i,u,o,e,t,r)||handleImportSpecifierComments(i,e)||handleIfStatementComments(t,u,i,o,e,r)||handleWhileComments(t,u,i,o,e,r)||handleTryStatementComments(i,u,o,e)||handleClassComments(i,0,o,e)||function handleLabeledStatementComments(e,t){return!(!e||"LabeledStatement"!==e.type)&&(Ml(e,t),!0)}(i,e)||function handleCallExpressionComments(e,t,r){return!!(t&&("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&e&&t.callee===e&&t.arguments.length>0)&&(Ml(t.arguments[0],r),!0)}(u,i,e)||function handlePropertyComments(e,t){return!(!e||"Property"!==e.type&&"ObjectProperty"!==e.type)&&(Ml(e,t),!0)}(i,e)||handleOnlyComments(i,n,e,a)||function handleTypeAliasComments(e,t,r){return!(!e||"TypeAlias"!==e.type)&&(Ml(e,r),!0)}(i,0,e)||function handleVariableDeclaratorComments(e,t,r){return!(!e||"VariableDeclarator"!==e.type&&"AssignmentExpression"!==e.type||!t||"ObjectExpression"!==t.type&&"ArrayExpression"!==t.type&&"TemplateLiteral"!==t.type&&"TaggedTemplateExpression"!==t.type)&&(Ml(t,r),!0)}(i,o,e))},handleRemainingComment:function handleRemainingComment(e,t,r,n,a){var u=e.precedingNode,i=e.enclosingNode,o=e.followingNode;return!!(handleIfStatementComments(t,u,i,o,e,r)||handleWhileComments(t,u,i,o,e,r)||function handleObjectPropertyAssignment(e,t,r){return!(!e||"ObjectProperty"!==e.type&&"Property"!==e.type||!e.shorthand||e.key!==t||"AssignmentPattern"!==e.value.type)&&(Rl(e.value.left,r),!0)}(i,u,e)||function handleCommentInEmptyParens(e,t,r,n){return")"===nr.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)&&($l(t.value,r),!0):($l(t,r),!0))}(t,i,e,r)||handleMethodNameComments(t,i,u,e,r)||handleOnlyComments(i,n,e,a)||function handleCommentAfterArrowParams(e,t,r,n){if(!t||"ArrowFunctionExpression"!==t.type)return!1;var a=gr.getNextNonSpaceNonCommentCharacterIndex(e,r,n);return"=>"===e.substr(a,2)&&($l(t,r),!0)}(t,i,e,r)||function handleFunctionNameComments(e,t,r,n,a){return"("===nr.getNextNonSpaceNonCommentCharacter(e,n,a.locEnd)&&(!(!r||!t||"FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"MethodDefinition"!==t.type&&"ObjectMethod"!==t.type)&&(Rl(r,n),!0))}(t,i,u,e,r)||function handleTSMappedTypeComments(e,t,r,n,a){return!(!t||"TSMappedType"!==t.type)&&(n&&"TSTypeParameter"===n.type&&n.name?(Ml(n.name,a),!0):!(!r||"TSTypeParameter"!==r.type||!r.constraint)&&(Rl(r.constraint,a),!0))}(0,i,u,o,e)||function handleBreakAndContinueStatementComments(e,t){return!(!e||"ContinueStatement"!==e.type&&"BreakStatement"!==e.type||e.label)&&(Rl(e,t),!0)}(i,e))},hasLeadingComment:function hasLeadingComment(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 isBlockComment(e){return"Block"===e.type||"CommentBlock"===e.type}},Vl=Wl.isBlockComment,ql=Wl.hasLeadingComment,Ul=mr.builders,zl=Ul.indent,Hl=Ul.join,Jl=Ul.hardline,Xl=Ul.softline,Gl=Ul.literalline,Kl=Ul.concat,Yl=Ul.group,Ql=Ul.dedentToRoot,Zl=mr.utils,ec=Zl.mapDoc,tc=Zl.stripTrailingHardline;function uncook(e){return e.replace(/([\\`]|\$\{)/g,"\\$1")}function escapeTemplateCharacters(e,t){return ec(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\\`"):uncook(e)):r.push(e)})),Object.assign({},e,{parts:r})}))}function printGraphqlComments(e){var t=[],r=!1;return e.map((function(e){return e.trim()})).forEach((function(e,n,a){""!==e&&(""===a[n-1]&&r?t.push(Kl([Jl,e])):t.push(e),r=!0)})),0===t.length?null:Hl(Jl,t)}function isStyledJsx(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 isAngularComponentStyles(e){return isPathMatch(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 isStyledComponents(e){var t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;var r=t.tag;switch(r.type){case"MemberExpression":return isStyledIdentifier(r.object)||isStyledExtend(r);case"CallExpression":return isStyledIdentifier(r.callee)||"MemberExpression"===r.callee.type&&("MemberExpression"===r.callee.object.type&&(isStyledIdentifier(r.callee.object.object)||isStyledExtend(r.callee.object))||"CallExpression"===r.callee.object.type&&isStyledIdentifier(r.callee.object.callee));case"Identifier":return"css"===r.name;default:return!1}}function isCssProp(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 isStyledIdentifier(e){return"Identifier"===e.type&&"styled"===e.name}function isStyledExtend(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function hasLanguageComment(e,t){return ql(e,(function(e){return Vl(e)&&e.value===" ".concat(t," ")}))}function isPathMatch(e,t){var r=e.stack.slice(),n=null,a=r.pop(),u=!0,i=!1,o=void 0;try{for(var s,l=t[Symbol.iterator]();!(u=(s=l.next()).done);u=!0){var c=s.value;if(void 0===a)return!1;if("number"==typeof n&&(n=r.pop(),a=r.pop()),!c(a,n))return!1;n=r.pop(),a=r.pop()}}catch(e){i=!0,o=e}finally{try{u||null==l.return||l.return()}finally{if(i)throw o}}return!0}var rc=0,nc=function embed$3(e,t,r,n){var a=e.getValue(),u=e.getParentNode(),i=e.getParentNode(1);switch(a.type){case"TemplateLiteral":if([isStyledJsx,isStyledComponents,isCssProp,isAngularComponentStyles].some((function(t){return t(e)}))){var o=a.quasis.map((function(e){return e.value.raw})),s=0,l=o.reduce((function(e,t,r){return 0==r?t:e+"@prettier-placeholder-"+s+++"-id"+t}),"");return function transformCssDoc(e,t,r){var n=t.getValue();if(1===n.quasis.length&&!n.quasis[0].value.raw.trim())return"``";var a=n.expressions?t.map(r,"expressions"):[],u=function replacePlaceholders(e,t){if(!t||!t.length)return e;var r=t.slice(),n=0,a=ec(e,(function(e){if(!e||!e.parts||!e.parts.length)return e;var t=e.parts,a=t.indexOf("@"),u=a+1;if(a>-1&&"string"==typeof t[u]&&t[u].startsWith("prettier-placeholder")){var i=t[a],o=t[u],s=t.slice(u+1);t=t.slice(0,a).concat([i+o]).concat(s)}var l=t.findIndex((function(e){return"string"==typeof e&&e.startsWith("@prettier-placeholder")}));if(l>-1){var c=t[l],p=t.slice(l+1),f=c.match(/@prettier-placeholder-(.+)-id([\s\S]*)/),d=f[1],m=f[2],h=r[d];n++,t=t.slice(0,l).concat(["${",h,"}"+m]).concat(p)}return Object.assign({},e,{parts:t})}));return r.length===n?a:null}(e,a);if(!u)throw new Error("Couldn't insert all the expressions");return Kl(["`",zl(Kl([Jl,tc(u)])),Xl,"`"])}(r(l,{parser:"css"}),e,t)}if(function isGraphQL(e){var t=e.getValue(),r=e.getParentNode();return hasLanguageComment(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 c=a.expressions?e.map(t,"expressions"):[],p=a.quasis.length;if(1===p&&""===a.quasis[0].value.raw.trim())return"``";for(var f=[],d=0;d<p;d++){var m=0===d,h=d===p-1,g=a.quasis[d].value.cooked;if("string"!=typeof g)return null;var D=g.split("\n"),y=D.length,C=c[d],v=y>2&&""===D[0].trim()&&""===D[1].trim(),E=y>2&&""===D[y-1].trim()&&""===D[y-2].trim(),A=D.every((function(e){return/^\s*(?:#[^\r\n]*)?$/.test(e)}));if(!h&&/#[^\r\n]*$/.test(D[y-1]))return null;var F=null;(F=A?printGraphqlComments(D):tc(r(g,{parser:"graphql"})))?(F=escapeTemplateCharacters(F,!1),!m&&v&&f.push(""),f.push(F),!h&&E&&f.push("")):m||h||!v||f.push(""),C&&f.push(Kl(["${",C,"}"]))}return Kl(["`",zl(Kl([Jl,Hl(Jl,f)])),Jl,"`"])}var b=function isHtml(e){return hasLanguageComment(e.getValue(),"HTML")||isPathMatch(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 isAngularComponentTemplate(e){return isPathMatch(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(b)return function printHtmlTemplateLiteral(e,t,r,n,a){var u=e.getValue(),i=rc;rc=rc+1>>>0;var o=function composePlaceholder(e){return"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(i,"_IN_JS")},s=u.quasis.map((function(e,t,r){return t===r.length-1?e.value.cooked:e.value.cooked+o(t)})).join(""),l=e.map(t,"expressions");if(0===l.length&&0===s.trim().length)return"``";var c=RegExp(o("(\\d+)"),"g"),p=ec(tc(r(s,{parser:n})),(function(e){if("string"!=typeof e)return e;for(var t=[],r=e.split(c),n=0;n<r.length;n++){var u=r[n];if(n%2!=0){var i=+u;t.push(Kl(["${",Yl(l[i]),"}"]))}else u&&(u=uncook(u),a&&(u=u.replace(/<\/(script)\b/gi,"<\\/$1")),t.push(u))}return Kl(t)}));return Yl(Kl(["`",zl(Kl([Jl,Yl(p)])),Xl,"`"]))}(e,t,r,b,n.embeddedInHtml);break;case"TemplateElement":if(i&&"TaggedTemplateExpression"===i.type&&1===u.quasis.length&&"Identifier"===i.tag.type&&("md"===i.tag.name||"markdown"===i.tag.name)){var S=u.quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(function(e,t){return"\\".repeat(t.length/2)+"`"})),x=function getIndentation(e){var t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}(S);return Kl([""!==x?zl(Kl([Xl,printMarkdown(S.replace(new RegExp("^".concat(x),"gm"),""))])):Kl([Gl,Ql(printMarkdown(S))]),Xl])}}function printMarkdown(e){var t=r(e,{parser:"markdown",__inJsTemplate:!0});return tc(escapeTemplateCharacters(t,!0))}};function isUnbalancedLogicalTree(e){return"LogicalExpression"===e.type&&"LogicalExpression"===e.right.type&&e.operator===e.right.operator}var ac=function clean$4(e,t,r){if(["range","raw","comments","leadingComments","trailingComments","extra","start","end","flags","errors"].forEach((function(e){delete t[e]})),"BigIntLiteral"===e.type&&(t.value=t.value.toLowerCase()),"EmptyStatement"===e.type)return null;if("JSXText"===e.type)return null;if("JSXExpressionContainer"===e.type&&"Literal"===e.expression.type&&" "===e.expression.value)return null;if(isUnbalancedLogicalTree(t))return function rebalanceLogicalTree(e){return isUnbalancedLogicalTree(e)?rebalanceLogicalTree({type:"LogicalExpression",operator:e.operator,left:rebalanceLogicalTree({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,loc:{}}),right:e.right.right,loc:{}}):e}(t);if("TSParameterProperty"===e.type&&null===e.accessibility&&!e.readonly)return{type:"Identifier",name:e.parameter.name,typeAnnotation:t.parameter.typeAnnotation,decorators:t.decorators};"TSNamespaceExportDeclaration"===e.type&&e.specifiers&&0===e.specifiers.length&&delete t.specifiers,"JSXOpeningElement"===e.type&&delete t.selfClosing,"JSXElement"===e.type&&delete t.closingElement,"Property"!==e.type&&"ObjectProperty"!==e.type&&"MethodDefinition"!==e.type&&"ClassProperty"!==e.type&&"TSPropertySignature"!==e.type&&"ObjectTypeProperty"!==e.type||"object"!==_typeof(e.key)||!e.key||"Literal"!==e.key.type&&"StringLiteral"!==e.key.type&&"Identifier"!==e.key.type||delete t.key,"OptionalMemberExpression"===e.type&&!1===e.optional&&(t.type="MemberExpression",delete t.optional),"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some((function(e){return"jsx"===e.name.name}))&&t.children.filter((function(e){return"JSXExpressionContainer"===e.type&&"TemplateLiteral"===e.expression.type})).map((function(e){return e.expression})).reduce((function(e,t){return e.concat(t.quasis)}),[]).forEach((function(e){return delete e.value})),"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&t.value.expression.quasis.forEach((function(e){return delete e.value}));var n=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===n.type&&"Component"===n.callee.name&&1===n.arguments.length){var a=e.expression.arguments[0].properties;t.expression.arguments[0].properties.forEach((function(e,t){var r=null;switch(a[t].key.name){case"styles":"ArrayExpression"===e.value.type&&(r=e.value.elements[0]);break;case"template":"TemplateLiteral"===e.value.type&&(r=e.value)}r&&r.quasis.forEach((function(e){return delete e.value}))}))}"TaggedTemplateExpression"!==e.type||"MemberExpression"!==e.tag.type&&("Identifier"!==e.tag.type||"gql"!==e.tag.name&&"graphql"!==e.tag.name&&"css"!==e.tag.name&&"md"!==e.tag.name&&"markdown"!==e.tag.name&&"html"!==e.tag.name)&&"CallExpression"!==e.tag.type||t.quasi.quasis.forEach((function(e){return delete e.value})),"TemplateLiteral"===e.type&&(e.leadingComments&&e.leadingComments.some((function(e){return"CommentBlock"===e.type&&["GraphQL","HTML"].some((function(t){return e.value===" ".concat(t," ")}))}))||"CallExpression"===r.type&&"graphql"===r.callee.name)&&t.quasis.forEach((function(e){return delete e.value}))},uc=nr.getLast,ic=nr.hasNewline,oc=nr.hasNewlineInRange,sc=nr.hasIgnoreComment,lc=nr.hasNodeIgnoreComment,cc=nr.skipWhitespace,pc=Ct.keyword.isIdentifierNameES5,fc=new RegExp("^".concat("(?:(?=.)\\s)","*:")),dc=new RegExp("^".concat("(?:(?=.)\\s)","*::"));function hasNode(e,t){if(!e||"object"!==_typeof(e))return!1;if(Array.isArray(e))return e.some((function(e){return hasNode(e,t)}));var r=t(e);return"boolean"==typeof r?r:Object.keys(e).some((function(r){return hasNode(e[r],t)}))}function hasNakedLeftSide(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||"CallExpression"===e.type||"OptionalCallExpression"===e.type||"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type}function isLiteral(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type}function isNumericLiteral(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function isStringLiteral(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function isFunctionOrArrowExpression(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function isAngularTestWrapper(e){return!("CallExpression"!==e.type&&"OptionalCallExpression"!==e.type||"Identifier"!==e.callee.type||"async"!==e.callee.name&&"inject"!==e.callee.name&&"fakeAsync"!==e.callee.name)}function isJSXNode(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function isGetterOrSetter(e){return"get"===e.kind||"set"===e.kind}function sameLocStart(e,t,r){return r.locStart(e)===r.locStart(t)}function isFunctionNotation(e,t){return isGetterOrSetter(e)||sameLocStart(e,e.value,t)}var mc=/^(skip|[fx]?(it|describe|test))$/;function isCallOrOptionalCallExpression(e){return"CallExpression"===e.type||"OptionalCallExpression"===e.type}var hc=new RegExp("([ \n\r\t]+)"),gc=new RegExp("[^ \n\r\t]");function isMeaningfulJSXText(e){return isLiteral(e)&&(gc.test(rawText(e))||!/\n/.test(rawText(e)))}function hasLeadingOwnLineComment(e,t,r){return isJSXNode(t)?lc(t):t.comments&&t.comments.some((function(t){return t.leading&&ic(e,r.locEnd(t))}))}function templateLiteralHasNewLines(e){return e.quasis.some((function(e){return e.value.raw.includes("\n")}))}function rawText(e){return e.extra?e.extra.raw:e.raw}var Dc={classChildNeedsASIProtection:function classChildNeedsASIProtection(e){if(e){if(e.static||e.accessibility)return!1;if(!e.computed){var t=e.key&&e.key.name;if("in"===t||"instanceof"===t)return!0}switch(e.type){case"ClassProperty":case"TSAbstractClassProperty":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":var r=e.value?e.value.async:e.async,n=e.value?e.value.generator:e.generator;return!(r||"get"===e.kind||"set"===e.kind||!e.computed&&!n);case"TSIndexSignature":return!0;default:return!1}}},classPropMayCauseASIProblems:function classPropMayCauseASIProblems(e){var t=e.getNode();if("ClassProperty"!==t.type)return!1;var r=t.key&&t.key.name;return!("static"!==r&&"get"!==r&&"set"!==r||t.value||t.typeAnnotation)||void 0},conditionalExpressionChainContainsJSX:function conditionalExpressionChainContainsJSX(e){return Boolean(function getConditionalChainContents(e){var t=[];return function recurse(e){"ConditionalExpression"===e.type?(recurse(e.test),recurse(e.consequent),recurse(e.alternate)):t.push(e)}(e),t}(e).find(isJSXNode))},getFlowVariance:function getFlowVariance(e){if(!e.variance)return null;var t=e.variance.kind||e.variance;switch(t){case"plus":return"+";case"minus":return"-";default:return t}},getLeftSidePathName:function getLeftSidePathName(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side",t)},getTypeScriptMappedTypeModifier:function getTypeScriptMappedTypeModifier(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasDanglingComments:function hasDanglingComments(e){return e.comments&&e.comments.some((function(e){return!e.leading&&!e.trailing}))},hasFlowAnnotationComment:function hasFlowAnnotationComment(e){return e&&e[0].value.match(dc)},hasFlowShorthandAnnotationComment:function hasFlowShorthandAnnotationComment(e){return e.extra&&e.extra.parenthesized&&e.trailingComments&&e.trailingComments[0].value.match(fc)},hasLeadingComment:function hasLeadingComment$2(e){return e.comments&&e.comments.some((function(e){return e.leading}))},hasLeadingOwnLineComment:hasLeadingOwnLineComment,hasNakedLeftSide:hasNakedLeftSide,hasNewlineBetweenOrAfterDecorators:function hasNewlineBetweenOrAfterDecorators(e,t){return oc(t.originalText,t.locStart(e.decorators[0]),t.locEnd(uc(e.decorators)))||ic(t.originalText,t.locEnd(uc(e.decorators)))},hasNgSideEffect:function hasNgSideEffect(e){return hasNode(e.getValue(),(function(e){switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}}))},hasNode:hasNode,hasPrettierIgnore:function hasPrettierIgnore$2(e){return sc(e)||function hasJsxIgnoreComment(e){var t=e.getValue(),r=e.getParentNode();if(!(r&&t&&isJSXNode(t)&&isJSXNode(r)))return!1;for(var n=null,a=r.children.indexOf(t);a>0;a--){var u=r.children[a-1];if("JSXText"!==u.type||isMeaningfulJSXText(u)){n=u;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 hasTrailingComment(e){return e.comments&&e.comments.some((function(e){return e.trailing}))},identity:function identity$1(e){return e},isBinaryish:function isBinaryish(e){return"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type},isCallOrOptionalCallExpression:isCallOrOptionalCallExpression,isEmptyJSXElement:function isEmptyJSXElement(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;var t=e.children[0];return isLiteral(t)&&!isMeaningfulJSXText(t)},isFlowAnnotationComment:function isFlowAnnotationComment(e,t,r){var n=r.locStart(t),a=cc(e,r.locEnd(t));return"/*"===e.substr(n,2)&&"*/"===e.substr(a,2)},isFunctionCompositionArgs:function isFunctionCompositionArgs(e){if(e.length<=1)return!1;var t=0,r=!0,n=!1,a=void 0;try{for(var u,i=e[Symbol.iterator]();!(r=(u=i.next()).done);r=!0){var o=u.value;if(isFunctionOrArrowExpression(o)){if((t+=1)>1)return!0}else if(isCallOrOptionalCallExpression(o)){var s=!0,l=!1,c=void 0;try{for(var p,f=o.arguments[Symbol.iterator]();!(s=(p=f.next()).done);s=!0)if(isFunctionOrArrowExpression(p.value))return!0}catch(e){l=!0,c=e}finally{try{s||null==f.return||f.return()}finally{if(l)throw c}}}}}catch(e){n=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw a}}return!1},isFunctionNotation:isFunctionNotation,isFunctionOrArrowExpression:isFunctionOrArrowExpression,isGetterOrSetter:isGetterOrSetter,isJestEachTemplateLiteral:function isJestEachTemplateLiteral(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:isJSXNode,isJSXWhitespaceExpression:function isJSXWhitespaceExpression(e){return"JSXExpressionContainer"===e.type&&isLiteral(e.expression)&&" "===e.expression.value&&!e.expression.comments},isLastStatement:function isLastStatement(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:isLiteral,isLongCurriedCallExpression:function isLongCurriedCallExpression(e){var t=e.getValue(),r=e.getParentNode();return isCallOrOptionalCallExpression(t)&&isCallOrOptionalCallExpression(r)&&r.callee===t&&t.arguments.length>r.arguments.length&&r.arguments.length>0},isMeaningfulJSXText:isMeaningfulJSXText,isMemberExpressionChain:function isMemberExpressionChain(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&("Identifier"===e.object.type||isMemberExpressionChain(e.object))},isMemberish:function isMemberish(e){return"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"BindExpression"===e.type&&e.object},isNgForOf:function isNgForOf(e,t,r){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===r.body[0].type&&null===r.body[0].value},isNumericLiteral:isNumericLiteral,isObjectType:function isObjectType(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type},isObjectTypePropertyAFunction:function isObjectTypePropertyAFunction(e,t){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||isFunctionNotation(e,t))},isSimpleFlowType:function isSimpleFlowType(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 isSimpleTemplateLiteral(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:isStringLiteral,isStringPropSafeToCoerceToIdentifier:function isStringPropSafeToCoerceToIdentifier(e,t){return isStringLiteral(e.key)&&pc(e.key.value)&&"json"!==t.parser&&!("typescript"===t.parser&&"ClassProperty"===e.type)},isTemplateOnItsOwnLine:function isTemplateOnItsOwnLine(e,t,r){return("TemplateLiteral"===e.type&&templateLiteralHasNewLines(e)||"TaggedTemplateExpression"===e.type&&templateLiteralHasNewLines(e.quasi))&&!ic(t,r.locStart(e),{backwards:!0})},isTestCall:function isTestCall(e,t){if("CallExpression"!==e.type)return!1;if(1===e.arguments.length){if(isAngularTestWrapper(e)&&t&&isTestCall(t))return isFunctionOrArrowExpression(e.arguments[0]);if(function isUnitTestSetUp(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(e))return isAngularTestWrapper(e.arguments[0])}else if((2===e.arguments.length||3===e.arguments.length)&&("Identifier"===e.callee.type&&mc.test(e.callee.name)||function isSkipOrOnlyBlock(e){return("MemberExpression"===e.callee.type||"OptionalMemberExpression"===e.callee.type)&&"Identifier"===e.callee.object.type&&"Identifier"===e.callee.property.type&&mc.test(e.callee.object.name)&&("only"===e.callee.property.name||"skip"===e.callee.property.name)}(e))&&(function isTemplateLiteral(e){return"TemplateLiteral"===e.type}(e.arguments[0])||isStringLiteral(e.arguments[0])))return!(e.arguments[2]&&!isNumericLiteral(e.arguments[2]))&&((2===e.arguments.length?isFunctionOrArrowExpression(e.arguments[1]):function isFunctionOrArrowExpressionWithBody(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(e.arguments[1])&&e.arguments[1].params.length<=1)||isAngularTestWrapper(e.arguments[1]));return!1},isTheOnlyJSXElementInMarkdown:function isTheOnlyJSXElementInMarkdown(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;var r=t.getNode();if(!r.expression||!isJSXNode(r.expression))return!1;var n=t.getParentNode();return"Program"===n.type&&1==n.body.length},isTSXFile:function isTSXFile(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function isTypeAnnotationAFunction(e,t){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||sameLocStart(e,e.typeAnnotation,t))},matchJsxWhitespaceRegex:hc,needsHardlineAfterDanglingComment:function needsHardlineAfterDanglingComment(e){if(!e.comments)return!1;var t=uc(e.comments.filter((function(e){return!e.leading&&!e.trailing})));return t&&!Wl.isBlockComment(t)},rawText:rawText,returnArgumentHasLeadingComment:function returnArgumentHasLeadingComment(e,t){if(hasLeadingOwnLineComment(e.originalText,t,e))return!0;if(hasNakedLeftSide(t))for(var r,n=t;r=(a=n).expressions?a.expressions[0]:a.left||a.test||a.callee||a.object||a.tag||a.argument||a.expression;)if(n=r,hasLeadingOwnLineComment(e.originalText,n,e))return!0;var a;return!1}},yc=Dc.getLeftSidePathName,Cc=Dc.hasFlowShorthandAnnotationComment,vc=Dc.hasNakedLeftSide,Ec=Dc.hasNode;function hasClosureCompilerTypeCastComment(e,t){var r=t.getValue();return isParenthesized(r)&&(hasTypeCastComment(r)||function hasAncestorTypeCastComment(e){var r=t.getParentNode(e);return!(!r||isParenthesized(r))&&(hasTypeCastComment(r)||hasAncestorTypeCastComment(e+1))}(0));function hasTypeCastComment(e){return e.comments&&e.comments.some((function(e){return e.leading&&Wl.isBlockComment(e)&&function isTypeCastComment(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,a=!0,u=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(a=(o=s.next()).done);a=!0){var l=o.value;if("{"===l){if(r)return!1;n++}else if("}"===l){if(0===n)return!1;0==--n&&(r=!0)}}}catch(e){u=!0,i=e}finally{try{a||null==s.return||s.return()}finally{if(u)throw i}}return 0===n}(e.value)}))}function isParenthesized(e){return e.extra&&e.extra.parenthesized}}function needsParens(e,t){var r=e.getParentNode();if(!r)return!1;var n=e.getName(),a=e.getNode();if(e.getValue()!==a)return!1;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function endsWithRightBracket(e){switch(e.type){case"ObjectExpression":return!0;default:return!1}}(a)&&isFollowedByRightBracket(e))return!0;if(function isStatement(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}(a))return!1;if(hasClosureCompilerTypeCastComment(t.originalText,e))return!0;if("flow"!==t.parser&&Cc(e.getValue()))return!0;if("Identifier"===a.type)return!!(a.extra&&a.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(a.name));if("ParenthesizedExpression"===r.type)return!1;if(!("ClassDeclaration"!==r.type&&"ClassExpression"!==r.type||r.superClass!==a||"ArrowFunctionExpression"!==a.type&&"AssignmentExpression"!==a.type&&"AwaitExpression"!==a.type&&"BinaryExpression"!==a.type&&"ConditionalExpression"!==a.type&&"LogicalExpression"!==a.type&&"NewExpression"!==a.type&&"ObjectExpression"!==a.type&&"ParenthesizedExpression"!==a.type&&"SequenceExpression"!==a.type&&"TaggedTemplateExpression"!==a.type&&"UnaryExpression"!==a.type&&"UpdateExpression"!==a.type&&"YieldExpression"!==a.type))return!0;if("ExportDefaultDeclaration"===r.type)return function shouldWrapFunctionForExportDefault(e,t){var r=e.getValue(),n=e.getParentNode();return"FunctionExpression"===r.type||"ClassExpression"===r.type?"ExportDefaultDeclaration"===n.type||!needsParens(e,t):!(!vc(r)||"ExportDefaultDeclaration"!==n.type&&needsParens(e,t))&&e.call.apply(e,[function(e){return shouldWrapFunctionForExportDefault(e,t)}].concat(yc(e,r)))}(e,t);if("Decorator"===r.type&&r.expression===a){for(var u=!1,i=!1,o=a;o;)switch(o.type){case"MemberExpression":i=!0,o=o.object;break;case"CallExpression":if(i||u)return!0;u=!0,o=o.callee;break;case"Identifier":return!1;default:return!0}return!0}if("ArrowFunctionExpression"===r.type&&r.body===a&&"SequenceExpression"!==a.type&&nr.startsWithNoLookaheadToken(a,!1)||"ExpressionStatement"===r.type&&nr.startsWithNoLookaheadToken(a,!0))return!0;switch(a.type){case"SpreadElement":case"SpreadProperty":return"MemberExpression"===r.type&&"object"===n&&r.object===a;case"UpdateExpression":if("UnaryExpression"===r.type)return a.prefix&&("++"===a.operator&&"+"===r.operator||"--"===a.operator&&"-"===r.operator);case"UnaryExpression":switch(r.type){case"UnaryExpression":return a.operator===r.operator&&("+"===a.operator||"-"===a.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"===a.operator&&function isLeftOfAForStatement(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}(a))return!0;case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(r.type){case"ConditionalExpression":return"TSAsExpression"===a.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===n;case"ClassExpression":case"ClassDeclaration":return"superClass"===n&&r.superClass===a;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===a&&("TSTypeAssertion"===a.type||"TSAsExpression"===a.type);case"LogicalExpression":if("LogicalExpression"===a.type)return r.operator!==a.operator;case"BinaryExpression":if(!a.operator&&"TSTypeAssertion"!==a.type)return!0;var s=r.operator,l=nr.getPrecedence(s),c=a.operator,p=nr.getPrecedence(c);return l>p||(l===p&&"right"===n?(assert.strictEqual(r.right,a),!0):l===p&&!nr.shouldFlatten(s,c)||(l<p&&"%"===c?"+"===s||"-"===s:!!nr.isBitwiseOperator(s)));default:return!1}case"SequenceExpression":switch(r.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==n;case"ArrowFunctionExpression":return"body"!==n;default:return!0}case"YieldExpression":if("UnaryExpression"===r.type||"AwaitExpression"===r.type||"TSAsExpression"===r.type||"TSNonNullExpression"===r.type)return!0;case"AwaitExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"BinaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===n;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===n;case"ConditionalExpression":return r.test===a;default:return!1}case"TSConditionalType":if("TSConditionalType"===r.type&&a===r.extendsType)return!0;case"TSFunctionType":case"TSConstructorType":if("TSConditionalType"===r.type&&a===r.checkType)return!0;case"TSUnionType":case"TSIntersectionType":if("TSUnionType"===r.type||"TSIntersectionType"===r.type)return!0;case"TSTypeOperator":case"TSInferType":return"TSArrayType"===r.type||"TSOptionalType"===r.type||"TSRestType"===r.type||"TSIndexedAccessType"===r.type&&a===r.objectType||"TSTypeOperator"===r.type;case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===r.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"ArrayTypeAnnotation"===r.type||"NullableTypeAnnotation"===r.type||"IntersectionTypeAnnotation"===r.type||"UnionTypeAnnotation"===r.type;case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===r.type;case"FunctionTypeAnnotation":var f="NullableTypeAnnotation"===r.type?e.getParentNode(1):r;return"UnionTypeAnnotation"===f.type||"IntersectionTypeAnnotation"===f.type||"ArrayTypeAnnotation"===f.type||"NullableTypeAnnotation"===f.type;case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof a.value&&"ExpressionStatement"===r.type&&("typescript"!==t.parser&&!r.directive||"typescript"===t.parser&&"("===t.originalText.substr(t.locStart(a)-1,1))){var d=e.getParentNode(1);return"Program"===d.type||"BlockStatement"===d.type}return"MemberExpression"===r.type&&"number"==typeof a.value&&"object"===n&&r.object===a;case"AssignmentExpression":var m=e.getParentNode(1);return!(("ArrowFunctionExpression"!==r.type||r.body!==a)&&("ClassProperty"===r.type&&r.key===a&&r.computed||"TSPropertySignature"===r.type&&r.name===a||"ForStatement"===r.type&&(r.init===a||r.update===a)||("ExpressionStatement"===r.type?"ObjectPattern"!==a.left.type:"TSPropertySignature"===r.type&&r.key===a||"AssignmentExpression"===r.type||"SequenceExpression"===r.type&&m&&"ForStatement"===m.type&&(m.init===r||m.update===r)||"Property"===r.type&&r.value===a||"NGChainedExpression"===r.type)));case"ConditionalExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===n;case"ConditionalExpression":return"test"===n&&r.test===a;case"MemberExpression":case"OptionalMemberExpression":return"object"===n;default:return!1}case"FunctionExpression":switch(r.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===n;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(r.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===n;case"MemberExpression":case"OptionalMemberExpression":return"object"===n;case"TSAsExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"BinaryExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===n;default:return!1}case"ClassExpression":switch(r.type){case"NewExpression":return"callee"===n&&r.callee===a;default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":if(("MemberExpression"===r.type&&"object"===n||"CallExpression"===r.type&&"callee"===n)&&("flow"!==t.parser||r.range[0]!==a.range[0]))return!0;case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(("BindExpression"===r.type||"NewExpression"===r.type)&&"callee"===n)for(var h=a;h;)switch(h.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":h=h.object;break;case"TaggedTemplateExpression":h=h.tag;break;case"TSNonNullExpression":h=h.expression;break;default:return!1}return!1;case"BindExpression":return("BindExpression"===r.type||"NewExpression"===r.type)&&"callee"===n||("MemberExpression"===r.type||"OptionalMemberExpression"===r.type)&&"object"===n;case"NGPipeExpression":return!("NGRoot"===r.type||"NGMicrosyntaxExpression"===r.type||"ObjectProperty"===r.type||"ArrayExpression"===r.type||("CallExpression"===r.type||"OptionalCallExpression"===r.type)&&r.arguments[n]===a||"NGPipeExpression"===r.type&&"right"===n||"MemberExpression"===r.type&&"property"===n||"AssignmentExpression"===r.type);case"JSXFragment":case"JSXElement":return"callee"===n||"ArrayExpression"!==r.type&&"ArrowFunctionExpression"!==r.type&&"AssignmentExpression"!==r.type&&"AssignmentPattern"!==r.type&&"BinaryExpression"!==r.type&&"CallExpression"!==r.type&&"ConditionalExpression"!==r.type&&"ExpressionStatement"!==r.type&&"JsExpressionRoot"!==r.type&&"JSXAttribute"!==r.type&&"JSXElement"!==r.type&&"JSXExpressionContainer"!==r.type&&"JSXFragment"!==r.type&&"LogicalExpression"!==r.type&&"ObjectProperty"!==r.type&&"OptionalCallExpression"!==r.type&&"Property"!==r.type&&"ReturnStatement"!==r.type&&"TypeCastExpression"!==r.type&&"VariableDeclarator"!==r.type;case"TypeAnnotation":return"returnType"===n&&"ArrowFunctionExpression"===r.type&&function includesFunctionTypeInObjectType(e){return Ec(e,(function(e){return"ObjectTypeAnnotation"===e.type&&Ec(e,(function(e){return"FunctionTypeAnnotation"===e.type||void 0}))||void 0}))}(a)}return!1}function isFollowedByRightBracket(e){var t=e.getValue(),r=e.getParentNode(),n=e.getName();switch(r.type){case"NGPipeExpression":if("number"==typeof n&&r.arguments[n]===t&&r.arguments.length-1===n)return e.callParent(isFollowedByRightBracket);break;case"ObjectProperty":if("value"===n){var a=e.getParentNode(1);return a.properties[a.properties.length-1]===r}break;case"BinaryExpression":case"LogicalExpression":if("right"===n)return e.callParent(isFollowedByRightBracket);break;case"ConditionalExpression":if("alternate"===n)return e.callParent(isFollowedByRightBracket);break;case"UnaryExpression":if(r.prefix)return e.callParent(isFollowedByRightBracket)}return!1}var Ac=needsParens,Fc=mr.builders,bc=Fc.concat,Sc=Fc.join,xc=Fc.line,wc=function isVueEventBindingExpression$2(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return isVueEventBindingExpression$2(e.object)}return!1;case"Identifier":return!0;default:return!1}},Tc=function printHtmlBinding(e,t,r){var n=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(n),"File"===n.type)return t.__isVueForBindingLeft?e.call((function(e){var t=e.getValue().params;return bc([t.length>1?"(":"",Sc(bc([",",xc]),e.map(r,"params")),t.length>1?")":""])}),"program","body",0):t.__isVueSlotScope?e.call((function(e){return Sc(bc([",",xc]),e.map(r,"params"))}),"program","body",0):void 0},Bc=function preprocess$1(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}},kc=nr.getParentExportDeclaration,Nc=nr.isExportDeclaration,Oc=nr.shouldFlatten,Pc=nr.getNextNonSpaceNonCommentCharacter,Ic=nr.hasNewline,Lc=nr.hasNewlineInRange,_c=nr.getLast,jc=nr.getStringWidth,Mc=nr.printString,Rc=nr.printNumber,$c=nr.hasIgnoreComment,Wc=nr.hasNodeIgnoreComment,Vc=nr.getPenultimate,qc=nr.startsWithNoLookaheadToken,Uc=nr.getIndentSize,zc=nr.matchAncestorTypes,Hc=nr.getPreferredQuote,Jc=gr.isNextLineEmpty,Xc=gr.isNextLineEmptyAfterIndex,Gc=gr.getNextNonSpaceNonCommentCharacterIndex,Kc=yn.insertPragma,Yc=Tc,Qc=wc,Zc=Dc.classChildNeedsASIProtection,ep=Dc.classPropMayCauseASIProblems,tp=Dc.conditionalExpressionChainContainsJSX,rp=Dc.getFlowVariance,np=Dc.getLeftSidePathName,ap=Dc.getTypeScriptMappedTypeModifier,up=Dc.hasDanglingComments,ip=Dc.hasFlowAnnotationComment,op=Dc.hasFlowShorthandAnnotationComment,sp=Dc.hasLeadingComment,lp=Dc.hasLeadingOwnLineComment,cp=Dc.hasNakedLeftSide,pp=Dc.hasNewlineBetweenOrAfterDecorators,fp=Dc.hasNgSideEffect,dp=Dc.hasPrettierIgnore,mp=Dc.hasTrailingComment,hp=Dc.identity,gp=Dc.isBinaryish,Dp=Dc.isCallOrOptionalCallExpression,yp=Dc.isEmptyJSXElement,Cp=Dc.isFlowAnnotationComment,vp=Dc.isFunctionCompositionArgs,Ep=Dc.isFunctionNotation,Ap=Dc.isFunctionOrArrowExpression,Fp=Dc.isGetterOrSetter,bp=Dc.isJestEachTemplateLiteral,Sp=Dc.isJSXNode,xp=Dc.isJSXWhitespaceExpression,wp=Dc.isLastStatement,Tp=Dc.isLiteral,Bp=Dc.isLongCurriedCallExpression,kp=Dc.isMeaningfulJSXText,Np=Dc.isMemberExpressionChain,Op=Dc.isMemberish,Pp=Dc.isNgForOf,Ip=Dc.isNumericLiteral,Lp=Dc.isObjectType,_p=Dc.isObjectTypePropertyAFunction,jp=Dc.isSimpleFlowType,Mp=Dc.isSimpleTemplateLiteral,Rp=Dc.isStringLiteral,$p=Dc.isStringPropSafeToCoerceToIdentifier,Wp=Dc.isTemplateOnItsOwnLine,Vp=Dc.isTestCall,qp=Dc.isTheOnlyJSXElementInMarkdown,Up=Dc.isTSXFile,zp=Dc.isTypeAnnotationAFunction,Hp=Dc.matchJsxWhitespaceRegex,Jp=Dc.needsHardlineAfterDanglingComment,Xp=Dc.rawText,Gp=Dc.returnArgumentHasLeadingComment,Kp=new WeakMap,Yp=mr.builders,Qp=Yp.concat,Zp=Yp.join,ef=Yp.line,tf=Yp.hardline,rf=Yp.softline,nf=Yp.literalline,af=Yp.group,uf=Yp.indent,of=Yp.align,sf=Yp.conditionalGroup,lf=Yp.fill,cf=Yp.ifBreak,pf=Yp.breakParent,ff=Yp.lineSuffixBoundary,df=Yp.addAlignmentToDoc,mf=Yp.dedent,hf=mr.utils,gf=hf.willBreak,Df=hf.isLineNext,yf=hf.isEmpty,Cf=hf.removeLines,vf=mr.printer.printDocToString,Ef=0;function shouldPrintComma$1(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 printDecorators(e,t,r){var n=e.getValue();return af(Qp([Zp(ef,e.map(r,"decorators")),pp(n,t)?tf:ef]))}function printTernaryOperator(e,t,r,n){var a,u,i=e.getValue(),o=i[n.testNodePropertyName],s=i[n.consequentNodePropertyName],l=i[n.alternateNodePropertyName],c=[],p=!1,f=e.getParentNode(),d=f.type===n.conditionalNodeType,m=0;do{u=a||i,a=e.getParentNode(m),m++}while(a&&a.type===n.conditionalNodeType);var h=a||f,g=u;if(n.shouldCheckJsx&&(Sp(o)||Sp(s)||Sp(l)||tp(g))){p=!0,d=!0;var D=function wrap(e){return Qp([cf("(",""),uf(Qp([rf,e])),rf,cf(")","")])},y=function isNull(e){return"NullLiteral"===e.type||"Literal"===e.type&&null===e.value};c.push(" ? ",y(s)?e.call(r,n.consequentNodePropertyName):D(e.call(r,n.consequentNodePropertyName))," : ",l.type===n.conditionalNodeType||y(l)?e.call(r,n.alternateNodePropertyName):D(e.call(r,n.alternateNodePropertyName)))}else{var C=Qp([ef,"? ",s.type===n.conditionalNodeType?cf("","("):"",of(2,e.call(r,n.consequentNodePropertyName)),s.type===n.conditionalNodeType?cf("",")"):"",ef,": ",l.type===n.conditionalNodeType?e.call(r,n.alternateNodePropertyName):of(2,e.call(r,n.alternateNodePropertyName))]);c.push(f.type!==n.conditionalNodeType||f[n.alternateNodePropertyName]===i?C:t.useTabs?mf(uf(C)):of(Math.max(0,t.tabWidth-2),C))}var v,E=!p&&("MemberExpression"===f.type||"OptionalMemberExpression"===f.type||"NGPipeExpression"===f.type&&f.left===i&&n.breakNested)&&!f.computed;return function maybeGroup(e){return n.breakNested?f===h?af(e):e:af(e)}(Qp([].concat((v=Qp(n.beforeParts()),f.type===n.conditionalNodeType&&f[n.alternateNodePropertyName]===i?of(2,v):v),d?Qp(c):uf(Qp(c)),n.afterParts(E))))}function printStatementSequence(e,t,r){var n=[],a=e.getNode(),u="ClassBody"===a.type;return e.map((function(e,i){var o=e.getValue();if(o&&"EmptyStatement"!==o.type){var s=r(e),l=t.originalText,c=[];if(t.semi||u||qp(t,e)||!function stmtNeedsASIProtection(e,t){return"ExpressionStatement"===e.getNode().type&&e.call((function(e){return function exprNeedsASIProtection(e,t){var r=e.getValue();return!!(Ac(e,t)||"ParenthesizedExpression"===r.type||"TypeCastExpression"===r.type||"ArrowFunctionExpression"===r.type&&!shouldPrintParamsWithoutParens(e,t)||"ArrayExpression"===r.type||"ArrayPattern"===r.type||"UnaryExpression"===r.type&&r.prefix&&("+"===r.operator||"-"===r.operator)||"TemplateLiteral"===r.type||"TemplateElement"===r.type||Sp(r)||"BindExpression"===r.type&&!r.object||"RegExpLiteral"===r.type||"Literal"===r.type&&r.pattern||"Literal"===r.type&&r.regex)||!!cp(r)&&e.call.apply(e,[function(e){return exprNeedsASIProtection(e,t)}].concat(np(e,r)))}(e,t)}),"expression")}(e,t)?c.push(s):o.comments&&o.comments.some((function(e){return e.leading}))?c.push(r(e,{needsSemi:!0})):c.push(";",s),!t.semi&&u)if(ep(e))c.push(";");else if("ClassProperty"===o.type){var p=a.body[i+1];Zc(p)&&c.push(";")}Jc(l,o,t)&&!wp(e)&&c.push(tf),n.push(Qp(c))}})),Zp(tf,n)}function printPropertyKey(e,t,r){var n=e.getNode();if(n.computed)return Qp(["[",e.call(r,"key"),"]"]);var a=e.getParentNode(),u=n.key;if("consistent"===t.quoteProps&&!Kp.has(a)){var i=(a.properties||a.body||a.members).some((function(e){return!e.computed&&e.key&&Rp(e.key)&&!$p(e,t)}));Kp.set(a,i)}if("Identifier"===u.type&&("json"===t.parser||"consistent"===t.quoteProps&&Kp.get(a))){var o=Mc(JSON.stringify(u.name),t);return e.call((function(e){return Or.printComments(e,(function(){return o}),t)}),"key")}return $p(n,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!Kp.get(a))?e.call((function(e){return Or.printComments(e,(function(){return u.value}),t)}),"key"):e.call(r,"key")}function printMethod(e,t,r){var n=e.getNode(),a=n.kind,u=n.value||n,i=[];return a&&"init"!==a&&"method"!==a&&"constructor"!==a?(assert.ok("get"===a||"set"===a),i.push(a," ")):(u.async&&i.push("async "),u.generator&&i.push("*")),i.push(printPropertyKey(e,t,r),n.optional||n.key.optional?"?":"",n===u?printMethodInternal(e,t,r):e.call((function(e){return printMethodInternal(e,t,r)}),"value")),Qp(i)}function printMethodInternal(e,t,r){var n=[printFunctionTypeParameters(e,0,r),af(Qp([printFunctionParams(e,r,t),printReturnType(e,r,t)]))];return e.getNode().body?n.push(" ",e.call(r,"body")):n.push(t.semi?";":""),Qp(n)}function couldGroupArg(e){return"ObjectExpression"===e.type&&(e.properties.length>0||e.comments)||"ArrayExpression"===e.type&&(e.elements.length>0||e.comments)||"TSTypeAssertion"===e.type&&couldGroupArg(e.expression)||"TSAsExpression"===e.type&&couldGroupArg(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||Sp(e.body))}function printArgumentsList(e,t,r){var n=e.getValue(),a=n.arguments;if(0===a.length)return Qp(["(",Or.printDanglingComments(e,t,!0),")"]);if(2===a.length&&"ArrowFunctionExpression"===a[0].type&&0===a[0].params.length&&"BlockStatement"===a[0].body.type&&"ArrayExpression"===a[1].type&&!a.find((function(e){return e.comments})))return Qp(["(",e.call(r,"arguments",0),", ",e.call(r,"arguments",1),")"]);var u=!1,i=!1,o=!1,s=a.length-1,l=e.map((function(e,n){var a=e.getNode(),l=[r(e)];return n===s||(Jc(t.originalText,a,t)?(0===n&&(o=!0),u=!0,l.push(",",tf,tf)):l.push(",",ef)),i=function shouldBreakForArrowFunctionInArguments(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=Qp([r(e)]);n=n||gf(t)}),"params"),n}(a,e),Qp(l)}),"arguments"),c=n.callee&&"Import"===n.callee.type||!shouldPrintComma$1(t,"all")?"":",";function allArgsBrokenOut(){return af(Qp(["(",uf(Qp([ef,Qp(l)])),c,ef,")"]),{shouldBreak:!0})}if(vp(a))return allArgsBrokenOut();var p=function shouldGroupFirstArg(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||couldGroupArg(r))}(a),f=function shouldGroupLastArg(e){var t=_c(e),r=Vc(e);return!sp(t)&&!mp(t)&&couldGroupArg(t)&&(!r||r.type!==t.type)}(a);if(p||f){var d,m=(p?l.slice(1).some(gf):l.slice(0,-1).some(gf))||u||i,h=0;e.each((function(e){p&&0===h&&(d=[Qp([e.call((function(e){return r(e,{expandFirstArg:!0})})),l.length>1?",":"",o?tf:ef,o?tf:""])].concat(l.slice(1))),f&&h===a.length-1&&(d=l.slice(0,-1).concat(e.call((function(e){return r(e,{expandLastArg:!0})})))),h++}),"arguments");var g=l.some(gf),D=Qp(["(",Qp(d),")"]);return Qp([g?pf:"",sf([g||n.typeArguments||n.typeParameters?cf(allArgsBrokenOut(),D):D,Qp(p?["(",af(d[0],{shouldBreak:!0}),Qp(d.slice(1)),")"]:["(",Qp(l.slice(0,-1)),af(_c(d),{shouldBreak:!0}),")"]),allArgsBrokenOut()],{shouldBreak:m})])}var y=Qp(["(",uf(Qp([rf,Qp(l)])),cf(c),rf,")"]);return Bp(e)?y:af(y,{shouldBreak:l.some(gf)||u})}function printTypeAnnotation(e,t,r){var n=e.getValue();if(!n.typeAnnotation)return"";var a=e.getParentNode(),u=n.definite||a&&"VariableDeclarator"===a.type&&a.definite,i="DeclareFunction"===a.type&&a.id===n;return Cp(t.originalText,n.typeAnnotation,t)?Qp([" /*: ",e.call(r,"typeAnnotation")," */"]):Qp([i?"":u?"!: ":": ",e.call(r,"typeAnnotation")])}function printFunctionTypeParameters(e,t,r){var n=e.getValue();return n.typeArguments?e.call(r,"typeArguments"):n.typeParameters?e.call(r,"typeParameters"):""}function printFunctionParams(e,t,r,n,a){var u=e.getValue(),i=e.getParentNode(),o=u.parameters?"parameters":"params",s=Vp(i),l=shouldHugArguments(u),c=n&&!(u[o]&&u[o].some((function(e){return e.comments}))),p=a?printFunctionTypeParameters(e,0,t):"",f=[];if(u[o]){var d=u[o].length-1;f=e.map((function(e,n){var a=[],i=e.getValue();return a.push(t(e)),n===d?u.rest&&a.push(",",ef):s||l||c?a.push(", "):Jc(r.originalText,i,r)?a.push(",",tf,tf):a.push(",",ef),Qp(a)}),o)}if(u.rest&&f.push(Qp(["...",e.call(t,"rest")])),0===f.length)return Qp([p,"(",Or.printDanglingComments(e,r,!0,(function(e){return")"===Pc(r.originalText,e,r.locEnd)})),")"]);var m=_c(u[o]);if(c)return af(Qp([Cf(p),"(",Qp(f.map(Cf)),")"]));var h=u[o].every((function(e){return!e.decorators}));if(l&&h)return Qp([p,"(",Qp(f),")"]);if(s)return Qp([p,"(",Qp(f),")"]);if((_p(i,r)||zp(i,r)||"TypeAlias"===i.type||"UnionTypeAnnotation"===i.type||"TSUnionType"===i.type||"IntersectionTypeAnnotation"===i.type||"FunctionTypeAnnotation"===i.type&&i.returnType===u)&&1===u[o].length&&null===u[o][0].name&&u[o][0].typeAnnotation&&null===u.typeParameters&&jp(u[o][0].typeAnnotation)&&!u.rest)return"always"===r.arrowParens?Qp(["(",Qp(f),")"]):Qp(f);var g=!(m&&"RestElement"===m.type||u.rest);return Qp([p,"(",uf(Qp([rf,Qp(f)])),cf(g&&shouldPrintComma$1(r,"all")?",":""),rf,")"])}function shouldPrintParamsWithoutParens(e,t){return"always"!==t.arrowParens&&"avoid"===t.arrowParens&&function canPrintParamsWithoutParens(e){return!(1!==e.params.length||e.rest||e.typeParameters||up(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 printFunctionDeclaration(e,t,r){var n=e.getValue(),a=[];return n.async&&a.push("async "),a.push("function"),n.generator&&a.push("*"),n.id&&a.push(" ",e.call(t,"id")),a.push(printFunctionTypeParameters(e,0,t),af(Qp([printFunctionParams(e,t,r),printReturnType(e,t,r)])),n.body?" ":"",e.call(t,"body")),Qp(a)}function printReturnType(e,t,r){var n=e.getValue(),a=e.call(t,"returnType");if(n.returnType&&Cp(r.originalText,n.returnType,r))return Qp([" /*: ",a," */"]);var u=[a];return n.returnType&&n.returnType.typeAnnotation&&u.unshift(": "),n.predicate&&u.push(n.returnType?" ":": ",e.call(t,"predicate")),Qp(u)}function printExportDeclaration(e,t,r){var n=e.getValue(),a=t.semi?";":"",u=["export "],i=n.default||"ExportDefaultDeclaration"===n.type;if(i&&u.push("default "),u.push(Or.printDanglingComments(e,t,!0)),Jp(n)&&u.push(tf),n.declaration)u.push(e.call(r,"declaration")),i&&"ClassDeclaration"!==n.declaration.type&&"FunctionDeclaration"!==n.declaration.type&&"TSInterfaceDeclaration"!==n.declaration.type&&"DeclareClass"!==n.declaration.type&&"DeclareFunction"!==n.declaration.type&&"TSDeclareFunction"!==n.declaration.type&&u.push(a);else{if(n.specifiers&&n.specifiers.length>0){var o=[],s=[],l=[];e.each((function(t){var n=e.getValue().type;"ExportSpecifier"===n?o.push(r(t)):"ExportDefaultSpecifier"===n?s.push(r(t)):"ExportNamespaceSpecifier"===n&&l.push(Qp(["* as ",r(t)]))}),"specifiers");var c=0!==l.length&&0!==o.length,p=0!==s.length&&(0!==l.length||0!==o.length),f=o.length>1||s.length>0||n.specifiers&&n.specifiers.some((function(e){return e.comments})),d="";0!==o.length&&(d=f?af(Qp(["{",uf(Qp([t.bracketSpacing?ef:rf,Zp(Qp([",",ef]),o)])),cf(shouldPrintComma$1(t)?",":""),t.bracketSpacing?ef:rf,"}"])):Qp(["{",t.bracketSpacing?" ":"",Qp(o),t.bracketSpacing?" ":"","}"])),u.push("type"===n.exportKind?"type ":"",Qp(s),Qp([p?", ":""]),Qp(l),Qp([c?", ":""]),d)}else u.push("{}");n.source&&u.push(" from ",e.call(r,"source")),u.push(a)}return Qp(u)}function printFlowDeclaration(e,t){var r=kc(e);return r?assert.strictEqual(r.type,"DeclareExportDeclaration"):t.unshift("declare "),Qp(t)}function printTypeScriptModifiers(e,t,r){var n=e.getValue();return n.modifiers&&n.modifiers.length?Qp([Zp(" ",e.map(r,"modifiers"))," "]):""}function printTypeParameters(e,t,r,n){var a=e.getValue();if(!a[n])return"";if(!Array.isArray(a[n]))return e.call(r,n);var u=e.getNode(2),i=e.getNode(4);return null!=u&&Vp(u)||0===a[n].length||1===a[n].length&&(shouldHugType(a[n][0])||"GenericTypeAnnotation"===a[n][0].type&&shouldHugType(a[n][0].id)||"TSTypeReference"===a[n][0].type&&shouldHugType(a[n][0].typeName)||"NullableTypeAnnotation"===a[n][0].type||i&&"VariableDeclarator"===i.type&&u&&"TSTypeAnnotation"===u.type&&"TSUnionType"!==a[n][0].type&&"UnionTypeAnnotation"!==a[n][0].type&&"TSConditionalType"!==a[n][0].type&&"TSMappedType"!==a[n][0].type)?Qp(["<",Zp(", ",e.map(r,n)),">"]):af(Qp(["<",uf(Qp([rf,Zp(Qp([",",ef]),e.map(r,n))])),cf("typescript"!==t.parser&&shouldPrintComma$1(t,"all")?",":""),rf,">"]))}function printClass(e,t,r){var n=e.getValue(),a=[];n.abstract&&a.push("abstract "),a.push("class"),n.id&&a.push(" ",e.call(r,"id")),a.push(e.call(r,"typeParameters"));var u=[];if(n.superClass){var i=Qp(["extends ",e.call(r,"superClass"),e.call(r,"superTypeParameters")]);n.implements&&0!==n.implements.length||n.superClass.comments&&0!==n.superClass.comments.length?u.push(af(Qp([ef,e.call((function(e){return Or.printComments(e,(function(){return i}),t)}),"superClass")]))):a.push(Qp([" ",e.call((function(e){return Or.printComments(e,(function(){return i}),t)}),"superClass")]))}else n.extends&&n.extends.length>0&&a.push(" extends ",Zp(", ",e.map(r,"extends")));return n.mixins&&n.mixins.length>0&&u.push(ef,"mixins ",af(uf(Zp(Qp([",",ef]),e.map(r,"mixins"))))),n.implements&&n.implements.length>0&&u.push(ef,"implements",af(uf(Qp([ef,Zp(Qp([",",ef]),e.map(r,"implements"))])))),u.length>0&&a.push(af(uf(Qp(u)))),n.body&&n.body.comments&&lp(t.originalText,n.body,t)?a.push(tf):a.push(" "),a.push(e.call(r,"body")),a}function printOptionalToken(e){var t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"}function printMemberLookup(e,t,r){var n=e.call(r,"property"),a=e.getValue(),u=printOptionalToken(e);return a.computed?!a.property||Ip(a.property)?Qp([u,"[",n,"]"]):af(Qp([u,"[",uf(Qp([rf,n])),rf,"]"])):Qp([u,".",n])}function printBindExpressionCallee(e,t,r){return Qp(["::",e.call(r,"callee")])}function separatorNoWhitespace(e,t,r,n){return e?"":"JSXElement"===r.type&&!r.closingElement||n&&"JSXElement"===n.type&&!n.closingElement?1===t.length?rf:tf:rf}function separatorWithWhitespace(e,t,r,n){return e?tf:1===t.length?"JSXElement"===r.type&&!r.closingElement||n&&"JSXElement"===n.type&&!n.closingElement?tf:rf:tf}function shouldInlineLogicalExpression(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&0!==e.right.properties.length||"ArrayExpression"===e.right.type&&0!==e.right.elements.length||!!Sp(e.right))}function printAssignmentRight(e,t,r,n){return lp(n.originalText,t,n)?uf(Qp([tf,r])):gp(t)&&!shouldInlineLogicalExpression(t)||"ConditionalExpression"===t.type&&gp(t.test)&&!shouldInlineLogicalExpression(t.test)||"StringLiteralTypeAnnotation"===t.type||"ClassExpression"===t.type&&t.decorators&&t.decorators.length||("Identifier"===e.type||Rp(e)||"MemberExpression"===e.type)&&(Rp(t)||Np(t))&&"json"!==n.parser&&"json5"!==n.parser||"SequenceExpression"===t.type?af(uf(Qp([ef,r]))):Qp([" ",r])}function printAssignment(e,t,r,n,a,u){if(!n)return t;var i=printAssignmentRight(e,n,a,u);return af(Qp([t,r,i]))}function adjustClause(e,t,r){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||r?Qp([" ",t]):uf(Qp([ef,t]))}function nodeStr(e,t,r){var n=Xp(e),a=r||"DirectiveLiteral"===e.type;return Mc(n,t,a)}function printRegex(e){var t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}function shouldHugType(e){if(jp(e)||Lp(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 shouldHugArguments(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)&&Lp(e.params[0].typeAnnotation.typeAnnotation)||"FunctionTypeParam"===e.params[0].type&&Lp(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 printArrayItems(e,t,r,n){var a=[],u=[];return e.each((function(e){a.push(Qp(u)),a.push(af(n(e))),u=[",",ef],e.getValue()&&Jc(t.originalText,e.getValue(),t)&&u.push(rf)}),r),Qp(a)}var Af={preprocess:Bc,print:function genericPrint$3(e,t,r,n){var a=e.getValue(),u=!1,i=function printPathNoParens(e,t,r,n){var a=e.getValue(),u=t.semi?";":"";if(!a)return"";if("string"==typeof a)return a;var i=Yc(e,t,r);if(i)return i;var o=[];switch(a.type){case"JsExpressionRoot":return e.call(r,"node");case"JsonRoot":return Qp([e.call(r,"node"),tf]);case"File":return a.program&&a.program.interpreter&&o.push(e.call((function(e){return e.call(r,"interpreter")}),"program")),o.push(e.call(r,"program")),Qp(o);case"Program":return a.directives&&e.each((function(e){o.push(r(e),u,tf),Jc(t.originalText,e.getValue(),t)&&o.push(tf)}),"directives"),o.push(e.call((function(e){return printStatementSequence(e,t,r)}),"body")),o.push(Or.printDanglingComments(e,t,!0)),(a.body.length||a.comments)&&o.push(tf),Qp(o);case"EmptyStatement":return"";case"ExpressionStatement":if(a.directive)return Qp([nodeStr(a.expression,t,!0),u]);if("__vue_event_binding"===t.parser){var s=e.getParentNode();if("Program"===s.type&&1===s.body.length&&s.body[0]===a)return Qp([e.call(r,"expression"),Qc(a.expression)?";":""])}return Qp([e.call(r,"expression"),qp(t,e)?"":u]);case"ParenthesizedExpression":return Qp(["(",e.call(r,"expression"),")"]);case"AssignmentExpression":return printAssignment(a.left,e.call(r,"left"),Qp([" ",a.operator]),a.right,e.call(r,"right"),t);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":var l=e.getParentNode(),c=e.getParentNode(1),p=a!==l.body&&("IfStatement"===l.type||"WhileStatement"===l.type||"SwitchStatement"===l.type||"DoWhileStatement"===l.type),f=function printBinaryishExpressions(e,t,r,n,a){var u=[],i=e.getValue();if(gp(i)){Oc(i.operator,i.left.operator)?u=u.concat(e.call((function(e){return printBinaryishExpressions(e,t,r,!0,a)}),"left")):u.push(e.call(t,"left"));var o=shouldInlineLogicalExpression(i),s=("|>"===i.operator||"NGPipeExpression"===i.type||"|"===i.operator&&"__vue_expression"===r.parser)&&!lp(r.originalText,i.right,r),l="NGPipeExpression"===i.type?"|":i.operator,c="NGPipeExpression"===i.type&&0!==i.arguments.length?af(uf(Qp([rf,": ",Zp(Qp([rf,":",cf(" ")]),e.map(t,"arguments").map((function(e){return of(2,af(e))})))]))):"",p=Qp(o?[l," ",e.call(t,"right"),c]:[s?rf:"",l,s?" ":ef,e.call(t,"right"),c]),f=e.getParentNode(),d=!(a&&"LogicalExpression"===i.type)&&f.type!==i.type&&i.left.type!==i.type&&i.right.type!==i.type;u.push(" ",d?af(p):p),n&&i.comments&&(u=Or.printComments(e,(function(){return Qp(u)}),r))}else u.push(e.call(t));return u}(e,r,t,!1,p);if(p)return Qp(f);if(("CallExpression"===l.type||"OptionalCallExpression"===l.type)&&l.callee===a||"UnaryExpression"===l.type||("MemberExpression"===l.type||"OptionalMemberExpression"===l.type)&&!l.computed)return af(Qp([uf(Qp([rf,Qp(f)])),rf]));var d="ReturnStatement"===l.type||"JSXExpressionContainer"===l.type&&"JSXAttribute"===c.type||"NGPipeExpression"!==a.type&&("NGRoot"===l.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===l.type&&"NGMicrosyntax"===c.type&&1===c.body.length)||a===l.body&&"ArrowFunctionExpression"===l.type||a!==l.body&&"ForStatement"===l.type||"ConditionalExpression"===l.type&&"ReturnStatement"!==c.type&&"CallExpression"!==c.type&&"OptionalCallExpression"!==c.type,m="AssignmentExpression"===l.type||"VariableDeclarator"===l.type||"ClassProperty"===l.type||"TSAbstractClassProperty"===l.type||"ClassPrivateProperty"===l.type||"ObjectProperty"===l.type||"Property"===l.type,h=gp(a.left)&&Oc(a.operator,a.left.operator);if(d||shouldInlineLogicalExpression(a)&&!h||!shouldInlineLogicalExpression(a)&&m)return af(Qp(f));if(0===f.length)return"";var g=Sp(a.right),D=Qp(g?f.slice(1,-1):f.slice(1)),y=Symbol("logicalChain-"+ ++Ef),C=af(Qp([f.length>0?f[0]:"",uf(D)]),{id:y});if(!g)return C;var v=_c(f);return af(Qp([C,cf(uf(v),v,{groupId:y})]));case"AssignmentPattern":return Qp([e.call(r,"left")," = ",e.call(r,"right")]);case"TSTypeAssertion":var E=!("ArrayExpression"===a.expression.type||"ObjectExpression"===a.expression.type),A=af(Qp(["<",uf(Qp([rf,e.call(r,"typeAnnotation")])),rf,">"])),F=Qp([cf("("),uf(Qp([rf,e.call(r,"expression")])),rf,cf(")")]);return E?sf([Qp([A,e.call(r,"expression")]),Qp([A,af(F,{shouldBreak:!0})]),Qp([A,e.call(r,"expression")])]):af(Qp([A,e.call(r,"expression")]));case"OptionalMemberExpression":case"MemberExpression":var b,S=e.getParentNode(),x=0;do{b=e.getParentNode(x),x++}while(b&&("MemberExpression"===b.type||"OptionalMemberExpression"===b.type||"TSNonNullExpression"===b.type));var w=b&&("NewExpression"===b.type||"BindExpression"===b.type||"VariableDeclarator"===b.type&&"Identifier"!==b.id.type||"AssignmentExpression"===b.type&&"Identifier"!==b.left.type)||a.computed||"Identifier"===a.object.type&&"Identifier"===a.property.type&&"MemberExpression"!==S.type&&"OptionalMemberExpression"!==S.type;return Qp([e.call(r,"object"),w?printMemberLookup(e,0,r):af(uf(Qp([rf,printMemberLookup(e,0,r)])))]);case"MetaProperty":return Qp([e.call(r,"meta"),".",e.call(r,"property")]);case"BindExpression":return a.object&&o.push(e.call(r,"object")),o.push(af(uf(Qp([rf,printBindExpressionCallee(e,0,r)])))),Qp(o);case"Identifier":return Qp([a.name,printOptionalToken(e),printTypeAnnotation(e,t,r)]);case"V8IntrinsicIdentifier":return Qp(["%",a.name]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return Qp(["...",e.call(r,"argument"),printTypeAnnotation(e,t,r)]);case"FunctionDeclaration":case"FunctionExpression":return o.push(printFunctionDeclaration(e,r,t)),a.body||o.push(u),Qp(o);case"ArrowFunctionExpression":a.async&&o.push("async "),shouldPrintParamsWithoutParens(e,t)?o.push(e.call(r,"params",0)):o.push(af(Qp([printFunctionParams(e,r,t,n&&(n.expandLastArg||n.expandFirstArg),!0),printReturnType(e,r,t)])));var T=Or.printDanglingComments(e,t,!0,(function(e){var r=Gc(t.originalText,e,t);return"=>"===t.originalText.substr(r,2)}));T&&o.push(" ",T),o.push(" =>");var B=e.call((function(e){return r(e,n)}),"body");if(!lp(t.originalText,a.body,t)&&("ArrayExpression"===a.body.type||"ObjectExpression"===a.body.type||"BlockStatement"===a.body.type||Sp(a.body)||Wp(a.body,t.originalText,t)||"ArrowFunctionExpression"===a.body.type||"DoExpression"===a.body.type))return af(Qp([Qp(o)," ",B]));if("SequenceExpression"===a.body.type)return af(Qp([Qp(o),af(Qp([" (",uf(Qp([rf,B])),rf,")"]))]));var k=(n&&n.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!(a.comments&&a.comments.length),N=n&&n.expandLastArg&&shouldPrintComma$1(t,"all"),O="ConditionalExpression"===a.body.type&&!qc(a.body,!1);return af(Qp([Qp(o),af(Qp([uf(Qp([ef,O?cf("","("):"",B,O?cf("",")"):""])),k?Qp([cf(N?",":""),rf]):""]))]));case"YieldExpression":return o.push("yield"),a.delegate&&o.push("*"),a.argument&&o.push(" ",e.call(r,"argument")),Qp(o);case"AwaitExpression":o.push("await ",e.call(r,"argument"));var P=e.getParentNode();return("CallExpression"===P.type||"OptionalCallExpression"===P.type)&&P.callee===a||("MemberExpression"===P.type||"OptionalMemberExpression"===P.type)&&P.object===a?af(Qp([uf(Qp([rf,Qp(o)])),rf])):Qp(o);case"ImportSpecifier":return a.importKind&&o.push(e.call(r,"importKind")," "),o.push(e.call(r,"imported")),a.local&&a.local.name!==a.imported.name&&o.push(" as ",e.call(r,"local")),Qp(o);case"ExportSpecifier":return o.push(e.call(r,"local")),a.exported&&a.exported.name!==a.local.name&&o.push(" as ",e.call(r,"exported")),Qp(o);case"ImportNamespaceSpecifier":return o.push("* as "),o.push(e.call(r,"local")),Qp(o);case"ImportDefaultSpecifier":return e.call(r,"local");case"TSExportAssignment":return Qp(["export = ",e.call(r,"expression"),u]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return printExportDeclaration(e,t,r);case"ExportAllDeclaration":return o.push("export "),"type"===a.exportKind&&o.push("type "),o.push("* from ",e.call(r,"source"),u),Qp(o);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return e.call(r,"exported");case"ImportDeclaration":o.push("import "),a.importKind&&"value"!==a.importKind&&o.push(a.importKind+" ");var I=[],L=[];return a.specifiers&&a.specifiers.length>0?(e.each((function(e){var t=e.getValue();"ImportDefaultSpecifier"===t.type||"ImportNamespaceSpecifier"===t.type?I.push(r(e)):L.push(r(e))}),"specifiers"),I.length>0&&o.push(Zp(", ",I)),I.length>0&&L.length>0&&o.push(", "),1===L.length&&0===I.length&&a.specifiers&&!a.specifiers.some((function(e){return e.comments}))?o.push(Qp(["{",t.bracketSpacing?" ":"",Qp(L),t.bracketSpacing?" ":"","}"])):L.length>=1&&o.push(af(Qp(["{",uf(Qp([t.bracketSpacing?ef:rf,Zp(Qp([",",ef]),L)])),cf(shouldPrintComma$1(t)?",":""),t.bracketSpacing?ef:rf,"}"]))),o.push(" from ")):(a.importKind&&"type"===a.importKind||/{\s*}/.test(t.originalText.slice(t.locStart(a),t.locStart(a.source))))&&o.push("{} from "),o.push(e.call(r,"source"),u),Qp(o);case"Import":return"import";case"TSModuleBlock":case"BlockStatement":var _=e.call((function(e){return printStatementSequence(e,t,r)}),"body"),j=a.body.find((function(e){return"EmptyStatement"!==e.type})),M=a.directives&&a.directives.length>0,R=e.getParentNode(),$=e.getParentNode(1);return j||M||up(a)||"ArrowFunctionExpression"!==R.type&&"FunctionExpression"!==R.type&&"FunctionDeclaration"!==R.type&&"ObjectMethod"!==R.type&&"ClassMethod"!==R.type&&"ClassPrivateMethod"!==R.type&&"ForStatement"!==R.type&&"WhileStatement"!==R.type&&"DoWhileStatement"!==R.type&&"DoExpression"!==R.type&&("CatchClause"!==R.type||$.finalizer)&&"TSModuleDeclaration"!==R.type?(o.push("{"),M&&e.each((function(e){o.push(uf(Qp([tf,r(e),u]))),Jc(t.originalText,e.getValue(),t)&&o.push(tf)}),"directives"),j&&o.push(uf(Qp([tf,_]))),o.push(Or.printDanglingComments(e,t)),o.push(tf,"}"),Qp(o)):"{}";case"ReturnStatement":return o.push("return"),a.argument&&(Gp(t,a.argument)?o.push(Qp([" (",uf(Qp([tf,e.call(r,"argument")])),tf,")"])):"LogicalExpression"===a.argument.type||"BinaryExpression"===a.argument.type||"SequenceExpression"===a.argument.type?o.push(af(Qp([cf(" ("," "),uf(Qp([rf,e.call(r,"argument")])),rf,cf(")")]))):o.push(" ",e.call(r,"argument"))),up(a)&&o.push(" ",Or.printDanglingComments(e,t,!0)),o.push(u),Qp(o);case"NewExpression":case"OptionalCallExpression":case"CallExpression":var W="NewExpression"===a.type,V=printOptionalToken(e);if(!W&&"Identifier"===a.callee.type&&("require"===a.callee.name||"define"===a.callee.name)||1===a.arguments.length&&Wp(a.arguments[0],t.originalText,t)||!W&&Vp(a,e.getParentNode()))return Qp([W?"new ":"",e.call(r,"callee"),V,printFunctionTypeParameters(e,0,r),Qp(["(",Zp(", ",e.map(r,"arguments")),")"])]);var q="Identifier"===a.callee.type&&ip(a.callee.trailingComments);if(q&&(a.callee.trailingComments[0].printed=!0),!W&&Op(a.callee))return function printMemberChain(e,t,r){var n=[];function shouldInsertEmptyLineAfter(e){var r=t.originalText,n=Gc(r,e,t);return")"==r.charAt(n)?Xc(r,n+1,t):Jc(r,e,t)}var a=e.getValue();n.unshift({node:a,printed:Qp([printOptionalToken(e),printFunctionTypeParameters(e,0,r),printArgumentsList(e,t,r)])}),e.call((function(e){return function rec(e){var a=e.getValue();"CallExpression"!==a.type&&"OptionalCallExpression"!==a.type||!Op(a.callee)&&"CallExpression"!==a.callee.type&&"OptionalCallExpression"!==a.callee.type?Op(a)?(n.unshift({node:a,needsParens:Ac(e,t),printed:Or.printComments(e,(function(){return"OptionalMemberExpression"===a.type||"MemberExpression"===a.type?printMemberLookup(e,0,r):printBindExpressionCallee(e,0,r)}),t)}),e.call((function(e){return rec(e)}),"object")):"TSNonNullExpression"===a.type?(n.unshift({node:a,printed:Or.printComments(e,(function(){return"!"}),t)}),e.call((function(e){return rec(e)}),"expression")):n.unshift({node:a,printed:e.call(r)}):(n.unshift({node:a,printed:Qp([Or.printComments(e,(function(){return Qp([printOptionalToken(e),printFunctionTypeParameters(e,0,r),printArgumentsList(e,t,r)])}),t),shouldInsertEmptyLineAfter(a)?tf:""])}),e.call((function(e){return rec(e)}),"callee"))}(e)}),"callee");for(var u=[],i=[n[0]],o=1;o<n.length&&("TSNonNullExpression"===n[o].node.type||"OptionalCallExpression"===n[o].node.type||"CallExpression"===n[o].node.type||("MemberExpression"===n[o].node.type||"OptionalMemberExpression"===n[o].node.type)&&n[o].node.computed&&Ip(n[o].node.property));++o)i.push(n[o]);if("CallExpression"!==n[0].node.type&&"OptionalCallExpression"!==n[0].node.type)for(;o+1<n.length&&Op(n[o].node)&&Op(n[o+1].node);++o)i.push(n[o]);u.push(i),i=[];for(var s=!1;o<n.length;++o){if(s&&Op(n[o].node)){if(n[o].node.computed&&Ip(n[o].node.property)){i.push(n[o]);continue}u.push(i),i=[],s=!1}"CallExpression"!==n[o].node.type&&"OptionalCallExpression"!==n[o].node.type||(s=!0),i.push(n[o]),n[o].node.comments&&n[o].node.comments.some((function(e){return e.trailing}))&&(u.push(i),i=[],s=!1)}function isFactory(e){return/^[A-Z]|^[_$]+$/.test(e)}i.length>0&&u.push(i);var l=u.length>=2&&!u[1][0].node.comments&&function shouldNotWrap(r){var n=e.getParentNode(),a=n&&"ExpressionStatement"===n.type,u=r[1].length&&r[1][0].node.computed;if(1===r[0].length){var i=r[0][0].node;return"ThisExpression"===i.type||"Identifier"===i.type&&(isFactory(i.name)||a&&function isShort(e){return e.length<=t.tabWidth}(i.name)||u)}var o=_c(r[0]).node;return("MemberExpression"===o.type||"OptionalMemberExpression"===o.type)&&"Identifier"===o.property.type&&(isFactory(o.property.name)||u)}(u);function printGroup(e){var t=e.map((function(e){return e.printed}));return e.length>0&&e[e.length-1].needsParens?Qp(["("].concat(_toConsumableArray(t),[")"])):Qp(t)}var c=u.map(printGroup),p=Qp(c),f=l?3:2,d=u.slice(0,f).reduce((function(e,t){return e.concat(t)}),[]),m=d.slice(1,-1).some((function(e){return sp(e.node)}))||d.slice(0,-1).some((function(e){return mp(e.node)}))||u[f]&&sp(u[f][0].node);if(u.length<=f&&!m)return Bp(e)?p:af(p);var h,g,D=_c(l?u.slice(1,2)[0]:u[0]).node,y="CallExpression"!==D.type&&"OptionalCallExpression"!==D.type&&shouldInsertEmptyLineAfter(D),C=Qp([printGroup(u[0]),l?Qp(u.slice(1,2).map(printGroup)):"",y?tf:"",function printIndentedGroup(e){return 0===e.length?"":uf(af(Qp([tf,Zp(tf,e.map(printGroup))])))}(u.slice(l?2:1))]),v=n.map((function(e){return e.node})).filter(Dp);return m||v.length>=3||c.slice(0,-1).some(gf)||(h=_c(c),g=_c(_c(u)).node,Dp(g)&&gf(h)&&v.slice(0,-1).some((function(e){return e.arguments.some(Ap)})))?af(C):Qp([gf(p)||y?pf:"",sf([p,C])])}(e,t,r);var U=Qp([W?"new ":"",e.call(r,"callee"),V,q?"/*:: ".concat(a.callee.trailingComments[0].value.substring(2).trim()," */"):"",printFunctionTypeParameters(e,0,r),printArgumentsList(e,t,r)]);return Dp(a.callee)?af(U):U;case"TSInterfaceDeclaration":return a.declare&&o.push("declare "),o.push(a.abstract?"abstract ":"",printTypeScriptModifiers(e,0,r),"interface ",e.call(r,"id"),a.typeParameters?e.call(r,"typeParameters"):""," "),a.extends&&a.extends.length&&o.push(af(uf(Qp([rf,"extends ",(1===a.extends.length?hp:uf)(Zp(Qp([",",ef]),e.map(r,"extends")))," "])))),o.push(e.call(r,"body")),Qp(o);case"ObjectTypeInternalSlot":return Qp([a.static?"static ":"","[[",e.call(r,"id"),"]]",printOptionalToken(e),a.method?"":": ",e.call(r,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":var z;z="TSTypeLiteral"===a.type?"members":"TSInterfaceBody"===a.type?"body":"properties";var H="ObjectTypeAnnotation"===a.type,J=[];H&&J.push("indexers","callProperties","internalSlots"),J.push(z);var X=J.map((function(e){return a[e][0]})).sort((function(e,r){return t.locStart(e)-t.locStart(r)}))[0],G=e.getParentNode(0),K=H&&G&&("InterfaceDeclaration"===G.type||"DeclareInterface"===G.type||"DeclareClass"===G.type)&&"body"===e.getName(),Y="TSInterfaceBody"===a.type||K||"ObjectPattern"===a.type&&"FunctionDeclaration"!==G.type&&"FunctionExpression"!==G.type&&"ArrowFunctionExpression"!==G.type&&"ObjectMethod"!==G.type&&"ClassMethod"!==G.type&&"ClassPrivateMethod"!==G.type&&"AssignmentPattern"!==G.type&&"CatchClause"!==G.type&&a.properties.some((function(e){return e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)}))||"ObjectPattern"!==a.type&&X&&Lc(t.originalText,t.locStart(a),t.locStart(X)),Q=K?";":"TSInterfaceBody"===a.type||"TSTypeLiteral"===a.type?cf(u,";"):",",Z=a.exact?"{|":"{",ee=a.exact?"|}":"}",te=[];J.forEach((function(n){e.each((function(e){var n=e.getValue();te.push({node:n,printed:r(e),loc:t.locStart(n)})}),n)}));var re=[],ne=te.sort((function(e,t){return e.loc-t.loc})).map((function(e){var r=Qp(re.concat(af(e.printed)));return re=[Q,ef],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!Wc(e.node)||re.shift(),Jc(t.originalText,e.node,t)&&re.push(tf),r}));a.inexact&&ne.push(Qp(re.concat(af("..."))));var ae,ue=_c(a[z]),ie=!(ue&&("RestProperty"===ue.type||"RestElement"===ue.type||Wc(ue)||a.inexact));if(0===ne.length){if(!up(a))return Qp([Z,ee,printTypeAnnotation(e,t,r)]);ae=af(Qp([Z,Or.printDanglingComments(e,t),rf,ee,printOptionalToken(e),printTypeAnnotation(e,t,r)]))}else ae=Qp([Z,uf(Qp([t.bracketSpacing?ef:rf,Qp(ne)])),cf(ie&&(","!==Q||shouldPrintComma$1(t))?Q:""),Qp([t.bracketSpacing?ef:rf,ee]),printOptionalToken(e),printTypeAnnotation(e,t,r)]);var oe=e.getParentNode(2);return"ObjectPattern"===a.type&&G&&shouldHugArguments(G)&&!a.decorators&&G.params[0]===a||shouldHugType(a)&&oe&&shouldHugArguments(oe)&&oe.params[0].typeAnnotation&&oe.params[0].typeAnnotation.typeAnnotation===a?ae:af(ae,{shouldBreak:Y});case"ObjectProperty":case"Property":return a.method||"get"===a.kind||"set"===a.kind?printMethod(e,t,r):(a.shorthand?o.push(e.call(r,"value")):o.push(printAssignment(a.key,printPropertyKey(e,t,r),":",a.value,e.call(r,"value"),t)),Qp(o));case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":case"TSAbstractMethodDefinition":return a.decorators&&0!==a.decorators.length&&o.push(printDecorators(e,t,r)),a.accessibility&&o.push(a.accessibility+" "),a.static&&o.push("static "),"TSAbstractMethodDefinition"===a.type&&o.push("abstract "),o.push(printMethod(e,t,r)),Qp(o);case"ObjectMethod":return printMethod(e,t,r);case"Decorator":return Qp(["@",e.call(r,"expression"),e.call(r,"callee")]);case"ArrayExpression":case"ArrayPattern":if(0===a.elements.length)up(a)?o.push(af(Qp(["[",Or.printDanglingComments(e,t),rf,"]"]))):o.push("[]");else{var se=_c(a.elements),le=!(se&&"RestElement"===se.type),ce=le&&null===se,pe=a.elements.length>1&&a.elements.every((function(e,t,r){var n=e&&e.type;if("ArrayExpression"!==n&&"ObjectExpression"!==n)return!1;var a=r[t+1];if(a&&n!==a.type)return!1;var u="ArrayExpression"===n?"elements":"properties";return e[u]&&e[u].length>1}));o.push(af(Qp(["[",uf(Qp([rf,printArrayItems(e,t,"elements",r)])),ce?",":"",cf(le&&!ce&&shouldPrintComma$1(t)?",":""),Or.printDanglingComments(e,t,!0),rf,"]"]),{shouldBreak:pe}))}return o.push(printOptionalToken(e),printTypeAnnotation(e,t,r)),Qp(o);case"SequenceExpression":var fe=e.getParentNode(0);if("ExpressionStatement"===fe.type||"ForStatement"===fe.type){var de=[];return e.each((function(e){0===e.getName()?de.push(r(e)):de.push(",",uf(Qp([ef,r(e)])))}),"expressions"),af(Qp(de))}return af(Qp([Zp(Qp([",",ef]),e.map(r,"expressions"))]));case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":return"null";case"RegExpLiteral":return printRegex(a);case"NumericLiteral":return Rc(a.extra.raw);case"BigIntLiteral":return(a.bigint||(a.extra?a.extra.raw:a.raw)).toLowerCase();case"BooleanLiteral":case"StringLiteral":case"Literal":if(a.regex)return printRegex(a.regex);if("number"==typeof a.value)return Rc(a.raw);if("string"!=typeof a.value)return""+a.value;var me=e.getParentNode(1),he="typescript"===t.parser&&"string"==typeof a.value&&me&&("Program"===me.type||"BlockStatement"===me.type);return nodeStr(a,t,he);case"Directive":return e.call(r,"value");case"DirectiveLiteral":return nodeStr(a,t);case"UnaryExpression":return o.push(a.operator),/[a-z]$/.test(a.operator)&&o.push(" "),a.argument.comments&&a.argument.comments.length>0?o.push(af(Qp(["(",uf(Qp([rf,e.call(r,"argument")])),rf,")"]))):o.push(e.call(r,"argument")),Qp(o);case"UpdateExpression":return o.push(e.call(r,"argument"),a.operator),a.prefix&&o.reverse(),Qp(o);case"ConditionalExpression":return printTernaryOperator(e,t,r,{beforeParts:function beforeParts(){return[e.call(r,"test")]},afterParts:function afterParts(e){return[e?rf:""]},shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyName:"test",breakNested:!0});case"VariableDeclaration":var ge,De=e.map((function(e){return r(e)}),"declarations"),ye=e.getParentNode(),Ce="ForStatement"===ye.type||"ForInStatement"===ye.type||"ForOfStatement"===ye.type||"ForAwaitStatement"===ye.type,ve=a.declarations.some((function(e){return e.init}));return 1!==De.length||a.declarations[0].comments?De.length>0&&(ge=uf(De[0])):ge=De[0],o=[a.declare?"declare ":"",a.kind,ge?Qp([" ",ge]):"",uf(Qp(De.slice(1).map((function(e){return Qp([",",ve&&!Ce?tf:ef,e])}))))],Ce&&ye.body!==a||o.push(u),af(Qp(o));case"TSTypeAliasDeclaration":a.declare&&o.push("declare ");var Ee=printAssignmentRight(a.id,a.typeAnnotation,a.typeAnnotation&&e.call(r,"typeAnnotation"),t);return o.push("type ",e.call(r,"id"),e.call(r,"typeParameters")," =",Ee,u),af(Qp(o));case"VariableDeclarator":return printAssignment(a.id,e.call(r,"id")," =",a.init,a.init&&e.call(r,"init"),t);case"WithStatement":return af(Qp(["with (",e.call(r,"object"),")",adjustClause(a.body,e.call(r,"body"))]));case"IfStatement":var Ae=adjustClause(a.consequent,e.call(r,"consequent")),Fe=af(Qp(["if (",af(Qp([uf(Qp([rf,e.call(r,"test")])),rf])),")",Ae]));if(o.push(Fe),a.alternate){var be=mp(a.consequent)&&a.consequent.comments.some((function(e){return e.trailing&&!Wl.isBlockComment(e)}))||Jp(a),Se="BlockStatement"===a.consequent.type&&!be;o.push(Se?" ":tf),up(a)&&o.push(Or.printDanglingComments(e,t,!0),be?tf:" "),o.push("else",af(adjustClause(a.alternate,e.call(r,"alternate"),"IfStatement"===a.alternate.type)))}return Qp(o);case"ForStatement":var xe=adjustClause(a.body,e.call(r,"body")),we=Or.printDanglingComments(e,t,!0),Te=we?Qp([we,rf]):"";return a.init||a.test||a.update?Qp([Te,af(Qp(["for (",af(Qp([uf(Qp([rf,e.call(r,"init"),";",ef,e.call(r,"test"),";",ef,e.call(r,"update")])),rf])),")",xe]))]):Qp([Te,af(Qp(["for (;;)",xe]))]);case"WhileStatement":return af(Qp(["while (",af(Qp([uf(Qp([rf,e.call(r,"test")])),rf])),")",adjustClause(a.body,e.call(r,"body"))]));case"ForInStatement":return af(Qp([a.each?"for each (":"for (",e.call(r,"left")," in ",e.call(r,"right"),")",adjustClause(a.body,e.call(r,"body"))]));case"ForOfStatement":case"ForAwaitStatement":var Be="ForAwaitStatement"===a.type||a.await;return af(Qp(["for",Be?" await":""," (",e.call(r,"left")," of ",e.call(r,"right"),")",adjustClause(a.body,e.call(r,"body"))]));case"DoWhileStatement":var ke=adjustClause(a.body,e.call(r,"body")),Ne=af(Qp(["do",ke]));return o=[Ne],"BlockStatement"===a.body.type?o.push(" "):o.push(tf),o.push("while ("),o.push(af(Qp([uf(Qp([rf,e.call(r,"test")])),rf])),")",u),Qp(o);case"DoExpression":return Qp(["do ",e.call(r,"body")]);case"BreakStatement":return o.push("break"),a.label&&o.push(" ",e.call(r,"label")),o.push(u),Qp(o);case"ContinueStatement":return o.push("continue"),a.label&&o.push(" ",e.call(r,"label")),o.push(u),Qp(o);case"LabeledStatement":return"EmptyStatement"===a.body.type?Qp([e.call(r,"label"),":;"]):Qp([e.call(r,"label"),": ",e.call(r,"body")]);case"TryStatement":return Qp(["try ",e.call(r,"block"),a.handler?Qp([" ",e.call(r,"handler")]):"",a.finalizer?Qp([" finally ",e.call(r,"finalizer")]):""]);case"CatchClause":if(a.param){var Oe=a.param.comments&&a.param.comments.some((function(e){return!Wl.isBlockComment(e)||e.leading&&Ic(t.originalText,t.locEnd(e))||e.trailing&&Ic(t.originalText,t.locStart(e),{backwards:!0})})),Pe=e.call(r,"param");return Qp(["catch ",Qp(Oe?["(",uf(Qp([rf,Pe])),rf,") "]:["(",Pe,") "]),e.call(r,"body")])}return Qp(["catch ",e.call(r,"body")]);case"ThrowStatement":return Qp(["throw ",e.call(r,"argument"),u]);case"SwitchStatement":return Qp([af(Qp(["switch (",uf(Qp([rf,e.call(r,"discriminant")])),rf,")"]))," {",a.cases.length>0?uf(Qp([tf,Zp(tf,e.map((function(e){var n=e.getValue();return Qp([e.call(r),a.cases.indexOf(n)!==a.cases.length-1&&Jc(t.originalText,n,t)?tf:""])}),"cases"))])):"",tf,"}"]);case"SwitchCase":a.test?o.push("case ",e.call(r,"test"),":"):o.push("default:");var Ie=a.consequent.filter((function(e){return"EmptyStatement"!==e.type}));if(Ie.length>0){var Le=e.call((function(e){return printStatementSequence(e,t,r)}),"consequent");o.push(1===Ie.length&&"BlockStatement"===Ie[0].type?Qp([" ",Le]):uf(Qp([tf,Le])))}return Qp(o);case"DebuggerStatement":return Qp(["debugger",u]);case"JSXAttribute":if(o.push(e.call(r,"name")),a.value){var _e;if(Rp(a.value)){var je=Xp(a.value).replace(/&apos;/g,"'").replace(/&quot;/g,'"'),Me=Hc(je,t.jsxSingleQuote?"'":'"'),Re="'"===Me?"&apos;":"&quot;";je=je.slice(1,-1).replace(new RegExp(Me,"g"),Re),_e=Qp([Me,je,Me])}else _e=e.call(r,"value");o.push("=",_e)}return Qp(o);case"JSXIdentifier":return""+a.name;case"JSXNamespacedName":return Zp(":",[e.call(r,"namespace"),e.call(r,"name")]);case"JSXMemberExpression":return Zp(".",[e.call(r,"object"),e.call(r,"property")]);case"TSQualifiedName":return Zp(".",[e.call(r,"left"),e.call(r,"right")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return Qp(["{",e.call((function(e){var n=Qp(["...",r(e)]),a=e.getValue();return a.comments&&a.comments.length?Qp([uf(Qp([rf,Or.printComments(e,(function(){return n}),t)])),rf]):n}),"JSXSpreadAttribute"===a.type?"argument":"expression"),"}"]);case"JSXExpressionContainer":var $e=e.getParentNode(0),We=!("JSXAttribute"===$e.type&&a.expression.comments&&a.expression.comments.length>0)&&("ArrayExpression"===a.expression.type||"ObjectExpression"===a.expression.type||"ArrowFunctionExpression"===a.expression.type||"CallExpression"===a.expression.type||"OptionalCallExpression"===a.expression.type||"FunctionExpression"===a.expression.type||"JSXEmptyExpression"===a.expression.type||"TemplateLiteral"===a.expression.type||"TaggedTemplateExpression"===a.expression.type||"DoExpression"===a.expression.type||Sp($e)&&("ConditionalExpression"===a.expression.type||gp(a.expression)));return af(Qp(We?["{",e.call(r,"expression"),ff,"}"]:["{",uf(Qp([rf,e.call(r,"expression")])),rf,ff,"}"]));case"JSXFragment":case"JSXElement":var Ve=Or.printComments(e,(function(){return function printJSXElement(e,t,r){var n=e.getValue();if("JSXElement"===n.type&&yp(n))return Qp([e.call(r,"openingElement"),e.call(r,"closingElement")]);var a="JSXElement"===n.type?e.call(r,"openingElement"):e.call(r,"openingFragment"),u="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 Qp([a,Qp(e.map(r,"children")),u]);n.children=n.children.map((function(e){return xp(e)?{type:"JSXText",value:" ",raw:" "}:e}));for(var i=n.children.filter(Sp).length>0,o=n.children.filter((function(e){return"JSXExpressionContainer"===e.type})).length>1,s="JSXElement"===n.type&&n.openingElement.attributes.length>1,l=gf(a)||i||s||o,c=t.singleQuote?"{' '}":'{" "}',p=cf(Qp([c,rf])," "),f=n.openingElement&&n.openingElement.name&&"fbt"===n.openingElement.name.name,d=function printJSXChildren(e,t,r,n,a){var u=e.getValue(),i=[];return e.map((function(e,t){var o=e.getValue();if(Tp(o)){var s=Xp(o);if(kp(o)){var l,c=s.split(Hp);if(""===c[0]){if(i.push(""),c.shift(),/\n/.test(c[0])){var p=u.children[t+1];i.push(separatorWithWhitespace(a,c[1],o,p))}else i.push(n);c.shift()}if(""===_c(c)&&(c.pop(),l=c.pop()),0===c.length)return;if(c.forEach((function(e,t){t%2==1?i.push(ef):i.push(e)})),void 0!==l)if(/\n/.test(l)){var f=u.children[t+1];i.push(separatorWithWhitespace(a,_c(i),o,f))}else i.push(n);else{var d=u.children[t+1];i.push(separatorNoWhitespace(a,_c(i),o,d))}}else/\n/.test(s)?s.match(/\n/g).length>1&&(i.push(""),i.push(tf)):(i.push(""),i.push(n))}else{var m=r(e);i.push(m);var h=u.children[t+1];if(h&&kp(h)){var g=Xp(h).trim().split(Hp)[0];i.push(separatorNoWhitespace(a,g,o,h))}else i.push(tf)}}),"children"),i}(e,0,r,p,f),m=n.children.filter((function(e){return kp(e)})).length>0,h=d.length-2;h>=0;h--){var g=""===d[h]&&""===d[h+1],D=d[h]===tf&&""===d[h+1]&&d[h+2]===tf,y=(d[h]===rf||d[h]===tf)&&""===d[h+1]&&d[h+2]===p,C=d[h]===p&&""===d[h+1]&&(d[h+2]===rf||d[h+2]===tf),v=d[h]===p&&""===d[h+1]&&d[h+2]===p,E=d[h]===rf&&""===d[h+1]&&d[h+2]===tf||d[h]===tf&&""===d[h+1]&&d[h+2]===rf;D&&m||g||y||v||E?d.splice(h,2):C&&d.splice(h+1,2)}for(;d.length&&(Df(_c(d))||yf(_c(d)));)d.pop();for(;d.length&&(Df(d[0])||yf(d[0]))&&(Df(d[1])||yf(d[1]));)d.shift(),d.shift();var A=[];d.forEach((function(e,t){if(e===p){if(1===t&&""===d[t-1])return 2===d.length?void A.push(c):void A.push(Qp([c,tf]));if(t===d.length-1)return void A.push(c);if(""===d[t-1]&&d[t-2]===tf)return void A.push(c)}A.push(e),gf(e)&&(l=!0)}));var F=m?lf(A):af(Qp(A),{shouldBreak:!0}),b=af(Qp([a,uf(Qp([tf,F])),tf,u]));return l?b:sf([af(Qp([a,Qp(d),u])),b])}(e,t,r)}),t);return function maybeWrapJSXElementInParens(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 a=zc(e,["ArrowFunctionExpression","CallExpression","JSXExpressionContainer"])||zc(e,["ArrowFunctionExpression","OptionalCallExpression","JSXExpressionContainer"]),u=Ac(e,r);return af(Qp([u?"":cf("("),uf(Qp([rf,t])),rf,u?"":cf(")")]),{shouldBreak:a})}(e,Ve,t);case"JSXOpeningElement":var qe=e.getValue(),Ue=qe.name&&qe.name.comments&&qe.name.comments.length>0||qe.typeParameters&&qe.typeParameters.comments&&qe.typeParameters.comments.length>0;if(qe.selfClosing&&!qe.attributes.length&&!Ue)return Qp(["<",e.call(r,"name"),e.call(r,"typeParameters")," />"]);if(qe.attributes&&1===qe.attributes.length&&qe.attributes[0].value&&Rp(qe.attributes[0].value)&&!qe.attributes[0].value.value.includes("\n")&&!Ue&&(!qe.attributes[0].comments||!qe.attributes[0].comments.length))return af(Qp(["<",e.call(r,"name"),e.call(r,"typeParameters")," ",Qp(e.map(r,"attributes")),qe.selfClosing?" />":">"]));var ze=qe.attributes.length&&mp(_c(qe.attributes)),He=!qe.attributes.length&&!Ue||t.jsxBracketSameLine&&(!Ue||qe.attributes.length)&&!ze,Je=qe.attributes&&qe.attributes.some((function(e){return e.value&&Rp(e.value)&&e.value.value.includes("\n")}));return af(Qp(["<",e.call(r,"name"),e.call(r,"typeParameters"),Qp([uf(Qp(e.map((function(e){return Qp([ef,r(e)])}),"attributes"))),qe.selfClosing?ef:He?">":rf]),qe.selfClosing?"/>":He?"":">"]),{shouldBreak:Je});case"JSXClosingElement":return Qp(["</",e.call(r,"name"),">"]);case"JSXOpeningFragment":case"JSXClosingFragment":var Xe=a.comments&&a.comments.length,Ge=Xe&&!a.comments.every(Wl.isBlockComment),Ke="JSXOpeningFragment"===a.type;return Qp([Ke?"<":"</",uf(Qp([Ge?tf:Xe&&!Ke?" ":"",Or.printDanglingComments(e,t,!0)])),Ge?tf:"",">"]);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":var Ye=a.comments&&!a.comments.every(Wl.isBlockComment);return Qp([Or.printDanglingComments(e,t,!Ye),Ye?tf:""]);case"ClassBody":return a.comments||0!==a.body.length?Qp(["{",a.body.length>0?uf(Qp([tf,e.call((function(e){return printStatementSequence(e,t,r)}),"body")])):Or.printDanglingComments(e,t),tf,"}"]):"{}";case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":a.decorators&&0!==a.decorators.length&&o.push(printDecorators(e,t,r)),a.accessibility&&o.push(a.accessibility+" "),a.declare&&o.push("declare "),a.static&&o.push("static "),"TSAbstractClassProperty"===a.type&&o.push("abstract "),a.readonly&&o.push("readonly ");var Qe=rp(a);return Qe&&o.push(Qe),o.push(printPropertyKey(e,t,r),printOptionalToken(e),printTypeAnnotation(e,t,r)),a.value&&o.push(" =",printAssignmentRight(a.key,a.value,e.call(r,"value"),t)),o.push(u),af(Qp(o));case"ClassDeclaration":case"ClassExpression":return a.declare&&o.push("declare "),o.push(Qp(printClass(e,t,r))),Qp(o);case"TSInterfaceHeritage":return o.push(e.call(r,"expression")),a.typeParameters&&o.push(e.call(r,"typeParameters")),Qp(o);case"TemplateElement":return Zp(nf,a.value.raw.split(/\r?\n/g));case"TemplateLiteral":var Ze=e.map(r,"expressions"),et=e.getParentNode();if(bp(a,et)){var tt=function printJestEachTemplateLiteral(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 a=[],u=t.map((function(e){return"${"+vf(e,Object.assign({},r,{printWidth:1/0,endOfLine:"lf"})).formatted+"}"})),i=[{hasLineBreak:!1,cells:[]}],o=1;o<e.quasis.length;o++){var s=i[i.length-1],l=u[o-1];s.cells.push(l),-1!==l.indexOf("\n")&&(s.hasLineBreak=!0),-1!==e.quasis[o].value.raw.indexOf("\n")&&i.push({hasLineBreak:!1,cells:[]})}var c=i.reduce((function(e,t){return Math.max(e,t.cells.length)}),n.length),p=Array.from(new Array(c),(function(){return 0})),f=[{cells:n}].concat(i.filter((function(e){return 0!==e.cells.length})));return f.filter((function(e){return!e.hasLineBreak})).forEach((function(e){e.cells.forEach((function(e,t){p[t]=Math.max(p[t],jc(e))}))})),a.push(ff,"`",uf(Qp([tf,Zp(tf,f.map((function(e){return Zp(" | ",e.cells.map((function(t,r){return e.hasLineBreak?t:t+" ".repeat(p[r]-jc(t))})))})))])),tf,"`"),Qp(a)}}(a,Ze,t);if(tt)return tt}var rt=Mp(a);return rt&&(Ze=Ze.map((function(e){return vf(e,Object.assign({},t,{printWidth:1/0})).formatted}))),o.push(ff,"`"),e.each((function(e){var n=e.getName();if(o.push(r(e)),n<Ze.length){var u=t.tabWidth,i=e.getValue(),s=Uc(i.value.raw,u),l=Ze[n];rt||(a.expressions[n].comments&&a.expressions[n].comments.length||"MemberExpression"===a.expressions[n].type||"OptionalMemberExpression"===a.expressions[n].type||"ConditionalExpression"===a.expressions[n].type)&&(l=Qp([uf(Qp([rf,l])),rf]));var c=0===s&&i.value.raw.endsWith("\n")?of(-1/0,l):df(l,s,u);o.push(af(Qp(["${",c,ff,"}"])))}}),"quasis"),o.push("`"),Qp(o);case"TaggedTemplateExpression":return Qp([e.call(r,"tag"),e.call(r,"typeParameters"),e.call(r,"quasi")]);case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(a.type));case"TypeAnnotation":case"TSTypeAnnotation":return a.typeAnnotation?e.call(r,"typeAnnotation"):"";case"TSTupleType":case"TupleTypeAnnotation":var nt="TSTupleType"===a.type?"elementTypes":"types";return af(Qp(["[",uf(Qp([rf,printArrayItems(e,t,nt,r)])),cf(shouldPrintComma$1(t,"all")?",":""),Or.printDanglingComments(e,t,!0),rf,"]"]));case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"AnyTypeAnnotation":return"any";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return Qp([e.call(r,"elementType"),"[]"]);case"BooleanTypeAnnotation":return"boolean";case"BooleanLiteralTypeAnnotation":return""+a.value;case"DeclareClass":return printFlowDeclaration(e,printClass(e,t,r));case"TSDeclareFunction":return Qp([a.declare?"declare ":"",printFunctionDeclaration(e,r,t),u]);case"DeclareFunction":return printFlowDeclaration(e,["function ",e.call(r,"id"),a.predicate?" ":"",e.call(r,"predicate"),u]);case"DeclareModule":return printFlowDeclaration(e,["module ",e.call(r,"id")," ",e.call(r,"body")]);case"DeclareModuleExports":return printFlowDeclaration(e,["module.exports",": ",e.call(r,"typeAnnotation"),u]);case"DeclareVariable":return printFlowDeclaration(e,["var ",e.call(r,"id"),u]);case"DeclareExportAllDeclaration":return Qp(["declare export * from ",e.call(r,"source")]);case"DeclareExportDeclaration":return Qp(["declare ",printExportDeclaration(e,t,r)]);case"DeclareOpaqueType":case"OpaqueType":return o.push("opaque type ",e.call(r,"id"),e.call(r,"typeParameters")),a.supertype&&o.push(": ",e.call(r,"supertype")),a.impltype&&o.push(" = ",e.call(r,"impltype")),o.push(u),"DeclareOpaqueType"===a.type?printFlowDeclaration(e,o):Qp(o);case"EnumDeclaration":return Qp(["enum ",e.call(r,"id")," ",e.call(r,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===a.type||a.explicitType){var at=null;switch(a.type){case"EnumBooleanBody":at="boolean";break;case"EnumNumberBody":at="number";break;case"EnumStringBody":at="string";break;case"EnumSymbolBody":at="symbol"}o.push("of ",at," ")}return 0===a.members.length?o.push(af(Qp(["{",Or.printDanglingComments(e,t),rf,"}"]))):o.push(af(Qp(["{",uf(Qp([tf,printArrayItems(e,t,"members",r),shouldPrintComma$1(t)?",":""])),Or.printDanglingComments(e,t,!0),tf,"}"]))),Qp(o);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return Qp([e.call(r,"id")," = ","object"===_typeof(a.init)?e.call(r,"init"):String(a.init)]);case"EnumDefaultedMember":return e.call(r,"id");case"FunctionTypeAnnotation":case"TSFunctionType":var ut=e.getParentNode(0),it=e.getParentNode(1),ot=e.getParentNode(2),st="TSFunctionType"===a.type||!(("ObjectTypeProperty"===ut.type||"ObjectTypeInternalSlot"===ut.type)&&!rp(ut)&&!ut.optional&&t.locStart(ut)===t.locStart(a)||"ObjectTypeCallProperty"===ut.type||ot&&"DeclareFunction"===ot.type),lt=st&&("TypeAnnotation"===ut.type||"TSTypeAnnotation"===ut.type),ct=lt&&st&&("TypeAnnotation"===ut.type||"TSTypeAnnotation"===ut.type)&&"ArrowFunctionExpression"===it.type;return _p(ut,t)&&(st=!0,lt=!0),ct&&o.push("("),o.push(printFunctionParams(e,r,t,!1,!0)),(a.returnType||a.predicate||a.typeAnnotation)&&o.push(st?" => ":": ",e.call(r,"returnType"),e.call(r,"predicate"),e.call(r,"typeAnnotation")),ct&&o.push(")"),af(Qp(o));case"TSRestType":return Qp(["...",e.call(r,"typeAnnotation")]);case"TSOptionalType":return Qp([e.call(r,"typeAnnotation"),"?"]);case"FunctionTypeParam":return Qp([e.call(r,"name"),printOptionalToken(e),a.name?": ":"",e.call(r,"typeAnnotation")]);case"GenericTypeAnnotation":return Qp([e.call(r,"id"),e.call(r,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return("DeclareInterface"===a.type||a.declare)&&o.push("declare "),o.push("interface"),"DeclareInterface"!==a.type&&"InterfaceDeclaration"!==a.type||o.push(" ",e.call(r,"id"),e.call(r,"typeParameters")),a.extends.length>0&&o.push(af(uf(Qp([ef,"extends ",(1===a.extends.length?hp:uf)(Zp(Qp([",",ef]),e.map(r,"extends")))])))),o.push(" ",e.call(r,"body")),af(Qp(o));case"ClassImplements":case"InterfaceExtends":return Qp([e.call(r,"id"),e.call(r,"typeParameters")]);case"TSClassImplements":return Qp([e.call(r,"expression"),e.call(r,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":for(var pt=e.map(r,"types"),ft=[],dt=!1,mt=0;mt<pt.length;++mt)0===mt?ft.push(pt[mt]):Lp(a.types[mt-1])&&Lp(a.types[mt])?ft.push(Qp([" & ",dt?uf(pt[mt]):pt[mt]])):Lp(a.types[mt-1])||Lp(a.types[mt])?(mt>1&&(dt=!0),ft.push(" & ",mt>1?uf(pt[mt]):pt[mt])):ft.push(uf(Qp([" &",ef,pt[mt]])));return af(Qp(ft));case"TSUnionType":case"UnionTypeAnnotation":var ht=e.getParentNode(),gt=!("TypeParameterInstantiation"===ht.type||"TSTypeParameterInstantiation"===ht.type||"GenericTypeAnnotation"===ht.type||"TSTypeReference"===ht.type||"TSTypeAssertion"===ht.type||"TupleTypeAnnotation"===ht.type||"TSTupleType"===ht.type||"FunctionTypeParam"===ht.type&&!ht.name||("TypeAlias"===ht.type||"VariableDeclarator"===ht.type||"TSTypeAliasDeclaration"===ht.type)&&lp(t.originalText,a,t)),Dt=shouldHugType(a),yt=e.map((function(e){var n=e.call(r);return Dt||(n=of(2,n)),Or.printComments(e,(function(){return n}),t)}),"types");if(Dt)return Zp(" | ",yt);var Ct=gt&&!lp(t.originalText,a,t),vt=Qp([cf(Qp([Ct?ef:"","| "])),Zp(Qp([ef,"| "]),yt)]);return Ac(e,t)?af(Qp([uf(vt),rf])):"TupleTypeAnnotation"===ht.type&&ht.types.length>1||"TSTupleType"===ht.type&&ht.elementTypes.length>1?af(Qp([uf(Qp([cf(Qp(["(",rf])),vt])),rf,cf(")")])):af(gt?uf(vt):vt);case"NullableTypeAnnotation":return Qp(["?",e.call(r,"typeAnnotation")]);case"TSNullKeyword":case"NullLiteralTypeAnnotation":return"null";case"ThisTypeAnnotation":return"this";case"NumberTypeAnnotation":return"number";case"ObjectTypeCallProperty":return a.static&&o.push("static "),o.push(e.call(r,"value")),Qp(o);case"ObjectTypeIndexer":var Et=rp(a);return Qp([Et||"","[",e.call(r,"id"),a.id?": ":"",e.call(r,"key"),"]: ",e.call(r,"value")]);case"ObjectTypeProperty":var At=rp(a),Ft="";return a.proto?Ft="proto ":a.static&&(Ft="static "),Qp([Ft,Fp(a)?a.kind+" ":"",At||"",printPropertyKey(e,t,r),printOptionalToken(e),Ep(a,t)?"":": ",e.call(r,"value")]);case"QualifiedTypeIdentifier":return Qp([e.call(r,"qualification"),".",e.call(r,"id")]);case"StringLiteralTypeAnnotation":return nodeStr(a,t);case"NumberLiteralTypeAnnotation":return assert.strictEqual(_typeof(a.value),"number"),null!=a.extra?Rc(a.extra.raw):Rc(a.raw);case"StringTypeAnnotation":return"string";case"DeclareTypeAlias":case"TypeAlias":("DeclareTypeAlias"===a.type||a.declare)&&o.push("declare ");var bt=printAssignmentRight(a.id,a.right,e.call(r,"right"),t);return o.push("type ",e.call(r,"id"),e.call(r,"typeParameters")," =",bt,u),af(Qp(o));case"TypeCastExpression":var St=e.getValue(),xt=St&&St.typeAnnotation&&St.typeAnnotation.range&&t.originalText.substring(St.typeAnnotation.range[0]).match(/^\/\*\s*:/);return Qp(["(",e.call(r,"expression"),xt?" /*":"",": ",e.call(r,"typeAnnotation"),xt?" */":"",")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":var wt=e.getValue(),Tt=wt.range?t.originalText.substring(0,wt.range[0]).lastIndexOf("/*"):-1;return Tt>=0&&t.originalText.substring(Tt).match(/^\/\*\s*::/)?Qp(["/*:: ",printTypeParameters(e,t,r,"params")," */"]):printTypeParameters(e,t,r,"params");case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return printTypeParameters(e,t,r,"params");case"TSTypeParameter":case"TypeParameter":var Bt=e.getParentNode();if("TSMappedType"===Bt.type)return o.push("[",e.call(r,"name")),a.constraint&&o.push(" in ",e.call(r,"constraint")),o.push("]"),Qp(o);var kt=rp(a);kt&&o.push(kt),o.push(e.call(r,"name")),a.bound&&(o.push(": "),o.push(e.call(r,"bound"))),a.constraint&&o.push(" extends ",e.call(r,"constraint")),a.default&&o.push(" = ",e.call(r,"default"));var Nt=e.getNode(2);return Bt.params&&1===Bt.params.length&&Up(t)&&!a.constraint&&"ArrowFunctionExpression"===Nt.type&&o.push(","),Qp(o);case"TypeofTypeAnnotation":return Qp(["typeof ",e.call(r,"argument")]);case"VoidTypeAnnotation":return"void";case"InferredPredicate":return"%checks";case"DeclaredPredicate":return Qp(["%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 Qp([e.call(r,"expression")," as ",e.call(r,"typeAnnotation")]);case"TSArrayType":return Qp([e.call(r,"elementType"),"[]"]);case"TSPropertySignature":return a.export&&o.push("export "),a.accessibility&&o.push(a.accessibility+" "),a.static&&o.push("static "),a.readonly&&o.push("readonly "),o.push(printPropertyKey(e,t,r),printOptionalToken(e)),a.typeAnnotation&&(o.push(": "),o.push(e.call(r,"typeAnnotation"))),a.initializer&&o.push(" = ",e.call(r,"initializer")),Qp(o);case"TSParameterProperty":return a.accessibility&&o.push(a.accessibility+" "),a.export&&o.push("export "),a.static&&o.push("static "),a.readonly&&o.push("readonly "),o.push(e.call(r,"parameter")),Qp(o);case"TSTypeReference":return Qp([e.call(r,"typeName"),printTypeParameters(e,t,r,"typeParameters")]);case"TSTypeQuery":return Qp(["typeof ",e.call(r,"exprName")]);case"TSIndexSignature":var Ot=e.getParentNode();return Qp([a.export?"export ":"",a.accessibility?Qp([a.accessibility," "]):"",a.static?"static ":"",a.readonly?"readonly ":"","[",a.parameters?Qp(e.map(r,"parameters")):"","]: ",e.call(r,"typeAnnotation"),"ClassBody"===Ot.type?u:""]);case"TSTypePredicate":return Qp([a.asserts?"asserts ":"",e.call(r,"parameterName"),a.typeAnnotation?Qp([" is ",e.call(r,"typeAnnotation")]):""]);case"TSNonNullExpression":return Qp([e.call(r,"expression"),"!"]);case"TSThisType":return"this";case"TSImportType":return Qp([a.isTypeOf?"typeof ":"","import(",e.call(r,"parameter"),")",a.qualifier?Qp([".",e.call(r,"qualifier")]):"",printTypeParameters(e,t,r,"typeParameters")]);case"TSLiteralType":return e.call(r,"literal");case"TSIndexedAccessType":return Qp([e.call(r,"objectType"),"[",e.call(r,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSCallSignatureDeclaration"!==a.type&&o.push("new "),o.push(af(printFunctionParams(e,r,t,!1,!0))),a.returnType){var Pt="TSConstructorType"===a.type;o.push(Pt?" => ":": ",e.call(r,"returnType"))}return Qp(o);case"TSTypeOperator":return Qp([a.operator," ",e.call(r,"typeAnnotation")]);case"TSMappedType":var It=Lc(t.originalText,t.locStart(a),t.locEnd(a));return af(Qp(["{",uf(Qp([t.bracketSpacing?ef:rf,a.readonly?Qp([ap(a.readonly,"readonly")," "]):"",printTypeScriptModifiers(e,0,r),e.call(r,"typeParameter"),a.optional?ap(a.optional,"?"):"",": ",e.call(r,"typeAnnotation"),cf(u,"")])),Or.printDanglingComments(e,t,!0),t.bracketSpacing?ef:rf,"}"]),{shouldBreak:It});case"TSMethodSignature":return o.push(a.accessibility?Qp([a.accessibility," "]):"",a.export?"export ":"",a.static?"static ":"",a.readonly?"readonly ":"",a.computed?"[":"",e.call(r,"key"),a.computed?"]":"",printOptionalToken(e),printFunctionParams(e,r,t,!1,!0)),a.returnType&&o.push(": ",e.call(r,"returnType")),af(Qp(o));case"TSNamespaceExportDeclaration":return o.push("export as namespace ",e.call(r,"id")),t.semi&&o.push(";"),af(Qp(o));case"TSEnumDeclaration":return a.declare&&o.push("declare "),a.modifiers&&o.push(printTypeScriptModifiers(e,0,r)),a.const&&o.push("const "),o.push("enum ",e.call(r,"id")," "),0===a.members.length?o.push(af(Qp(["{",Or.printDanglingComments(e,t),rf,"}"]))):o.push(af(Qp(["{",uf(Qp([tf,printArrayItems(e,t,"members",r),shouldPrintComma$1(t,"es5")?",":""])),Or.printDanglingComments(e,t,!0),tf,"}"]))),Qp(o);case"TSEnumMember":return o.push(e.call(r,"id")),a.initializer&&o.push(" = ",e.call(r,"initializer")),Qp(o);case"TSImportEqualsDeclaration":return a.isExport&&o.push("export "),o.push("import ",e.call(r,"id")," = ",e.call(r,"moduleReference")),t.semi&&o.push(";"),af(Qp(o));case"TSExternalModuleReference":return Qp(["require(",e.call(r,"expression"),")"]);case"TSModuleDeclaration":var Lt=e.getParentNode(),_t=Tp(a.id),jt="TSModuleDeclaration"===Lt.type,Mt=a.body&&"TSModuleDeclaration"===a.body.type;if(jt)o.push(".");else{a.declare&&o.push("declare "),o.push(printTypeScriptModifiers(e,0,r));var Rt=t.originalText.slice(t.locStart(a),t.locStart(a.id));"Identifier"===a.id.type&&"global"===a.id.name&&!/namespace|module/.test(Rt)||o.push(_t||/(^|\s)module(\s|$)/.test(Rt)?"module ":"namespace ")}return o.push(e.call(r,"id")),Mt?o.push(e.call(r,"body")):a.body?o.push(" ",af(e.call(r,"body"))):o.push(u),Qp(o);case"PrivateName":return Qp(["#",e.call(r,"id")]);case"TSConditionalType":return printTernaryOperator(e,t,r,{beforeParts:function beforeParts(){return[e.call(r,"checkType")," ","extends"," ",e.call(r,"extendsType")]},afterParts:function afterParts(){return[]},shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyName:"checkType",breakNested:!0});case"TSInferType":return Qp(["infer"," ",e.call(r,"typeParameter")]);case"InterpreterDirective":return o.push("#!",a.value,tf),Jc(t.originalText,a,t)&&o.push(tf),Qp(o);case"NGRoot":return Qp([].concat(e.call(r,"node"),a.node.comments&&0!==a.node.comments.length?Qp([" //",a.node.comments[0].value.trimRight()]):[]));case"NGChainedExpression":return af(Zp(Qp([";",ef]),e.map((function(e){return fp(e)?r(e):Qp(["(",r(e),")"])}),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return Qp([a.prefix,":",a.value]);case"NGMicrosyntax":return Qp(e.map((function(e,t){return Qp([0===t?"":Pp(e.getValue(),t,a)?" ":Qp([";",ef]),r(e)])}),"body"));case"NGMicrosyntaxKey":return/^[a-z_$][a-z0-9_$]*(-[a-z_$][a-z0-9_$])*$/i.test(a.name)?a.name:JSON.stringify(a.name);case"NGMicrosyntaxExpression":return Qp([e.call(r,"expression"),null===a.alias?"":Qp([" as ",e.call(r,"alias")])]);case"NGMicrosyntaxKeyedExpression":var $t=e.getName(),Wt=e.getParentNode(),Vt=Pp(a,$t,Wt)||(1===$t&&("then"===a.key.name||"else"===a.key.name)||2===$t&&"else"===a.key.name&&"NGMicrosyntaxKeyedExpression"===Wt.body[$t-1].type&&"then"===Wt.body[$t-1].key.name)&&"NGMicrosyntaxExpression"===Wt.body[0].type;return Qp([e.call(r,"key"),Vt?" ":": ",e.call(r,"expression")]);case"NGMicrosyntaxLet":return Qp(["let ",e.call(r,"key"),null===a.value?"":Qp([" = ",e.call(r,"value")])]);case"NGMicrosyntaxAs":return Qp([e.call(r,"key")," as ",e.call(r,"alias")]);case"ArgumentPlaceholder":return"?";default:throw new Error("unknown type: "+JSON.stringify(a.type))}}(e,t,r,n);if(!a||yf(i))return i;var o=kc(e),s=[];if("ClassMethod"===a.type||"ClassPrivateMethod"===a.type||"ClassProperty"===a.type||"TSAbstractClassProperty"===a.type||"ClassPrivateProperty"===a.type||"MethodDefinition"===a.type||"TSAbstractMethodDefinition"===a.type);else if(a.decorators&&a.decorators.length>0&&!(o&&t.locStart(o,{ignoreDecorators:!0})>t.locStart(a.decorators[0]))){var l="ClassExpression"===a.type||"ClassDeclaration"===a.type||pp(a,t)?tf:ef;e.each((function(e){var t=e.getValue();t=t.expression?t.expression:t.callee,s.push(r(e),l)}),"decorators"),o&&s.unshift(tf)}else Nc(a)&&a.declaration&&a.declaration.decorators&&a.declaration.decorators.length>0&&t.locStart(a,{ignoreDecorators:!0})>t.locStart(a.declaration.decorators[0])?e.each((function(e){var t="Decorator"===e.getValue().type?"":"@";s.push(t,r(e),tf)}),"declaration","decorators"):u=Ac(e,t);var c=[];if(u&&c.unshift("("),c.push(i),u){var p=e.getValue();op(p)&&(c.push(" /*"),c.push(p.trailingComments[0].value.trimLeft()),c.push("*/"),p.trailingComments[0].printed=!0),c.push(")")}return s.length>0?af(Qp(s.concat(c))):Qp(c)},embed:nc,insertPragma:Kc,massageAstNode:ac,hasPrettierIgnore:dp,willPrintOwnComments:function willPrintOwnComments(e){var t=e.getValue(),r=e.getParentNode();return(t&&(Sp(t)||op(t)||r&&("CallExpression"===r.type||"OptionalCallExpression"===r.type)&&(ip(t.leadingComments)||ip(t.trailingComments)))||r&&("JSXSpreadAttribute"===r.type||"JSXSpreadChild"===r.type||"UnionTypeAnnotation"===r.type||"TSUnionType"===r.type||("ClassDeclaration"===r.type||"ClassExpression"===r.type)&&r.superClass===t))&&!$c(e)},canAttachComment:function canAttachComment$1(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 printComment$2(e,t){var r=e.getValue();switch(r.type){case"CommentBlock":case"Block":if(function isIndentableBlockComment(e){var t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every((function(e){return"*"===e.trim()[0]}))}(r)){var n=function printIndentableBlockComment(e){var t=e.value.split("\n");return Qp(["/*",Zp(tf,t.map((function(e,r){return 0===r?e.trimRight():" "+(r<t.length-1?e.trim():e.trimLeft())}))),"*/"])}(r);return r.trailing&&!Ic(t.originalText,t.locStart(r),{backwards:!0})?Qp([tf,n]):n}var a="*-/"===t.originalText.substr(t.locEnd(r)-3,3);return"/*"+r.value+(a?"*-/":"*/");case"CommentLine":case"Line":return t.originalText.slice(t.locStart(r)).startsWith("#!")?"#!"+r.value.trimRight():"//"+r.value.trimRight();default:throw new Error("Not a comment: "+JSON.stringify(r))}},isBlockComment:Wl.isBlockComment,handleComments:{ownLine:Wl.handleOwnLineComment,endOfLine:Wl.handleEndOfLineComment,remaining:Wl.handleRemainingComment}},Ff=mr.builders,bf=Ff.concat,Sf=Ff.hardline,xf=Ff.indent,wf=Ff.join,Tf={preprocess:Bc,print:function genericPrint$4(e,t,r){var n=e.getValue();switch(n.type){case"JsonRoot":return bf([e.call(r,"node"),Sf]);case"ArrayExpression":return 0===n.elements.length?"[]":bf(["[",xf(bf([Sf,wf(bf([",",Sf]),e.map(r,"elements"))])),Sf,"]"]);case"ObjectExpression":return 0===n.properties.length?"{}":bf(["{",xf(bf([Sf,wf(bf([",",Sf]),e.map(r,"properties"))])),Sf,"}"]);case"ObjectProperty":return bf([e.call(r,"key"),": ",e.call(r,"value")]);case"UnaryExpression":return bf(["+"===n.operator?"":n.operator,e.call(r,"argument")]);case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":case"NumericLiteral":return JSON.stringify(n.value);case"Identifier":return JSON.stringify(n.name);default:throw new Error("unknown type: "+JSON.stringify(n.type))}},massageAstNode:function clean$5(e,t){return delete t.start,delete t.end,delete t.extra,delete t.loc,delete t.comments,delete t.errors,"Identifier"===e.type?{type:"StringLiteral",value:e.name}:"UnaryExpression"===e.type&&"+"===e.operator?t.argument:void 0}},Bf={arrowParens:{since:"1.9.0",category:"JavaScript",type:"choice",default:"avoid",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"avoid",description:"Omit parens when possible. Example: `x => x`"},{value:"always",description:"Always include parens. Example: `(x) => x`"}]},bracketSpacing:Cu.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:Cu.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"}]}},kf=["js","node"],Nf=[".js","._js",".bones",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],Of=["Jakefile"],Pf=["chakra","d8","js","node","rhino","v8","v8-shell"],If={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:kf,extensions:Nf,filenames:Of,interpreters:Pf,languageId:183},Lf=Object.freeze({__proto__:null,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:kf,extensions:Nf,filenames:Of,interpreters:Pf,languageId:183,default:If}),_f=[".jsx"],jf={name:"JSX",type:"programming",group:"JavaScript",extensions:_f,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178},Mf=Object.freeze({__proto__:null,name:"JSX",type:"programming",group:"JavaScript",extensions:_f,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178,default:jf}),Rf=["ts"],$f=["deno","ts-node"],Wf=[".ts"],Vf={name:"TypeScript",type:"programming",color:"#2b7489",aliases:Rf,interpreters:$f,extensions:Wf,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},qf=Object.freeze({__proto__:null,name:"TypeScript",type:"programming",color:"#2b7489",aliases:Rf,interpreters:$f,extensions:Wf,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378,default:Vf}),Uf=[".tsx"],zf={name:"TSX",type:"programming",group:"TypeScript",extensions:Uf,tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924},Hf=Object.freeze({__proto__:null,name:"TSX",type:"programming",group:"TypeScript",extensions:Uf,tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924,default:zf}),Jf=[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],Xf=[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","composer.lock","mcmod.info"],Gf={name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:Jf,filenames:Xf,languageId:174},Kf=Object.freeze({__proto__:null,name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:Jf,filenames:Xf,languageId:174,default:Gf}),Yf=["jsonc"],Qf=[".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"],Zf=[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","jsconfig.json","language-configuration.json","tsconfig.json"],ed={name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:Yf,extensions:Qf,filenames:Zf,languageId:423},td=Object.freeze({__proto__:null,name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:Yf,extensions:Qf,filenames:Zf,languageId:423,default:ed}),rd=[".json5"],nd={name:"JSON5",type:"data",extensions:rd,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},ad=Object.freeze({__proto__:null,name:"JSON5",type:"data",extensions:rd,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175,default:nd}),ud=getCjsExportFromNamespace(Lf),id=getCjsExportFromNamespace(Mf),od=getCjsExportFromNamespace(qf),sd=getCjsExportFromNamespace(Hf),ld=getCjsExportFromNamespace(Kf),cd=getCjsExportFromNamespace(td),pd=getCjsExportFromNamespace(ad),fd={languages:[Eu(ud,(function(e){return Object.assign(e,{since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript","mongo"],interpreters:e.interpreters.concat(["nodejs"])})})),Eu(ud,(function(e){return Object.assign(e,{name:"Flow",since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})})),Eu(id,(function(e){return Object.assign(e,{since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascriptreact"]})})),Eu(od,(function(e){return Object.assign(e,{since:"1.4.0",parsers:["typescript"],vscodeLanguageIds:["typescript"]})})),Eu(sd,(function(e){return Object.assign(e,{since:"1.4.0",parsers:["typescript"],vscodeLanguageIds:["typescriptreact"]})})),Eu(ld,(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"]})})),Eu(ld,(function(e){return Object.assign(e,{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],filenames:e.filenames.concat([".prettierrc"])})})),Eu(cd,(function(e){return Object.assign(e,{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:e.filenames.concat([".eslintrc"])})})),Eu(pd,(function(e){return Object.assign(e,{since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]})}))],options:Bf,printers:{estree:Af,"estree-json":Tf}},dd="[\\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]",md="[\\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]",hd="[\\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]",gd=nr.getLast,Dd=["liquidNode","inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],yd=Dd.concat(["tableCell","paragraph","heading"]),Cd=new RegExp(md),vd=new RegExp(hd),Ed={mapAst:function mapAst(e,t){return function preorder(e,r,n){var a=t(e,r,n=n||[]);return Array.isArray(a)?a:((a=Object.assign({},a)).children&&(a.children=a.children.reduce((function(e,t,r){var u=preorder(t,r,[a].concat(n));return Array.isArray(u)||(u=[u]),e.push.apply(e,u),e}),[])),a)}(e,null,null)},splitText:function splitText(e,t){var r="non-cjk",n="cj-letter",a="cjk-punctuation",u=[];return("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(dd,")\n(").concat(dd,")"),"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(dd,")"))).forEach((function(e,t,u){(0!==t&&t!==u.length-1||""!==e)&&(t%2!=0?appendNode(vd.test(e)?{type:"word",value:e,kind:a,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:e,kind:Cd.test(e)?"k-letter":n,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==e&&appendNode({type:"word",value:e,kind:r,hasLeadingPunctuation:vd.test(e[0]),hasTrailingPunctuation:vd.test(gd(e))}))})):u.push({type:"whitespace",value:/\n/.test(e)?"\n":" "})})),u;function appendNode(e){var t=gd(u);t&&"word"===t.type&&(t.kind===r&&e.kind===n&&!t.hasTrailingPunctuation||t.kind===n&&e.kind===r&&!e.hasLeadingPunctuation?u.push({type:"whitespace",value:" "}):function isBetween(r,n){return t.kind===r&&e.kind===n||t.kind===n&&e.kind===r}(r,a)||[t.value,e.value].some((function(e){return/\u3000/.test(e)}))||u.push({type:"whitespace",value:""})),u.push(e)}},punctuationPattern:hd,getFencedCodeBlockValue:function getFencedCodeBlockValue(e,t){var r=t.slice(e.position.start.offset,e.position.end.offset),n=r.match(/^\s*/)[0].length,a=new RegExp("^\\s{0,".concat(n,"}")),u=r.split("\n"),i=r[n],o=r.slice(n).match(new RegExp("^[".concat(i,"]+")))[0],s=new RegExp("^\\s{0,3}".concat(o)).test(u[u.length-1].slice(getIndent(u.length-1)));return u.slice(1,s?-1:void 0).map((function(e,t){return e.slice(getIndent(t+1)).replace(a,"")})).join("\n");function getIndent(t){return e.position.indent[t-1]-1}},getOrderedListItemInfo:function getOrderedListItemInfo(e,t){var r=_slicedToArray(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:Dd,INLINE_NODE_WRAPPER_TYPES:yd},Ad=mr.builders,Fd=Ad.hardline,bd=Ad.literalline,Sd=Ad.concat,xd=Ad.markAsRoot,wd=mr.utils.mapDoc,Td=Ed.getFencedCodeBlockValue,Bd=function embed$4(e,t,r,n){var a=e.getValue();if("code"===a.type&&null!==a.lang){var u=a.lang.match(/^[A-Za-z0-9_-]+/),i=function getParserName(e){var t=ue.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}(u?u[0]:"");if(i){var o=n.__inJsTemplate?"~":"`",s=o.repeat(Math.max(3,nr.getMaxContinuousCount(a.value,o)+1)),l=r(Td(a,n.originalText),{parser:i});return xd(Sd([s,a.lang,Fd,replaceNewlinesWithLiterallines(l),s]))}}if("yaml"===a.type)return xd(Sd(["---",Fd,a.value&&a.value.trim()?replaceNewlinesWithLiterallines(r(a.value,{parser:"yaml"})):"","---"]));switch(a.type){case"importExport":return r(a.value,{parser:"babel"});case"jsx":return r(a.value,{parser:"__js_expression"})}return null;function replaceNewlinesWithLiterallines(e){return wd(e,(function(e){return"string"==typeof e&&e.includes("\n")?Sd(e.split(/(\n)/g).map((function(e,t){return t%2==0?e:bd}))):e}))}},kd=["format","prettier"];function startWithPragma(e){var t="@(".concat(kd.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 Nd={startWithPragma:startWithPragma,hasPragma:function hasPragma(e){return startWithPragma(vn(e).content.trimLeft())},insertPragma:function insertPragma(e){var t=vn(e),r="\x3c!-- @".concat(kd[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)}},Od=Ed.getOrderedListItemInfo,Pd=Ed.mapAst,Id=Ed.splitText,Ld=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function mergeChildren(e,t,r){return Pd(e,(function(e){if(!e.children)return e;var n=e.children.reduce((function(e,n){var a=e[e.length-1];return a&&t(a,n)?e.splice(-1,1,r(a,n)):e.push(n),e}),[]);return Object.assign({},e,{children:n})}))}var _d=function preprocess$2(e,t){return e=function mergeContinuousImportExport(e){return mergeChildren(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 transformImportExport(e){return Pd(e,(function(e){return"import"!==e.type&&"export"!==e.type?e:Object.assign({},e,{type:"importExport"})}))}(e=function splitTextIntoSentences(e,t){return Pd(e,(function(e,r,n){var a=_slicedToArray(n,1)[0];if("text"!==e.type)return e;var u=e.value;return"paragraph"===a.type&&(0===r&&(u=u.trimLeft()),r===a.children.length-1&&(u=u.trimRight())),{type:"sentence",position:e.position,children:Id(u,t)}}))}(e=function markAlignedList(e,t){return Pd(e,(function(e,r,n){if("list"===e.type&&0!==e.children.length){for(var a=0;a<n.length;a++){var u=n[a];if("list"===u.type&&!u.isAligned)return e.isAligned=!1,e}e.isAligned=function isAligned(e){if(!e.ordered)return!0;var r=_slicedToArray(e.children,2),n=r[0],a=r[1];if(Od(n,t.originalText).leadingSpaces.length>1)return!0;var u=getListItemStart(n);if(-1===u)return!1;if(1===e.children.length)return u%t.tabWidth==0;var i=getListItemStart(a);return u===i&&(u%t.tabWidth==0||Od(a,t.originalText).leadingSpaces.length>1)}(e)}return e}));function getListItemStart(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}}(e=function transformIndentedCodeblockAndMarkItsParentList(e,t){return Pd(e,(function(e,r,n){if("code"===e.type){var a=/^\n?( {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=a,a)for(var u=0;u<n.length;u++){var i=n[u];if(i.hasIndentedCodeblock)break;"list"===i.type&&(i.hasIndentedCodeblock=!0)}}return e}))}(e=function transformInlineCode(e){return Pd(e,(function(e){return"inlineCode"!==e.type?e:Object.assign({},e,{value:e.value.replace(/\s+/g," ")})}))}(e=function mergeContinuousTexts(e){return mergeChildren(e,(function(e,t){return"text"===e.type&&"text"===t.type}),(function(e,t){return{type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}}}))}(e=function restoreUnescapedCharacter(e,t){return Pd(e,(function(e){return"text"!==e.type?e:Object.assign({},e,{value:"*"!==e.value&&"_"!==e.value&&"$"!==e.value&&Ld.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?t.originalText.slice(e.position.start.offset,e.position.end.offset):e.value})}))}(e,t))),t),t),t)))},jd=mr.builders,Md=jd.breakParent,Rd=jd.concat,$d=jd.join,Wd=jd.line,Vd=jd.literalline,qd=jd.markAsRoot,Ud=jd.hardline,zd=jd.softline,Hd=jd.ifBreak,Jd=jd.fill,Xd=jd.align,Gd=jd.indent,Kd=jd.group,Yd=mr.utils.mapDoc,Qd=mr.printer.printDocToString,Zd=Ed.getFencedCodeBlockValue,em=Ed.getOrderedListItemInfo,tm=Ed.splitText,rm=Ed.punctuationPattern,nm=Ed.INLINE_NODE_TYPES,am=Ed.INLINE_NODE_WRAPPER_TYPES,um=nr.replaceEndOfLineWith,im=["importExport"],om=["heading","tableCell","link"],sm=["listItem","definition","footnoteDefinition","jsx"];function printListItem(e,t,r,n){var a=e.getValue(),u=null===a.checked?"":a.checked?"[x] ":"[ ] ";return Rd([u,printChildren$2(e,t,r,{processor:function processor(e,a){if(0===a&&"list"!==e.getValue().type)return Xd(" ".repeat(u.length),e.call(r));var i=" ".repeat(function clamp(e,t,r){return e<t?t:e>r?r:e}(t.tabWidth-n.length,0,3));return Rd([i,Xd(i,e.call(r))])}})])}function getNthListSiblingIndex(e,t){return function getNthSiblingIndex(e,t,r){r=r||function(){return!0};var n=-1,a=!0,u=!1,i=void 0;try{for(var o,s=t.children[Symbol.iterator]();!(a=(o=s.next()).done);a=!0){var l=o.value;if(l.type===e.type&&r(l)?n++:n=-1,l===e)return n}}catch(e){u=!0,i=e}finally{try{a||null==s.return||s.return()}finally{if(u)throw i}}}(e,t,(function(t){return t.ordered===e.ordered}))}function getAncestorCounter$1(e,t){for(var r,n=[].concat(t),a=-1;r=e.getParentNode(++a);)if(-1!==n.indexOf(r.type))return a;return-1}function getAncestorNode$2(e,t){var r=getAncestorCounter$1(e,t);return-1===r?null:e.getParentNode(r)}function printLine(e,t,r){if("preserve"===r.proseWrap&&"\n"===t)return Ud;var n="always"===r.proseWrap&&!getAncestorNode$2(e,om);return""!==t?n?Wd:" ":n?zd:""}function printRoot(e,t,r){var n=[],a=null,u=e.getValue().children;return u.forEach((function(e,t){switch(isPrettierIgnore$1(e)){case"start":null===a&&(a={index:t,offset:e.position.end.offset});break;case"end":null!==a&&(n.push({start:a,end:{index:t,offset:e.position.start.offset}}),a=null)}})),printChildren$2(e,t,r,{processor:function processor(e,a){if(0!==n.length){var i=n[0];if(a===i.start.index)return Rd([u[i.start.index].value,t.originalText.slice(i.start.offset,i.end.offset),u[i.end.index].value]);if(i.start.index<a&&a<i.end.index)return!1;if(a===i.end.index)return n.shift(),!1}return e.call(r)}})}function printChildren$2(e,t,r,n){var a,u=(n=n||{}).postprocessor||Rd,i=n.processor||function(e){return e.call(r)},o=e.getValue(),s=[];return e.map((function(e,r){var n=e.getValue(),u=i(e,r);if(!1!==u){var l={parts:s,prevNode:a,parentNode:o,options:t};(function shouldNotPrePrintHardline(e,t){var r=t.parentNode,n=t.parts,a=t.prevNode,u=0===n.length,i="html"===e.type&&-1!==am.indexOf(r.type),o=a&&(isEndsWithHardLine(a)||isEndsWithHardLine(function last(e){return e&&e[e.length-1]}(a.children)));return u||isInlineNode(e)||i||o})(n,l)||(s.push(Ud),a&&-1!==im.indexOf(a.type)?shouldPrePrintTripleHardline(n,l)&&s.push(Ud):((function shouldPrePrintDoubleHardline(e,t){var r=t.parentNode,n=t.prevNode,a=n&&n.type,u=e.type,i=a===u&&-1!==sm.indexOf(u),o="listItem"===r.type&&!r.loose,s="listItem"===a&&n.loose,l="next"===isPrettierIgnore$1(n),c="html"===u&&"html"===a&&n.position.end.line+1===e.position.start.line,p="jsx"===a&&isInlineNode(e)||"jsx"===u&&isInlineNode(n);return s||!(i||o||l||c||p)}(n,l)||shouldPrePrintTripleHardline(n,l))&&s.push(Ud),shouldPrePrintTripleHardline(n,l)&&s.push(Ud))),s.push(u),a=n}}),"children"),u(s)}function getLastDescendantNode(e){for(var t=e;t.children&&0!==t.children.length;)t=t.children[t.children.length-1];return t}function isPrettierIgnore$1(e){if("html"!==e.type)return!1;var t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);return null!==t&&(t[1]?t[1]:"next")}function isInlineNode(e){return e&&-1!==nm.indexOf(e.type)}function isEndsWithHardLine(e){return e&&/\n+$/.test(e.value)}function shouldPrePrintTripleHardline(e,t){var r=t.prevNode&&"list"===t.prevNode.type,n="code"===e.type&&e.isIndented;return r&&n}function normalizeDoc(e){return Yd(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:normalizeParts$2(t)})}))}function printUrl(e,t){var r=[" "].concat(t||[]);return new RegExp(r.map((function(e){return"\\".concat(e)})).join("|")).test(e)?"<".concat(e,">"):e}function printTitle(e,t,r){if(null==r&&(r=!0),!e)return"";if(r)return" "+printTitle(e,t,!1);if(e.includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");var n=e.split("'").length-1,a=e.split('"').length-1,u=n>a?'"':a>n?"'":t.singleQuote?"'":'"';return e=e.replace(new RegExp("(".concat(u,")"),"g"),"\\$1"),"".concat(u).concat(e).concat(u)}function normalizeParts$2(e){return e.reduce((function(e,t){var r=nr.getLast(e);return"string"==typeof r&&"string"==typeof t?e.splice(-1,1,r+t):e.push(t),e}),[])}var lm={preprocess:_d,print:function genericPrint$5(e,t,r){var n=e.getValue();if(function shouldRemainTheSameContent(e){var t=getAncestorNode$2(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return Rd(tm(t.originalText.slice(n.position.start.offset,n.position.end.offset),t).map((function(r){return"word"===r.type?r.value:""===r.value?"":printLine(e,r.value,t)})));switch(n.type){case"root":return 0===n.children.length?"":Rd([normalizeDoc(printRoot(e,t,r)),-1===im.indexOf(getLastDescendantNode(n).type)?Ud:""]);case"paragraph":return printChildren$2(e,t,r,{postprocessor:Jd});case"sentence":return printChildren$2(e,t,r);case"word":return n.value.replace(/[*$]/g,"\\$&").replace(new RegExp(["(^|".concat(rm,")(_+)"),"(_+)(".concat(rm,"|$)")].join("|"),"g"),(function(e,t,r,n,a){return(r?"".concat(t).concat(r):"".concat(n).concat(a)).replace(/_/g,"\\_")}));case"whitespace":var a=e.getParentNode(),u=a.children.indexOf(n),i=a.children[u+1],o=i&&/^>|^([-+*]|#{1,6}|[0-9]+[.)])$/.test(i.value)?"never":t.proseWrap;return printLine(e,n.value,{proseWrap:o});case"emphasis":var s=e.getParentNode(),l=s.children.indexOf(n),c=s.children[l-1],p=s.children[l+1],f=c&&"sentence"===c.type&&c.children.length>0&&"word"===nr.getLast(c.children).type&&!nr.getLast(c.children).hasTrailingPunctuation||p&&"sentence"===p.type&&p.children.length>0&&"word"===p.children[0].type&&!p.children[0].hasLeadingPunctuation||getAncestorNode$2(e,"emphasis")?"*":"_";return Rd([f,printChildren$2(e,t,r),f]);case"strong":return Rd(["**",printChildren$2(e,t,r),"**"]);case"delete":return Rd(["~~",printChildren$2(e,t,r),"~~"]);case"inlineCode":var d=nr.getMinNotPresentContinuousCount(n.value,"`"),m="`".repeat(d||1),h=d?" ":"";return Rd([m,h,n.value,h,m]);case"link":switch(t.originalText[n.position.start.offset]){case"<":var g=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 Rd(["<",g,">"]);case"[":return Rd(["[",printChildren$2(e,t,r),"](",printUrl(n.url,")"),printTitle(n.title,t),")"]);default:return t.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return Rd(["![",n.alt||"","](",printUrl(n.url,")"),printTitle(n.title,t),")"]);case"blockquote":return Rd(["> ",Xd("> ",printChildren$2(e,t,r))]);case"heading":return Rd(["#".repeat(n.depth)+" ",printChildren$2(e,t,r)]);case"code":if(n.isIndented){var D=" ".repeat(4);return Xd(D,Rd([D,Rd(um(n.value,Ud))]))}var y=t.__inJsTemplate?"~":"`",C=y.repeat(Math.max(3,nr.getMaxContinuousCount(n.value,y)+1));return Rd([C,n.lang||"",Ud,Rd(um(Zd(n,t.originalText),Ud)),Ud,C]);case"yaml":case"toml":return t.originalText.slice(n.position.start.offset,n.position.end.offset);case"html":var v=e.getParentNode(),E="root"===v.type&&nr.getLast(v.children)===n?n.value.trimRight():n.value,A=/^<!--[\s\S]*-->$/.test(E);return Rd(um(E,A?Ud:qd(Vd)));case"list":var F=getNthListSiblingIndex(n,e.getParentNode()),b=n.ordered&&n.children.length>1&&1==+em(n.children[1],t.originalText).numberText;return printChildren$2(e,t,r,{processor:function processor(e,a){var u=function getPrefix(){var e=n.ordered?(0===a?n.start:b?1:n.start+a)+(F%2==0?". ":") "):F%2==0?"- ":"* ";return n.isAligned||n.hasIndentedCodeblock?function alignListPrefix(e,t){var r=function getAdditionalSpaces(){var r=e.length%t.tabWidth;return 0===r?0:t.tabWidth-r}();return e+" ".repeat(r>=4?0:r)}(e,t):e}();return Rd([u,Xd(" ".repeat(u.length),printListItem(e,t,r,u))])}});case"thematicBreak":var S=getAncestorCounter$1(e,"list");return-1===S?"---":getNthListSiblingIndex(e.getParentNode(S),e.getParentNode(S+1))%2==0?"***":"---";case"linkReference":return Rd(["[",printChildren$2(e,t,r),"]","full"===n.referenceType?Rd(["[",n.identifier,"]"]):"collapsed"===n.referenceType?"[]":""]);case"imageReference":switch(n.referenceType){case"full":return Rd(["![",n.alt||"","][",n.identifier,"]"]);default:return Rd(["![",n.alt,"]","collapsed"===n.referenceType?"[]":""])}case"definition":var x="always"===t.proseWrap?Wd:" ";return Kd(Rd([Rd(["[",n.identifier,"]:"]),Gd(Rd([x,printUrl(n.url),null===n.title?"":Rd([x,printTitle(n.title,t,!1)])]))]));case"footnote":return Rd(["[^",printChildren$2(e,t,r),"]"]);case"footnoteReference":return Rd(["[^",n.identifier,"]"]);case"footnoteDefinition":var w=e.getParentNode().children[e.getName()+1],T=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 Rd(["[^",n.identifier,"]: ",T?printChildren$2(e,t,r):Kd(Rd([Xd(" ".repeat(t.tabWidth),printChildren$2(e,t,r,{processor:function processor(e,t){return 0===t?Kd(Rd([zd,zd,e.call(r)])):e.call(r)}})),w&&"footnoteDefinition"===w.type?zd:""]))]);case"table":return function printTable(e,t,r){var n=Ud.parts[0],a=e.getValue(),u=[];e.map((function(e){var n=[];e.map((function(e){n.push(Qd(e.call(r),t).formatted)}),"children"),u.push(n)}),"children");var i=u.reduce((function(e,t){return e.map((function(e,r){return Math.max(e,nr.getStringWidth(t[r]))}))}),u[0].map((function(){return 3}))),o=$d(n,[printRow(u[0]),printSeparator(),$d(n,u.slice(1).map((function(e){return printRow(e)})))]);if("never"!==t.proseWrap)return Rd([Md,o]);var s=$d(n,[printRow(u[0],!0),printSeparator(!0),$d(n,u.slice(1).map((function(e){return printRow(e,!0)})))]);return Rd([Md,Kd(Hd(s,o))]);function printSeparator(e){return Rd(["| ",$d(" | ",i.map((function(t,r){var n=e?3:t;switch(a.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 printRow(e,t){return Rd(["| ",$d(" | ",t?e:e.map((function(e,t){switch(a.align[t]){case"right":return function alignRight(e,t){var r=t-nr.getStringWidth(e);return Rd([" ".repeat(r),e])}(e,i[t]);case"center":return function alignCenter(e,t){var r=t-nr.getStringWidth(e),n=Math.floor(r/2),a=r-n;return Rd([" ".repeat(n),e," ".repeat(a)])}(e,i[t]);default:return function alignLeft(e,t){var r=t-nr.getStringWidth(e);return Rd([e," ".repeat(r)])}(e,i[t])}})))," |"])}}(e,t,r);case"tableCell":return printChildren$2(e,t,r);case"break":return/\s/.test(t.originalText[n.position.start.offset])?Rd(["  ",qd(Vd)]):Rd(["\\",Ud]);case"liquidNode":return Rd(um(n.value,Ud));case"importExport":case"jsx":return n.value;case"math":return Rd(["$$",Ud,n.value?Rd([Rd(um(n.value,Ud)),Ud]):"","$$"]);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:Bd,massageAstNode:function clean$6(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&&Nd.startWithPragma(e.value)?null:void 0)},hasPrettierIgnore:function hasPrettierIgnore$4(e){var t=+e.getName();return 0!==t&&"next"===isPrettierIgnore$1(e.getParentNode().children[t-1])},insertPragma:Nd.insertPragma},cm={proseWrap:Cu.proseWrap,singleQuote:Cu.singleQuote},pm=["pandoc"],fm=[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".workbook"],dm=["contents.lr"],mm={name:"Markdown",type:"prose",aliases:pm,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:fm,filenames:dm,tmScope:"source.gfm",languageId:222},hm=getCjsExportFromNamespace(Object.freeze({__proto__:null,name:"Markdown",type:"prose",aliases:pm,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:fm,filenames:dm,tmScope:"source.gfm",languageId:222,default:mm})),gm={languages:[Eu(hm,(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}))})})),Eu(hm,(function(e){return Object.assign(e,{name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]})}))],options:cm,printers:{mdast:lm}},Dm=function isPragma(e){return/^\s*@(prettier|format)\s*$/.test(e)},ym=function insertPragma$8(e){return"# @format\n\n".concat(e)},Cm=nr.getLast;function isNode(e,t){return e&&"string"==typeof e.type&&(!t||-1!==t.indexOf(e.type))}function isPrettierIgnore$2(e){return"prettier-ignore"===e.value.trim()}function hasLeadingComments(e){return e&&e.leadingComments&&0!==e.leadingComments.length}function hasMiddleComments(e){return e&&e.middleComments&&0!==e.middleComments.length}function hasIndicatorComment(e){return e&&e.indicatorComment}function hasTrailingComment$2(e){return e&&e.trailingComment}function hasEndComments(e){return e&&e.endComments&&0!==e.endComments.length}function splitWithSingleSpace(e){var t=[],r=void 0,n=!0,a=!1,u=void 0;try{for(var i,o=e.split(/( +)/g)[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;" "!==s?" "===r?t.push(s):t.push((t.pop()||"")+s):void 0===r&&t.unshift(""),r=s}}catch(e){a=!0,u=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw u}}return" "===r&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var vm={getLast:Cm,getAncestorCount:function getAncestorCount(e,t){for(var r=0,n=e.stack.length-1,a=0;a<n;a++){var u=e.stack[a];isNode(u)&&t(u)&&r++}return r},isNode:isNode,isEmptyNode:function isEmptyNode(e){return!(e.children&&0!==e.children.length||function hasComments(e){return hasLeadingComments(e)||hasMiddleComments(e)||hasIndicatorComment(e)||hasTrailingComment$2(e)||hasEndComments(e)}(e))},mapNode:function mapNode(e,t,r){return t("children"in e?Object.assign({},e,{children:e.children.map((function(r){return mapNode(r,t,e)}))}):e,r)},defineShortcut:function defineShortcut(e,t,r){Object.defineProperty(e,t,{get:r,enumerable:!1})},isNextLineEmpty:function isNextLineEmpty$5(e,t){for(var r=0,n=t.length,a=e.position.end.offset-1;a<n;a++){var u=t[a];if("\n"===u&&r++,1===r&&/\S/.test(u))return!1;if(2===r)return!0}return!1},isLastDescendantNode:function isLastDescendantNode(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1}for(var t=e.stack.length,r=1;r<t;r++){var n=e.stack[r],a=e.stack[r-1];if(Array.isArray(a)&&"number"==typeof n&&n!==a.length-1)return!1}return!0},getBlockValueLineContents:function getBlockValueLineContents(e,t){var r,n=t.parentIndent,a=t.isLastDescendant,u=t.options,i=e.position.start.line===e.position.end.line?"":u.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*?\n([\s\S]*)$/)[1],o=null===e.indent?(r=i.match(/^( *)\S/m))?r[1].length:1/0:e.indent-1+n,s=i.split("\n").map((function(e){return e.slice(o)}));return"preserve"===u.proseWrap||"blockLiteral"===e.type?removeUnnecessaryTrailingNewlines(s.map((function(e){return 0===e.length?[]:[e]}))):removeUnnecessaryTrailingNewlines(s.map((function(e){return 0===e.length?[]:splitWithSingleSpace(e)})).reduce((function(e,t,r){return 0===r||0===s[r-1].length||0===t.length||/^\s/.test(t[0])||/^\s|\s$/.test(Cm(e))?e.concat([t]):e.concat([e.pop().concat(t)])}),[]).map((function(e){return e.reduce((function(e,t){return 0!==e.length&&/\s$/.test(Cm(e))?e.concat(e.pop()+" "+t):e.concat(t)}),[])})).map((function(e){return"never"===u.proseWrap?[e.join(" ")]:e})));function removeUnnecessaryTrailingNewlines(t){if("keep"===e.chomping)return 0===Cm(t).length?t.slice(0,-1):t;for(var r=0,n=t.length-1;n>=0&&0===t[n].length;n--)r++;return 0===r?t:r>=2&&!a?t.slice(0,-(r-1)):t.slice(0,-r)}},getFlowScalarLineContents:function getFlowScalarLineContents(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?[]:splitWithSingleSpace(e)})).reduce((function(t,r,a){return 0===a||0===n[a-1].length||0===r.length||"quoteDouble"===e&&Cm(Cm(t)).endsWith("\\")?t.concat([r]):t.concat([t.pop().concat(r)])}),[]).map((function(e){return"never"===r.proseWrap?[e.join(" ")]:e}))},getLastDescendantNode:function getLastDescendantNode$1(e){return"children"in e&&0!==e.children.length?getLastDescendantNode$1(Cm(e.children)):e},hasPrettierIgnore:function hasPrettierIgnore$5(e){var t=e.getValue();if("documentBody"===t.type){var r=e.getParentNode();return hasEndComments(r.head)&&isPrettierIgnore$2(Cm(r.head.endComments))}return hasLeadingComments(t)&&isPrettierIgnore$2(Cm(t.leadingComments))},hasLeadingComments:hasLeadingComments,hasMiddleComments:hasMiddleComments,hasIndicatorComment:hasIndicatorComment,hasTrailingComment:hasTrailingComment$2,hasEndComments:hasEndComments},Em=ym,Am=Dm,Fm=vm.getAncestorCount,bm=vm.getBlockValueLineContents,Sm=vm.getFlowScalarLineContents,xm=vm.getLast,wm=vm.getLastDescendantNode,Tm=vm.hasLeadingComments,Bm=vm.hasMiddleComments,km=vm.hasIndicatorComment,Nm=vm.hasTrailingComment,Om=vm.hasEndComments,Pm=vm.hasPrettierIgnore,Im=vm.isLastDescendantNode,Lm=vm.isNextLineEmpty,_m=vm.isNode,jm=vm.isEmptyNode,Mm=vm.defineShortcut,Rm=vm.mapNode,$m=mr.builders,Wm=$m.conditionalGroup,Vm=$m.breakParent,qm=$m.concat,Um=$m.dedent,zm=$m.dedentToRoot,Hm=$m.fill,Jm=$m.group,Xm=$m.hardline,Gm=$m.ifBreak,Km=$m.join,Ym=$m.line,Qm=$m.lineSuffix,Zm=$m.literalline,eh=$m.markAsRoot,th=$m.softline,rh=nr.replaceEndOfLineWith;function defineShortcuts(e){switch(e.type){case"document":Mm(e,"head",(function(){return e.children[0]})),Mm(e,"body",(function(){return e.children[1]}));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Mm(e,"content",(function(){return e.children[0]}));break;case"mappingItem":case"flowMappingItem":Mm(e,"key",(function(){return e.children[0]})),Mm(e,"value",(function(){return e.children[1]}))}return e}function _print(e,t,r,n,a){switch(e.type){case"root":return qm([Km(Xm,r.map((function(t,n){var u=e.children[n],i=e.children[n+1];return qm([a(t),shouldPrintDocumentEndMarker(u,i)?qm([Xm,"...",Nm(u)?qm([" ",r.call(a,"trailingComment")]):""]):!i||Nm(i.head)?"":qm([Xm,"---"])])}),"children")),0===e.children.length||(S=wm(e),_m(S,["blockLiteral","blockFolded"])&&"keep"===S.chomping)?"":Xm]);case"document":var u=t.children[r.getName()+1];return Km(Xm,["head"===shouldPrintDocumentHeadEndMarker(e,u,t,n)?Km(Xm,[0===e.head.children.length&&0===e.head.endComments.length?"":r.call(a,"head"),qm(["---",Nm(e.head)?qm([" ",r.call(a,"head","trailingComment")]):""])].filter(Boolean)):"",(b=e,0!==b.body.children.length||Om(b.body)?r.call(a,"body"):"")].filter(Boolean));case"documentHead":return Km(Xm,[].concat(r.map(a,"children"),r.map(a,"endComments")));case"documentBody":var i=Km(Xm,r.map(a,"children")).parts,o=Km(Xm,r.map(a,"endComments")).parts,s=0===i.length||0===o.length?"":function(e){return _m(e,["blockFolded","blockLiteral"])?"keep"===e.chomping?"":qm([Xm,Xm]):Xm}(wm(e));return qm([].concat(i,s,o));case"directive":return qm(["%",Km(" ",[e.name].concat(e.parameters))]);case"comment":return qm(["#",e.value]);case"alias":return qm(["*",e.value]);case"tag":return n.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return qm(["&",e.value]);case"plain":return printFlowScalarContent(e.type,n.originalText.slice(e.position.start.offset,e.position.end.offset),n);case"quoteDouble":case"quoteSingle":var l=n.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&l.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(l)){var c="quoteDouble"===e.type?'"':"'";return qm([c,printFlowScalarContent(e.type,l,n),c])}if(l.includes('"'))return qm(["'",printFlowScalarContent(e.type,"quoteDouble"===e.type?l.replace(/\\"/g,'"').replace(/'/g,"'".repeat(2)):l,n),"'"]);if(l.includes("'"))return qm(['"',printFlowScalarContent(e.type,"quoteSingle"===e.type?l.replace(/''/g,"'"):l,n),'"']);var p=n.singleQuote?"'":'"';return qm([p,printFlowScalarContent(e.type,l,n),p]);case"blockFolded":case"blockLiteral":var f=Fm(r,(function(e){return _m(e,["sequence","mapping"])})),d=Im(r);return qm(["blockFolded"===e.type?">":"|",null===e.indent?"":e.indent.toString(),"clip"===e.chomping?"":"keep"===e.chomping?"+":"-",km(e)?qm([" ",r.call(a,"indicatorComment")]):"",(null===e.indent?Um:zm)(align$3(null===e.indent?n.tabWidth:e.indent-1+f,qm(bm(e,{parentIndent:f,isLastDescendant:d,options:n}).reduce((function(t,r,n,a){return t.concat(0===n?Xm:"",Hm(Km(Ym,r).parts),n!==a.length-1?0===r.length?Xm:eh(Zm):"keep"===e.chomping&&d?0===r.length?zm(Xm):zm(Zm):"")}),[]))))]);case"sequence":return Km(Xm,r.map(a,"children"));case"sequenceItem":return qm(["- ",align$3(2,e.content?r.call(a,"content"):"")]);case"mappingKey":case"mappingValue":return e.content?r.call(a,"content"):"";case"mapping":return Km(Xm,r.map(a,"children"));case"mappingItem":case"flowMappingItem":var m=jm(e.key),h=jm(e.value);if(m&&h)return qm([": "]);var g=r.call(a,"key"),D=r.call(a,"value");if(h)return"flowMappingItem"===e.type&&"flowMapping"===t.type?g:"mappingItem"!==e.type||!isAbsolutelyPrintedAsSingleLineNode(e.key.content,n)||Nm(e.key.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?qm(["? ",align$3(2,g)]):qm([g,needsSpaceInFrontOfMappingValue(e)?" ":"",":"]);if(m)return qm([": ",align$3(2,D)]);var y=Symbol("mappingKey");return Tm(e.value)||!isInlineNode$1(e.key.content)?qm(["? ",align$3(2,g),Xm,Km("",r.map(a,"value","leadingComments").map((function(e){return qm([e,Xm])}))),": ",align$3(2,D)]):!function isSingleLineNode(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)||Tm(e.key.content)||Bm(e.key.content)||Nm(e.key.content)||Om(e.key)||Tm(e.value.content)||Bm(e.value.content)||Om(e.value)||!isAbsolutelyPrintedAsSingleLineNode(e.value.content,n)?Wm([qm([Jm(qm([Gm("? "),Jm(align$3(2,g),{id:y})])),Gm(qm([Xm,": ",align$3(2,D)]),indent(qm([needsSpaceInFrontOfMappingValue(e)?" ":"",":",Tm(e.value.content)||Om(e.value)&&e.value.content&&!_m(e.value.content,["mapping","sequence"])||"mapping"===t.type&&Nm(e.key.content)&&isInlineNode$1(e.value.content)||_m(e.value.content,["mapping","sequence"])&&null===e.value.content.tag&&null===e.value.content.anchor?Xm:e.value.content?Ym:"",D])),{groupId:y})])]):qm([g,needsSpaceInFrontOfMappingValue(e)?" ":"",": ",D]);case"flowMapping":case"flowSequence":var C="flowMapping"===e.type?"{":"[",v="flowMapping"===e.type?"}":"]",E="flowMapping"===e.type&&0!==e.children.length&&n.bracketSpacing?Ym:th,A=0!==e.children.length&&"flowMappingItem"===(F=xm(e.children)).type&&jm(F.key)&&jm(F.value);return qm([C,indent(qm([E,qm(r.map((function(t,r){return qm([a(t),r===e.children.length-1?"":qm([",",Ym,e.children[r].position.start.line!==e.children[r+1].position.start.line?printNextEmptyLine(t,n.originalText):""])])}),"children")),Gm(",","")])),A?"":E,v]);case"flowSequenceItem":return r.call(a,"content");default:throw new Error("Unexpected node type ".concat(e.type))}var F,b,S;function indent(e){return $m.align(" ".repeat(n.tabWidth),e)}}function align$3(e,t){return"number"==typeof e&&e>0?$m.align(" ".repeat(e),t):$m.align(e,t)}function isInlineNode$1(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 shouldPrintDocumentEndMarker(e,t){return Nm(e)||t&&(0!==t.head.children.length||Om(t.head))}function shouldPrintDocumentHeadEndMarker(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||Om(e.head)||Nm(e.head)?"head":!shouldPrintDocumentEndMarker(e,t)&&!!t&&"root"}function isAbsolutelyPrintedAsSingleLineNode(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 needsSpaceInFrontOfMappingValue(e){return e.key.content&&"alias"===e.key.content.type}function printNextEmptyLine(e,t){var r=e.getValue(),n=e.stack[0];return n.isNextEmptyLinePrintedChecklist=n.isNextEmptyLinePrintedChecklist||[],!n.isNextEmptyLinePrintedChecklist[r.position.end.line]&&Lm(r,t)?(n.isNextEmptyLinePrintedChecklist[r.position.end.line]=!0,th):""}function printFlowScalarContent(e,t,r){var n=Sm(e,t,r);return Km(Xm,n.map((function(e){return Hm(Km(Ym,e).parts)})))}var nh={preprocess:function preprocess$3(e){return Rm(e,defineShortcuts)},print:function genericPrint$6(e,t,r){var n=e.getValue(),a=e.getParentNode(),u=n.tag?e.call(r,"tag"):"",i=n.anchor?e.call(r,"anchor"):"",o=_m(n,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Im(e)?printNextEmptyLine(e,t.originalText):"";return qm(["mappingValue"!==n.type&&Tm(n)?qm([Km(Xm,e.map(r,"leadingComments")),Xm]):"",u,u&&i?" ":"",i,u||i?_m(n,["sequence","mapping"])&&!Bm(n)?Xm:" ":"",Bm(n)?qm([1===n.middleComments.length?"":Xm,Km(Xm,e.map(r,"middleComments")),Xm]):"",Pm(e)?qm(rh(t.originalText.slice(n.position.start.offset,n.position.end.offset),Zm)):Jm(_print(n,a,e,t,r)),Nm(n)&&!_m(n,["document","documentHead"])?Qm(qm(["mappingValue"!==n.type||n.content?" ":"","mappingKey"===a.type&&"mapping"===e.getParentNode(2).type&&isInlineNode$1(n)?"":Vm,e.call(r,"trailingComment")])):"",o,Om(n)&&!_m(n,["documentHead","documentBody"])?align$3("sequenceItem"===n.type?2:0,qm([Xm,Km(Xm,e.map(r,"endComments"))])):""])},massageAstNode:function clean$7(e,t){if(_m(t))switch(delete t.position,t.type){case"comment":if(Am(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:Em},ah={bracketSpacing:Cu.bracketSpacing,singleQuote:Cu.singleQuote,proseWrap:Cu.proseWrap},uh=["yml"],ih=[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yml.mysql"],oh=[".clang-format",".clang-tidy",".gemrc","glide.lock"],sh={name:"YAML",type:"data",tmScope:"source.yaml",aliases:uh,extensions:ih,filenames:oh,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},lh={languages:[Eu(getCjsExportFromNamespace(Object.freeze({__proto__:null,name:"YAML",type:"data",tmScope:"source.yaml",aliases:uh,extensions:ih,filenames:oh,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407,default:sh})),(function(e){return Object.assign(e,{since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml"]})}))],printers:{yaml:nh},options:ah},ch=re.version,ph=ue.getSupportInfo,fh=[Mu,ti,gi,jl,fd,gm,lh],dh=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function withPlugins(e){return function(){var t=Array.from(arguments),r=t[1]&&t[1].plugins||[];return dh(r)||(r=Object.values(r)),t[1]=Object.assign({},t[1],{plugins:fh.concat(r)}),e.apply(null,t)}}var mh=withPlugins(en);return{formatWithCursor:mh,format:function format(e,t){return mh(e,t).formatted},check:function check(e,t){return mh(e,t).formatted===e},doc:mr,getSupportInfo:withPlugins(ph),version:ch,util:gr,__debug:{parse:withPlugins(tn),formatAST:withPlugins(rn),formatDoc:withPlugins(nn),printToDoc:withPlugins(an),printDocToString:withPlugins(un)}}},e.exports=r()}).call(this,r("../node_modules/webpack/buildin/global.js"))}}]);
//# sourceMappingURL=vendors~custom-page-KXWAf~pattern-view-page-WE7TE~96c62b4f.chunk.eaa5497fb7f7db0479e3.js.map